Oracle9i the configuration of a transparent gateway connecting Sybase

Source: Internet
Author: User
Tags interface sybase sybase client sybase database table name create database
oracle| Transparent
Oracle's technology for implementing heterogeneous database connection Services is called transparent Gateway (transparent gateway).
At present, Oracle utilizes transparent gateway to realize the interconnection with SQL SERVER, SYBASE, DB2 and other mainstream database.

Now access the SYBASE database via Oracle, and configure oracle9i transparent GATEWAY for Sybase
The steps written in the document, for the needs of netizens reference!

Configuring transparent GATEWAY for Sybase steps

1.
Install Sybase Client on Oracle Server (or install Oracle, Sybase server on same server)
Ensuring access to the Sybase database

2.
Install the transparent GATEWAY for Sybase option and use a custom installation.
Choosing the Sybase installation directory correctly

3.
Select a SID string to be assigned to the Sybase database. such as: Tg4sybs
Set Sybase DLL path to environment variable path (this step is important)

4.
Modify the initialization file by default:
Oracle_home\tg4sybs\admin\inittg4sybs.ora
Setting parameters
Hs_fds_connect_info
Format: hs_fds_connect_info= server_name. Database_name[,interface= Interface_file]
server_name. database_name is case sensitive.
Interface Optional

Examples: as follows
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# This is a sample agent init file, contains the HS parameters that are
# needed for the ' transparent Gateway for Sybase

#
# HS init parameters
#
Hs_fds_connect_info=migration_serv.tax
Hs_fds_trace_level=off
Hs_fds_recovery_account=recover
Hs_fds_recovery_pwd=recover

#
# Environment variables required for Sybase
#
Set Sybase=d:ybase
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
In the example above
server_name is Migration_serv.
database_name is tax.

5.
Configure the Listener for Oracle network services, which is: Listener.ora
Default path: Oracle_home\network\admin
Add the following

Sid_list_listener=
(sid_list=
(sid_desc=
(Sid_name= Gateway_sid)
(Oracle_home= oracle_home_directory)
(PROGRAM=TG4SYBS)
)
)

Gateway_sid is the 3 SID string selected
Oracle_home_directory is oracle_home.
Tg4sybs if Sybase is specific. If it is another database, it will be different.
Examples are as follows:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
(sid_desc=
(SID_NAME=TG4SYBS)
(Oracle_home = D:\oracle\ora92)
(PROGRAM=TG4SYBS)
)
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

6.
Stop listening

Lsnrctl stop


Restarting the Listener

Lsnrctl start

7.
Configure Oracle Server's Tnsnames.ora to enable it to access Sybase
Connect_descriptor=
(description=
(address=
(PROTOCOL=TCP)
(host= host_name)
(port= port_number)
)
(Connect_data=
(sid= Gateway_sid))
(Hs=ok))

Connect_descriptor is a connection string, optional, generally sybs
Name of Host_name:oracle server
Port_number:oracle Listening Port
Gateway_sid is the 3 SID string selected

Examples are as follows:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
sybs=
(description=
(Address_list =
(Address= (PROTOCOL=TCP) (host= dw-server1) (port= 1521))
)
(Connect_data=
(sid= Tg4sybs)
)
(Hs=ok)
)

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

8. Set Up Database link

Such as:
CREATE DATABASE LINK sybs CONNECT to SA
Identified by Prient
USING ' Sbys ';

Can access the Sybase database.


It should be noted that the Sybase database table name, field name, if it is lowercase, then in Oracle to access the time to add double quotes ""

Such as:
Sql〉select "A" from "B" @sybs;



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.