Oracle Data Dictionary
Oracle Data Dictionary
Each SQL query requires various internal accesses to the tables and views of the data dictionary.
The Oracle data dictionary is one of the most important components of the Oracle DBMS. Since the data dictionary itself consists of tables, Oracle has to generate numerous SQL
It contains all information about the structures and objects of the database such as tables, statements to check whether the SQL command issued by a user is correct and can be executed.
columns, users, data files etc. The data stored in the data dictionary are also often called
metadata. Although it is usually the domain of database administrators (DBAs), the data Example: The SQL query
dictionary is a valuable source of information for end users and developers. The data dictionary select ∗ from EMP
consists of two levels: the internal level contains all base tables that are used by the various where SAL > 2000;
DBMS software components and they are normally not accessible by end users. The external requires a verification whether (1) the table EMP exists, (2) the user has the privilege to access
level provides numerous views on these base tables to access information about objects and this table, (3) the column SAL is defined for this table etc.
structures at different levels of detail.
23 24
ALL CATALOG owner, name and type of all accessible tables, views, and
synonyms
ALL TABLES owner and name of all accessible tables
ALL OBJECTS owner, type, and name of accessible database objects
ALL TRIGGERS . . .
ALL USERS ...
ALL VIEWS ...
• DBA : The DBA views encompass information about all database objects, regardless of the
owner. Only users with DBA privileges can access these views.
DBA TABLES tables of all users in the database
DBA CATALOG tables, views, and synonyms defined in the database
DBA OBJECTS object of all users
DBA DATA FILES information about data files
DBA USERS information about all users known in the database
25