DB2 lock

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
caola
Participant
Posts: 10
Joined: Tue Jul 24, 2007 3:42 am

DB2 lock

Post by caola »

Hi guys,

I use DB2 API stage as target stage and choose "clear the table then insert rows".

What does DS do on this action? Does it execute below 2 sqls separately?
Delete from XXX table;
Insert into XXX table;

Will DS keep the table lock between these 2 sqls? or it will release the lock after delete and get it back again when insert?

Thanks for any comments.
:)
MT
Premium Member
Premium Member
Posts: 198
Joined: Fri Mar 09, 2007 3:51 am

Post by MT »

Hi caola,

DataStage will use the two statements - a delete and a insert
but I am not sure about the size of the transaction.
regards

Michael
Post Reply