C.1 Data Dictionary Support
The following topics describe the Oracle Database Gateway for SQL Server data dictionary support.
- SQL Server System Tables
SQL Server data dictionary information is stored in the SQL Server database as SQL Server system tables. - Accessing the Gateway Data Dictionary
Accessing a gateway data dictionary table or view is identical to accessing a data dictionary in an Oracle database. - Direct Queries to SQL Server Tables
Queries issued directly to individual SQL Server system tables are allowed but they return different results because the SQL Server system table column names differ from those of the data dictionary view. - Supported Views and Tables
The Oracle Database Gateway for SQL Server supports the following views and tables.
Parent topic: Data Dictionary
C.1.1 SQL Server System Tables
SQL Server data dictionary information is stored in the SQL Server database as SQL Server system tables.
All SQL Server system tables have names prefixed with sys
. The SQL Server system tables define the structure of a database. When you change data definitions, SQL Server reads and modifies the SQL Server system tables to add information about the user tables.
Parent topic: Data Dictionary Support
C.1.2 Accessing the Gateway Data Dictionary
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. The Oracle database data dictionary view and column names are used to access the gateway data dictionary in an Oracle database. Synonyms of supported views are also acceptable. For example, the following statement queries the data dictionary table ALL_CATALOG
to retrieve all table names in the SQL Server database:
SQL> SELECT * FROM "ALL_CATALOG"@MSQL;
When a data dictionary access query is issued, the gateway:
Parent topic: Data Dictionary Support
C.1.3 Direct Queries to SQL Server Tables
Queries issued directly to individual SQL Server system tables are allowed but they return different results because the SQL Server system table column names differ from those of the data dictionary view.
Also, certain columns in an SQL Server system table cannot be used in data dictionary processing.
Parent topic: Data Dictionary Support
C.1.4 Supported Views and Tables
The Oracle Database Gateway for SQL Server supports the following views and tables.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
No other Oracle database data dictionary tables or views are supported. If you use a view not on the list, you will receive the Oracle database error code for no more rows available.
Queries through the gateway of any data dictionary table or view beginning with ALL_ can return rows from the SQL Server database even when access privileges for those SQL Server 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.
Parent topic: Data Dictionary Support