ORA-12545 error in PL/SQL developer in windows 7 [message #590253] |
Tue, 16 July 2013 06:18 |
debasisp
Messages: 10 Registered: February 2010 Location: BANGALORE,INDIA
|
Junior Member |
|
|
I am using Oracle 11g version, and i am using plsql developer 7.1.
I am able to connect Oracle through sql*plus, But i am not able to connect Oracle through plsql developer from past few days, it is giving me error like:
ora-12545 connect failed because target host does not exist
I recently installed oracle dev_suite 10g client first and then i installed oracle 11g server in windows 7. Both tns files are having identical entries.
Please find the tns entries below.
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = DEPANIGR-IN)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = PLSExtProc)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = DEPANIGR-IN)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
Please guide me resolving this issue.
Regards,
Striker
[Updated on: Tue, 16 July 2013 06:21] Report message to a moderator
|
|
|
|
Re: ORA-12545 error in PL/SQL developer in windows 7 [message #590258 is a reply to message #590256] |
Tue, 16 July 2013 07:01 |
debasisp
Messages: 10 Registered: February 2010 Location: BANGALORE,INDIA
|
Junior Member |
|
|
Michel,
Thanks for responding to my query. Please find the details below:
1/ What is the result of "ping DEPANIGR-IN"?
Pinging DEPANIGR-IN [102.46.208.165] with 32 bytes of data:
Reply from 102.46.208.165: bytes=32 time<1ms TTL=128
Reply from 102.46.208.165: bytes=32 time<1ms TTL=128
Reply from 102.46.208.165: bytes=32 time<1ms TTL=128
Reply from 102.46.208.165: bytes=32 time<1ms TTL=128
Ping statistics for 102.46.208.165:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
2/ I advise you to NOT use such character than - in names
Truely agreed. I even tried with my ip adress in the host= but i got the same error again.
3/ Are you sure you use THIS tsnnames.ora? yes. This is the oracle server which i installed in my system.
4/ What is yuor sqlnet.ora?
in oracle home the sqlnet.ora file is having the details as SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
In devsuite 10 home the sqlnet.ora is having details as SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)
5/ What your TNS_ADMIN variable? Michel, I am not sure about the TNS_ADMIN variable. I searched it in registry but dint find anything like that. Could you please guide?
6/ What is the result of "tnsping orcl"?
C:\Users\depanigr>tnsping orcl
TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 16-JUL-2
013 17:23:48
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
D:\app\depanigr\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = DEPANIGR
-IN)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_N
AME = orcl)))
OK (0 msec)
7/ Copy and past your connection string? i m trying to connect using scott/abcdef@orcl
|
|
|
|
|
|
Re: ORA-12545 error in PL/SQL developer in windows 7 [message #590556 is a reply to message #590554] |
Fri, 19 July 2013 05:14 |
debasisp
Messages: 10 Registered: February 2010 Location: BANGALORE,INDIA
|
Junior Member |
|
|
No.. I dint change any system configuration nor any additional software has been installed. I was using windows xp earlier. Now everybody has been asked to upgrade to windows 7. I installed windows 7. Then i installed oracle devsuite 10g client and then oracle 11g server. I tried connecting scott/abcdef@orcl through sqlplus. but when installed pl/sql developer and tried logging in i got the error. As mentioned earlier i have the same tns file in both devsuite folder and in oracle home admin folder.
|
|
|
Re: ORA-12545 error in PL/SQL developer in windows 7 [message #590868 is a reply to message #590253] |
Tue, 23 July 2013 11:43 |
Kaeluan
Messages: 179 Registered: May 2005 Location: Montreal, Quebec
|
Senior Member |
|
|
Hi,
From what i can see in your log you are using Oracle 11g 64 bits. PL/SQL Developper is working only with 32 bits client.
If you go in PL/SQL Developper in the menu "Tools"-"Preferences" there is a place to specify the oracle home that need to be used by PL/SQL Developper, check the avalable values in the list.
Also if you have more than 1 Oracle home, verify if your TNSNAMES and SQLNET.ora are deployed in all oracle home.
Hope it help
|
|
|