您的位置:首页 > 数据库 > Oracle

什么是oracle schema

2007-06-19 23:06 471 查看
1 schema的翻译问题

 

     在一个数据库中可以有多个应用的数据表,这些不同应用的表可以放在不同的schema之中,同时,每一个schema对应一个用户,不同的应用可以以不同的用户连接数据库,这样,一个大数据库就可以根据应用把其表分开来管理。

     不同的schema之间它们没有直接的关系,不同的schema之间的表可以同名,也可以互相引用(但必须有权限),在没有操作别的schema的操作根权下,每个用户只能操作它自己的schema下的所有的表。不同的schema下的同名的表,可以存入不同的数据(即schema用户自己的数据)。

 

     把schema翻译成“方案”还是比较合理的。

 

2 schema与user的关系

 

A schema is required for some tuning categories. Because Oracle Expert is not a schema editor, it does not keep 100% of a user's schema, nor does it provide editing capabilities for all possible schema information. In general, Oracle Expert manages only schema objects that are necessary to the tuning process.
 
Within Oracle Expert, you can edit data for all the schemas you can access in your database. The objects within a schema that you can edit are: tables (including columns, indexes, and constraints), clusters, and synonyms.
 
If a schema object is missing or incomplete for a tuning session that expects schema data, Oracle Expert will not attempt to make recommendations on objects related to the missing schema object.
 
The accuracy of the necessary data is very important. When Oracle Expert attempts to form tuning strategies, it assumes that the input data is accurate. If that is not the case, the quality of the recommendations may be unreliable. For example, cardinality is a critical attribute in both tables and columns. Oracle Expert relies heavily on the cardinality values to predict sizing and index formation. If the cardinality values are incorrect or missing, Oracle Expert may recommend very poor index structures or no index structures at all.
 
schema: 
     Collection of database objects, including logical structures such as tables, views, sequences, stored procedures, synonyms, indexes, clusters, and database links. A schema has the name of the user who controls it.

 3.Schema 与 USER 的关系 ?
Schema   在数据库中起什么作用
用户可以自己建立SCHEMA 吗? 怎样建?
morinson (2003-11-02 19:49:53)
通俗的讲,模式就是用户,它指的是用户及其下的所有对象
hanyinbin (2003-11-03 08:41:48)
那用户可以自己建立SCHEMA 吗? 怎样建?  
怎样将用户和SCHEMA 联系起来呢?
morinson (2003-11-03 09:27:09)
用户当然可以自己建,只要你建立一个用户,自动就是一个模式了,建用户如下:
create user 用户名 identified by 密码
default tablespace 表空间名
temporary tablespace 表空间名
quota 限额
  
其中第一行是必须的,以下部分可以省略,oracle会有默认处理

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息