ora on gateway side) Configuring Oracle Net Services Listener for the Gateway(listenerora on gateway side)
Configuring the Oracle Database Server for Gateway Access(tnsnamesora on oracle side)
Creating Database Links(on oracle side)
Configuring the Gateway
Task : Choose a System Identifier for the Gateway
The gateway system identifier (SID) is an alphanumeric character string that identifies a gateway instanceThe SID is used as part of the file name for the initialization parameter file
Task : Customize the Initialization Parameter File
The initialization parameter file must be available when the gateway is started
如ORACLE_HOME\tgmsql\admin\initmytgmsqlora
注意HS_FDS_CONNECT_INFO= server_namedatabase_name
HS_FDS_DEFAULT_OWNER = 缺省用户
Configuring Oracle Net Services Listener for the Gateway
The gateway requires Oracle Net Services to provide transparent data access After configuring the gateway configure Oracle Net Services to work with the gateway
Configure Oracle Net Services TNS Listener for the Gateway
If you are already running a TNS listener that listens on multiple database SIDs add only the following syntax to SID_LIST in the existing listenerora file:
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
)
(SID_DESC=
)
(SID_DESC=
(SID_NAME=mytgmsql)
(ORACLE_HOME=oracle_home_directory)
(PROGRAM=tgmsql)
)
)
Configuring the Oracle Database Server for Gateway Access
Before you use the gateway to access Microsoft SQL Server data you must configure the Oracle database server to enable communication with the gateway over Oracle Net Services
Configuring Oracle Net Services for the Oracle Database Server
The tnsnamesora file is required by the Oracle database server accessing the gateway but not by the gateway Edit the tnsnamesora file to add a connect descriptor for the gateway:
connect_descriptor=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST= host_name)
(PORT= port_number)
)
(CONNECT_DATA=
(SID= mytgmsql))
(HS=OK))(HS=OK) specifies that this connect descriptor uses the Oracle Heterogeneous Services option
Creating Database Links
接下来Configuring the Gateway for Multiple Microsoft SQL Server Databases
Configuring the Gateway
Create Two Initialization Parameter Files
> cd ORACLE_HOME\tgmsql\admin
> copy inittgmsqlora inittgmsqlora
> copy inittgmsqlora inittgmsqlora
Change the value of the HS_FDS_CONNECT_INFO parameter in the new files
For inittgmsqlora enter the following:
HS_FDS_CONNECT_INFO=msql_ntdb
For inittgmsqlora enter the following:
HS_FDS_CONNECT_INFO=msql_ntdb
Configuring Oracle Net Services Listener for the Gateway
Add Entries to listenerora
Add two new entries to the TNS listener configuration file listenerora
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=tgmsql)
(ORACLE_HOME= oracle_home_directory)
(PROGRAM=tgmsql)
)
(SID_DESC=
(SID_NAME=tgmsql)
(ORACLE_HOME= oracle_home_directory)
(PROGRAM=tgmsql)
)
(SID_DESC=
(SID_NAME=tgmsql)
(ORACLE_HOME= oracle_home_directory)
(PROGRAM=tgmsql)
)
)
Configuring the Oracle Database Server for Gateway Access
tnsnamesora
old_db_using=(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(PORT=)
(HOST=gtwhost))
(CONNECT_DATA=
(SID=tgmsql))
(HS=OK))
new_db_using=(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(PORT=)
(HOST=gtwhost))
(CONNECT_DATA=
(SID=tgmsql))
(HS=OK))
new_db_using=(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(PORT=)
(HOST=gtwhost))
(CONNECT_DATA=
(SID=tgmsql))
(HS=OK))
Creating Database Links