Configuration listening for Oracle 10g transparent gateway accessing SQL Server 2000

Source: Internet
Author: User
Tags time 0

Oracle 10g transparent gatewayAccessSQL Server 2000The configuration and listener startup and configuration are what we will introduce in this article. Next we will introduce them one by one.

I. Configure the environment

Oracle 10 Gb is installed on Windows 2003 server of 192.168.0.250: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0-64bit Production)

SQL Server 2000 is installed on Window 2003 server at 192.168.0.233.

2. Download the transparent GATEWAY)

Oracle 10g, transparent network management is a separate component, you can go to the Oracle official website to download http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/winsoft.html, this installation package has 300 m. Unfortunately, we only find the xiuming gateway version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-32bit Production.

3. Install transparent gateway

Install the transparent gateway on the SQL server. Click setup.exe to start the installation interface and install oracle transparent gateway for microsoft SQL server. Next, enter the sqlserver address and sqlserver database name. Here, you can enter the correct one, you can also enter it at will or leave it blank. After installation is complete, configure it again. After installation, the configuration listening page is displayed. Click Cancel. The installation process is similar to DB installation or client installation.

Iv. Configure the transparent gateway parameter file

Find the transparent gateway path: D: \ oracle \ product \ 10.2.0 \ tg_1 \ tg4msql \ admin. A default parameter file: inittg4msql is generated when the transparent gateway is installed. ora, whose sid is tg4mssql. You can use this file or create a new file. COPY is named initUFDATA_002_2009.ora. It is recommended that the name be the same as that of the SQL SERVER database. Note the format: init <sid>. ora, which can be understood as the oracle parameter file. Now, edit the parameter file:

 
 
  1. # This is a sample agent init file that contains the HS parameters that are  
  2. # needed for the Transparent Gateway for SQL Server  
  3. # HS init parameters  
  4. # HS_FDS_CONNECT_INFO="SERVER=192.168.0.233;DATABASE =UFDATA_002_2009" 
  5. HS_FDS_TRACE_LEVEL=OFF 
  6. HS_FDS_RECOVERY_ACCOUNT=RECOVER  
  7. HS_FDS_RECOVERY_PWD=RECOVER 

HS_FDS_CONNECT_INFO has multiple formats, such as: HS_FDS_CONNECT_INFO = server_name.db_name. However, server_name cannot be an IP address and the port must be 1433 by default, for example: if you set the server and database to the above format when installing the transparent gateway.

5. Configure listeners on the transparent gateway Server

Find the path D: \ oracle \ product \ 10.2.0 \ tg_1 \ NETWORK \ ADMIN \ listen er. ora where the listener file is located. These configurations are similar to DB configurations.

 
 
  1. # listener.ora Network Configuration File: d:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listen er.ora    
  2. # Generated by Oracle configuration tools.  
  3. SID_LIST_LISTENER =    
  4. (SID_LIST =    
  5. (SID_DESC =    
  6. (SID_NAME = PLSExtProc)    
  7. (ORACLE_HOME = d:\oracle\product\10.2.0\db_1)    
  8. (PROGRAM = extproc)    
  9. )    
  10. (SID_DESC=    
  11. (SID_NAME=UFDATA_002_2009)  
  12. (ORACLE_HOME=D:\oracle\product\10.2.0\tg_1)    
  13. (PROGRAM=tg4msql)    
  14. )    
  15. )  

SID_Name corresponds to the parameter file name initUFDATA_002_2009.ora, And the PROGRAMN must be tg4msql

6. Start the listener

The configuration of the start listener is the same as that of the DB. In the CMD command, enter lsnrctl start

 
 
  1. C: \ Documents ents and Settings \ rocky> lsnrctl start
  2. LSNRCTL for 32-bit Windows: Version 10.2.0.1.0-Production on-2009 21:57:56
  3. Copyright (c) 1991,200 5, Oracle. All rights reserved.
  4. Start tnslsnr: Please wait...
  5. TNSLSNR for 32-bit Windows: Version 10.2.0.1.0-Production
  6. The system parameter file is D: \ oracle \ product \ 10.2.0 \ tg_1 \ network \ admin \ listen er. ora.
  7. Write the log information of D: \ oracle \ product \ 10.2.0 \ tg_1 \ network \ log \ listener. log
  8. Listener:
  9. (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = fcserver .winbo4x4.com) (PORT = 1521 )))
  10. Connecting to (ADDRESS = (PROTOCOL = tcp) (HOST =) (PORT = 1521 ))
  11. Listener status ------------------------ alias LISTENER
  12. Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0-Production
  13. Start Date:-2009 21:57:58
  14. Normal operation time 0 days 0 hours 0 minutes 1 second
  15. Tracking level off
  16. Security ON: Local OS Authentication
  17. SNMP OFF
  18. Listener parameter file D: \ oracle \ product \ 10.2.0 \ tg_1 \ network \ admin \ listen er. ora
  19. Listener log file D: \ oracle \ product \ 10.2.0 \ tg_1 \ network \ log \ listener. log
  20. Listener endpoint overview...
  21. (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = fcserver .winbo4x4.com) (PORT = 1521 )))
  22. Service summary. The service "PLSExtProc" contains one routine.
  23. Routine "PLSExtProc", status UNKNOWN, contains one handler of this service... the service "UFDATA_002_2009" contains one routine.
  24. Routine "UFDATA_002_2009", status UNKNOWN, contains one handler of this service...
  25. Command executed successfully

You can see that UFDATA_002_2009 has registered the static listening service.

Generate the OracleOraTg10g_home1TNSListener service in the Service (if the transparent gateway is on the DB database machine, there are more than N Listener services, you can stop other Listener services, directly in the transparent Listener)

View the Listener status:

 
 
  1. C: \ Documents ents and Settings \ rocky> lsnrctl status
  2. LSNRCTL for 32-bit Windows: Version 10.2.0.1.0-Production on-2009 21:58:06
  3. Copyright (c) 1991,200 5, Oracle. All rights reserved.
  4. Connecting to (ADDRESS = (PROTOCOL = tcp) (HOST =) (PORT = 1521 ))
  5. Listener status ------------------------
  6. Alias LISTENER
  7. Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0-Production
  8. Start Date: 2009-21:57:58 normal running time: 0 days, 0 hours, 0 minutes 9 seconds
  9. Tracking level off
  10. Security ON: Local OS Authentication SNMP OFF
  11. Listener parameter file D: \ oracle \ product \ 10.2.0 \ tg_1 \ network \ admin \ listen er. ora
  12. Listener log file D: \ oracle \ product \ 10.2.0 \ tg_1 \ network \ log \ listener. log
  13. Listener endpoint overview...
  14. (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = fcserver .winbo4x4.com) (PORT = 1521 )))
  15. Service summary. The service "PLSExtProc" contains one routine.
  16. Routine "PLSExtProc", status UNKNOWN, contains one handler of this service... the service "UFDATA_002_2009" contains one routine.
  17. Routine "UFDATA_002_2009", status UNKNOWN, contains one handler of this service...
  18. Command executed successfully

The configuration for Oracle 10g transparent gateway to access SQL Server 2000 is introduced here. I hope this introduction will be helpful to you! Next Introduction: Oracle 10g transparent gateway accesses SQL Server 2000 to create a DB Link.

Source: http://blog.csdn.net/rockywu/archive/2009/06/04/42. aspx.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.