SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
how to wait until a database command has finis

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
how to wait until a database command has finis
Author Message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post how to wait until a database command has finished Reply with quote

Hi,
I have a jal script that executes a database stored proc.
This proc may take 10 mins or so to finish, it then produces a file.
my next line in the jal looks for the existence of this file if it is there it processes it.
I am worried that the jal may issue the database command but not wait until it has finished processing and
go straight onto the next jal statement in which case the file will not be found.
Is there a way to stop this happening or am i supposed to create 2 jobs - one that runs the database command and the other
a file watch job that looks for the file ?

thanks.

Thu May 27, 2004 9:21 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: how to wait until a database command has finis Reply with quote

24x7 normally waits for database commands to complete before returning control back to the script or job notification action. Only in a few rare cases it continues without waiting and only if the "Asynchronous operations" option is checked in the database profile properties. Uncheck this option to play it safe.
: Hi,
: I have a jal script that executes a database stored proc.
: This proc may take 10 mins or so to finish, it then produces a file.
: my next line in the jal looks for the existence of this file if it is there
: it processes it.
: I am worried that the jal may issue the database command but not wait until
: it has finished processing and
: go straight onto the next jal statement in which case the file will not be
: found.
: Is there a way to stop this happening or am i supposed to create 2 jobs - one
: that runs the database command and the other
: a file watch job that looks for the file ?

: thanks.

Thu May 27, 2004 9:42 am View user's profile Send private message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post Re: how to wait until a database command has finis Reply with quote

: 24x7 normally waits for database commands to complete before returning
: control back to the script or job notification action. Only in a few rare
: cases it continues without waiting and only if the "Asynchronous
: operations" option is checked in the database profile properties.
: Uncheck this option to play it safe.
OK Cheers

Thu May 27, 2004 10:01 am 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.