Oracle stage

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

Post Reply
svga
Participant
Posts: 73
Joined: Thu Aug 07, 2008 6:31 am
Location: Syracuse

Oracle stage

Post by svga »

Hi,

How can i rollback the entire data that lodaed into the oracle table if my job gives warning? As of now my job commit the data till it encounterd error.
shaimil
Charter Member
Charter Member
Posts: 37
Joined: Fri Feb 28, 2003 5:37 am
Location: UK

Post by shaimil »

Take you a look at the transaction handling tab. Set the rows per transaction to 0 to do a single commit.
svga
Participant
Posts: 73
Joined: Thu Aug 07, 2008 6:31 am
Location: Syracuse

Post by svga »

Even after Row per Transaction set to 0 its rejects only error records and just leave the warning in the director. but correct records got committed.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The job must abort for any rollback to happen. You need to make sure this happens by setting a very low warning threshold, a reject link set to abort after 1 record, using the 'treat warning as fatal' option in the OCI stage, etc etc.
-craig

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