Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition
by Rick Greenwald, Robert Stackowiak, Jonathan Stern
Data Dictionary Tables
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:
- DBA_
Includes all the objects in the database. A user must have DBA privileges to use this view.
- USER_
Includes only the objects in the user’s own database schema.
- ALL_
Includes all the objects in the database to which a particular user has access. If a user has been granted rights to objects in another user’s schema, these objects will appear in this view.
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 ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access