0% found this document useful (0 votes)
61 views

Database Link

This document provides 7 steps to connect an Oracle database to a MySQL database using an ODBC data source name: 1. Create an ODBC DSN for the MySQL database. 2. Create an init file for the DSN and configure trace options. 3. Add a SID descriptor to the listener.ora file. 4. Add a connect descriptor to tnsnames.ora using the DSN details. 5. Restart the Oracle listener. 6. Create a database link in Oracle using the DSN details. 7. Query the MySQL table through Oracle using the database link.

Uploaded by

Tok Wan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views

Database Link

This document provides 7 steps to connect an Oracle database to a MySQL database using an ODBC data source name: 1. Create an ODBC DSN for the MySQL database. 2. Create an init file for the DSN and configure trace options. 3. Add a SID descriptor to the listener.ora file. 4. Add a connect descriptor to tnsnames.ora using the DSN details. 5. Restart the Oracle listener. 6. Create a database link in Oracle using the DSN details. 7. Query the MySQL table through Oracle using the database link.

Uploaded by

Tok Wan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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

You might also like