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
krisna
Participant
Posts: 77
Joined: Tue Apr 08, 2008 11:33 pm

Oracle enterprise stage

Post by krisna »

Below error we are getting when we run the job.


The provided insert statement did not prepare correctly;
please verify that your statement is correct;
statement: INSERT INTO STG.LDM_DWR_CPS_REJECTS (SOURCE_ID, EXTR_BTCH_ID, SUBJECT_AREA, JOB_NAME, ERROR_TXT, ERROR_DT_TIMSTM) VALUES ( :SOURCE_ID, :EXTR_BTCH_ID, :SUBJECT_AREA, :JOB_NAME, :ERROR_TXT, :ERROR_DT_TIMSTM).


Thanks in advance
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Oracle enterprise stage

Post by chulett »

krisna wrote:please verify that your statement is correct;
Did you?

Also, did the stage generate this DML or is it user-defined?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I'm a bit surprised not to see mention of the ORCHESTRATE object in the VALUES clause.
Last edited by ray.wurlod on Sun Oct 30, 2011 2:41 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

... which leads me to believe it is the latter.
-craig

"You can never have too many knives" -- Logan Nine Fingers
krisna
Participant
Posts: 77
Joined: Tue Apr 08, 2008 11:33 pm

Post by krisna »

it's latter part got from director log.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

So inspect the stage to let us know whether it's generated or user-defined SQL. We suspect it's the latter, and that whoever constructed the SQL did not know how to reference the ORCHESTRATE object in the VALUES clause.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply