insert, delete and update

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
srao
Premium Member
Premium Member
Posts: 41
Joined: Mon Mar 19, 2007 12:42 pm

insert, delete and update

Post by srao »

hi ,

I have a req to capture insert, update and delete so I used change capture stage to achieve.

I created three different links to insert, update and delete for same table. Does it create any issues like database/table locks while performing insert/update/delete? if so what are other options ?
I am using DRS stage. Database is oracle10g.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DataStage does not create any locks.

But the database server does.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srao
Premium Member
Premium Member
Posts: 41
Joined: Mon Mar 19, 2007 12:42 pm

Re: insert, delete and update

Post by srao »

[quote="srao"]hi ,

I have a req to capture insert, update and delete so I used change capture stage to achieve.

I created three different links to insert, update and delete for same table. Does it create any issues like database/table locks while performing insert/update/delete? if so what are other options ?
I am using DRS stage. Database is oracle10g.[/quote]


Thank you Ray. any options ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Have you tried running your job yet? Having any issues?
-craig

"You can never have too many knives" -- Logan Nine Fingers
arunpramanik
Participant
Posts: 63
Joined: Fri Jun 22, 2007 7:27 am
Location: Kolkata

Re: insert, delete and update

Post by arunpramanik »

srao wrote: Does it create any issues like database/table locks while performing insert/update/delete? if so what are other options ?
Issue will be there - if the same entity/row is being inserted, updated, deleted - if the same row with same key is in more than one link.

How will you gurantee that first instert is done then on that inserted row the update is made? Rethink on this solution
ArjunK
Participant
Posts: 30
Joined: Sun Apr 30, 2006 6:32 pm

Re: insert, delete and update

Post by ArjunK »

The Change capture done in the upstream should ensure that the same tuple is not being propagated on all three links. A long as lock escalations don't happen from Row to Page to Table , deadlocks shouldn't happen. The commit frequency might also play a factor in your job set up.
hcdiss
Participant
Posts: 26
Joined: Sat Oct 14, 2006 1:45 am
Location: Boston

Post by hcdiss »

I dont think it will cause a problem untill you have mutually exclusive records on each link. Records to be inserted wont go on the update link or delete link..same way deletes will only happen when there is no record in the source but corresponding record is in target...
hcdiss
Post Reply