This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes ORA-03114 in oracleconnection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ORA-03114 in oracleconnection" Watch "ORA-03114 in oracleconnection" New topic
Author

ORA-03114 in oracleconnection

Jas Desai
Greenhorn

Joined: Sep 24, 2004
Posts: 1
Hi,
I have a small application that uses the concept of conenction pooling.
I store all my connections in a hasmap and everything works fine.

Now when the application is still running and the hashmap holds oracle conenction; and then if the oracle database is used, it thorws and ORA-03114 error when any of the conenctions in the pool is used to fire a query.

I am using Oracle 8.1.7.

How do I solve this without restarting the applciation.
I cannot use isClose(); since this method can be used only when a connection.close() is cloased. In this case, this does not happen.

Is there a way to find out that the database is restarted or the connection in th pool that I ma using is no more valid.

Thanks
Regards
Jasmina
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
re-make your hashmap inside your catch clause. how it sounds??
anyway dont know if DB shuts down the connections become invalid. if it is like that thanks for pointing out. never came across this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ORA-03114 in oracleconnection
 
Similar Threads
Closed Connection
Closed Connection
Hibernate ?
ORA-03114: not connected to ORACLE
java jdbc and oracle - maximum open cursors exceeded