Following my last post about Oracle Transparent Gateways which was theoretical post, this post will be more practical. In this post I'll show an example of configuring Oracle Transparent Gateway for MS SQL Server. The steps are:
In my environment there are 3 servers involved:
Configure the gateway initialization parameter file After Oracle Transparent Gateway for MS SQL server installed on ORAGWSRV01 server, a new default initialization file is created at: $ORACLE_HOME\tg4msql\admin\inittg4msql.ora. $ORACLE_HOME - is the directory where Transparent Gateway installed. Edit the inittg4msql.ora file and specify the MS Sql Server connection details as follow: in our case: Alternatively you can set it as follow: Configure the listener In order to make the listener work with the gateway we should configure it. The listener.ora must have at least 2 entries:
On ORAGWSRV01 server at $ORACLE_HOME\network\admin edit the listener.ora as follow: LISTENER= Where: In our case: LISTENER= After finishing the Gateway configuration, restart the listener (lsnrctl stop; lsnrctl start). Configure the Oracle database tnsnames.ora connect_descriptor= Where: mytg4msql= Creating DB link from Oracle database to MS SQL Server create database link ORCLDB2MSQLDB Where MSQLUSER & MSQLPWD are the user name and password to connect to the MS SQL server. Test it... select * For more information about Transparent Gateway for Microsoft SQL Server: |
Wednesday, April 16, 2008
Oracle Transparent Gateway for MS SQL Server - Part II
Posted by Aviad at 1:11 AM 13 comments
Labels: Integration, Network
Monday, April 14, 2008
Oracle Transparent Gateways - General Description - Part I
A lot of companies have several applications based on more than one database system (e.g DB2, SQL Server, Sybase, etc). Oracle, starting with Oracle Database 9i, offers the "Oracle Transparent Gateways" (Oracle Database Gateways) to allow integration of Oracle database with non-Oracle databases. The Transparent Gateway solution composed of two parts:
Heterogeneous Services (HS) This is a generic component for connecting to non-Oracle systems. The following services are provided by the Heterogeneous Services (HS):
Oracle Database Gateways (agents) This component responsible for the interface to the remote non-Oracle system. Next post I'll show an example of connecting and retrieving data from a SQL Server database to an Oracle database using Oracle Transparent Gateway for Microsoft SQL Server including all configuration required for Transparent Gateway and the source Oracle System. Related Documents for more information: - Database Gateways Technical Whitepaper You are more than welcome to leave a comment. Aviad |
Posted by Aviad at 1:16 AM 9 comments
Labels: Integration, Network