Oracle9i Heterogeneous Connectivity Administrator's Guide Release 2 (9.2) Part Number A96544-01 |
|
Data dictionary information is stored in the non-Oracle system as system tables and is accessed through ODBC or OLE DB application programming interfaces (APIs). This appendix documents data dictionary translation support. It explains how to access non-Oracle data dictionaries, lists Heterogeneous Services data dictionary views, 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 Oracle9i 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 or OLE DB agent:
Heterogeneous Services mapping supports the following list of data dictionary views:
ALL_CATALOG
ALL_COL_COMMENTS
ALL_COL_PRIVS
ALL_COL_PRIVS_MADE
ALL_COL_PRIVS_RECD
ALL_CONSTRAINTS
ALL_CONS_COLUMNS
ALL_DB_LINKS
ALL_DEF_AUDIT_OPTS
ALL_DEPENDENCIES
ALL_ERRORS
ALL_INDEXES
ALL_IND_COLUMNS
ALL_OBJECTS
ALL_SEQUENCES
ALL_MVIEWS
ALL_SOURCE
ALL_SYNONYMS
ALL_TABLES
ALL_TAB_COLUMNS
ALL_TAB_COMMENTS
ALL_TAB_PRIVS
ALL_TAB_PRIVS_MADE
ALL_TAB_PRIVS_RECD
ALL_TRIGGERS
ALL_USERS
ALL_VIEWS
AUDIT_ACTIONS
COLUMN_PRIVILEGES
DBA_CATALOG
DBA_COL_COMMENTS
DBA_COL_PRIVS
DBA_OBJECTS
DBA_ROLES
DBA_ROLE_PRIVS
DBA_SYS_PRIVS
DBA_TABLES
DBA_TAB_COLUMNS
DBA_TAB_COMMENTS
DBA_TAB_PRIVS
DBA_USERS
DICTIONARY
DICT_COLUMNS
DUAL
INDEX_STATS
PRODUCT_USER_PROFILE
RESOURCE_COST
ROLE_ROLE_PRIVS
ROLE_SYS_PRIVS
ROLE_TAB_PRIVS
SESSION_PRIVS
SESSION_ROLES
TABLE_PRIVILEGES
USER_AUDIT_OBJECT
USER_AUDIT_SESSION
USER_AUDIT_STATEMENT
USER_AUDIT_TRAIL
USER_CATALOG
USER_CLUSTERS
USER_CLU_COLUMNS
USER_COL_COMMENTS
USER_COL_PRIVS
USER_COL_PRIVS_MADE
USER_COL_PRIVS_RECD
USER_CONSTRAINTS
USER_CONS_COLUMNS
USER_DB_LINKS
USER_DEPENDENCIES
USER_ERRORS
USER_EXTENTS
USER_FREE_SPACE
USER_INDEXES
USER_IND_COLUMNS
USER_OBJECTS
USER_OBJ_AUDIT_OPTS
USER_RESOURCE_LIMITS
USER_ROLE_PRIVS
USER_SEGMENTS
USER_SEQUENCES
USER_MVIEW_LOGS
USER_SOURCE
USER_SYNONYMS
USER_SYS_PRIVS
USER_TABLES
USER_TABLESPACES
USER_TAB_COLUMNS
USER_TAB_COMMENTS
USER_TAB_PRIVS
USER_TAB_PRIVS_MADE
USER_TAB_PRIVS_RECD
USER_TRIGGERS
USER_TS_QUOTAS
USER_USERS
USER_VIEWS
Generic Connectivity supports only the views and tables shown in Table D-1.
If you use an unsupported view, then you receive the Oracle8i message for no rows 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 Generic Connectivity, 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 or OLE DB APIs used.
The Generic Connectivity data dictionary tables and views provide this information:
In the descriptions that follow, the values in the Null? column may differ from the Oracle9i data dictionary tables and views. Any default value is shown to the right of an item.
ALL_CATALOG
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
|
ALL_COL_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
|
ALL_CONS_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
ALL_CONSTRAINTS
ALL_IND_COLUMNS
ALL_INDEXES
ALL_OBJECTS
ALL_TAB_COLUMNS
ALL_TAB_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
|
|
- |
|
|
ALL_TABLES
ALL_USERS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
|
|
|
|
|
ALL_VIEWS
DICTIONARY
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
|
USER_CATALOG
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
|
USER_COL_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
- |
|
|
USER_CONS_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
- |
|
- |
|
- |
|
- |
USER_CONSTRAINTS
USER_IND_COLUMNS
Name | Null? | Type | Value |
---|---|---|---|
|
- |
|
- |
|
- |
|
- |
|
- |
|
|
|
- |
|
|
|
- |
|
|
|
- |
|
|
USER_INDEXES
USER_OBJECTS
USER_TAB_COLUMNS
USER_TAB_COMMENTS
Name | Null? | Type | Value |
---|---|---|---|
|
|
|
- |
|
- |
|
|
|
- |
|
|
USER_TABLES
USER_USERS
USER_VIEWS
|
Copyright © 2001, 2002 Oracle Corporation. All Rights Reserved. |
|