Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: DBMS_SCHEDULER external jobs failing but status of SUCCEEDED?!?!

Re: DBMS_SCHEDULER external jobs failing but status of SUCCEEDED?!?!

From: Radoulov, Dimitre <cichomitiko_at_gmail.com>
Date: Wed, 1 Nov 2006 12:39:05 +0100
Message-ID: <4548876f$0$49195$14726298@news.sunsite.dk>


>> Cannot reproduce on Solaris 8, Oracle 10.2.0.2.0 64-bit.
>> Try to see/log everything the shell executes with xtrace and verbose
>> (set -xv).
>>
>> > Running on the server this returns -
>> > ls: 0653-341 The file XYZ* does not exist.
>>
>> What is "0653-341"?
>>
>>
>> Regards
>> Dimitre
>
> Hi Dimitre, thanks for replying. I've added the -xv, in additonal_info
> I get the following, the status is SUCCEEDED...
>
> STANDARD_ERROR="#!/bin/ksh -xv
>
> cd /home/hubbatch/era/staging
> + cd /home/hubbatch/era/staging
>
> ls ${1}*
> + ls XYZ*
> XYZ* not found
> "
>
> The 0653-341 is the error ls returns if a file does not exist. This is
> consitently shown, even when running ls in a shell.

What OS?
You could try to force the script to pass the exit status (even if on most systems the code you posted would pass it automatically):

ls "${1}"*
exit "$?"

Regards
Dimitre Received on Wed Nov 01 2006 - 05:39:05 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US