| 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_CATALOGALL_COL_COMMENTSALL_COL_PRIVSALL_COL_PRIVS_MADEALL_COL_PRIVS_RECDALL_CONSTRAINTSALL_CONS_COLUMNSALL_DB_LINKSALL_DEF_AUDIT_OPTSALL_DEPENDENCIESALL_ERRORSALL_INDEXESALL_IND_COLUMNSALL_OBJECTSALL_SEQUENCESALL_MVIEWSALL_SOURCEALL_SYNONYMSALL_TABLESALL_TAB_COLUMNSALL_TAB_COMMENTSALL_TAB_PRIVSALL_TAB_PRIVS_MADEALL_TAB_PRIVS_RECDALL_TRIGGERSALL_USERSALL_VIEWSAUDIT_ACTIONSCOLUMN_PRIVILEGESDBA_CATALOGDBA_COL_COMMENTSDBA_COL_PRIVSDBA_OBJECTSDBA_ROLESDBA_ROLE_PRIVSDBA_SYS_PRIVSDBA_TABLESDBA_TAB_COLUMNSDBA_TAB_COMMENTSDBA_TAB_PRIVSDBA_USERSDICTIONARYDICT_COLUMNSDUALINDEX_STATSPRODUCT_USER_PROFILERESOURCE_COSTROLE_ROLE_PRIVSROLE_SYS_PRIVSROLE_TAB_PRIVSSESSION_PRIVSSESSION_ROLESTABLE_PRIVILEGESUSER_AUDIT_OBJECTUSER_AUDIT_SESSIONUSER_AUDIT_STATEMENTUSER_AUDIT_TRAILUSER_CATALOGUSER_CLUSTERSUSER_CLU_COLUMNSUSER_COL_COMMENTSUSER_COL_PRIVSUSER_COL_PRIVS_MADEUSER_COL_PRIVS_RECDUSER_CONSTRAINTSUSER_CONS_COLUMNSUSER_DB_LINKSUSER_DEPENDENCIESUSER_ERRORSUSER_EXTENTSUSER_FREE_SPACEUSER_INDEXESUSER_IND_COLUMNSUSER_OBJECTSUSER_OBJ_AUDIT_OPTSUSER_RESOURCE_LIMITSUSER_ROLE_PRIVSUSER_SEGMENTSUSER_SEQUENCESUSER_MVIEW_LOGSUSER_SOURCEUSER_SYNONYMSUSER_SYS_PRIVSUSER_TABLESUSER_TABLESPACESUSER_TAB_COLUMNSUSER_TAB_COMMENTSUSER_TAB_PRIVSUSER_TAB_PRIVS_MADEUSER_TAB_PRIVS_RECDUSER_TRIGGERSUSER_TS_QUOTASUSER_USERSUSER_VIEWSGeneric 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_CONSTRAINTSALL_IND_COLUMNSALL_INDEXESALL_OBJECTSALL_TAB_COLUMNSALL_TAB_COMMENTS| Name | Null? | Type | Value |
|---|---|---|---|
|
|
|
|
- |
|
|
|
|
- |
|
|
- |
|
|
|
|
- |
|
|
ALL_TABLESALL_USERS| Name | Null? | Type | Value |
|---|---|---|---|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
ALL_VIEWSDICTIONARY| 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_CONSTRAINTSUSER_IND_COLUMNS| Name | Null? | Type | Value |
|---|---|---|---|
|
|
- |
|
- |
|
|
- |
|
- |
|
|
- |
|
|
|
|
- |
|
|
|
|
- |
|
|
|
|
- |
|
|
USER_INDEXESUSER_OBJECTSUSER_TAB_COLUMNSUSER_TAB_COMMENTS| Name | Null? | Type | Value |
|---|---|---|---|
|
|
|
|
- |
|
|
- |
|
|
|
|
- |
|
|
USER_TABLESUSER_USERSUSER_VIEWS
|
![]() Copyright © 2001, 2002 Oracle Corporation. All Rights Reserved. |
|