Handout 1a

Oracle Dictionary Tables of Interest


TABLE                   REMARKS
----------------------  -------------------------------------------
ALL_CATALOG             All tables, views, synonyms, sequences
                        accessible to the user

ALL_COL_COMMENTS        Comments on columns of accessible tables
                        and views
ALL_COL_GRANTS_MADE     Grants on columns for which the user is
                        owner or grantor

ALL_COL_GRANTS_RECD     Grants on columns for which the user or 
                        PUBLIC is the grantee

ALL_INDEXES             Descriptions of indexes on tables accessible
                        to the user

ALL_TABLES              Description of tables accessible to the user

ALL_TAB_COMMENTS        Comments on tables and views accessible to
                        the user

ALL_TAB_GRANTS_MADE     User's grants and grants on user's objects

ALL_TAB_GRANTS_RECD     Grants on objects for which the user or
                        PUBLIC is the grantee

ALL_USERS               Information about all users of the database

ALL_VIEWS               Text of views accessible to the user

COLUMN_PRIVILEGES       Grants on columns for which the user is the
                        grantor, grantee, or owner, or PUBLIC is the
                        grantee

DICTIONARY              Description of data dictionary tables and
                        views

DICT_COLUMNS            Description of columns in data dictionary
                        tables and views

USER_CATALOG            Tables, views, synonyms, sequences
                        accessible to the user

USER_COL_COMMENTS       Comments on columns of user's tables and
                        views

USER_FREE_SPACE         Free extents in tablespaces accessible to the
                        user

USER_INDEXES            Description of the user's own indexes

USER_TABLES             Description of the user's own tables

USER_TABLESPACES        Description of accessible tablespaces

USER_TAB_COLUMNS        Columns of user's tables, views and clusters

USER_TAB_COMMENTS       Comments on the tables and views owned
                        by the user

USER_TAB_GRANTS_MADE    All grants on objects owned by the user

USER_TAB_GRANTS_RECD    Grants on objects for which the user is the
                        grantee

USER_USERS              Information about the current user

USER_VIEWS              Text of views owned by the user


Oracle Data Dictionary (System Catalog)*

Overview of Data Dictionary

Common Views

  1. DICTIONARY (DICT) & DICT_COLUMNS
  2. Things you select from: tables, columns, views, synonyms & sequences
  3. Constraints & comments
  4. Indexes & clusters
  5. Database links & snapshots
  6. Triggers, procedures, functions, & packages
  7. Space allocation & usage
  8. Users & privileges
  9. Roles
  10. Auditing
  11. Miscellaneous

Naming Conventions

Most object names begin with one of three prefixes:

What is in each category?

How do you know the column names, etc.?

describe tablename;

DICTIONARY (DICT)

Example

TABLE_NAME COMMENTS  
ALL_TABLES Description of tables accessible to the user  
DBA_TABLES Description of all tables in the database  
DBA_TABLESPACES Description of all tablespaces  
USER_TABLES Description of the user's own tables  
USER_TABLESPACES Description of accessible tablespaces  

DICT_COLUMNS

Example

TABLE_NAME
------------------
USER_EXTENTS
USER_FREE_SPACE
USER-SEGMENTS
USER_TABLES
USER_TSQUOTAS

Catalog tables' contents

Types of catalog tables

User's 'catalog'

All catalog

DBA catalog

Objects: USER_OBJECTS (OBJ)

Contains information for ALL objects belonging to the user

ALL_OBJECTS

DBA_OBJECTS


* from here