My Oracle Support Banner

Set Up JDBC Connection Pool In WebLogic To Properly Handle Database Restarts (Doc ID 1062543.1)

Last updated on AUGUST 11, 2017

Applies to:

Oracle Communications Order and Service Management - Version 6.2.0 to 7.2.4 [Release 6.2.0 to 7.2]
Information in this document applies to any platform.
***Checked for relevance on 04-Mar-2013***
***Checked for relevance on 07-Oct-2014***
***Checked for relevance on 08-Mar-2016***

Purpose

Quite often, the WebLogic JDBC connection pools are not setup correctly and the database of these JDBC connection pools is re-started for various business reasons. This will cause applications hosted in WebLogic to become unavailable and huge log files created with endless errors due to invalid JDBC connections. The following is such an example:

<SQL Exception 17,008 : Closed Connection java.sql.SQLException: Closed Connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.driver.PhysicalConnection.createStatement(PhysicalConnection.java:731)
at oracle.jdbc.driver.PhysicalConnection.createStatement(PhysicalConnection.java:707)
at weblogic.jdbc.wrapper.Connection.createStatement(Connection.java:456)
at com.mslv.oms.dataaccesslayer.QueryProxy.createStatement(Unknown Source)
at com.mslv.oms.dataaccesslayer.a.execute(Unknown Source)
at com.mslv.oms.eventengine.EventDispatcherEJB.processTimeout(Unknown Source)
at com.mslv.oms.eventengine.EventDispatcher_86q3j1_EOImpl.processTimeout(EventDispatcher_86q3j1_EOImpl.java:503
at com.mslv.oms.poller.a.handleNotification(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor$ListenerWrapper.handleNotification(DefaultMBeanServerI
terceptor.java:1652)
at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:221)
at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:184)
at javax.management.timer.Timer.sendNotification(Timer.java:1295)
at javax.management.timer.Timer.notifyAlarmClock(Timer.java:1264)
at javax.management.timer.TimerAlarmClock.run(Timer.java:1347)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

Questions and Answers

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Purpose
Questions and Answers
 What can be done to avoid disconnects on DB restarts?

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.