Find Tables
SELECT * FROM user_tables;View Text
SET LONG 100000View Source
SELECT text FROM user_views WHERE view_name = :your_view;
SELECT line, textNeedless to say it wasn't fun.
FROM user_source
WHERE name = :package_name
AND type = :package_spec_or_package_body;
Without pain there is no progress.What is the Data Dictionary?
...data dictionary, which is a read-only set of tables that provides information about the database. A data dictionary contains:Not completely read-only as I found out once. What's the point? None really. I just like being able to copy and paste the documentation. OK, that's only partially true.
* The definitions of all schema objects in the database (tables, views, indexes, clusters, synonyms, sequences, procedures, functions, packages, triggers, and so on)
* How much space has been allocated for, and is currently used by, the schema objects
* Default values for columns
* Integrity constraint information
* The names of Oracle Database users
* Privileges and roles each user has been granted
* Auditing information, such as who has accessed or updated various schema objects
* Other general database information
All the information that you retrieve via your nice GUI interface comes from these tables. SQL Developer, JDeveloper, Toad, etc. I believe some even have an option to view the SQL being submitted to the database. If you haven't used (knowingly) the Data Dictionary before, check it out. You can easily view all 651 views (10gR2) by issuing:
SELECT * FROM dictionary;Happy hunting.
Chet,
ReplyDeleteDictionary was my primary lookup location too till I hit this :)
http://coskan.wordpress.com/2008/10/23/dictionary-views-which-are-not-listed-in-dictionary-view/
That's kind of funny. How cool is it though that you found a bug? Kind of like me trying (and succeeding) to delete records from DBA_JOBS. That's definitely a WIN for you.
ReplyDelete