Oracle® Database Gateway for ODBC User's Guide 11g Release 1 (11.1) Part Number E10311-02 |
|
|
View PDF |
Data dictionary information is stored in the non-Oracle system as system tables and is accessed through ODBC application programming interfaces (APIs). This appendix documents data dictionary translation support. It explains how to access non-Oracle data dictionaries, describes how to use supported views and tables, and explains data dictionary mapping.
This appendix contains the following topics:
Accessing a non-Oracle data dictionary table or view is identical to accessing a data dictionary in an Oracle database. You issue a SELECT
statement specifying a database link. The Oracle data dictionary view and column names are used to access the non-Oracle data dictionary. Synonyms of supported views are also acceptable.
For example, the following statement queries the data dictionary table ALL_USERS
to retrieve all users in the non-Oracle system:
SQL SELECT * FROM all_users@sid1;
When you issue a data dictionary access query, the ODBC agent:
Maps the requested table, view, or synonym to one or more ODBC APIs (see Section C.2.1, "Data Dictionary Mapping"). The agent translates all data dictionary column names to their corresponding non-Oracle column names within the query.
Sends the sequence of APIs to the non-Oracle system.
Possibly converts the retrieved non-Oracle data to give it the appearance of the Oracle data dictionary table.
Passes the data dictionary information from the non-Oracle system table to Oracle.
Note:
The values returned when querying the Oracle Database Gateway for ODBC data dictionary may not be the same as those returned by the Oracle SQL*PlusDESCRIBE
command.Oracle Database Gateway for ODBC supports only the views and tables shown in Table C-1.
If you use an unsupported view, you receive an Oracle error message stating no rows were selected.
If you want to query data dictionary views using SELECT... FROM DBA_*
, first connect as Oracle user SYSTEM
or SYS
. Otherwise, you receive the following error message:
ORA-28506: Parse error in data dictionary translation for %s stored in %s
Using Oracle Database Gateway for ODBC, queries of the supported data dictionary tables and views beginning with the characters ALL_
may return rows from the non-Oracle system when you do not have access privileges for those non-Oracle objects. When querying an Oracle database with the Oracle data dictionary, rows are returned only for those objects you are permitted to access.
The tables in this section list Oracle data dictionary view names and the equivalent ODBC APIs used. Table C-1 shows a list of all Oracle data dictionary view names supported by Oracle Database Gateway for ODBC.
Table C-1 Oracle Database Gateway for ODBC Data Dictionary Mapping
View | ODBC API |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The Oracle Database Gateway for ODBC data dictionary tables and views provide the following information:
Name, data type, and width of each column
The contents of columns with fixed values
In the descriptions that follow, the values in the Null? column may differ from the Oracle data dictionary tables and views. Any default value is shown to the right of an item.
Table C-2 ALL_CATALOG
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
|
Table C-3 ALL_COL_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
|
Table C-4 ALL_CONS_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
Table C-5 ALL_CONSTRAINTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
|
|
|
|
- |
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-6 ALL_IND_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
|
Table C-7 ALL_INDEXES
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
|
|
|
|
- |
|
|
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-8 ALL_OBJECTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-9 ALL_TAB_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
|
|
- |
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-10 ALL_TAB_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
|
|
- |
|
|
Table C-11 ALL_TABLES
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-12 ALL_USERS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
|
|
|
|
|
Table C-13 ALL_VIEWS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-14 DICTIONARY
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
|
Table C-15 DICT_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
Table C-16 USER_CATALOG
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
|
Table C-17 USER_COL_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
|
Table C-18 USER_CONS_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
Table C-19 USER_CONSTRAINTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
|
|
|
|
- |
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-20 USER_IND_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-21 USER_INDEXES
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
- |
|
|
|
|
|
- |
|
|
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-22 USER_OBJECTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-23 USER_TABCOLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
|
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-24 USER_TAB_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
|
|
- |
|
|
Table C-25 USER_TABLES
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-26 USER_USERS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
Table C-27 USER_VIEWS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|