Deadlock detected while inserting into Oracle table

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
fredy
Participant
Posts: 6
Joined: Fri Aug 22, 2008 2:34 am

Deadlock detected while inserting into Oracle table

Post by fredy »

Hi,

I have 9 million records in my source table. When i tried to load all the records then i got the following error:
Array execute failed for insert:
qlcode is: -60
esql complaint: ORA-00060: deadlock detected while waiting for resource

When i filter for 50 records in the source then the job runs successfully.

I have given the insert mode as UPSERT. In that update is a dummy query (Where 1=2)

Your help is highly appreciated.

Thanks in advance.
umamahes
Premium Member
Premium Member
Posts: 110
Joined: Tue Jul 04, 2006 9:08 pm

Post by umamahes »

Is there are any bitmap indexes enabled on that table.If you haveany bitpam indexes please make unusable before loading.
HI
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Same table as source?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
fredy
Participant
Posts: 6
Joined: Fri Aug 22, 2008 2:34 am

Post by fredy »

Thanks for your replies.

Target table is different from source table. No index on target table.

But one stored procedure (which will refer the target stage) is used before the target stage
jenny_wang
Participant
Posts: 26
Joined: Mon Nov 19, 2007 2:55 am
Location: Hangzhou

Post by jenny_wang »

try to use sequential mode when insert.
fredy
Participant
Posts: 6
Joined: Fri Aug 22, 2008 2:34 am

Post by fredy »

Yes. I have tried it. But still getting the same deadlock error :cry:
gabrielac
Participant
Posts: 29
Joined: Mon Sep 26, 2005 3:39 pm

Post by gabrielac »

- Have you tried using the Load option instead of insert?
- Have you changed the upsert time for commit / rows for commit environment variables?

Gaby
Post Reply