Cancelling database changes

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

elavenil
Premium Member
Premium Member
Posts: 467
Joined: Thu Jan 31, 2002 10:20 pm
Location: Singapore

Post by elavenil »

Hi Craig,

You are right. I was bit confused when i read his very first post. But subsequent posts i understood that he is considering insert and update both as a single transaction. So i suggessted him to use 'enable transaction grouping'.

Regards
Saravanan
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Post by snassimr »

I want to use different ODBC stages accordin my logic in transformer
and if any of links failed i want to undo all changes are made
elavenil
Premium Member
Premium Member
Posts: 467
Joined: Thu Jan 31, 2002 10:20 pm
Location: Singapore

Post by elavenil »

I do not think it is possible to rollback the changes when you use 2 ODBC stages. It would be treated as two different transactions and there would not be any link between these two stages.

Regards
Saravanan
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Post by snassimr »

I still dont understand why even with singl link to table and transaction size set to 0 if i have warning on first row and stop the job from job sequence all rows after first are inserted/updated on database

And how to do rollback with singl link ? Doesnt matter two or more
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The job has to abort in order for any uncommitted rows to be rolled back. And with a Transaction Size of zero, then 'any uncommitted rows' = 'all rows'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Contemplate adding a "run number" or timestamp to the target table. This will make unwinding any committed rows straightforward, albeit through another transaction for the DELETE statement.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply