Occi Connection Error [message #510727] |
Tue, 07 June 2011 06:57 |
|
oloap
Messages: 1 Registered: June 2011
|
Junior Member |
|
|
Hi to all,
I work with a OS Suse Linux Enterprise Server 9 on Itanium and I have a problem with DB connections.
The version of libocci is
10.2.0.3.0 for g++ 3.4.3 [RHEL AS 4.0 64-bit (IA 64)]
(I tried also to downgrade occi version but the problem is the same).
When the DB is up there's no problem but when I shut down the DB my program don't catch the SQLException and the system goes down.
(I have the same problem also when the DB is running but connection parameters are wrongs).
Here is my code:
try{
envSma[thread_idx] =
oracle::occi::Environment::createEnvironment
(oracle::occi::Environment::OBJECT);
conSma[thread_idx] =
envSma[thread_idx]->createConnection
(SMA_USER,SMA_PASSWD,SMA_DB_HOST);
}
catch(oracle::occi::SQLException &e) {
esito = occi_trace_sql_exception (&e, thread_idx);
return (esito);
}
All the variables are already correctly defined.
Could you help me?
Thanks a lot
Paolo
|
|
|