Vous êtes sur la page 1sur 2

HS DB: CONNECTION ORACLE TO MYSQL 1. Create ODBC system Data Source Name Eg: mySQL5 2.

Create a file in Oracle/Ora92/hs/admin called initmySQL5.ora In this file put the following options: HS_FDS_CONNECT_INFO = mySQL5 HS_FDS_TRACE_LEVEL = OFF 3. Alter listener.ora file to add the following: (SID_DESC= (PROGRAM = hsodbc) (ORACLE_HOME = C:\oracle\ora92) (SID_NAME = mySQL5) ) 4. Alter tnsnames.ora file to add the following: mySQL5 = (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST= localhost) (PORT = 1521)) (CONNECT_DATA = (SID = mySQL5)) (HS = OK) ) 5. Reload the oracle listener RESTART 6. Create database link Eg: CREATE DATABASE LINK mySQL5 CONNECT TO FADZIL IDENTIFIED BY 563MFZ USING mySQL5; 7. Query table in mySQL DB through Oracle Eg: SELECT * FROM employee@mySQL5;

Use the same step to connect from Oracle to SQL Server with additional steps to be taken earlier: 1. SQL Server must be set up with SQL Authentication or Mixed. 2. Create user login with Public Role, provide appropriate permission to Public Role.

***STEP UTK SQL SERVER -> MYSQL AK ADA GAK..TAPI MALAS TYPE. PNJG. T BILE2 AK PAS BUKU AK NI KT KO K

Vous aimerez peut-être aussi