Oracle Schema Objects(Schema Object Storage And Type)
One characteristic of an RDBMS is the independence of physical data storage from logical data structures.
RDBMS的特点之一是物理数据与逻辑数据结构的独立性.
- Introduction to Schema Objects
- Schema Object Types
- Schema Object Storage
- Schema Object Dependencies
- SYS and SYSTEM Schemas
Introduction to Schema Objects
模式对象简介
database schema |
1、In Oracle Database, a database schema is a collection of logical data structures, or schema objects. 在Oracle数据库中,数据库schema是逻辑数据结构或schema objects的集合。 2、A database schema is owned by a database user and has the same name as the user name. 一个database schema是由一个数据库用户拥有,并与用户名具有相同的名称. |
Schema objects |
1、Schema objects are user-created structures that directly refer to the data in the database. The database supports many types of schema objects, the most important of which are tables and indexes. Schema objects是用户创建的结构,它直接引用数据库中的数据。数据库支持多种类型的schema objects,其中最重要的是表和索引. 2、Schema objects are created and manipulated with SQL. Schema objects是通过SQL来创建和操作的. |
Database user And Schema |
1、A database user has a password and various database privileges. 数据库用户有一个密码,还有各种数据库权限。 2、Each user owns a single schema, which has the same name as the user. 每个用户拥有一个单一的schema,这个schema和用户具有相同的名字。 3、The schema contains the data for the user owning the schema. Schema中包含了相应用户全部的数据。 For example, the HR user owns the HR schema, which contains schema objects such as the employees table. 例如,HR用户拥有HR模式,HR模式办好有雇员表之类的schema objects。 In a production database, the schema owner usually represents a database application rather than a person. 在生产数据库中,一个模式的拥有者通常表示一个数据库应用程序,而不是一个人。 Within a schema, each schema object of a particular type has a unique name. 在一个schema中,某个特定类型的每个schema object都有一个唯一的名称。 For example, HR.employees refers to the table employees in the HR schema. 如,HR.employee是hr模式中的employee表。 |
Schema Object Types
Schema object 类型
The most important schema objects in a relational database are tables. A table stores data in rows.
在关系数据库中,最重要的schema objects是表,表以行的形式存储数据。
1、Tables
Oracle Schema Objects——Tables——TableType Oracle Schema Objects——Tables——TableStorage Oracle Schema Objects——Tables——Overview of Tables Oracle Schema Objects——Tables——Table Compression
Oracle Schema Objects——Tables——Oracle Data Type
|
2、Indexes
Indexes are schema objects that contains an entry for each indexed row of the table or table cluster and provide direct, fast access to rows.
Oracle 数据库支持几种类型的索引。 一个索引组织表是一个表,其数据以一个索引结构来存储。 Oracle Schema Objects——Index |
3、Partitions 分区是大型表和索引的分片。 每个分区有其自己的名称,并可能有其自己(可选)的存储特征
Oracle Schema Objects——PARTITION
|
4、Views 视图是对一个或多个表、或其他视图中的数据的自定义表示。 你可以把它们看作存储的查询。 视图实际上并不存储数据。 Oracle Schema Objects——View |
5、Sequences 序列是一个由用户创建的对象,可以被多个用户共享,用于生成整数。 通常,序列用于生成主键值。 Oracle Schema Objects——Sequences |
6、Dimensions 维度定义多个列集之间的父-子关系,列集中的所有列必须都来自同一个表。维度通常用于对客户、 产品、和时间之类的数据进行分类 |
7、Synonyms 同义词是另一个模式对象的别名。 因为同义词只是一个别名,它在数据字典中除了其定义之外,没有存储。 Oracle Schema Objects——Synonyms |
8、PL/SQL subprograms and packages PL/SQL 是 Oracle 对 SQL的过程化扩展。 PL/SQL 子程序是命名的PL/SQL 块,可以带参数调用。 PL/SQL 包用于将逻辑上相关的PL/SQL 类型、 变量、和子程序进行分组。 |
Other types of objects database users, roles, contexts, and directory objects 数据库用户、角色、上下文、目录对象 |
Schema Object Storage
Schema Object存储
1、schema object的数据如何存储
Oracle存储(物理+逻辑)结构
schema objects that have segments 有段的模式对象 表或索引 |
一些schema objects将数据存储在称为段的逻辑存储结构中。
一个未分区的堆组织表或索引会创建一个段。 |
无段的模式对象 视图、序列 |
其他schema objects,像视图和序列,则只包含元数据。 |
2、schema object逻辑上和物理上存储在哪里?
schema object And Tablespace(表空间) 逻辑上 |
Oracle数据库逻辑上将schema object存储在表空间中。
在schemas和表空间tablespace之间没有任何关系:
一个表空间可以包含来自不同schema的object
一个schema中的object也可以包含在不同的表空间中。 |
The data of each object And data files 每个对象的数据&数据文件 物理上 |
每个对象的数据在物理上包含在一个或多个数据文件中。 |
Segments, Tablespaces, and Data Files 表、索引段、表空间、数据文件 |
The data segment for one table spans two data files, which are both part of the same tablespace. 一个表的数据段跨越2个数据文件,这2个数据文件属于同一个表空间。 A segment cannot span multiple tablespaces. 一个段不能跨越多个表空间。 |
Schema Object Dependencies
Schema Object依赖
Some schema objects reference other objects, creating schema object dependencies.
一些Schema Object会引用其他对象,就产生了依赖。
SYS and SYSTEM Schemas
All Oracle databases include default administrative accounts.
所有Oracle数据库都包括默认管理账户
Administrative accounts are highly privileged and are intended only for DBAs authorized to perform tasks such as starting and stopping the database, managing memory and storage, creating and managing database users, and so on.
管理账户享有很高的特权,仅用于授权的数据库管理员执行诸如启停数据库、 管理内存和存储、 创建和管理数据库用户等任务
SYS |
The administrative account SYS is automatically created when a database is created. This account can perform all database administrative functions. The SYS schema stores the base tables and views for the data dictionary. These base tables and views are critical for the operation of Oracle Database. Tables in the SYS schema are manipulated only by the database and must never be modified by any user. SYS管理帐户在创建数据库时自动创建。 此帐户可以执行所有的数据库管理功能。 SYS模式存储数据字典基表和视图。 这些基表和视图对数据库的运行至关重要。 SYS 模式中的表只由数据库操作,绝不能被任何用户修改。 |
SYSTEM |
The SYSTEM account is also automatically created when a database is created. The SYSTEM schema stores additional tables and views that display administrative information, and internal tables and views used by various Oracle Database options and tools. Never use the SYSTEM schema to store tables of interest to nonadministrative users. 在创建数据库时,也会自动创建 SYSTEM 帐户。 SYSTEM 模式存储其它一些用于显示管理信息的表和视图,以及用于各种数据库选项和工具的内部表和视图。 永远不要使用 SYSTEM 模式来存储非管理性用户的表。 |
转载于:https://www.cnblogs.com/thescentedpath/p/7060159.html
Oracle Schema Objects(Schema Object Storage And Type)相关推荐
- SCRDet:Towards More Robust Detection for Small, Cluttered and Rotated Objects(摇杆旋转目标检测方法)
文章目录 SCRDet:Towards More Robust Detection for Small, Cluttered and Rotated Objects(遥感旋转目标检测方法) 一.论文摘 ...
- COM(Componet Object Model_组件对象模型)技术概述
COM(Componet Object Model_组件对象模型)技术概述 转载FDCFDMin 最后发布于2018-09-07 20:33:55 阅读数 2065 收藏 https://blog.c ...
- linux c之fdopen(int fd, const char *type)使用总结
1.fdopen(int fd, const char *type)的介绍 比如一写特殊文件不能用io打开,我们先要用open函数得到文件描述符,也就是这个fdopen函数的第一个参数,第二个参数是常 ...
- 原型和原型链的理解(Function,Object特例深入理解)
原型我们可以分为显式原型和隐式原型. 显式原型: 每个函数都有一个prototype属性,即显式原型(属性),它默认指向一个object空对象(称为原型对象): 而原型对象中有一个属性construc ...
- AOM(Accessibility Object Model 无障碍对象模型)草案解读
最近在看 AOM(Accessibility Object Model) 相关的草案,草案推出一两年了,发现还没有相关的中文文档或者博客谈到这个,看来国内做的人还是太少了,一般也只有大厂会去跟进这一块 ...
- 45个非常有用的Oracle查询语句(转自开源中国社区)
日期/时间 相关查询 获取当前月份的第一天 运行这个命令能快速返回当前月份的第一天.你可以用任何的日期值替换 "SYSDATE"来指定查询的日期. SELECT TRUNC (SY ...
- one command 一键收集 oracle 巡检信息(包括dbhc,awr reports)
初步效果图例如以下 SQL> @nb ------Oracle Database health Check STRAT ------Starting Collect Data Informati ...
- oracle——监听(三、监听配置)
一.引言 oracle配置实例监听真是太坑了,下面我是按照一个监听在一个IP一个端口上监听多个实例 的情况下配置的,如果不明白监听有哪几类情况请看上一篇博客,下面是我配置监听遇到的大坑小坑== 更新- ...
- ORACLE对象-高级(视图、序列、索引)
ORACLE对象-高级 一.视图 (一)什么是视图 视图和表的区别: 视图是实体表的映射,视图和实体表区别就是于视图中没有真实的数据存在. 视图中存储的是SQL语句 什么时候使用视图: 1.为了安全, ...
最新文章
- 在Visual Studio设置隐藏cmd,GTK程序有效
- P3302 SDOI2013森林
- Java高级开发面试,java泛型下界通配符
- java中set怎么建int型_使用Array.setInt来填充Java中的数组
- 2017.9.25 Xor 失败总结
- 给用户添加sudo功能
- 跟老板参加饭局,席间老板叫我去加菜,我该怎么做?
- 基于motion的视频压缩的实时监控系统
- ORACLE 中NUMBER类型默认的精度和Scale问题
- xjad反编译遇到break MISSING_BLOCK_LABEL_365问题
- PIP卸载升级与安装不成功
- 2019年最新淘宝联盟淘宝客升高佣规则
- vm虚拟机安装openWrt
- 卤煮花生米的制作过程(高压锅版)
- jmeter如何定位网络延时_JMeter 如何模拟不同的网络速度
- Linux计划任务介绍
- UT-Exynos4412开发板三星ARM四核旗舰开发平台android4.0体验-11有线网络功能调试
- 软件工程课开学测试——根据已有的CSS模板资源,搭建整个系统
- NPS、市场增长率每况愈下,移动CRM如何自救?
- Win10的Linux子系统Ubuntu使用串口
热门文章
- PostgreSql与sqlserver对比杂记
- 获取文件名称的两个函数
- 整数行hdu 1244 Max Sum Plus Plus Plus(dp)
- anaconda安装scrapy失败的解决方法(2020.7.7)
- redhat7防火墙关闭_RedHat Enterprise Linux 7关闭防火墙方法
- envi反演水质参数_科技前沿基于GOCI静止水色卫星数据的长江口及邻近海域Kd(490)遥感反演及其在机载激光测深预评估中的应用...
- 非常好用的模糊pid温度控制算法_反应罐高低温温度控制装置
- 7.QML Qt Quick——基于Qt Quick Controls 2实现图片浏览器
- 记录一下vlfeat视觉库配置
- 记录一下有关ChArUco标定板