Commit interval in oracle enterprise stage

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

datisaq
Participant
Posts: 154
Joined: Wed May 14, 2008 4:34 am

Post by datisaq »

Hi,
Can anyone please elaborate on APT_ORAUPSERT_COMMIT_ROW_INTERVAL =0?

I mean for the job if you have set this env variable to zero, then how the rows will get committed in DB?Do we need to manually run the commit query?

If this questions sounds very silly, please excuse me for that..
IBM Certified - Information Server 8.1
miwinter
Participant
Posts: 396
Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK

Post by miwinter »

The rows will be committed after the last row is written to the database. i.e. a single commit operation.
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

When the stage "closes", technically.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

nagarjuna wrote:Just one more quick question ....what about if the load is ising sqlldr or direct load ? This env has no meaning in that case ....So what is the process or design you suggest to handle this ??
Not really all that quick of a question, but basically - failed sqlldr loads are not a Good Thing and generally require manual (read: DBA) intervention get to the table and/or indexes back in working order. It is completely different from the rather innocuous rollback of uncommitted rows.
-craig

"You can never have too many knives" -- Logan Nine Fingers
datisaq
Participant
Posts: 154
Joined: Wed May 14, 2008 4:34 am

Post by datisaq »

But nagarjuna cannot be achieve..
Let's say the job(with commit interval as zero) got aborted after loading 6000 rows out of 10000 rows.It loads only the 6000 rows; when we restart the job it starts from the 1st row since it's a job not a sequence..

This leads to loading the records again..

May be i didn't understand your replies, please correct me..
IBM Certified - Information Server 8.1
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

datisaq wrote:But nagarjuna cannot be achieve..
Let's say the job(with commit interval as zero) got aborted after loading 6000 rows out of 10000 rows.It loads only the 6000 rows; when we restart the job it starts from the 1st row since it's a job not a sequence..

This leads to loading the records again..

May be i didn't understand your replies, please correct me..
Hi ,

Because job got aborted and we will be putting environment variable value to 0 it wont commit
Nag
datisaq
Participant
Posts: 154
Joined: Wed May 14, 2008 4:34 am

Post by datisaq »

Thanks nagarjuna,miwinter and craig for explaining me...
IBM Certified - Information Server 8.1
dhiren
Premium Member
Premium Member
Posts: 43
Joined: Thu Aug 11, 2005 12:24 am

Post by dhiren »

While going through this post, I have a question . If my job is loading two tables in upsert mode , then will the setting of variable APT_ORAUPSERT_COMMIT_ROW_INTERVAL =0 ensure that it is applicable for both the tables.

Just to make this simple enough: Will this Env variable work at stage level or at job level ? :?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Job level.
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSDexter
Participant
Posts: 94
Joined: Wed Jul 11, 2007 9:36 pm
Location: Pune,India

Post by DSDexter »

Chulet,
It's only for Oracle Enetrprise stage since enetrprise stage don't have any Transaction level settings, either it will take 5000 or 5 Sec as the default Commit interval for commit.

Then what about 'DRS Stage',which has got Transaction level & array size settings as well.
If we are using more than one DRS stages(Nearly 5) in a job & Environmental Variable "APT_RDBMS_COMMIT_ROW_INTERVAL", set to zero then will it really work by overriding the stage level Transaction level.
Thanks
DSDexter
rajesh223
Participant
Posts: 26
Joined: Mon Dec 19, 2005 4:37 am

Post by rajesh223 »

nagarjuna wrote:
datisaq wrote:But nagarjuna cannot be achieve..
Let's say the job(with commit interval as zero) got aborted after loading 6000 rows out of 10000 rows.It loads only the 6000 rows; when we restart the job it starts from the 1st row since it's a job not a sequence..

This leads to loading the records again..

May be i didn't understand your replies, please correct me..
Hi ,

Because job got aborted and we will be putting environment variable value to 0 it wont commit
Hi,
I tried to run the job with APT_ORAUPSERT_COMMIT_ROW_INTERVAL =0 but failed because datastaeg job does not all to run with value 0 in APT_ORAUPSERT_COMMIT_ROW_INTERVAL
Post Reply