rolled back because of a deadlock or timeout

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
muralidwhds
Participant
Posts: 39
Joined: Sat Jul 05, 2008 3:25 am
Location: chennai

rolled back because of a deadlock or timeout

Post by muralidwhds »

Hi,

I am getting the below error while reading the data and writing into same table in db2 stage at db2 database.

IBM][CLI Driver][DB2/AIX64] SQL0911N The current transaction has been rolled back because of a deadlock or timeout. Reason code "68". SQLSTATE=40001

SQLFetch: Error retrieving results from server.

How can overcome this one suggest on this.
MALLI MURALI
major
Premium Member
Premium Member
Posts: 167
Joined: Mon Nov 26, 2007 12:21 am

Post by major »

Hi,

Are you using same Datastage job to read and write the db2 table ?
Is there any other process whcih has locked your target table for processing?

Check for table locks with DBA and get them cleared after conforming that "killing" wont affect others job/process.

Thanks
muralidwhds
Participant
Posts: 39
Joined: Sat Jul 05, 2008 3:25 am
Location: chennai

Post by muralidwhds »

i talked DBA Guys they confirm on that no lock on those tables.

is there any way to change the my SQL code.

i am using the following SQL then updating into the MCY.PAPERWORK_HEADER using the db2 stage.

SELECT col1,col2,col3,table1.col4,tabl1.PWH_ID FROM schema.tabl2,schema.table2 WHERE INT(ORIGINAL_PMT_ID) = SUPPLIER_PMT_NUM AND PMT_SYSTEM = 'xxxx'

AND STATUS = 'EPD' AND BENE_APPROVED = 'Y' AND HOLD = 'N'
MALLI MURALI
Post Reply