Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Kubo Takehiro
RE: OCISuccessWithInfo exception [ reply ]  
2010-10-27 12:59
It will be fixed temporarily by changing line 354 of oci8.h as follows:

from:
if (__rv != OCI_SUCCESS) { \

to:
if (__rv != OCI_SUCCESS && __rv != OCI_SUCCESS_WITH_INFO) { \

This suppresses OCISuccessWithInfo exceptions.

I'll think it later probably at the next weekend.

By: Raimonds Simanovskis
OCISuccessWithInfo exception [ reply ]  
2010-10-11 16:41
In ruby-plsql issue tracker there is one issue
http://github.com/rsim/ruby-plsql/issues#issue/9

which describes issue that when logging in with user which password will soon expire then OCI8.new raises OCISuccessWithInfo exception (with the message stating my password is about expire).

I am just wondering that probably if connection was successful then probably it is not correct that exception is raised. Catching this exception in all places where I use OCI8.new would not look quite nice :)

Maybe it would be more correct to store such message somewhere in OCI8 object and then whoever wants to access it could call corresponding method to retrieve it?

Kubo - what do you thing about it?

Raimonds