Pro* c error : [message #93644] |
Sun, 08 September 2002 21:10 |
Sunil
Messages: 132 Registered: September 1999
|
Senior Member |
|
|
Hi,
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.
Regards
Sunil
|
|
|
Re: Pro* c error : [message #93649 is a reply to message #93644] |
Tue, 10 September 2002 20:40 |
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.
chalo...
cheers!
Rahul
|
|
|