Commit Size on Load Append.

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
sambit
Participant
Posts: 52
Joined: Mon Sep 05, 2005 4:59 am

Commit Size on Load Append.

Post by sambit »

Hi,
I am using load append method to insert 30 million rows into oracle table. But it is commiting after every 64 records. For this there is huge numbers of Commit Point reached message that is consuming all the space and also the performance is degrading.

Please advise how I can set the commit interval to 10,000 or more.

Parameter currently using,

$APT_ORACLE_LOAD_OPTIONS=OPTIONS(DIRECT=FALSE, PARALLEL=TRUE, SKIP_INDEX_MAINTENANCE=FALSE,SKIP_UNUSABLE_INDEXES
=TRUE,ERRORS=1000000)
Thanks !!!
Sambit
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You should investigate the use of the APT_ORAUPSERT_COMMIT_ROW_INTERVAL and APT_ORAUPSERT_COMMIT_TIME_INTERVAL environment variables. Or, if you'd rather use the Oracle OPTION, use ROWS=x there with whatever number you feel is appropriate.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sambit
Participant
Posts: 52
Joined: Mon Sep 05, 2005 4:59 am

Post by sambit »

Thanks Chullet. I have tried the APT_ORAUPSERT_COMMIT_ROW_INTERVAL and APT_ORAUPSERT_COMMIT_TIME_INTERVAL but it is not working probably due to Load Append method. I also tried with Rows=10000 but I am not sure why it is working. Probably I need other valiables.
Thanks !!!
Sambit
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Well... they certainly won't work with a direct path load as there are no commits done when DIRECT=TRUE. So, is the ROWS option working for you or not? Hard to tell for sure from the way you phrased it. Note that you may also need to increase the BINDSIZE depending on the length of your records so it can hold that number of rows:

http://www.orafaq.com/forum/t/84903/0/
Last edited by chulett on Tue Dec 30, 2008 4:32 pm, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sambit
Participant
Posts: 52
Joined: Mon Sep 05, 2005 4:59 am

Post by sambit »

No Chullet. ROWS= option is not working. same thing for DIRECT = TRUE.
Thanks !!!
Sambit
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Edited my post to help. Again, there are no commits done in a DIRECT=TRUE load, so don't expect to be able to control that there. And 64 is the default commit interval.

Have a look at the discussion I linked to.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

Craig, will there be any use of sub property ARRAY SIZE in oracle stage?
Kandy
_________________
Try and Try again…You will succeed atlast!!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I don't have access to the Oracle Enterprise stage to know if / how it (array size) would be leveraged by the stage for the Load option.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

Craig / Sambit, I just checked and wanted to share the information.

"Insert Array Size" sub property is available for UPSERT mdoe and not LOAD mode.
Kandy
_________________
Try and Try again…You will succeed atlast!!
sambit
Participant
Posts: 52
Joined: Mon Sep 05, 2005 4:59 am

Post by sambit »

Thanks for the updates. I just checked the link which Chulett provided and it helped me in getting the commit size to 10000. I am still exploring other possibilities of tuning my job further as it is taking huge amount of time.
Thanks !!!
Sambit
Post Reply