Oracle Connector with Insert Else Update

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
anusha
Premium Member
Premium Member
Posts: 37
Joined: Wed Nov 28, 2007 1:29 am
Location: pune

Oracle Connector with Insert Else Update

Post by anusha »

Hi,
Am using Oracle connector stage with load method as 'Insert Else Update'.
but the amount of data for Update will be much bigger and higher than Inserts. Because of my 'Insert Else Update' load method, job takes atleast 3 hours to update 0.3 million records.

If I use 'update else Insert', job pops out 'Unique key violation error' and if I turn it ot 'Insert Else Update', it works fine but very degraded performance.

Please share your thoughts to overcome this performance issue or suggest me any alterantives to manage this.

Thanks in advance.
anusha
Premium Member
Premium Member
Posts: 37
Joined: Wed Nov 28, 2007 1:29 am
Location: pune

Post by anusha »

I can't use Oracle enterprise stage here because it's not supporting reject link from target database when job runs with RCP.
Aquilis
Participant
Posts: 204
Joined: Thu Apr 05, 2007 4:54 am
Location: Bangalore
Contact:

Post by Aquilis »

Hi,
Check your Array size and commit interval on oracle connector stage.
Aquilis
anusha
Premium Member
Premium Member
Posts: 37
Joined: Wed Nov 28, 2007 1:29 am
Location: pune

Post by anusha »

Default we kept it as 2000 and tried increasing upto 10,000. Nothing hasn't seem fruitful.

Does it seem fine, if we double Nodes in configuration file. Currently we have 4-Node configuration and am thinking of recreating with 8-Node configuration?

I know, it's more to do with Database transactions but a Thought went through mind. :(


Thanks in advance.
prakashdasika
Premium Member
Premium Member
Posts: 72
Joined: Mon Jul 06, 2009 9:34 pm
Location: Sydney

Post by prakashdasika »

Because the number of records written are high i would use two different stages to do insert and update. Instead of insert you can aslo do bulk load which will save some time. Also how are you dealing with indexes on the table?
Prakash Dasika
ETL Consultant
Sydney
Australia
greggknight
Premium Member
Premium Member
Posts: 120
Joined: Thu Oct 28, 2004 4:24 pm

Post by greggknight »

Currently we have 4-Node configuration and am thinking of recreating with 8-Node configuration?

So what gains do you think you will get by doing this.
do you have 8 controllers?
do you have at least 4 cores.

Increasing your config will increase the amount of sectionleaders (osh) processes to eight and the number of player (osh) processes will increase by 4x as well. so if your job under a single node has 1 section leader and 6 play
ers it will now have 8 section leaders and 48 players (osh) processes. Datastage is process intensive. As you add nodes your cpu consumption and memory usage will increase as well.
Make sure you got the resources.

Bear in mind any other jobs which will be running at the same time.


Happy Trails :lol:
"Don't let the bull between you and the fence"

Thanks
Gregg J Knight

"Never Never Never Quit"
Winston Churchill
Post Reply