Les 03
Les 03
Managing Objects
with Data Dictionary Views
Oracle server
Oracle server
Consists of:
– Base tables
– User-accessible views
DESCRIBE DICTIONARY
SELECT *
FROM dictionary
WHERE table_name = 'USER_OBJECTS';
USER_OBJECTS:
• Query USER_OBJECTS to see all the objects that you own
• Is a useful way to obtain a listing of all object names and
types in your schema, plus the following information:
– Date created
– Date of last modification
– Status (valid or invalid)
ALL_OBJECTS:
• Query ALL_OBJECTS to see all objects to which you have
access
USER_TABLES:
DESCRIBE user_tables
…
SELECT table_name
FROM user_tables;
USER_TAB_COLUMNS:
DESCRIBE user_tab_columns
DESCRIBE user_constraints
DESCRIBE user_cons_columns
…
3 - 16 Copyright © 2009, Oracle. All rights reserved.
Lesson Agenda
1 DESCRIBE user_views
DESCRIBE user_sequences
DESCRIBE user_indexes
DESCRIBE user_ind_columns
DESCRIBE user_synonyms
SELECT *
FROM user_synonyms;