Oracle deadlock when trying to upsert.
Moderators: chulett, rschirm, roy
Oracle deadlock when trying to upsert.
Hello,
Couple of our jobs aborted in prod with oracle deadlock, when trying to upsert. also got this message in log: oci_invalid_handle
The jobs are running fine in Dev. We are using 4 node config file in production. partition is Auto.
Please give your views on this.
Thanks in advance...
reddy.
Couple of our jobs aborted in prod with oracle deadlock, when trying to upsert. also got this message in log: oci_invalid_handle
The jobs are running fine in Dev. We are using 4 node config file in production. partition is Auto.
Please give your views on this.
Thanks in advance...
reddy.
Your parallel processes are deadlocking. This is where you would need to override the auto partitioning and control it so it doesn't deadlock. Probably hash partitioned over the keys involved would help, I'd have a chat with your DBA and confirm.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Thanks Hullet and Duke
we changed the partition from auto -> Hash, no success!!
changed UPSERT ROW COMMIT INTERVAL from 5000 to 1000, no success.
Interestingly we run the job against same data(prod) in testing environment, and testing database, its works fine!!(does not work in prod)
is this completely an application issue? or DB issue as well..
please share your thoughts..
we changed the partition from auto -> Hash, no success!!
changed UPSERT ROW COMMIT INTERVAL from 5000 to 1000, no success.
Interestingly we run the job against same data(prod) in testing environment, and testing database, its works fine!!(does not work in prod)
is this completely an application issue? or DB issue as well..
please share your thoughts..
-
- Premium Member
- Posts: 783
- Joined: Mon Jan 16, 2006 10:17 pm
- Location: Sydney, Australia
Thank you all!!!
The issue is resolved, DBA had to change INITTRANS Value from 1(Default), to 8. There was no issue from Datastage.
Thanks all.
Thanks all.