Home » Developer & Programmer » Precompilers, OCI & OCCI » Pro* c error :
Pro* c error : [message #93644] Sun, 08 September 2002 21:10 Go to next message
Messages: 132
Registered: September 1999
Senior Member
After precompiling and compiling my pro c code using MSVC++6 I am getting these two errors on executing the program
1)ORA-12560 TNS Protocol Adapter error.
followed by
2)ORA 01012 not logged on.
I have provided the username and password and also set the ORACLE_SID environment variable on my machine.
Appreciate any help in this matter.
Re: Pro* c error : [message #93649 is a reply to message #93644] Tue, 10 September 2002 20:40 Go to previous message
rahul tarar
Messages: 4
Registered: July 2002
Junior Member
dear sunil,
check ur tns.ora...whether u are connecting to the right oracle srvr.
this(12560) is general protocol adapter error.
and...may be the listener is not working on srvr side.

2nd err. msg.(ora 1012)..is related to the same prob.
here is the ora documentation for this err. code.
ORA-01012 not logged on

Cause: A host language program issued an Oracle call, other than OLON or OLOGON, without being logged on to Oracle. This can occur when a user process attempts to access the database after the instance it is connected to terminates, forcing the process to disconnect.

Action: Log on to Oracle, by calling OLON or OLOGON, before issuing any Oracle calls. When the instance has been restarted, retry the action.


Previous Topic: 'ctrl+c' does not works in pro*c applications,while running on Linux 7.1.
Next Topic: How can I connect a remote oracle with pro*c?
Goto Forum:

Current Time: Mon May 27 09:45:13 CDT 2024