1. Install the transparentgateway transparent gateway of oracle. Select custom installation for ORACLE Installation, then install transparent gateway, and then select to install the FORSQLSERVER component. 2, modify oraclehomeora92tgsmsqladmininittg4msql. orq file HS_FDS_CONNECT_INFOSERVERYIRONG-NO1; DATABAS
1. Install the transparent gateway of oracle. Select custom installation for oracle Installation, then install transparent gateway, and then choose to install components for sqlserver. 2. Modify the oraclehomeora92tgsmsqladmininittg4msql. orq file HS_FDS_CONNECT_INFO = SERVER = YIRONG-NO1; DATABAS
1. Install the transparent gateway of oracle.
Select custom installation for oracle Installation, then install transparent gateway, and then choose to install components for sqlserver.
2. Modify the oraclehomeora92tgsmsqladmininittg4msql. orq File
HS_FDS_CONNECT_INFO = "SERVER = YIRONG-NO1; DATABASE = jsoct"
HS_FDS_TRACE_LEVEL = OFF
HS_FDS_RECOVERY_ACCOUNT = RECOVER
HS_FDS_RECOVERY_PWD = RECOVER
Description: You can use migration WorkBench in the ORACLE tool for configuration. (ODBC needs to be configured in the process)
3. Create a listener to modify the oraclehomeora92networkadminlistener. ora file of oracle.
# LISTENER. ORA Network Configuration File: F: oracleora92networkadminlistener. ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC0 ))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = yirong-no1) (PORT = 1521 ))
)
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = F: oracleora92)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = ora9i2)
(ORACLE_HOME = F: oracleora92)
(SID_NAME = ora9i2)
)
# Connecting to sqlserver
(SID_DESC =
(GLOBAL_DBNAME = tg4msql)
(PROGRAM = tg4msql)
(SID_NAME = tg4msql)
(ORACLE_HOME = F: oracleora92)
)
)
4. Modify TNS
TG4MSQL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp) (HOST = localhost) (PORT = 1521 ))
(CONNECT_DATA = (SID = tg4msql ))
(HS =)
)
5. Create a DBLINK user name. The password is the user name and password of SQLSERVER.
Create public database link oratoSql
Connect to sa identified by "lanwei"
USING 'tg4msql ';
6. test whether the data is properly retrieved.
,