Oracle® Database Gateway for Informix User's Guide 11g Release 1 (11.1) Part Number B31047-02 |
|
|
View PDF |
The Oracle Database Gateway for Informix translates a query that refers to an Oracle database data dictionary table into a query that retrieves the data from Informix system catalog tables. You perform queries on data dictionary tables over the database link in the same way you query data dictionary tables in the Oracle database. The gateway data dictionary is similar to the Oracle database data dictionary in appearance and use.
This appendix contains the following sections:
The following paragraphs describe the data dictionary support of the Oracle Database Gateway for Informix.
Informix data dictionary information is stored in the Informix database as Informix system catalog tables. All Informix system catalog tables have names prefixed with Òsys
Ó. The Informix system catalog tables define the structure of a database. When you change data definitions, Informix reads and modifies the Informix system catalog tables to add information about the user tables.
Accessing a gateway data dictionary table or view is identical to accessing a data dictionary in an Oracle database. You issue a SQL SELECT
statement specifying a database link. The Oracle database data dictionary view and column names are used to access the gateway data dictionary in an Oracle database. Synonyms of supported views are also acceptable. For example, the following statement queries the data dictionary table ALL_CATALOG
to retrieve all table names in the Informix database:
SQL> SELECT * FROM "ALL_CATALOG"@IFMX;
When a data dictionary access query is issued, the gateway:
Maps the requested table, view, or synonym to one or more Informix system catalog table names. The gateway translates all data dictionary column names to their corresponding Informix column names within the query. If the mapping involves one Informix system catalog table, the gateway translates the requested table name to its corresponding Informix system catalog table name within the query. If the mapping involves multiple Informix system catalog tables, the gateway constructs a join in the query using the translated Informix system catalog table names.
Sends the translated query to Informix.
Might convert the retrieved Informix data to give it the appearance of the Oracle database data dictionary table.
Passes the data dictionary information from the translated Informix system catalog table to the Oracle database.
Note:
The values returned when querying the gateway data dictionary might not be the same as the ones returned by the Oracle SQL*PlusDESCRIBE
command.Queries issued directly to individual Informix system catalog tables are allowed but they return different results because the Informix system catalog table column names differ from those of the data dictionary view. Also, certain columns in an Informix system catalog table cannot be used in data dictionary processing.
The gateway supports the following views and tables:
Supported Views and Tables | Supported Views and Tables |
---|---|
ALL_CATALOG |
ALL_COL_COMMENTS |
ALL_COL_PRIVS |
ALL_CONS_COLUMNS |
ALL_CONSTRAINTS |
ALL_IND_COLUMNS |
ALL_INDEXES |
ALL_OBJECTS |
ALL_SYNONYMS |
ALL_TAB_COLUMNS |
ALL_TAB_COMMENTS |
ALL_TAB_PRIVS |
ALL_TABLES |
ALL_USERS |
ALL_VIEWS |
COLUMN_PRIVILEGES |
DBA_CATALOG |
DBA_COL_COMMENTS |
DBA_OBJECTS |
DBA_TABLES |
DBA_TAB_COLUMNS |
DBA_TAB_COMMENTS |
DICT_COLUMNS |
DICTIONARY |
DUAL |
TABLE_PRIVILEGES |
USER_CATALOG |
USER_COL_COMMENTS |
USER_COL_PRIVS |
USER_CONS_COLUMNS |
USER_CONSTRAINTS |
USER_IND_COLUMNS |
USER_INDEXES |
USER_OBJECTS |
USER_SYNONYMS |
USER_TAB_COLUMNS |
USER_TAB_COMMENTS |
USER_TAB_PRIVS |
USER_TABLES |
USER_USERS |
USER_VIEWS |
No other Oracle database data dictionary tables or views are supported. If you use a view not on the list, you receive the Oracle database error code for no more rows available.
Queries through the gateway of any data dictionary table or view beginning with ALL_
can returns rows from the Informix database even when access privileges for those Informix objects have not been granted. 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 Informix system catalog tables used. A plus sign (+) indicates that a join operation is involved.
Table C-1 Oracle Data Dictionary View Names and Informix Equivalents
View Name | Informix System Catalog Table Name |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(Defined in the Gateway) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There is a minor difference between the gateway data dictionary and a typical Oracle database data dictionary. The Oracle database columns that are missing in an Informix system catalog table are filled with zeros, spaces, null values, not-applicable values (N.A.), or default values, depending on the column type.
The gateway data dictionary tables and views provide the following information:
Name, data type, and width of each column
The contents of columns with fixed values
They are described here with information retrieved by an Oracle SQL*Plus DESCRIBE
command. The values in the Null? column might differ from the Oracle database data dictionary tables and views. Any default value is shown to the right of an item, but this is not information returned by DESCRIBE
.
Table C-2 ALL_CATALOG
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
Table C-3 ALL_COL_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
" " |
Table C-4 ALL_COL_PRIVS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
" |
Table C-5 ALL_CONS_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
|
Table C-6 ALL_CONSTRAINTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
" |
|
|
|
- |
|
|
|
" " |
|
|
|
" " |
|
|
|
" " |
|
|
|
" " |
|
|
|
" " |
|
|
|
" " |
|
|
|
" " |
|
|
|
" " |
|
|
|
" " |
|
|
|
" " |
|
|
|
" " |
|
- |
|
- |
Table C-7 ALL_IND_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
|
|
|
|
|
|
|
|
" " |
Table C-8 ALL_INDEXES
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
" |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-9 ALL_OBJECTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
" |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-10 ALL_SYNONYMS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
|
Table C-11 ALL_TAB_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-12 ALL_TAB_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
|
Table C-13 ALL_TAB_PRIVS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
" |
Table C-14 ALL_TABLES
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-15 ALL_USERS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
|
|
|
|
|
Table C-16 ALL_VIEWS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
|
|
|
|
- |
|
- |
|
|
|
|
|
|
|
" " |
|
|
|
|
|
|
|
" " |
|
|
|
" " |
|
|
|
" " |
Table C-17 COLUMN_PRIVILEGES
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
" |
|
- |
|
|
|
- |
|
|
Table C-18 DBA_CATALOG
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
Table C-19 DBA_COL_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
" " |
Table C-20 DBA_OBJECTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
" |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-21 DBA_TAB_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-22 DBA_TAB_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
|
Table C-23 DBA_TABLES
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-24 DICT_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
Table C-25 DICTIONARY
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
|
|
" " |
Table C-27 TABLE_PRIVILEGES
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
" |
|
- |
|
" |
|
- |
|
" |
|
- |
|
" |
|
- |
|
" |
|
- |
|
" |
|
- |
|
|
Table C-28 USER_CATALOG
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
" |
Table C-29 USER_COL_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
Table C-30 USER_COL_PRIVS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
" |
Table C-31 USER_CONS_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
Table C-32 USER_CONSTRAINTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
Table C-33 USER_IND_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
- |
Table C-34 USER_INDEXES
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
" |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-35 USER_OBJECTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
" |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-36 USER_SYNONYMS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
Table C-37 USER_TAB_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-38 USER_TAB_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
" |
|
- |
|
|
Table C-39 USER_TAB_PRIVS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
" |
Table C-40 USER_TABLES
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-41 USER_USERS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|