Idea to resolve database table lock after job abort?

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
MT
Premium Member
Premium Member
Posts: 198
Joined: Fri Mar 09, 2007 3:51 am

Idea to resolve database table lock after job abort?

Post by MT »

Hi,

I have a DS job upserting into a DB2 table. When the job aborts the table is locked by DS. Any idea how I could solve it WITHIN DS and WITHOUT having the dba forcing the connection?


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

Post by ray.wurlod »

Transaction size = 1.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
MT
Premium Member
Premium Member
Posts: 198
Joined: Fri Mar 09, 2007 3:51 am

Post by MT »

Hi Ray
ray.wurlod wrote:Transaction size = 1.
well this is a good idea but this has a performance impact on every run.
Any additional ideas to kind of reset it via DataStage which I could do only when a error had happened (hopefully rarely)

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

Post by ray.wurlod »

If you're running the job from a sequence, use "reset if required, then run".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
MT
Premium Member
Premium Member
Posts: 198
Joined: Fri Mar 09, 2007 3:51 am

Post by MT »

Hi Ray
ray.wurlod wrote:If you're running the job from a sequence, use "reset if required, then run".
well I tried to see if a job reset can release the table lock after the job was aborted but it did not work.
I think this would be the same from within a sequence, wouldn't it?

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

Post by ray.wurlod »

I assumed you'd released the lock from within the database. DataStage doesn't have any way natively to do this, but you could issue the relevant DDL statement in a Before SQL command of a stage in a job that does nothing else.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply