oracle中Schema和user关系

Oracle数据库中Schema和User的关系是一一对应的,也就是说一个Schema只对应一个User,一个User对应一个Schema。当某个User下面有table,view,Index......等Schema Object时,这个User就成了一个Schema,也就是在Enterprise Manager中出现的那个,若是某个User下面没有table,view,Index......等Schema Object时,这个User不会在Enterprise Manager中Schema对象出现。数据库

 

schema只是OEM为了管理方便而引入的一个逻辑概念而已,相似一个容器,若是查建立一个user后若是没有建立人数属于该user的table,index.....的时候是不会有schema的,若是建立了table,index...则和用户几乎是一一对应。ide

 

A schema is collection of database objects, including logical structures such as tables, views, sequences, stored procedures, synonyms, indexes, clusters, and database links.orm

schema是数据库对象的集合,包括表,视图,序列,存储过程,逻辑结构,索引,集群和数据库连接等等逻辑结构。
* A user owns a schema.对象

一个user拥有一个schema
* A user and a schema have the same name.索引

user和他的schema的名字相同
* The CREATE USER command creates a user. It also automatically creates a schema for that user.
CREATE USER命令建立一个user,同时也为这个user建立一个schema
* The CREATE SCHEMA command does not create a “schema” as it implies, it just allows you to create multiple tables and views and perform multiple grants in your own schema in a single transaction.
CREATE SCHEMA命令并不像命令说的那样建立一个SCHEMA, 他只是给你建立table的权限和在同一个事务中在你建立的schema中查看和进行赋与权限的权限。
* For all intents and purposes you can consider a user to be a schema and a schema to be a user.
在任何状况下你均可以把用户和schema看成同一个东西。事务

相关文章
相关标签/搜索