SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
DatabaseConnectEx

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
DatabaseConnectEx
Author Message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post DatabaseConnectEx Reply with quote

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

Fri Jan 19, 2001 3:17 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: DatabaseConnectEx Reply with quote

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

Fri Jan 19, 2001 4:09 pm View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Re: DatabaseConnectEx Reply with quote

I would like to use the native connection but I am using ODBC because it appears to be more stable. When I use a Native Oracle 8.0.4 - 8i database profile the second time the job runs the scheduler disappears and has to be restarted. On the plus side when I do use the Native connection the first time it does work properly.

Actually before I posted this I ran the job in debug mode and watched it disconnect from the database before stepping to the next line.

Connection pooling is on for 60 seconds. I turned off connection pooling and got the the same result.

Addition Information: Useing Oracle Client Software Version 8.1.6 (8i Rel 2 )

Fri Jan 19, 2001 5:07 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: DatabaseConnectEx Reply with quote

It sounds like a bug, I forwarded this issue to support

: I would like to use the native connection but I am using ODBC because it
: appears to be more stable. When I use a Native Oracle 8.0.4 - 8i database
: profile the second time the job runs the scheduler disappears and has to
: be restarted. On the plus side when I do use the Native connection the
: first time it does work properly.

: Actually before I posted this I ran the job in debug mode and watched it
: disconnect from the database before stepping to the next line.

: Connection pooling is on for 60 seconds. I turned off connection pooling and
: got the the same result.

: Addition Information: Useing Oracle Client Software Version 8.1.6 (8i Rel 2 )

Fri Jan 19, 2001 6:26 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: DatabaseConnectEx Reply with quote

In my tests this happens for ODBC connection only. When using native Oracle driver it works fine.

By the way, the stability problem with subsequent Oracle connections has been fixed in recent versions, please upgrade your 24x7 Scheduler

: I would like to use the native connection but I am using ODBC because it
: appears to be more stable. When I use a Native Oracle 8.0.4 - 8i database
: profile the second time the job runs the scheduler disappears and has to
: be restarted. On the plus side when I do use the Native connection the
: first time it does work properly.

: Actually before I posted this I ran the job in debug mode and watched it
: disconnect from the database before stepping to the next line.

: Connection pooling is on for 60 seconds. I turned off connection pooling and
: got the the same result.

: Addition Information: Useing Oracle Client Software Version 8.1.6 (8i Rel 2 )

Fri Jan 19, 2001 6:52 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.