During nightly sessions I am experiencing deadlock issues that are recorded in my ETL log as follows:
Code:
READER_1_2_1> Mon Nov 08 20:47:34 2004
READER_1_2_1> RR_4035 SQL Error [
[IBM][CLI Driver][DB2/NT] SQL0911N The current transaction has been rolled back because of a deadlock or timeout. Reason code "2". SQLSTATE=40001
sqlstate = 40001
Database driver error...
Function Name : Execute
SQL Stmt : SELECT BIKE_ITEM_MASTER.IPROD FROM BIKE_ITEM_MASTER
Deadlock error encountered.
Database driver error...
Function Name : Execute
SQL Stmt : SELECT BIKE_ITEM_MASTER.IPROD FROM BIKE_ITEM_MASTER
Deadlock error encountered.].
READER_1_2_1> Mon Nov 08 20:47:34 2004
READER_1_2_1> BLKR_16004 ERROR: Prepare failed.
WRITER_1_2_1> WRT_8333 Rolling back all the targets due to fatal session error.
WRITER_1_2_1> WRT_8325 Final rollback executed for the target [SFCC_COMBINATIONS] at end of load
WRITER_1_2_1> WRT_8035 Load complete time: Mon Nov 08 20:47:34 2004
I have not changed the isolation level of the connection yet (CS as yet), but would changing it to UR resolve this. What would be possible drawbacks?