We are using a Windows Service Application with two threads each with its own TDataModule and its own TOracleSession. Each thread tests the connection with Oracle every minute (ini-file setting) by using CheckConnection(True).
If the connection is lost or not available then the threads wait for 10 minutes and try to connect again using again CheckConnection(True).
The following situation occurs:
During the backup (every weekend) of the database both threads fail to make a connection and return the value ccError.
After 10 minutes the threads try to make a connection again. One of the threads fails to make a connection, the return value of the CheckConnection is ccError.
The second thread (also using CheckConnection, same function, same base class) does not return a value for this function and appears to be hanging (pretty sure after 2 days waiting).
After 10 minutes the first thread tries to make a connection again, this thread now also fails to make a connection and also appears to be hanging.
We are using Delphi 2005 and Oracle 9 on a Windows 2000 Server. The property ThreadSafe of the TOracleSession is set to True (True or False does not seem to make a difference).
If anyone has any ideas how to solve this problem please let us know. We are now restarting the service after every weekend.
Thanks
If the connection is lost or not available then the threads wait for 10 minutes and try to connect again using again CheckConnection(True).
The following situation occurs:
During the backup (every weekend) of the database both threads fail to make a connection and return the value ccError.
After 10 minutes the threads try to make a connection again. One of the threads fails to make a connection, the return value of the CheckConnection is ccError.
The second thread (also using CheckConnection, same function, same base class) does not return a value for this function and appears to be hanging (pretty sure after 2 days waiting).
After 10 minutes the first thread tries to make a connection again, this thread now also fails to make a connection and also appears to be hanging.
We are using Delphi 2005 and Oracle 9 on a Windows 2000 Server. The property ThreadSafe of the TOracleSession is set to True (True or False does not seem to make a difference).
If anyone has any ideas how to solve this problem please let us know. We are now restarting the service after every weekend.
Thanks