Oracle® Database Gateway for ODBC User's Guide 11g Release 2 (11.2) Part Number E12070-03 |
|
|
PDF · Mobi · ePub |
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.
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
- |
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
|
|
|
- |
|
|
|
|
|
- |
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
|
|
|
- |
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
|
|
|
|
|
|
- |
|
|
- |
|
|
- |
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
|
|
|
- |
|
|
|
|
|
- |
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
|
|
|
|
|
|
- |
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
- |
|
|
- |
|
|
|
|
|
|
|
|
- |
|
|
- |
|
|
- |
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Value |
---|---|---|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|