Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Need Debugging help Oracle to MYSQL local single instance install

rjsosiSep 26 2019 — edited Sep 30 2019

Hi,

I've been following your advice and set up my environment.

I created a dblink and tested it. I got an "ORA-12154: TNS:could not resolve the connect identifier specified" error.

I'm pretty sure I've got a mis-setting somewhere.

I'm going to past my entire layout and anyone that wants to peruse through and spot the error(s) please feel free.:

Service DSN

pastedImage_0.png

MYSQL DB info

pastedImage_3.png

Oracle info:

ORACLE_HOME:

C:\app\mylogin\virtual\product\12.2.0\dbhome_1

pastedImage_4.png

Listener.ora

SID_LIST_LISTENER =

(SID_LIST =

(SID\_DESC =

  (SID\_NAME = CLRExtProc)

  (ORACLE\_HOME = C:\\app\\mylogin\\virtual\\product\\12.2.0\\dbhome\_1)

  (PROGRAM = extproc)

  (ENVS = "EXTPROC\_DLLS=ONLY:C:\\app\\mylogin\\virtual\\product\\12.2.0\\dbhome\_1\\bin\\oraclr12.dll")

)

(SID\_DESC =

  (GLOBAL\_DBNAME = Oracle8)

  (SID\_NAME = ORCL)

)

(SID\_DESC =

  (SID\_NAME = MYSQL80w)

  (ORACLE\_HOME = C:\\app\\mylogin\\virtual\\product\\12.2.0\\dbhome\_1)

  (PROGRAM = dg4odbc)

)

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

  (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

)

(DESCRIPTION =

  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

TNSNAMES.ora

XE =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))  

(CONNECT\_DATA =  

  (SERVER = DEDICATED)  

  (SERVICE\_NAME = XE)  

)  

)

ORCL_DEV =

(DESCRIPTION =

(ADDRESS\_LIST =

  (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

)

    (CONNECT\_DATA =

  (SID = ORCL)

)

)

# Hosts column equals DB name ORCL is the name in the

MYSQL80=

(DESCRIPTION=

  (ADDRESS= (PROTOCOL = TCP)(HOST = localhost)(PORT = 3306))

  (CONNECT\_DATA=

     (SID=MYSQL80))

  (HS=OK))

initmysql80.ora

# This is a sample agent init file that contains the HS parameters that are

# needed for the Database Gateway for ODBC

# HS init parameters

HS_FDS_CONNECT_INFO = MYSQL80w

HS_FDS_TRACE_LEVEL = off

# Environment variables required for the non-Oracle system

#set <envvar>=<value>

C:\>lsnrctl status

LSNRCTL for 64-bit Windows: Version 12.2.0.1.0 - Production on 26-SEP-2019 14:26:47

Copyright (c) 1991, 2016, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))

STATUS of the LISTENER

------------------------

Alias LISTENER

Version TNSLSNR for 64-bit Windows: Version 12.2.0.1.0 - Production

Start Date 26-SEP-2019 13:45:57

Uptime 0 days 0 hr. 40 min. 50 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File c:\LOCAL\network\admin\listener.ora

Listener Log File C:\app\mylogin\virtual\product\12.2.0\diag\tnslsnr\OCLT70545153\listener\alert\log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=OCLT70545153.office.adroot.bmogc.net)(PORT=5500))(Security=(my_wallet_directory=C:\APP\MYLOGIN\VIRTUAL\admin\orcl\xdb_wallet))(Presentation=HTTP)(Session=RAW))

Services Summary...

Service "CLRExtProc" has 1 instance(s).

Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...

Service "MYSQL80w" has 1 instance(s).

Instance "MYSQL80w", status UNKNOWN, has 1 handler(s) for this service...

Service "Oracle8" has 1 instance(s).

Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...

Service "d767cda564dd4065aeb98259d87281ee.office.adroot.bmogc.net" has 1 instance(s).

Instance "orcl", status READY, has 1 handler(s) for this service...

Service "orcl.office.adroot.bmogc.net" has 1 instance(s).

Instance "orcl", status READY, has 1 handler(s) for this service...

Service "orclXDB.office.adroot.bmogc.net" has 1 instance(s).

Instance "orcl", status READY, has 1 handler(s) for this service...

Service "orclpdb.office.adroot.bmogc.net" has 1 instance(s).

Instance "orcl", status READY, has 1 handler(s) for this service...

The command completed successfully

C:\>lsnrctl services

LSNRCTL for 64-bit Windows: Version 12.2.0.1.0 - Production on 26-SEP-2019 14:27:35

Copyright (c) 1991, 2016, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))

Services Summary...

Service "CLRExtProc" has 1 instance(s).

Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...

Handler(s):

  "DEDICATED" established:0 refused:0

     LOCAL SERVER

Service "MYSQL80w" has 1 instance(s).

Instance "MYSQL80w", status UNKNOWN, has 1 handler(s) for this service...

Handler(s):

  "DEDICATED" established:0 refused:0

     LOCAL SERVER

Service "Oracle8" has 1 instance(s).

Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...

Handler(s):

  "DEDICATED" established:0 refused:0

     LOCAL SERVER

Service "d767cda564dd4065aeb98259d87281ee.office.adroot.bmogc.net" has 1 instance(s).

Instance "orcl", status READY, has 1 handler(s) for this service...

Handler(s):

  "DEDICATED" established:0 refused:0 state:ready

     LOCAL SERVER

Service "orcl.office.adroot.bmogc.net" has 1 instance(s).

Instance "orcl", status READY, has 1 handler(s) for this service...

Handler(s):

  "DEDICATED" established:0 refused:0 state:ready

     LOCAL SERVER

Service "orclXDB.office.adroot.bmogc.net" has 1 instance(s).

Instance "orcl", status READY, has 1 handler(s) for this service...

Handler(s):

  "D000" established:0 refused:0 current:0 max:1022 state:ready

     DISPATCHER \<machine: OCLT70545153, pid: 3884>

     (ADDRESS=(PROTOCOL=tcp)(HOST=OCLT70545153.office.adroot.bmogc.net)(PORT=63225))

Service "orclpdb.office.adroot.bmogc.net" has 1 instance(s).

Instance "orcl", status READY, has 1 handler(s) for this service...

Handler(s):

  "DEDICATED" established:0 refused:0 state:ready

     LOCAL SERVER

The command completed successfully

C:\>tnsping MYSQL80w

TNS Ping Utility for 64-bit Windows: Version 12.2.0.1.0 - Production on 26-SEP-2019 14:28:11

Copyright (c) 1997, 2016, Oracle. All rights reserved.

Used parameter files:

c:\LOCAL\network\admin\sqlnet.ora

TNS-03505: Failed to resolve name

create public database link MYSQL80 connect to "root" identified by ",password>" using 'MYSQL80';

pastedImage_20.png

This post has been answered by mxallen-Oracle on Sep 30 2019
Jump to Answer
Comments
Post Details
Added on Sep 26 2019
24 comments
2,380 views