Commit after some records in ODBC 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
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Commit after some records in ODBC stage

Post by jpraveen »

HI

i am using ODBC stage and i want to commit after every 1000 records,
what Environment Variable should be used,and what is use of Array size?
so if i use after commiting 1000 reocrds, and the job got Aborted,then if i start once again wheteher it will start from the starting or where it is aborted at the record level.
Last edited by jpraveen on Fri Sep 17, 2010 5:32 am, edited 1 time in total.
Jaypee
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

The transaction size is the commit level, atleast in server. Do not have access to a parallel engine at the moment so cannot confirm what property it is on your side.
The array size is the number of rows in one trip to your database server.
For restartability at the row level, there is nothing out of the box, unless you commit at the end of your job. For restartability with inremental commits , you will have to design your job to handle that.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Post by jpraveen »

Hi
what Environment Variable should be used,and what is use of Array size?
Jaypee
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted, Array Size controls how many records are sent at one time across the network to the database. The setting for Transaction Size controls the commit level. While some of the native stages (OE) use environment variables to control that, I do not believe that the ODBC stage does, there should be a property in the stage for that.

I'm off in a hotel (with flaky internet access, it seems) for the weekend and don't have access to any documentation or I would check, so you'll need to do that. That or wait for someone else to chime in who can confirm or deny.
-craig

"You can never have too many knives" -- Logan Nine Fingers
elsont
Participant
Posts: 16
Joined: Wed Oct 08, 2008 1:20 am
Location: Chicago

Re: Commit after some records in ODBC stage

Post by elsont »

jpraveen wrote:HI

i am using ODBC stage and i want to commit after every 1000 records,
what Environment Variable should be used,and what is use of Array size?
so if i use after commiting 1000 reocrds, and the job got Aborted,then if i start once again wheteher it will start from the starting or where it is aborted at the record level.
HI,
See to the environment variables to check the commit intervals,
For Oracle below are the variables
APT_ORAUPSERT_COMMIT_ROW_INTERVAL - oracle commits after this many rows.
APT_ORAUPSERT_COMMIT_TIME_INTERVAL - oracle commits after this many seconds.
Oracle commits whichever condition meets first.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No mention of their database being Oracle, at least not yet.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Post by jpraveen »

Hi
I am using SQl Server 2005 as the Database.Source & Target is the Same Database.which environment variable should be used to get my requirement.
Jaypee
Post Reply