Home » Developer & Programmer » Precompilers, OCI & OCCI » ORA-12560 TNS:protocol adapter error
ORA-12560 TNS:protocol adapter error [message #93492] Sat, 02 March 2002 12:00 Go to next message
billy stone
Messages: 1
Registered: March 2002
Junior Member
hello,

I am trying to run the cdemo1 sample on Windows 2000 but I keep getting the ORA-12560: TNS:protocol adapter error. I have set the correct username and password in cdemo1.c before compiling.

I am using Oracle 9i and I have the Oracle Client installed.
I am able to connect to Oracle using the command line with the following command sqlplus qa/tester@TESTSERV and I am also able to connect to Oracle using the Sqlplus Net8 client interface.

I have set ORACLE_HOME on the command line to the path of my oracle home directories. And just for kicks I have also set the ORACLE_SID on the command line to TESTSERV

My tnsnames.ora is configured properly

TESTSERV.COMPANY.NET =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PEPSI)(PORT = 1521))
)
(CONNECT_DATA =
(SID = TESTSERV)
(SERVICE_NAME = TESTSERV.COMPANY.NET)

)
)

None of the methods seem to work.Anyone have any ideas why I can't connect with the cdemo1 but I can connect using command line and SQLPLUS?

-Will
Re: ORA-12560 TNS:protocol adapter error [message #93536 is a reply to message #93492] Wed, 15 May 2002 23:23 Go to previous messageGo to next message
neeraj
Messages: 16
Registered: October 2001
Junior Member
try
to give the HOst IP like 165.98.234.4
instead of Host name like PEPSI inyour case
Re: ORA-12560 TNS:protocol adapter error [message #93543 is a reply to message #93492] Thu, 23 May 2002 06:02 Go to previous messageGo to next message
Torben Pedersen
Messages: 1
Registered: May 2002
Junior Member
Try to check the oracle_sid in the windows registry.
(HKEY_LOCAL_MASHINESOFTWAREORACLEHOME(X)ORACLE_SID)
A not existing oracle_sid can be the problem.
Re: ORA-12560 TNS:protocol adapter error [message #93560 is a reply to message #93492] Wed, 19 June 2002 13:01 Go to previous messageGo to next message
Wolfgang
Messages: 6
Registered: June 2002
Junior Member
. "ORACLE_SID = <sid>" must be set in the environment. On NT, a corresponding entry must be available in the registry under HKEY_LOCAL_MACHINE -> SOFTWARE -> ORACLE and the subdirectory HOME-.
Re: ORA-12560 TNS:protocol adapter error [message #93604 is a reply to message #93492] Tue, 30 July 2002 05:52 Go to previous message
ashok
Messages: 32
Registered: July 2000
Member
in my office lan is there in that one system is oracle dba server is there that is using my client for training purpose suddenly when he connect to sql giving username & password this error is showing, what should i do.reply me soon
Previous Topic: pro*c with forms6i documetation
Next Topic: Why am I getting an OCI_INVALID_HANDLE from OCISessionBegin?
Goto Forum:
  


Current Time: Sun Nov 24 13:38:34 CST 2024