Page 1 of 1

DB2 lock

Posted: Wed Nov 28, 2012 9:33 am
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.

Posted: Wed Nov 28, 2012 1:38 pm
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.