Commit on Delete/Insert/UPdate

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
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Commit on Delete/Insert/UPdate

Post by ketfos »

Hi
I am deleteing records in Oracle table and writing to a sequential file.

Using Datastage - OCI - Transformer - Seq File

As I understand Datastage does implict commit on INSERT, DELETE, UPDATE.

Is there a way to prevent implict commit?

Ketfos
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There's no way to not commit your work. :? You do, however, have control over the commit level using the Transaction Handling tab on the OCI stage via the Rows Per Transaction setting. Default is 0 which means only after all rows have been worked successfully and the stage closes the connection.

That being said, how are you accomplishing the deletes in your posted design - before sql?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

Hi,
I am using a simple sql in input OCI stage
(Select name, address from customer where customer name like 'K%' )

In the Output OCI stage, I Update the customer table with
Udpdate Action - Delete existing row only

SQL shown is - Delete from Customer where customer name:=1

Also I write the deleted records to a Sequential file.


Ketfos
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ok. Was wondering because there wasn't anything that resembled an output OCI stage in your "diagram". :wink:

So, did you get your commit question answered?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

Hi,

Yes and the answer is " There is NO way not to commit."

Ketfos
Post Reply