|
Oracle Home |
|
Home > Oracle Database Administration (DBA) > Architecture > Oracle Heterogeneous Services |
|
Oracle Database 10g Administration (DBA): Architecture |
|---|
Oracle Heterogeneous Services |
|
Note: The article ( named Oracle Heterogeneous Services ) was taken from www.in-oracle.com.
Example of how to use the Generic Connectivity agent(connection to the SQL Server, both Oracle and SQL Server are on the same PC on Windows)
Steeps to implement it: A. Create the DSN (Data Source Name) B. Configure Oracle to connect to SQL Server
A. Create the DSN (Data Source Name) 1. Go to Start -> Control Panel -> Administravive tools -> Data Sources (ODBC) -> System DSN (DSN = )
2. Create the DSN that will connect to the SQL Server database. First click on "Add..."
3. Choose the driver to use for the SQL Server. Click on "Finish".
4. Name: MySQLServerDS (DS from Data Source) Description: ... put your description here ... Server: CATA1\SqlExpress
Click on "Next".
5. You can choose a Windows or SQL Server authentication. I will choose the first option. Click on "Next".
6. Choose the database you want to connect to. In my case is sql. Click on "Next".
7. Click on "Finish".
The following screen will appear:
Click on "Test Data Source..." to test the data source. The following screen should appear:
Click on "OK".
You will see the new System Data Source Name added:
B. Configure Oracle to connect to SQL Server
This point B. includes: a) Create a heterogeneous service configuration file b) Configure the listener.ora for listening to this service
Here are the steps including a) and b) :
1. Open the ORACLE_HOME\hs\admin\initdg4odbc.ora file within a text editor (this is the default init file for using ODBC conections)
2. In this file you must add:
HS_FDS_CONNECT_INFO = <ODBC Data Source Name> HS_FDS_TRACE_LEVEL = <trace level>
for instance,
HS_FDS_CONNECT_INFO = MySQLServerDS
3. Configure the listener.ora
Add in the ORACLE_HOME\network\admin\listener.ora the following:
(SID_DESC=
In this case the listener.ora will be:
SID_LIST_LISTENER =
4. Reload the listener configuration
C:\> lsnrctl reload
5. Check if the listener see that new service (mySQLservice).
C:\Documents and Settings\Administrator>lsnrctl stat
Note: The article ( named Oracle Heterogeneous Services ) was taken from www.in-oracle.com.
|
|
Home > Oracle Database Administration (DBA) > Architecture > Oracle Heterogeneous Services |
|
Different Romanian Links/ Linkuri romanesti diferite |
Disclaimer: The views expressed on this web site are my own and do not reflect the views of Oracle Corporation. You may use the information from this site only at your risk. Copyright (c) 2009-2011 Paul Catalin Tomoiu. All rights reserved.