The Oracle Database Gateway for Adabas translates a query that refers to an Oracle database server data dictionary table into a query that retrieves the data from an Adabas 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:
Data dictionary information is stored in the gateway's advanced data dictionary (ADD). The views and tables that the gateway supports provide information on the following:
The tables existing in the data source
The columns for each table
The primary key for each table
The foreign keys for each table
Which primary key each foreign key references
The existing users and indexes
The following paragraphs describe the Oracle Database Gateway for Adabas data dictionary support.
Accessing an ADD record definition is identical to accessing a data dictionary table or view definition on an Oracle database. You issue a SQL SELECT
statement specifying a database link. The Oracle database server 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
:
SQL> SELECT * FROM ALL_TABLES@IMS;
When a data dictionary access query is issued, the gateway performs the following operations:
Maps the requested table, view, or synonym to one or more ADD names.
Processes the query within the gateway.
May convert the retrieved data to give it the appearance of the Oracle database server data dictionary table.
Passes the data dictionary information to the Oracle database server.
The gateway supports the following views and tables:
Supported Views and Tables
ALL_CATALOG
ALL_CONS_COLUMNS
ALL_IND_COLUMNS
ALL_OBJECTS
ALL_TAB_COMMENTS
ALL_USERS
DBA_CATALOG
DBA_OBJECTS
DICTIONARY
USER_CATALOG
USER_CONS_COLUMNS
USER_IND_COLUMNS
USER_TAB_COMMENTS
USER_OBJECTS
USER_USERS
ALL_COL_COMMENTS
ALL_CONSTRAINTS
ALL_INDEXES
ALL_TAB_COLUMNS
ALL_TABLES
ALL_VIEWS
DBA_TAB_COLUMNS
DICT_COLUMNS
DUAL
USER_COL_COMMENTS
USER_CONSTRAINTS
USER_INDEXES
USER_TAB_COLUMNS
USER_TABLES
USER_VIEWS
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.
To select 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
Queries through the gateway of any data dictionary table or view beginning with ALL_ can returns rows from Adabas even when access privileges for those Adabas 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.
See Also:
Oracle Database Error Messages for more information on error messages.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 an Adabas data dictionary table are filled with zeros, spaces, null values, or default values, depending on the column type.
The gateway data dictionary tables and views provide the following information:
Name, datatype, 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 database server data dictionary tables and views. Any default value is shown to the right of an item.
Note:
In all data dictionary tables, the OWNER column has the valueIMS
.Table C-1 describes the ALL_CATALOG table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
- |
|
" |
Table C-2 describes the ALL_COL_COMMENTS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-3 describes the ALL_CONS_COLUMNS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
Table C-4 describes the ALL_CONSTRAINTS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
- |
|
" |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
|
Table C-5 describes the ALL_IND_COLUMNS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
|
Table C-6 describes the ALL_INDEXES table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
" |
|
- |
|
" |
|
|
|
- |
|
|
|
0 |
|
|
|
- |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-7 describes the ALL_OBJECTS table.
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
" |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-8 describes the ALL_TAB_COLUMNS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
0 |
Table C-9 describes the ALL_TAB_COMMENTS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
- |
|
" |
|
|
|
- |
Table C-10 describes the ALL_TABLES table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
|
|
- |
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-11 describes the ALL_USERS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
|
|
- |
|
|
Table C-12 describes the ALL_VIEWS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-13 describes the DBA_CATALOG table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
- |
|
" |
Table C-14 describes the DBA_OBJECTS table.
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
" |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-15 describes the DBA_TAB_COLUMNS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
"Y" or "N" |
|
|
|
- |
|
|
|
0 |
|
|
|
- |
|
|
|
0 |
|
|
|
- |
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
|
Table C-16 describes the DICT_COLUMNS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-17 describes the DICTIONARY table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
Table C-18 describes the DUAL table.
Table C-19 describes the USER_CATALOG table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
" |
Table C-20 describes the USER_COL_COMMENTS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-21 describes the USER_CONS_COLUMNS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
Table C-22 describes the USER_CONSTRAINTS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
- |
|
" |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
|
Table C-23 describes the USER_IND_COLUMNS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
" |
Table C-24 describes the USER_INDEXES table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
" |
|
- |
|
" |
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-25 describes the USER_OBJECTS table.
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
" |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-26 describes the USER_TAB_COLUMNS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
|
Table C-27 describes the USER_TAB_COMMENTS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
" |
|
|
|
- |
Table C-28 describes the USER_TABLES table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
|
|
- |
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-29 describes the USER_USERS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
|
|
- |
|
" |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-30 describes the USER_VIEWS table.
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
0 |
|
|
|
- |
|
|
|
0 |
|
|
|
- |
|
|
|
0 |
|
|
|
- |
|
|
|
- |
|
|
|
- |