Update Query with Deadlock Error in Parallel

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
SwathiCh
Premium Member
Premium Member
Posts: 64
Joined: Mon Feb 08, 2010 7:17 pm

Update Query with Deadlock Error in Parallel

Post by SwathiCh »

Hi All,

I am trying to update 10 records in a table in oracle which are having same Key column value i.e they are having the same group value, so I want to set Y to all that records within the group.

I run the job on Default parallel node, it got aborted with the error -- Deadlock detected while waiting for the resource..

I ran the job on Single node config file, got the same error.

I added the environmental variable APT_ORA_IGNORE_CONFIG_FILE_PARALLELISM = True and run the job, got aborted with the same error.

I changed the Oracle Stage to execute in sequential mode and ran the job, it is successful.


Here what I could not understand is, running the job on single node means we are executing that in sequential manner only then why it got aborted with deadlock, and why it is successful when I convert a particular stage to run in sequential?

Any thoughts?
--
Swathi Ch
swapnilverma
Participant
Posts: 135
Joined: Tue Aug 14, 2007 4:27 am
Location: Mumbai

Post by swapnilverma »

.. running a job in single node does not mean it will run sequentially ... The main reason is that a node can be used multiple times in config file. ( to make logical nodes )

Running a job on single node means you are assigning resources to your job which is specific to that node....


Also if your config file shows 100 nodes does not necessarily means you have 100 actual phisical nodes ....

Even with ONE node you can achive parallelism ...
Thanks
Swapnil

"Whenever you find whole world against you just turn around and Lead the world"
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

We need to tighten up on terminology here. For DataStage node is a single, logical, processing node. In particular, a node is not a network node name (such as occurs in the fastname property of a node definition).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
SwathiCh
Premium Member
Premium Member
Posts: 64
Joined: Mon Feb 08, 2010 7:17 pm

Post by SwathiCh »

Thanks Swapnil,Ray for your responses.
--
Swathi Ch
Post Reply