OCIServerAttach returns ORA-1034 , even if database is up and running [message #568003] |
Tue, 09 October 2012 01:37 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](http://www.gravatar.com/avatar/754ffdec6c924a1a5ade13e42cd4ea5c?s=64&d=mm&r=g) |
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 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](http://www.orafaq.com/forum/images/custom_avatars/102589.gif) |
Michel Cadot
Messages: 68665 Registered: March 2007 Location: Nanterre, France, http://...
|
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
|
|
|