|
Re: Connection between application and database server [message #618351 is a reply to message #618347] |
Fri, 11 July 2014 04:10   |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
What is the issue? Troubleshooting depends on the issue.
Open the application and check the functionality which needs to interact with DB. If it throws any error, try to connect to DB manually. See if connection is successfully established. If not, troubleshooting starts from here...
|
|
|
Re: Connection between application and database server [message #618353 is a reply to message #618351] |
Fri, 11 July 2014 04:23   |
Database admin
Messages: 365 Registered: September 2006 Location: india
|
Senior Member |
 
|
|
Hi Lalit,
Thanks for your suggestions.
Please find the error below and tell me where the problem is whether at database or webserver end and how to fix it?
The log files for virtual webserver Sapp02 are showing SQL Connection errors at regular intervals (see below)
This would appear to be affecting the remote job monitor which SimManager uses to control the execution of process
Currently we are seeing multiple job failures where jobs complete OK in the grid but are not shown as completed in SimManager causing the engineers to have to rerun their jobs
Is their any monitoring that can be done of the connection from Sapp02 to the database server ORCL01 ?
2014-06-19 23:50:23,905 ERROR [Services] com.msc.sdm.actionseq.RemoteJobMonitor.serviceRemoteProcesses (RemoteJobMonitor.java:334) - SDMException due to 'select ObjectID, DataClassID from V_DS_96 where ObjectID = ?: java.sql.SQLException: Closed Connectio
'
select ObjectID, DataClassID from V_DS_96 where ObjectID = ?: java.sql.SQLException: Closed Connection
at com.msc.sdm.db.sql.SqlDatabaseConnection.getInstanceDataClassById(SqlDatabaseConnection.java:891)
at com.msc.sdm.db.impl.DatabaseConnectionImpl.getInstanceById(DatabaseConnectionImpl.java:467)
at com.msc.sdm.db.sql.SqlDatabaseConnection.getInstanceById(SqlDatabaseConnection.java:258)
at com.msc.sdm.db.impl.DatabaseConnectionImpl.getInstanceById(DatabaseConnectionImpl.java:520)
at com.msc.sdm.db.impl.ValueImpl.getReference(ValueImpl.java:497)
at com.msc.sdm.db.impl.ObjectHandleImpl.getReference(ObjectHandleImpl.java:242)
at com.msc.sdm.sdmobject.Process.getQueue(Process.java:411)
at com.msc.sdm.actionseq.RemoteJobMonitor.updateRemoteProcesses(RemoteJobMonitor.java:677)
at com.msc.sdm.actionseq.RemoteJobMonitor.serviceRemoteProcesses(RemoteJobMonitor.java:330)
at com.msc.sdm.actionseq.RemoteJobMonitor.service(RemoteJobMonitor.java:93)
at com.msc.sdm.actionseq.BaseMonitor.run(BaseMonitor.java:110)
at java.lang.Thread.run(Unknown Source)
Caused by: 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.prepareStatement(PhysicalConnection.java:840)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:759)
at oracle.jdbc.OracleConnectionWrapper.prepareStatement(OracleConnectionWrapper.java:92)
at com.msc.sdm.db.sql.SqlDatabaseConnection.getInstanceDataClassById(SqlDatabaseConnection.java:864)
... 11 more
== Original Exception was:
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.prepareStatement(PhysicalConnection.java:840)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:759)
at oracle.jdbc.OracleConnectionWrapper.prepareStatement(OracleConnectionWrapper.java:92)
at com.msc.sdm.db.sql.SqlDatabaseConnection.getInstanceDataClassById(SqlDatabaseConnection.java:864)
at com.msc.sdm.db.impl.DatabaseConnectionImpl.getInstanceById(DatabaseConnectionImpl.java:467)
at com.msc.sdm.db.sql.SqlDatabaseConnection.getInstanceById(SqlDatabaseConnection.java:258)
at com.msc.sdm.db.impl.DatabaseConnectionImpl.getInstanceById(DatabaseConnectionImpl.java:520)
at com.msc.sdm.db.impl.ValueImpl.getReference(ValueImpl.java:497)
at com.msc.sdm.db.impl.ObjectHandleImpl.getReference(ObjectHandleImpl.java:242)
at com.msc.sdm.sdmobject.Process.getQueue(Process.java:411)
at com.msc.sdm.actionseq.RemoteJobMonitor.updateRemoteProcesses(RemoteJobMonitor.java:677)
at com.msc.sdm.actionseq.RemoteJobMonitor.serviceRemoteProcesses(RemoteJobMonitor.java:330)
at com.msc.sdm.actionseq.RemoteJobMonitor.service(RemoteJobMonitor.java:93)
at com.msc.sdm.actionseq.BaseMonitor.run(BaseMonitor.java:110)
at java.lang.Thread.run(Unknown Source)
[Updated on: Fri, 11 July 2014 04:29] Report message to a moderator
|
|
|
Re: Connection between application and database server [message #618354 is a reply to message #618353] |
Fri, 11 July 2014 04:35   |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
I don't know what simmanager does and how it interacts with DB.
As I said, if you could connect to databse manually, then you need to troubleshoot to find what prevents the application from connecting to DB. So did you try connecting to DB manually? Perhaps, connection through jdbc is failing and that's the cause.
|
|
|
|
Re: Connection between application and database server [message #618359 is a reply to message #618357] |
Fri, 11 July 2014 04:55   |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
Database admin wrote on Fri, 11 July 2014 15:13Quote:So did you try connecting to DB manually?
I tried connecting to database and it was successful.I do not find any error while connecting to database.
That proves Oracle is just the victim and not the culprit.
Quote:Does it mean the problem is at application end ?
Don't you think so? Check how does simmanager connects to DB. If everything was fine earlier, and if this is occuring recently then check what has been changed in the connection string. Only you would know about it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|