Oracle deadlock problem

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
ankita
Participant
Posts: 57
Joined: Sun Nov 13, 2005 11:17 pm

Oracle deadlock problem

Post by ankita »

Hi,
I am using Oracle as target with 'User defined update only' option.
While running the job with 4 node configuration it's throwing deadlock problem to update approx. 63,000 records .
There is no duplicate record in the input stream, what could be the reason ?

Thanks in advance !
Ankita
Abburi
Participant
Posts: 31
Joined: Tue May 29, 2007 12:38 pm

Re: Oracle deadlock problem

Post by Abburi »

ankita wrote:Hi,
I am using Oracle as target with 'User defined update only' option.
While running the job with 4 node configuration it's throwing deadlock problem to update approx. 63,000 records .
There is no duplicate record in the input stream, what could be the reason ?

Thanks in advance !
Ankita
Check is there any other process trying to do the update or insert at the same time, when your job is running to do the same.
Regards,
Abburi
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Try running on a single node, just for debuggin purposes and see if the problem persists.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ankita
Participant
Posts: 57
Joined: Sun Nov 13, 2005 11:17 pm

Post by ankita »

With single node it's running fine in dev, but the same job is running in production with 4 node configuration without any issue.
It's failing even with input hash partitoned with keys.

Why can it fail with 4 node ? Can it fail even if records are different but
belong to same Oracle block ?

No other job is running in dev, so there should not be any parallel process trying to load same table.
Ankita
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

What is the exact error message that you are getting?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ankita
Participant
Posts: 57
Joined: Sun Nov 13, 2005 11:17 pm

Post by ankita »

The error message starts with " Open failed for update " followed by the update query and finally with below error code,

sqlcode is: -60
esql complaint: ORA-00060: deadlock detected while waiting for resource
Ankita
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Ask your DBA to check the trace file to get exacts on what exactly happened.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply