哪个视图获取有关所有数据字典视图的所有信息?

gau*_*rat 1 database oracle database-administration

我需要数据字典视图来获取有关 oracle 中所有数据字典视图详细信息的所有信息

select * from user_dba;

desc dba_directiories;
Run Code Online (Sandbox Code Playgroud)

Lit*_*oot 5

它被称为字典。

看起来像这样:

SQL> desc dictionary
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 TABLE_NAME                                         VARCHAR2(30)
 COMMENTS                                           VARCHAR2(4000)
Run Code Online (Sandbox Code Playgroud)

您可以这样查询(例如,搜索那些谈论“约束”的内容):

SQL> select * From dictionary where lower(comments) like '%constraint%';

TABLE_NAME                COMMENTS
------------------------- --------------------------------------------------
ALL_CONSTRAINTS           Constraint definitions on accessible tables
ALL_CONS_COLUMNS          Information about accessible columns in constraint
                           definitions

USER_CONSTRAINTS          Constraint definitions on user's own tables
USER_CONS_COLUMNS         Information about accessible columns in constraint
                           definitions


SQL>
Run Code Online (Sandbox Code Playgroud)