Page 1 of 1

Deadlock detected while inserting into Oracle table

Posted: Mon Sep 01, 2008 12:07 am
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.

Posted: Mon Sep 01, 2008 12:29 am
by umamahes
Is there are any bitmap indexes enabled on that table.If you haveany bitpam indexes please make unusable before loading.

Posted: Mon Sep 01, 2008 12:32 am
by ray.wurlod
Same table as source?

Posted: Mon Sep 01, 2008 12:40 am
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

Posted: Mon Sep 01, 2008 2:32 am
by jenny_wang
try to use sequential mode when insert.

Posted: Mon Sep 01, 2008 9:00 am
by fredy
Yes. I have tried it. But still getting the same deadlock error :cry:

Posted: Tue Sep 02, 2008 6:07 am
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