Oracle® Database Gateway for Adabas User's Guide 11g Release 1 (11.1) Part Number B31055-01 |
|
|
View PDF |
The Oracle Database Gateway for Adabas translates a query that refers to an Oracle Database 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. The gateway data dictionary is similar to the Oracle Database data dictionary in appearance and use.
This appendix contains the following sections:
Data dictionary information is stored in either the gateway's advanced data dictionary (ADD) or the PREDICT table in the Adabas database. 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 topics describe the data dictionary support for the Oracle Database Gateway.
Accessing a definition of the ADD or the PREDICT table in the Adabas database is identical to accessing a data dictionary table or view definition 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. Synonyms of supported views are also acceptable. For example, the following statement queries the data dictionary table ALL_TABLES
:
SQL> SELECT * FROM ALL_TABLES@Adabas;
When a data dictionary access query is issued, the gateway:
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 data dictionary table.
Passes the data dictionary information to the Oracle Database.
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_OBJECTS
USER_TAB_COMMENTS
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 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.
If you want 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 data dictionary. The Oracle Database 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 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 valueADABAS
.Table C-1 describes the ALL_CATALOG table.
Table C-1 ALL_CATALOG
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
- |
|
" |
Table C-2 describes the ALL_COL_COMMENTS table.
Table C-2 ALL_COL_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-3 describes the ALL_CONS_COLUMNS table.
Table C-3 ALL_CONS_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
Table C-4 describes the ALL_CONSTRAINTS table.
Table C-4 ALL_CONSTRAINTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
- |
|
" |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
|
Table C-5 describes the ALL_IND-COLUMNS table.
Table C-5 ALL_IND_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
|
Table C-6 describes the ALL_INDEXES table.
Table C-6 ALL_INDEXES
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
" |
|
- |
|
" |
|
|
|
- |
|
|
|
0 |
|
|
|
- |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-7 describes the ALL_OBJECTS table.
Table C-7 ALL_OBJECTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
" |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-8 describes the ALL_TAB_COLUMNS table.
Table C-8 ALL_TAB_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
0 |
Table C-9 describes the ALL_TAB_COMMENTS table.
Table C-9 ALL_TAB_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
- |
|
" |
|
|
|
- |
Table C-10 describes the ALL_TABLES table.
Table C-10 ALL_TABLES
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.
Table C-11 ALL_USERS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
|
|
- |
|
|
Table C-12 describes the ALL_VIEWS table.
Table C-12 ALL_VIEWS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
|
TEXT |
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-13 describes the DBA_CATALOG table.
Table C-13 DBA_CATALOG
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
- |
|
" |
Table C-14 describes the DBA_OBJECTS table.
Table C-14 DBA_OBJECTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
" |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-15 describes the DBA_TAB_COLUMNS table.
Table C-15 DBA_TAB_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
|
|
- |
|
|
|
0 |
|
|
|
- |
|
|
|
0 |
|
|
|
- |
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
|
Table C-16 describes the DBA_COLUMNS table.
Table C-16 DICT_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-17 describes the DICTIONARY table.
Table C-17 DICTIONARY
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
Table C-18 describes the DUAL table.
Table C-19 describes the USER_CATALOG table.
Table C-19 USER_CATALOG
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
" |
Table C-20 describes the USER_COL_COMMENTS table.
Table C-20 USER_COL_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-21 describes the USER_CONS_COLUMNS table.
Table C-21 USER_CONS_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
Table C-22 describes the USER_CONSTRAINTS table.
Table C-22 USER_CONSTRAINTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
|
|
|
|
- |
|
- |
|
" |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
|
Table C-23 describes the USER_IND_COLUMNS table.
Table C-23 USER_IND_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
" |
Table C-24 describes the USER_INDEXES table.
Table C-24 USER_INDEXES
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
" |
|
- |
|
" |
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-25 describes the USER_OBJECTS table.
Table C-25 USER_OBJECTS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
" |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-26 describes the USER_TAB_COLUMNS table.
Table C-26 USER_TAB_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
" |
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
|
Table C-27 describes the USER_TAB_COMMENTS table.
Table C-27 USER_TAB_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
VARCHAR2(11) |
" |
|
|
|
- |
Table C-28 describes the USER_TABLES table.
Table C-28 USER_TABLES
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
AVG_ROW_LEN |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
|
|
- |
|
|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
Table C-29 describes the USER_USERS table.
Table C-29 USER_USERS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
|
|
- |
|
" |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
Table C-30 describes the USER_VIEWS table.
Table C-30 USER_VIEWS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
0 |
|
|
|
- |
|
|
|
0 |
|
|
|
- |
|
|
|
0 |
|
|
|
- |
|
|
|
- |
|
|
|
- |