The main purpose of the Oracle data dictionary is to store data that describes the structure of the objects in the Oracle database. Because of this purpose, there are many views in the Oracle data dictionary that provide information about the attributes and composition of the data structures within the database.
All of the views listed in this section actually have three varieties, which are identified by their prefixes:
This means that, for instance, there are three views that relate to tables: DBA_TABLES, ALL_TABLES, and USER_TABLES.
Some of the more common views that directly relate to the data structures are described in Table 4-2.
Table 4-2. Data Dictionary Views About Data Structures
Data Dictionary View |
Type of Information |
---|---|
ALL_TABLES |
Information about the object and relational tables |
TABLES |
Information about the relational tables |
TAB_COMMENTS |
Comments about the table structures |
TAB_HISTOGRAMS |
Statistics about the use of tables |
TAB_PARTITIONS |
Information about the partitions in a partitioned table |
TAB_PRIVS* |
Different views detailing all the privileges on a table, the privileges granted by the user, and the privileges granted to the user |
TAB_COLUMNS |
Information about the columns in tables and views |
COL_COMMENTS |
Comments about individual columns |
COL_PRIVS* |
Different views detailing all the privileges on a column, the privileges granted by the user, and the privileges granted to the user |
LOBS |
Information about large object (LOB) datatype columns |
VIEWS |
Information about views |
INDEXES |
Information about the indexes on tables |
IND_COLUMNS |
Information about the columns in each index |
IND_PARTITIONS |
Information about each partition in a partitioned index |
PART_* |
Different views detailing the composition and usage patterns for partitioned tables and indexes |
CONS_COLUMNS |
Information about the columns in each constraint |
CONSTRAINTS |
Information about constraints on tables |
SEQUENCES |
Information about sequence objects |
SYNONYMS |
Information about synonyms |
TAB_COL_STATISTICS |
The statistics used by the cost-based analyzer |
TRIGGERS |
Information about the triggers on tables |
TRIGGER_COLS |
Information about the columns in triggers |
Get Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.