First, the system infrastructure:
Server: weblogic11g Cluster
Database: Oracle Database RAC
Error message: 1.java.sql.sqlrecoverableexception:closed Connection
2.Test ' Select 1 from DUAL ' Set up for pool ' Mds-soa ' failed with exception: ' Java.sql.SQLRecoverableException:IO Error: Broken Pipe "
Log information is the above two, you can see the input source of the problem.
Solution and steps: 1.check the data source in WebLogic Jndi can be connected properly. After verification;
2. Check that the database server is healthy. After checking, a database server was found down.
Then check the business data, found that after the down, the WebLogic server has been reported for two consecutive days of this error.
This situation is very illogical;
3. The first thing we suspect is that there is a problem with the installation configuration of the RAC environment and there is no timely switchover after a database in the cluster has been down.
It is not possible to do this because of the investigation.
4. Return to the WebLogic cluster configuration again, we carefully check the configuration of the data source, one click Domain->service->data source->configuration->connection Pool
In advance, we found a configuration of "Test Connectionson reserve" with a property value of false
The meaning of this property is: "Enables WebLogic Server to test the connection before providing the connection to the client. (Requires specifying the test table name.) This test adds a short delay in response to a client request for a connection in the pool, but ensures that the client receives a valid connection. MBean properties (not applicable to application modules) "
At this point, change the property value to True, the problem is resolved
If this property is true, the SQL Select 1 from DUAL is checked first when invoking the database in the same way that Jndi is called, and if the value is not NULL, WebLogic will establish a connection to a database server in the RAC, and if the value is null, The RAC is reassigned back to the other servers.
Resolve WebLogic Error: Java.sql.SQLRecoverableException:IO Error:broken pipe