Locking the Table Jobs Failed

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

Locking the Table Jobs Failed

Post by reddy »

Hello sirs,

My Job failed beacuse of Locking table please advise me how to set the job
means i have to set some properties,i am using ODBC Stages.

Please advise me.

Thanks in advance.

Thanks
Narasa
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Try resetting the job after it aborts.

You may have to reconsider your job design to avoid locking.
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

Post by reddy »

Sainath.Srinivasan wrote:Try resetting the job after it aborts.

You may have to reconsider your job design to avoid locking.
Hi Sai,


Thanks for quick response.

While running my job some are locking the table while updating,how can i

tell with datastage hey wait some time like that.

are there any transaction handling techinques or isolation level types
helps on this.

please advise.

Thanks alot
narasa
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You can define isolation levels for transactions in ansi standards. But before that, you need to check whether your job locks the table within itself. i.e. even if no other job is running which can lock them against yours.

If that is the case, you may have to change your design.
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

Post by reddy »

Sainath.Srinivasan wrote:You can define isolation levels for transactions in ansi standards. But before that, you need to check whether your job locks the table within itself. i.e. even if no other job is running which can lock them against yours.

If that is the case, you may have to change your design.
Sai,

because of some other mainframe jobs locking the table so please help me out.

Thanks
Narasa
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

Post by reddy »

Sainath.Srinivasan wrote:You can define isolation levels for transactions in ansi standards. But before that, you need to check whether your job locks the table within itself. i.e. even if no other job is running which can lock them against yours.

If that is the case, you may have to change your design.
Sai,

because of some other mainframe jobs locking the table so please help me out.

Thanks
Narasa
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If something external to DataStage is locking the table there is nothing DataStage can do except wait for that lock to be released. All YOU can do is scheduled the DataStage job to run at a time (and lock the table) when the mainframe is not locking the table.

This isn't a DataStage problem. You would experience exactly the same problem with anything that was trying to update the table while it is locked.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

Post by reddy »

ray.wurlod wrote:If something external to DataStage is locking the table there is nothing DataStage can do except wait for that lock to be released. All YOU can do is scheduled the DataStage job to run at a time (and lock the table) when the mainframe is not locking the table.

This isn't a DataStage problem. You would experience exactly the same problem with anything that was trying to update the table while it is locked.
Thanks for response.

But actual problem is datastage job is not waiting it's simply aborted..
please help me how to set job waited.
Thanks
Narasa
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You can do that from your underlying dbms. Ask your DBA.
ranga1970
Participant
Posts: 141
Joined: Thu Nov 04, 2004 3:29 pm
Location: Hyderabad

Post by ranga1970 »

ask your dba to unlock the table, table lock could be for various resons like roll back when you abort a process or so on...
RRCHINTALA
Post Reply