‘ra, 130 AM MYSQL TO ORACLE DATABASE LINK CREATION USING HETEROGENEOUS SERVICES ~KTEXPERTS.
We'd lke to show you notifications forthe latest ssenssnitognaconegste)
“S$
TECHNICAL KNOWLEDGE SHARING PLATFORM
Unepsitmaraterperts.com)
Home) Abostepswenestncens cat
OracleD8A- OracleRACGoldenGato Cassandra Yeatogoryicassancra) AWS SQLServer Yeatogoryisghsorver-dba) —DevOps
MySOL PostgreSQL Authors IN Webrar Recordings hapsibwwwktoxpers.convuesinars Dally Tips
Siva (https:/www.ktoxperts.com/author/venkat/)
Fatow
‘Share this post
Tage
Intosstonntcexoes commagineterogenoush
tos tn ktexoets compagineterogencous
‘tenis
re-orackn
toorach-daabaeeni
heterogeneousserices
feiebace-nk)
hitpevlomerperts.com!mysql-o-oracto-database-ink-creaton-using-heterogeneous-services! ne‘ra, 130 AM MYSQL TO ORACLE DATABASE LINK CREATION USING HETEROGENEOUS SERVICES ~KTEXPERTS.
ConACLE HS SeRMCeS
intositonenicexpens contagion We'd like to show you notifications forthe atest
reservees news and updates
ference cancel
MYSQL TO ORACLE DATABASE LINK CREATION USING HETEROGENEOUS
SERVICES
Posted on January 2, 20:9 n MySaL (hips ktexpers comicategoryinyscll, MySGL DBA (hipsmnwktexpens.com/categoryinysabdba), Oracle DB
Adv (tps itexpers comieategeryloracl-doa)
‘Share wa
(/#facebook) —(/#twitter) ~ (/#linkedin) —_ (/#whatsapp)
(https://www.addtoany.com/share#url=https%3A%2F%2Fwww.ktexperts.c
heterogeneous-
services%2F&title=-MYSQL%20TO%20ORACLE%20DATABASE%20LINK%2(
ull Post Views: 2657
MYSQL TO ORACLE DATABASE LINK CREATION USING HETEROGENEOUS SERVICES
[A database links a polnter that defines 2 one-way communication path fom an Oracle Database serve to another database server
‘The remote database can be same oracle or teen Be nonorace database
To eccess ror-Orack ystems you must use Oracle Heterogeneous Services
Software's required:
+ MYSOI software
+ 008¢ Drivers
+ MySQL Connector
Prerequisites:
+ Oracle databace should be un and running
+ MySQL catabete should be up and runing
+ Orace net services should be up and rsning
+ 008C ane ODBC agent shouts be cortigue, up and running
loose check ORACLE dalabese Ink coniguttion for base databose tk infra
DATABASE LINK IN ORACLE
bse ink? A aatbosetine's 3 schema objet na
iabsse Theta purpose ofthe dtabase Ink so access
ue on nk ces Cotrur sang
Bi covers °
Process for heterogeneous database link configuration:
STEP
‘Oracle Database Configuration:
hitpevlomerperts.com!mysql-o-oracto-database-ink-creaton-using-heterogeneous-services! ane,‘ra, 190M MYSQL TO ORACLE DATABASE LINK CREATION USING HETEROGENEOUS SERVICES ~KTEXPERTS.
SQL> select instanceane, stats fon
src Nae rans We'd like to show you notifications forthe atest
news and updates.
sels select * From vversion
eve ashe i brie corel Al
ft Rear ot fe
even WEE eco 3
Note: ORACLE RDBMS running with 6abit
MySQL Database Configuration:
xtrang¥ (AN SEE Bf INFOMATION
lmsatoomin ver 8.42 Distrib §.7.24, for Limat on x6 66
Eopyrghe Ce) 2008, 2018, Grats and/or its affiliates” AL rights reserved
lorcte'(s 9 reqtstiree trodanark of Oracle Corporatian and/or tts effiliates. OLner nones may be tradearke of their respective omere
comection Ucn via ure socket
Threads: 2 Quesiors: 60 Sitm queries: @ Opens: 19 Flush tables: 1 Open tablet: 182 Guaries per second a: 8.009
Inysal> stom VARIALES LIKE arate
‘ino version
Bron in see (2 aes)
‘Note: MySaL running with 6abit
Download 64 bit ODBC and MySOL database connector and instal
STEP-2
Configure the OD!
Note: From Oracle Ma, the Oracle Heterogeneous Servic (HS) execulaale rame snow eiled DGAODEC. I youre using # GALDA version of Oracle you must
use a 64D OD8C err. youre using a 32-pt version af Orele, you must use a 32-bit ODBC dre.
‘Check tha Oracle Heterogeneous Service (HS) executable
IroracteeSERVERL -I8 Fite /u8/agp/orace/product/12.1.0/dohom ie dade
“aivapyorecte procuct/12.1.€/@onovebir/égtod: (Li 6f-bL* SB exgeutabe, A86-64, ve
imam ct ty Linees Cases shores ibs), for i inoe 2.638, net stripaed
lnoerer cbc avs era ot she prorequstte far (neal ling the orecle AEBS
fe" UnaGO8c ts seauired to tnstall orsele WBNS) And SQ. UDSC Comecior ts required
(008 Drivers you can download (RPM) from the alow link and install.
‘ntpsutsovmysqlcomisownlosdiconnectiodbe!tositdeumysal.comidownbbadsicorrecioriosbe)
ntpsuldevmysalcomiseciconnectr-odbeleniconnectoradbe-nstalaion-binaryurserpmnnl_(htpsiideumyselcomiecleonsectorodacloniconsaconedboe.
Irstalaion-sinary-ursespmtien)
STEP-3
‘ORACLE NET SERVICE CONFIGURATION:
Configure tb oracle Ne services using Istenerora and mnsnamesora| e
I orectesSERVERL I$ ce /u/epp/oracla/araduct/12+./etona/netorh/enin/
Configure Listener
ngs vaw korperts.con/nyea)-o- oracle database-jnk creat on-sing-eteragenoous-serces! 2‘wre, 120M MYSQL TO ORACLE DATABASE LINK CREATION USING HETEROGENEOUS SERVICES ~KTEXPERTS.
Configure the New listener using We'd like to show you notifications forthe atest
ews and updates.
[CoracleeseRvert advin}s vi Listener.ort ve
Use the below configuration:
vtusen Cancel 7
oescrapraon ast =
(escRPTaON =|
ADORESS = CPROTOCEL. ~ TOPCHRST ~ SERVERECPORT'= 35229)
>
>
sto.15T susan
Groatst =
(ELA, DOE ~ Ktewserts)
Coucsfne =the eracefocbut32 3.)
(Groans ap rorele/oroducs/12.1.0/dohone/oe/ dod)
i ReMi ue” seb von racle/poo
2.2.87 ib/")
‘Start and Check the status of listener ktuser
[retin I Sct Sets wise
Configure the Trenames
Thesnames.on
orocLeeSERERL adnin]S 1s —_ tnsnanes.oro
SrecLessevend aarins vi Wrsrares: one
Use the below configuration:
ESS LIST =
(HOMES =| PROTOCL = TePI(OST = 192.265.9.2)¢F0RT «3522
>
‘cowect_nura -
oa
‘Check the Connection
I oracteaseavERt 38 ersping user
‘create he MySGL detapase and MySQL user ana grat ne necessary prveges to wet
sxruseR
FOR THE SERVER: SERVER!
Imysal> CREATE USER “etusr'e"SERUERL” IDENTIFIED ‘me cone?
sat: Gana asec ob #0 Ptaeresnenh a XT FTO
FOR THE SERVER: ANY SERVER
lysal> CREATE USER “etuser‘e'x" IOEWTIFIED 8 "el cna
fmagls Gaur ALL FRrviCats oN *-* TO "etuser"e'" WITH GMT CPTZO,
FOR THE SERVER: LOCAL HOST
ngs vaw korperts.con/nyea)-o- oracle database-jnk creat on-sing-eteragenoous-serces!‘wa, 120M MYSQL TO ORACLE DATABASE LINK CREATION USING HETEROGENEOUS SERVICES ~KTEXPERTS.
Ingsal> GRANT ALL PaLvLUtGts N's." TO
Imaat> FLUSH PRIVTLEGES, We'd like to show you notifications forthe atest
news and updates.
(CHECK THE CONNECTION:
-ottsesvER! 8 ays Cancel All
suser op
(CREATE THE DATABASE AND TABLE:
| mesa i
| rire scene |
5 rons iw set (008 see)
Create the Table with name ktmytab
Imeat> create tants ktnteb(era int);
Insert few values into the table.
Imaal» insert ince Kenyan velues(9);
Jmagls insert ince Keyan value
feats snsre neo Kyo vluns3;
STEP-5
Configure the ODBC:
I crooteseavent Je wi 2
[Add the below content:
ktoser = thst 058 3,51 Driver 0
scuser)
myadocta. <3
ines
:
User: MySOL user
Password: MySCL user
Database: MySaL local Database
STEP-6
Configure the initialization file for the Oracle Heterogeneous Service (HS).
oracleeSEsVERI ~}$ ce Ai /epp/oraele/eroduct/2.2,8/ébhone/hs/adin/
orecLesseVERl agains