Perl script that run long time and did not return result cod

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
sammak1688
Posts: 2
Joined: 09 Feb 2010 03:53

Perl script that run long time and did not return result cod

#1 Post by sammak1688 » 09 Feb 2010 04:02

I have a Perl script that called a sql file and then Oracle stored procedure and run long time (about 1.5 hours). It called the sql by $rtnCode = system(sqlplus -s job.sql);

I have the following code to check the return code:

if (($rtnCode >>= 8) != 0) {
writeErr("Failed to run the job");
}

But it did not return the return code (may be because it runs for long time). Is there any settings that can get the return code ?

sammak1688
Posts: 2
Joined: 09 Feb 2010 03:53

Re: Perl script that run long time and did not return result cod

#2 Post by sammak1688 » 09 Feb 2010 19:35

There are some more information about the scenario:

The application server is in the DMZ zone and the database is in the trusted zone. Is the problem related to the time out of the tcpip or the settings of the oracle database ?

Please help.

Post Reply