Oracle’s data dictionary (especially if you include the V$ views in that) is the most robust of all the databases I have used. If you are knowledgeable about the data dictionary, you would never have any reason to use the info schema. I’ve had discussions with people (inside and out of Oracle) and the general consensus is people ought to learn the Oracle dictionary if they plan to use Oracle. In my opinion, that’s a bad attitude. The info schema may be training wheels, but at least they would be available for newbies who need those wheels.
The info schema is also part of the standard and I think standards are a good thing. Anyway, whether it ought to be there or not is a moot point. All of the information that you would find in the info schema (at least those things that are pertinent to Oracle) are available in the
data dictionary. Seeing that that’s the case, I have started a new open source project called the Oracle Information Schema. It is hosted on sourceforge.net.
The first version of the package includes:
- CATALOG_NAME – The database name
- SCHEMATA – Info about database schema
- TABLES – all_tables type information
- VIEWS – all_views type information
- COLUMNS – all_tab_columns type information
- ROUTINES – a combination of all procedures and all source
- DOMAINS – all_types type information
You need SYSDBA permissions to create the INFORMATION_SCHEMA user but you can install the views under your own schema if you don’t have that kind of access.
If you want a particular view, send me a request or write it up and submit it. Eventually, I would like to have a complete implementation of the INFORMATION_SCHEMA.
You can download the code here.
Hey guys i like your article
ReplyDeletewebsite development company in bangalore