Try the following: 1: Place Wait(60) in between to check whether it gets disconnected after the first connection 2. Check your ODBC driver documentation to find out whether it has "connection pooling" Just out of my curiosity, why don't you use native driver for Oracle connection instead of ODBC? : I am currently using the 2.4.1 version of the 24x7 scheduler. : I have created a JAL script to move data from a production Oracle 8 database : to a test Oracle 8 database. : DatabaseConnectEx( "ODBC", "ORATEST", : "ORATEST", "USER1", "PASS1", FALSE ) : * : * Various JAL database commands : * : DatabaseDisconnect( ) : DatabaseConnectEx( "ODBC", "ORATEST", : "ORATEST", "USER2", "PASS2", FALSE ) : * : * Various JAL database commands : * : DatabaseDisconnect( ) : The problem is that the second connect does not work properly. Watching the : connection occur on the database session monitor shows that the script is : connecting as USER1/PASS1 not USER2/PASS2. : I have split the script into two jobs and this works fine but I think I : should be able to connect and reconnect multiple times in a single JAL : script. : John
|