SQL Loader Error while uld: OCIStmtExecu while loading

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
aakashmalu
Charter Member
Charter Member
Posts: 24
Joined: Sun Nov 13, 2005 10:59 pm

SQL Loader Error while uld: OCIStmtExecu while loading

Post by aakashmalu »

Hi,

I am trying to migrate a datastage job from Datastage 7.5 to 8 which loads a dataset in to an oracle table using SQL Loader. I am using ORA OCi

Write Method = Load
Write Mode = Append

This job runs absolutely fine in 7.5 but in version 8 i am getting the following error

SQL*Loader-925: Error while uldlpim: OCIStmtExecute
ORA-00904: "MESSAGE_NUM": invalid identifier



Anybody has any idea on this..

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

Post by chulett »

This is a new 8.x install, separate from your 7.5 server? Is this the first time you've tried a 'sql loader' job or do others work but not this one?
-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 »

Ordinarily that would mean that MESSAGE_NUM is not a valid column name in the table that you're loading. Do check that you specified the correct table name.
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 »

Looks like this can come from a client / database version mismatch:

http://www.orafaq.com/maillist/oracle-l ... 7/0386.htm
-craig

"You can never have too many knives" -- Logan Nine Fingers
aakashmalu
Charter Member
Charter Member
Posts: 24
Joined: Sun Nov 13, 2005 10:59 pm

Post by aakashmalu »

chulett wrote:Looks like this can come from a client / database version mismatch:

http://www.orafaq.com/maillist/oracle-l ... 7/0386.htm ...
Criag,

Thanks for the link.... I changed the Direct Load from TRUE to FALSE and the job ran successfully....

$APT_ORACLE_LOAD_OPTIONS = OPTIONS (DIRECT=FALSE, PARALLEL=TRUE)

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

Post by chulett »

I guess slower and successful > faster and fatal. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply