0% found this document useful (0 votes)
30 views

The Data Dictionary Is Implemented in Oracle As A Set of Read-Only Tables and Views

The data dictionary is implemented in Oracle as read-only tables and views. It contains information about database objects like tables, columns, constraints and indexes. The data dictionary is organized hierarchically with a root dictionary table at the top describing the other data dictionary tables. These are divided into categories like user tables, all tables, and DBA tables. Views like USER_TABLES, USER_COLUMNS, USER_VIEWS can be queried to get metadata about user's objects while ALL_TABLES provides information on all accessible tables.

Uploaded by

sxurdc
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

The Data Dictionary Is Implemented in Oracle As A Set of Read-Only Tables and Views

The data dictionary is implemented in Oracle as read-only tables and views. It contains information about database objects like tables, columns, constraints and indexes. The data dictionary is organized hierarchically with a root dictionary table at the top describing the other data dictionary tables. These are divided into categories like user tables, all tables, and DBA tables. Views like USER_TABLES, USER_COLUMNS, USER_VIEWS can be queried to get metadata about user's objects while ALL_TABLES provides information on all accessible tables.

Uploaded by

sxurdc
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

DATA Dictionary

The data dictionary is implemented in Oracle


as a set of read-only tables and views

6/22/16

DATA Dictionary
At the root of the tree is the dictionary table,
that features two attributes: table_name and
comments.
The comment field presents an informal
description of the corresponding dictionary table.
For instance, we can request information about the dictionary
table:
SELECT comments
FROM dictionary WHERE table_name='DICTIONARY'

and get:
Description of data dictionary tables and views

6/22/16

DATA Dictionary
The second level of the dictionary is divided into four
categories of tables.
User tables describe the objects you own. They are
only accessible to you.
All tables describe the objects of all the users, and
are accessible to all the users.
DBA tables contain information only relevant and
accessible to database administrators.
V$ tables reflect the internal state of the DBMS and
are mainly useful to DBAs for performance audit and
optimisation.
6/22/16

DATA Dictionary Table Information


You can use the USER_TABLES view to obtain the names of all
your tables. The
USER_TABLES view contains information about your tables. In
addition to providing the table name, it contains detailed
information about the storage.
Select * from user_tables
The TABS view is a synonym of the USER_TABLES view. You can
query it to see a listing of tables that you own:
SELECT table_name
FROM tabs;
You can also query the ALL_TABLES view to see a listing of all
tables to which you have access.
6/22/16

DATA Dictionary Column Information


Column Information : USER_TAB_COLUMNS
Select * from user_tab_columns
How to find which tables have a department id field ??
Select * from user_tab_columns
where column_name=upper('department_id');
Column Comments :
Select * from user_col_comments
Table Comments :
Select * from user_tab_comments
USER_CONSTRAINTS describes the constraint definitions on
your tables.
6/22/16

DATA Dictionary
You can query the data dictionary view called USER_VIEWS to see
the name of the view and the view definition.
Select * from user_views
where view_name ='EMP_DETAILS_VIEW.
To Get the sequence details : user_sequences
USER_INDEXES provides information about your indexes.

6/22/16

You might also like