Oracle Transparent Gateway for Informix Administrator's Guide Release 8.1.6 A80981-01 |
|
The Oracle Transparent Gateway for Informix translates a query that refers to an Oracle database server data dictionary table into a query that retrieves the data from an Informix data dictionary. You perform queries on data dictionary tables over the database link in the same way you query data dictionary tables in the Oracle database server. The gateway data dictionary is similar to the Oracle database server data dictionary in appearance and use.
This appendix contains the following sections:
Informix data dictionary information is stored in the Informix database as Informix system catalog tables. All Informix system catalog tables have names prefaced 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. Oracle data dictionary view and column names are used to access the gateway data dictionary. Synonyms of supported views are also acceptable. For example, the following statement queries the data dictionary table ALL_TABLES to retrieve all table names in the Informix database:
SQL> SELECT * FROM "ALL_TABLES"@IFMX;
When a data dictionary access query is issued, the gateway:
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 a Informix system table cannot be used in data dictionary processing.
The gateway supports the following views and tables:
No other Oracle database server data dictionary tables or views are supported. If you use a view not on the list, you receive the Oracle database server error code for no more rows available.
Queries through the gateway of the supported data dictionary tables and views beginning with the characters "ALL_" might return rows from the Informix database when you do not have access privileges for those Informix 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 Informix system table names. A plus sign (+) indicates that a join operation is involved.
There is a minor difference between the gateway data dictionary and a typical Oracle database server data dictionary. The Oracle database server columns that are missing in a Informix data dictionary 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:
They are described here with information retrieved by an Oracle Enterprise Manager DESCRIBE command. The values in the Null? column might differ from the Oracle database server data dictionary tables and views. Any default value is shown to the right of an item, but this is not information returned by DESCRIBE.
Name | Null? | Type | Value |
---|---|---|---|
OWNER |
|
VARCHAR2(8) |
|
TABLE_NAME |
|
VARCHAR2(18) |
|
TABLE_TYPE |
|
VARCHAR2(7) |
"TABLE" or "VIEW" or "SYNONYM" |
Name | Null? | Type | Value |
---|---|---|---|
OWNER |
|
CHAR(8) |
|
TABLE_NAME |
|
CHAR(18) |
|
COLUMN_NAME |
|
CHAR(18) |
|
COMMENTS |
NOT NULL |
CHAR(1) |
|
Name | Null? | Type | Value |
---|---|---|---|
OWNER |
|
CHAR(8) |
|
CONSTRAINT_NAME |
|
CHAR(18) |
|
TABLE_NAME |
|
CHAR(18) |
|
COLUMN_NAME |
|
CHAR(18) |
|
POSITION |
NOT NULL |
NUMBER(10) |
0 |
Name | Null? | Type | Value |
---|---|---|---|
OWNER |
|
VARCHAR2(8) |
|
SYNONYM_NAME |
|
VARCHAR2(18) |
|
TABLE_OWNER |
|
VARCHAR2(8) |
|
TABLE_NAME |
|
VARCHAR2(18) |
|
DB_LINK |
|
VARCHAR2(1) |
NULL |
Name | Null? | Type | Value |
---|---|---|---|
OWNER |
|
VARCHAR2(8) |
|
TABLE_NAME |
|
VARCHAR2(18) |
|
TABLE_TYPE |
|
VARCHAR2(5) |
"TABLE" or "VIEW" |
COMMENTS |
|
VARCHAR2(1) |
NULL |
Name | Null? | Type | Value |
---|---|---|---|
USERNAME |
|
VARCHAR2(8) |
|
USER_ID |
|
NUMBER |
0 |
CREATED |
|
VARCHAR2(0) |
NULL |
Name | Null? | Type | Value |
OWNER |
|
VARCHAR2(8) |
|
TABLE_NAME |
|
VARCHAR2(18) |
|
TABLE_TYPE |
|
VARCHAR2(7) |
"TABLE" or "VIEW"or "SYNONYM" |
Name | Null? | Type | Value |
---|---|---|---|
OWNER |
|
CHAR(8) |
|
TABLE_NAME |
|
CHAR(18) |
|
COLUMN_NAME |
|
CHAR(18) |
|
COMMENTS |
NOT NULL |
CHAR(1) |
|
Name | Null? | Type | Value |
---|---|---|---|
OWNER |
|
VARCHAR2(8) |
|
TABLE_NAME |
|
VARCHAR2(18) |
|
TABLE_TYPEl |
|
VARCHAR2(5) |
"TABLE" or "VIEW" |
COMMENTS |
|
VARCHAR2(1) |
NULL |
Name | Null? | Type | Value |
---|---|---|---|
TABLE_NAME |
|
VARCHAR2(18) |
|
COLUMN_NAME |
|
VARCHAR2(18) |
|
COMMENTS |
NOT NULL |
CHAR2(1) |
|
Name | Null? | Type | Value |
---|---|---|---|
TABLE_NAME |
|
VARCHAR2(18) |
|
COMMENTS |
NOT NULL |
CHAR(1) |
|
Name | Null? | Type | Value |
---|---|---|---|
DUMMY |
|
CHAR(1) |
"X" |
Name | Null? | Type | Value |
---|---|---|---|
TABLE_NAME |
|
VARCHAR2(18) |
|
TABLE_TYPE |
|
VARCHAR2(7) |
"TABLE" or "VIEW" or "SYNONYM" |
Name | Null? | Type | Value |
---|---|---|---|
TABLE_NAME |
|
VARCHAR2(18) |
|
COLUMN_NAME |
|
VARCHAR2(18) |
|
COMMENTS |
|
VARCHAR2(1) |
NULL |
Name | Null? | Type | Value |
---|---|---|---|
OWNER |
|
VARCHAR2(8) |
|
CONSTRAINT_NAME |
|
VARCHAR2(18) |
|
TABLE_NAME |
|
VARCHAR2(18) |
|
COLUMN_NAME |
|
VARCHAR2(18) |
|
POSITION |
|
NUMBER |
0 |
Name | Null? | Type | Value |
---|---|---|---|
INDEX_NAME |
|
VARCHAR2(18) |
|
TABLE_NAME |
|
VARCHAR2(18) |
|
COLUMN_NAME |
|
VARCHAR2(18) |
|
COLUMN_POSITION |
|
NUMBER |
0 |
COLUMN_LENGTH |
|
NUMBER |
0 |
DESCEND |
|
VARCHAR2(1) |
|
Name | Null? | Type | Value |
---|---|---|---|
SYNONYM_NAME |
|
VARCHAR2(18) |
|
TABLE_OWNER` |
|
VARCHAR2(8) |
|
TABLE_NAME |
|
VARCHAR2(18) |
|
DB_LINK |
|
VARCHAR2(1) |
NULL |
Name | Null? | Type | Value |
---|---|---|---|
TABLE_NAME |
|
VARCHAR2(18) |
|
TABLE_TYPE |
|
VARCHAR2(5) |
"TABLE" or "VIEW" |
COMMENTS |
|
VARCHAR2(1) |
NULL |
|
![]() Copyright © 2000 Oracle Corporation. All Rights Reserved. |
|