Oracle Row Commit

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
binay
Premium Member
Premium Member
Posts: 25
Joined: Wed Aug 15, 2007 11:15 pm
Location: USA

Oracle Row Commit

Post by binay »

Hi,

Where is the oracle row commit defined in DataStage? Administrator? If yes, which variable?

As a default, how many rows are committed by the Oracle Stage in DataStage in an Oracle table? Is it something we can control or change in DataStage to increase the number of commit in a particular interval?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The environment variables, which you can include in the job parameters and change the defaults values, contain:

$APT_ORAUPSERT_COMMIT_ROW_INTERVAL (5000 row default)
$APT_ORAUPSERT_COMMIT_TIME_INTERVAL (2 second default)
kirankota79
Premium Member
Premium Member
Posts: 315
Joined: Tue Oct 31, 2006 3:38 pm

Post by kirankota79 »

hi andrw: i want to update some columns in a table and if the job aborts in the middle i dont want to commit anything, i want want to leave as it is as before the job started. Only if job runs successfully i want to commit. Where can i set this in the datastage.
kirankota79
Premium Member
Premium Member
Posts: 315
Joined: Tue Oct 31, 2006 3:38 pm

Post by kirankota79 »

hi andrw: i want to update some columns in a table and if the job aborts in the middle i dont want to commit anything, i want want to leave as it is as before the job started. Only if job runs successfully i want to commit. Where can i set this in the datastage.
kirankota79
Premium Member
Premium Member
Posts: 315
Joined: Tue Oct 31, 2006 3:38 pm

Post by kirankota79 »

hi andrw: i want to update some columns in a table and if the job aborts in the middle i dont want to commit anything, i want want to leave as it is as before the job started. Only if job runs successfully i want to commit. Where can i set this in the datastage.
kirankota79
Premium Member
Premium Member
Posts: 315
Joined: Tue Oct 31, 2006 3:38 pm

Post by kirankota79 »

sorry to post so many times....haven't done wantedly....some network issue so i pressed submit button many times.
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

it will be better to find out why the job was failed and solve that.
why you don't want commit interval, if the job abort don't you will restart the job?
if there are large number of records for update and insert then you may possibly hit the rollback segment error.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Have you tried setting $APT_ORAUPSERT_COMMIT_ROW_INTERVAL to a value higher than your number of rows?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In Server you would set any such 'commit interval' to zero for an 'only commit once at the end' load. Is there no such equivalent in PX?
-craig

"You can never have too many knives" -- Logan Nine Fingers
kirankota79
Premium Member
Premium Member
Posts: 315
Joined: Tue Oct 31, 2006 3:38 pm

Post by kirankota79 »

does the datastage settings overwrite the database settings?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What settings are you asking about? There are no database settings for commits.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kirankota79
Premium Member
Premium Member
Posts: 315
Joined: Tue Oct 31, 2006 3:38 pm

Post by kirankota79 »

$APT_ORAUPSERT_COMMIT_ROW_INTERVAL and
$APT_ORAUPSERT_COMMIT_TIME_INTERVAL

if i set both to zero . then there won't be any commit happens till the complete update happens right?
Post Reply