Invalid precision value. Error in parameter 6

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
vitumati
Participant
Posts: 27
Joined: Tue Sep 07, 2010 11:38 pm

Invalid precision value. Error in parameter 6

Post by vitumati »

Hi All,

Can you please help the bellow issue.


Job Description: (Oracle Db) reading with(ODBC Conn) both source and target and we creating generic this should word for DB like Oracle DB and DB2 etc.so that we using ODBC Conn.

Job: ODBCConn------->Transformer--------->ODBC Conn (strt move)

Error:TrgODBCCon,1: ODBC function "SQLExecute" reported: SQLSTATE = HY104: Native Error Code = 0: Msg = [IBM (DataDirect OEM)][ODBC Oracle Wire Protocol driver]Invalid precision value. Error in parameter 6. (CC_OdbcDBStatement::executeInsert, file CC_OdbcDBStatement.cpp, line 673)

I have 1 field for both source and target column data type is varchar2(1000) in oracle.


Thanks.....!
Abhinav
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Does your Oracle allow VARCHAR2 to be that large?

You may need to specify LONG VARCHAR2
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 »

An Oracle VARCHAR2 can support up to 4000, unless the version is very old.
-craig

"You can never have too many knives" -- Logan Nine Fingers
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Are you doing anything like "select * from source_table" with RCP turned on?

What versions of DataDirect ODBC drivers and Oracle database are you using?
Choose a job you love, and you will never have to work a day in your life. - Confucius
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

chulett wrote:An Oracle VARCHAR2 can support up to 4000, unless the version is very old.
Yes, that's what triggered my question. We had no information about the Oracle version.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If you have only one field, why is the error message referring to parameter 6 ?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vitumati
Participant
Posts: 27
Joined: Tue Sep 07, 2010 11:38 pm

Post by vitumati »

I'm using Data stage 8.5.Oracle 10

My SRC is Oracle here I've 60 fields but only 1 field having Varchar2(1000) in SRC.due to this I'm getting above error If I remove this field job working fine.

SRC_Field Varchar2(1000) I'm loading into Trg_Field Varchar2(4000)
To read this job I tried Varchar ,LongVarchar, LongNVarchar in datastage
Here I using ODBC Conn using to connect both SRC and TRG.This job is reusable job for diff databases.so I'm using ODBC Conn stage
Abhinav
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Disable runtime column propagation (RCP) on the output link of this stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vitumati
Participant
Posts: 27
Joined: Tue Sep 07, 2010 11:38 pm

Post by vitumati »

RCP is Disable.We not enabling the RCP
Abhinav
Post Reply