commit frequency 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

Post Reply
nirdesh2
Participant
Posts: 56
Joined: Thu Nov 20, 2008 12:18 pm
Location: Noida

commit frequency in Oracle Enterprise stage

Post by nirdesh2 »

Hi,

Is there any way to increase the commit frequency when loading the data into oracle table using Load and Appened method. Right now Commit points occurs at 64 rows by default .Also, If i used OPTION(DIRECT=FALSE,PARRELEL=TRUE,ROWS=1000), then commit point occurs at 587.
Nirdesh Kumar
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Post by arvind_ds »

Using DataStage Administrator set the value of $APT_RDBMS_COMMIT_ROWS parameter to desired value.
Arvind
nirdesh2
Participant
Posts: 56
Joined: Thu Nov 20, 2008 12:18 pm
Location: Noida

Post by nirdesh2 »

I think this parameter is used $APT_RDBMS_COMMIT_ROWS DB2 database. Still it is not considering this parameter values for commit.
Nirdesh Kumar
BenoitCayla
Participant
Posts: 15
Joined: Wed May 27, 2009 2:42 am
Location: PARIS

Post by BenoitCayla »

nirdesh2 wrote:I think this parameter is used $APT_RDBMS_COMMIT_ROWS DB2 database. Still it is not considering this parameter values for commit.
The settings of this variable apply to the supported parallel database engines : DB2, Teradata and Oracle.
___________________
Benoît CAYLA
benoit.cayla@exl-group.com
my blog (in French) http://www.exl-infosfr.com/
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What did you specify in your stage as "transaction size"?
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

If DIRECT = TRUE then is it not auto committed ...i think when using load option there is no commit interval ...for only upsert we have commit interval ..please correct me if i am wrong ..
Nag
sanjay
Premium Member
Premium Member
Posts: 203
Joined: Fri Apr 23, 2004 2:22 am

Post by sanjay »

Hi

need to set bindsize & readsize

example

$APT_ORACLE_LOAD_OPTIONS=OPTIONS(SKIP_INDEX_MAINTENANCE = TRUE,bindsize=8250000,readsize=8250000,rows=2000)

Thanks
Sanjay

nagarjuna wrote:If DIRECT = TRUE then is it not auto committed ...i think when using load option there is no commit interval ...for only upsert we have commit interval ..please correct me if i am wrong ..
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That's certainly one way. The specific Oracle APT variables are mentioned here. And yes, a "direct path load" does no commits, that whole mechanism is bypassed which is part of where the speed comes from.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Kryt0n
Participant
Posts: 584
Joined: Wed Jun 22, 2005 7:28 pm

Post by Kryt0n »

nagarjuna wrote:If DIRECT = TRUE then is it not auto committed ...i think when using load option there is no commit interval ...for only upsert we have commit interval ..please correct me if i am wrong ..
Have no idea about the DIRECT option but sounds fair enough comment. However, there is a commit interval for the load option. We have DIRECT set to FALSE (we load in parallel) and we do commits... more frequently than I would like but have not tried to play with the intervals.

I believe there are two APT variables that need changing, one is for number of rows and the other a time interval

EDIT: looking at the environment variables, I must be thinking about the upsert options so ignore my last sentence...
Last edited by Kryt0n on Wed May 27, 2009 5:41 pm, edited 1 time in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Right, sqlldr with DIRECT=FALSE is a 'conventional load' and does normal inserts, so the commit interval plays a role. When DIRECT=TRUE there are no commits done.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nirdesh2
Participant
Posts: 56
Joined: Thu Nov 20, 2008 12:18 pm
Location: Noida

Post by nirdesh2 »

Thanks all of you for sharing your thoughts. It helped me a lot to understand the load process .
Nirdesh Kumar
Post Reply