Multiple jobs inserting data to single oracle table

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
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Multiple jobs inserting data to single oracle table

Post by Sreenivasulu »

Hi All,

Using SSIS we can insert data to a single table by running multiple jobs concurrently.


I have set a jobs which insert data to a single staging table in oracle (no primary keys present in this table)
I am getting deadlock issues when i run multiple jobs concurrently.
Any suggestions on this ?


Regards
Sreeni
swarnkar
Participant
Posts: 74
Joined: Wed Jan 11, 2006 2:22 am

Re: Multiple jobs inserting data to single oracle table

Post by swarnkar »

Sreenivasulu wrote: I am getting deadlock issues when i run multiple jobs concurrently.
Hi,

Datstage is just another user to oracle, I mean if you can do any database activity through SQL+ client, you can do the same through datastage(keeping both Users same).

So if you are facing deadlock issue, it means its a issue with database not Datastage.

So investigae on Database side.

Thanks,
Nitin Swarnkar
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Maybe it is doing a table level lock rather than row level.

Check with your DBA to identify the sessions and the corresponding data.
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Has any of you come across this issue earlier ?

Thanks sainath. I will look into this from DBA whether its a rowlevel lock or table level lock which is getting created.


Regards
Sreeni
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

There may be possibility of getting into deadlock even while inserting concurrently . This may be true even if its a row level lock .In those cases , check INITRANS parameter in database and increase the value to number of nodes .Let us know if it helps .
Nag
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Talk to your DBA, the exact nature of the data and the type of "multiple loads" will play into causing this problem.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply