ORA-12560: TNS:protocol adapter error

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ralle1
Posts: 43
Joined: Thu 27 May 2010 15:01

ORA-12560: TNS:protocol adapter error

Post by ralle1 » Fri 25 May 2012 07:45

Dear Devart Team!

One of my customer has the following problem:
When trying to connect to the oracle database with TOraSession, the following error occurs:
“ORA-12560: TNS:protocol adapter error”

I just can’t reproduce this error on my development environment, so I hope you can give me a hint how to solve this problem.

The software is written in Delphi 2007 and I’m using Devart ODAC 6.90.0.60 for Delphi 2007 for Win32.

The customer uses the following hardware:
Client:
- Citrix 4.5 Server on Windows 2003 Server (32Bit) (Dual Xeon, 4GB Ram, 30GB VDisk)
- ORACLE 10g Client

DB Server:
- ORACLE 10g Real Applikation Cluster


Many thanks in advance for your help!

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: ORA-12560: TNS:protocol adapter error

Post by AlexP » Fri 25 May 2012 08:39

hello,

There are rather a lot of reasons for this error occurrence. For eaxample, enabled FireWall, incorrectly set records in tnsname.ora or in sqlnet.ora. To localize the error. Try connecting to the Oracle server using a standard SQLPlus application. If you get the same error - this problem is client-side.

ralle1
Posts: 43
Joined: Thu 27 May 2010 15:01

Re: ORA-12560: TNS:protocol adapter error

Post by ralle1 » Fri 25 May 2012 12:07

Thank you for your tipps. We will try it with an SQLPlus application.

I forgot to mention that we already tried to connect with an older Delphi BDE Application which is using TDatabase/TQuery (BDE native Oracle Driver). This Application connects without problems on the same environment. can you explain that?

Thank you !

ralle1
Posts: 43
Joined: Thu 27 May 2010 15:01

Re: ORA-12560: TNS:protocol adapter error

Post by ralle1 » Fri 25 May 2012 12:20

I've got some further information:

1. The Applications connects without problems on a windows client, the problem just occurs on citrix.

2. They can't start SQLPlus on Citrix. But the Tool "Toad for Oracle" runs on citrix and it connects without problems.

Please help me.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: ORA-12560: TNS:protocol adapter error

Post by AlexP » Fri 25 May 2012 14:19

hello,

Unfortunately, we haven't tested our products on Citrix 4.5 Server, however, if the application can connect to Oracle from Windows, then most possibly the problem is due to the Citrix settings directly, since work with Oracle client libraries runs equally.

Post Reply