How
to create Configure Heterogeneous Connectivity between
Oracle and SQL Server Databases? What is the purpose? It
enables to perform
The data dictionary tables, views, and packages may already be installed on your Oracle9i server. Check for the existence of Heterogeneous Services data dictionary views, for example, SYS.HS_FDS_CLASS. Log into the Oracle Database as SYSTEM or SYS or as the ID that is eligible to access the data dictionary and then issue the following statement. Select * from SYS.HS_FDS_CLASS; This returns no rows if no HS configuration are done. How
to configure the Heterogeneous connectivity?? a.
Decide a directory where you shall have the .udl file on the Oracle Server
where the Oracle Database is living.
j. in the connection window
k. Test the connection and then click OK Step 02 Configuring SQL*Net/Oracle Net Set up a Oracle Net service name for the agent that can be used by the Oracle9i server. The Oracle Net service name descriptor includes protocol-specific information needed to access the Oracle Net listener. The service name descriptor must include the (HS=OK) clause to ensure the connection uses Oracle9i Heterogeneous Services. The description of this service name is defined in tnsnames.ora, the Oracle Names server, or in third-party name servers using the Oracle naming adapter. The following is a sample entry for service name in the tnsnames.ora file: MYSQLSERVER=
# ALIAS GIVEN TO THE SQL SERVER DATABASE
The following is a sample entry for the listener in listener.ora: LISTENER
=
The full path of the directory, which contains the DLLs that are loaded by the Heterogeneous Services agent, is specified by LD_LIBRARY_PATH. This is required only when you are configuring the connectivity between an Oracle Database that is on UNIX system and SQL Server Database. Presently only Solaris and Windows Platforms are working fine. I have not tested on other platforms. I saw some docs related to Oracle 8iR3 that this was then available only for Windows and SUN. Typically, you use SID_NAME to define the initialization parameter file for the agent. Remember that this name is going to be used in future when we create an initialization parameter file for HS connectivity. Step 03 Test the TNS Names and Listener Entries Testing TNS Names Entries: Go to DOS command prompt and type tnsping service_name If this output is like this you have no issue to handle K:\>tnsping service_name TNS
Ping Utility for 32-bit Windows: Version 9.2.0.5.0 - Production on 28-SEP-20 Copyright (c) 1997 Oracle Corporation. All rights reserved. Used
parameter files: Used
TNSNAMES adapter to resolve the alias If the Oracle is not set in the path you may get a message saying that the command is not recognized as an internal or external command, operable program or batch file. Go and set oracle in the path |