Getting Error when loading data in Oracle Database in Upsert

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

Getting Error when loading data in Oracle Database in Upsert

Post by nirdesh2 »

Hi,

We have Load Ready Dataset that is output of SCD type2 stage and we are laoding that setset into Databse table in another job using Oracle enterprise stage in upsert mode. Sometime data is loaded sucessfully and sometime loading gets failed by giving error "Unable to insert record into the table" and when we try again it is loaded sucessfully. It gives the random behaviour. Sometime failed and sometime successfull.
Please help..
Nirdesh Kumar
Pagadrai
Participant
Posts: 111
Joined: Fri Dec 31, 2004 1:16 am
Location: Chennai

Re: Getting Error when loading data in Oracle Database in Up

Post by Pagadrai »

Hi,
Please give more details.
Can you try using a reject link to the Oracle stage to obtain the sqlerror. This will provide exact reason why the record is not interted.

also mention the exact warning message that you are seeing in the log.
nirdesh2
Participant
Posts: 56
Joined: Thu Nov 20, 2008 12:18 pm
Location: Noida

Re: Getting Error when loading data in Oracle Database in Up

Post by nirdesh2 »

I am using Reject Link to capture any reject data that could not be laoded into the database.
I am getting the error message "Oracle_Enterprse : Unable to insert a record into the table." "Orcle_Enterprise : The runLocally() of the operator Failed."

We are running this job at 2 node and row commit frequency is 5000.
Nirdesh Kumar
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And if you run it on one node, does it work consistently?
-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 »

Today I run the loading job in Sequential mode in stead of parellel mode and data was loaded sucessfully without any error. Is there any problem with parellel mode when using upsert mode?
Nirdesh Kumar
mahadev.v
Participant
Posts: 111
Joined: Tue May 06, 2008 5:29 am
Location: Bangalore

Post by mahadev.v »

Could it be a dead lock on the record in parallel mode? Try hash partitioning the data on the keys and run it in parallel.
"given enough eyeballs, all bugs are shallow" - Eric S. Raymond
Post Reply