当前页面位置: » 丰搜网 » 文档中心 » 详细内容
oracle数据字典
oracle数据字典
oracle数据字典
以下表格中收集了
oracle数据字典中几乎所有的
视图或别名,至于每个
视图或别名的字段请用‘describe’语句来查询。
命名说明:
oracle数据字典中,对象名称多数以"user.","all.","dba."为前缀"user."
视图中记录通常记录执行查询的帐户所拥有的对象的信息,"all."
视图中记录包括"user"记录和授权至public或用户的对象的信息,"dba."
视图包含所有
数据库对象,而不管其所有者。
使用举例:
select * from dba_data_files
查询表空间的信息(当前用户必须拥有dba角色)
select owner , object_name ,object_type from all_objects
查询某一用户下的所有表、过程、函数等信息
视图名 描述
all_catalog all tables, views, synonyms, sequences
accessible to the user
all_col_comments comments on columns of
accessible tables and views
all_col_gr
ants_made gr
ants on columns for which the user is owner or gr
antor
all_col_gr
ants_recd gr
ants on columns for which the user or public is the gr
antee
all_col_privs gr
ants on columns for which the user is the gr
antor, gr
antee, owner, or an
enabled role or public is the gr
antee
all_col_privs_made gr
ants on columns for which the user is owner or gr
antor
all_col_privs_recd gr
ants on columns for which the user, public or enabled role is the gr
antee
all_constraints constraint definitions on
accessible tables
all_cons_columns information about
accessible columns in constraint definitions
all_db_links database links
accessible to the user