Page 1 of 1

DB2 Transaction Logs filled by before sql

Posted: Wed Oct 15, 2014 8:24 am
by Developer9
Hi Guru's

I am using a DB2 connector stage which has a before sql to delete data, as the array size option in this stage cannot be used for before sql , transaction logs are getting filled up, Is there any other way i can do this delete by committing after every few thousand records?

Posted: Wed Oct 15, 2014 9:19 am
by chulett
Only if you write some SQL PL and call it Before SQL. You're not deleting all records, are you?

Posted: Wed Oct 15, 2014 9:21 am
by Developer9
I am deleting records based on a where clause

Posted: Wed Oct 15, 2014 9:28 am
by chulett
OK, then you will definitely need something 'procedural' if you think intermittent commits are the answer. Have you talked to your DBA about possibly increasing the log sizes?