r 后即可得到一个 schema,如:HR 用户建立后便有 HR 方案,接下来建立表、索引等数据库对象时,要指定其属于哪个 schema,也要指定其存放在哪个 tablespace 里。
也可以这样理解,schema 是数据库对象的逻辑归属和分类,而 tablespace 是数据库对象的物理和实际存放位置。
Schema 就是用户所属对象的一个集合,对象包括表,索引,视图,JAVA,PL/SQL块等。
Schema 的名字与用户名一样,当创建一个用户时,这个用户所对应的shema也同时创建,用户名与schema交互使用。
Schema 与tablespace之间没有什么联系,同一个schema的对象可以存储在不同的表空间中,同一个表空间中可以存储不同schema的对象。
不要在SYS和SYSTEM SCHEMA下创建其它数据对象。
Schema is the collection of database objects owned by a database user.
Schema has the same name as the user owns it.
Schema objects include structures such as tables,views,indexes,
Java,PL/SQL etc..
Schema is no relationship with tablespace.
Object in the same schema can be in different tablespaces.
When a database user is created,acorresponding schema with the same name is created for that user.
Username and Schema are offen used interchangeably.
|