deadlock detected while waiting for resource
Moderators: chulett, rschirm, roy
deadlock detected while waiting for resource
I'm trying to update an Oracle table with few key columns and sometimes the job abort with the fatal error: "deadlock detected while waiting for resource".
did someone know how to avoid this error.
i'm working on datastage px 7.01 on unix aix server.
best regards
did someone know how to avoid this error.
i'm working on datastage px 7.01 on unix aix server.
best regards
deadlock detected while waiting for resource
the stage oracle is in parallel mode i khow that if i force the stage to be in sequential mode the problem will be resolved but the it will be executed slowly.
i'm trying to add specific options to avoid the problem....
i'm trying to add specific options to avoid the problem....
deadlock detected while waiting for resource
thanx
i already do it, i have partionned with the round robin method but it seem that the problem presist
i already do it, i have partionned with the round robin method but it seem that the problem presist
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: deadlock detected while waiting for resource
Then, perhaps, you don't already do it.talsimad wrote:i already do it, i have partionned with the round robin method but it seem that the problem presist
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can get "deadlock detected while waiting for resource" error if you have multiple DML statements based on the same key in one transaction. You can avoid this error if you set Oracle commit level to 1. This will solve your problem but it will add an overhead of each record commit.
Alternatively, you can add a remove duplicate stage in the job stream and select the last record for updation.
Hope it helps........
Alternatively, you can add a remove duplicate stage in the job stream and select the last record for updation.
Hope it helps........
Assume everything I say or do is positive