Raise a error if database(Oracle) connectivity is failed

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
bachi
Participant
Posts: 28
Joined: Sun May 25, 2008 7:02 am

Raise a error if database(Oracle) connectivity is failed

Post by bachi »

Hi All,

I have requirement : before I run my job I have to check database connectivty and if it is failed I have to try after 10 then also failed the error message should be send in sequence

please help on this,

I sure that we need Unix script for this can you help to write that script

thanks in advance

Ravi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There are many ways to do this, including a small 'do nothing' job that connects to that database that you Validate rather than run. For the scripted approach, involve your DBA.
Last edited by chulett on Thu Oct 29, 2009 7:38 am, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
bachi
Participant
Posts: 28
Joined: Sun May 25, 2008 7:02 am

Raise a error if database(Oracle) connectivity is failed

Post by bachi »

Can you please tell me one way of doing other than script?

Thanks,
Ravi
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

he did tell you another way. Write a job that connects to the database (a dummy read, for example) and then it is validated instead of run; the return code from the validate run can be used in a sequence job.
bachi
Participant
Posts: 28
Joined: Sun May 25, 2008 7:02 am

Raise a error if database(Oracle) connectivity is failed

Post by bachi »

Thanks
Post Reply