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 |
|
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 数据库支持几种类型的索引。 一个索引组织表是一个表,其数据以一个索引结构来存储。 |
|
3、Partitions 分区是大型表和索引的分片。 每个分区有其自己的名称,并可能有其自己(可选)的存储特征 |
|
4、Views 视图是对一个或多个表、或其他视图中的数据的自定义表示。 你可以把它们看作存储的查询。 视图实际上并不存储数据。 |
|
5、Sequences 序列是一个由用户创建的对象,可以被多个用户共享,用于生成整数。 通常,序列用于生成主键值。 |
|
6、Dimensions 维度定义多个列集之间的父-子关系,列集中的所有列必须都来自同一个表。维度通常用于对客户、 产品、和时间之类的数据进行分类 |
|
7、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的数据如何存储
|
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 模式来存储非管理性用户的表。 |
Oracle Schema Objects(Schema Object Storage And Type)的更多相关文章
- 【转载】Oracle的方案(Schema)和用户(User)的区别
免责声明: 本文转自网络文章,转载此文章仅为个人收藏,分享知识,如有侵权,请联系博主进行删除. 原文作者:立正_敬礼_喊志哥 原文地址:http://my.oschina.ne ...
- Getting Started(Google Cloud Storage Client Library)
在运行下面的步骤之前,请确保: 1.你的项目已经激活了Google Cloud Storage和App Engine,包括已经创建了至少一个Cloud Storage bucket. 2.你已经下载了 ...
- Oracle备份与恢复介绍(物理备份与逻辑备份) 分类: Oracle 2015-07-27 22:59 15人阅读 评论(0) 收藏
算是挺全的了,有命令有真相 原文链接:http://blog.chinaunix.net/uid-354915-id-3525989.html 一.Oracle备份方式分类: Oracle有两类备份方 ...
- Oracle 检索数据(查询数据、select语句)
用户对表或视图最常进行的操作就是检索数据,检索数据可以通过 select 语句来实现,该语句由多个子句组成,通过这些子句完成筛选.投影和连接等各种数据操作,最终得到想要的结果. 语法: select ...
- 45个非常有用的Oracle查询语句(转自开源中国社区)
日期/时间 相关查询 获取当前月份的第一天 运行这个命令能快速返回当前月份的第一天.你可以用任何的日期值替换 “SYSDATE”来指定查询的日期. SELECT TRUNC (SYSDATE, 'MO ...
- one command 一键收集 oracle 巡检信息(包括dbhc,awr reports)
初步效果图例如以下 SQL> @nb ------Oracle Database health Check STRAT ------Starting Collect Data Informati ...
- 升级_宽视野Oracle图形升级(升级后dbca建库)—10.2.0.1.0提拔10.2.0.5.0
***********************************************声明********************************************** 原创作 ...
- OEL7.6安装Oracle Database 19C(VERSION 19.3.0.0)
1.eDelivery中下载Oracle Database 19C和Oel的安装介质,并安装好操作系统 2.安装Oracle环境准备工具 环境准备工具会自动完成用户和用户组的创建.系统参数配置.依赖包 ...
- json的结构和表示方式(对象object、数组array)
json简单说就是javascript中的对象和数组,所以这两种结构就是对象和数组两种结构,通过这两种结构可以表示各种复杂的结构 1.对象:对象在js中表示为“{}”括起来的内容,数据结构为 {key ...
随机推荐
- Linux下让进程在后台可靠运行的几种方法
想让进程在断开连接后依然保持运行?如果该进程已经开始运行了该如何补救? 如果有大量这类需求如何简化操作? 我们经常会碰到这样的问题,用 telnet/ssh 登录了远程的 Linux 服务器,运行了一 ...
- 每日英语:The First Day On A Job Is Tough Work
Why is the first day on the job often the worst? New employees tend to be greeted with stacks of ben ...
- jquery 取第一个兄弟节点
1.HTML <table> <tr> <td>1</td> <td>abc</td> <td>def</td ...
- UIImageView只显示一半
本来正常的话,UIImageView会在UIScrollView内占满的,但是第一个UIImageView只占了高度的一半左右.如下图,红色的是UIScrollView的背景色,还有那么多没有填充,但 ...
- Android——布局(线性布局linearLayout,表格布局TableLayout,帧布局FrameLayout)
线性布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:androi ...
- JQuery元素选择
1.基本元素选择器 $(“p”) //选取<p>元素 $(“p.info”) //选取所有class=”info”的<p>元素 $(“p#demo”) //选取id=”demo ...
- plsql programming 01 plsql概述
授权 从 oracle 8i 开始, oracle 用通过提供 authid 子句为 pl/sql 的执行授权模型, 这样我们可以选择使用 authid current_user(调用者权限)来执行这 ...
- JAVA会将所有的错误封装成为一个对象,其根本父类为Throwable
JAVA会将所有的错误封装成为一个对象,其根本父类为Throwable. Throwable有两个子类:Error和Exception. 一个Error对象表示一个程序错误,指的是底层的.低级的.不可 ...
- Maven项目POM.xml详解
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/20 ...
- Hibernate_day02--课程安排_主键生成策略_对实体类crud操作_实体类对象状态
Hibernate_day02 上节内容 今天内容 实体类编写规则 Hibernate主键生成策略 实体类操作 对实体类crud操作 添加操作 根据id查询 修改操作 删除操作 实体类对象状态(概念) ...

