OCIServerAttach returns ORA-1034 , even if database is up and running [message #568003] |
Tue, 09 October 2012 01:37 |
|
swaorclser
Messages: 56 Registered: August 2011
|
Member |
|
|
Hello All,
We are using OCI call library to connect to Oracle database through one application. When we try to run this application through valgrind( a memory leak detection tool for linux) then, OCIServerAttach() call is failing to connect to db and it says that "ORA-1034 :Oracle not available"," Oracle instance may be down", etc.
However, our oracle instance is running and database is open.
When we run our application normally ( not through the tool) then everything is working fine.
What could be the probable reason for this error?
Thanks in advance.
Regards,
swaorclser
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: OCIServerAttach returns ORA-1034 , even if database is up and running [message #568201 is a reply to message #568199] |
Wed, 10 October 2012 04:18 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Well, so my guess is there is a bug in OCI function and valgrind forbids to correctly set the Oracle SID into a (not valid) variable.
So either you do use this tool, either you raise a SR to Oracle but I bet they will answer you to apply the latest patchset or upgrade to 11.2 or even both.
Regards
Michel
|
|
|