Page 1 of 1

Invalid precision value. Error in parameter 6

Posted: Wed Sep 28, 2011 8:58 am
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.....!

Posted: Wed Sep 28, 2011 4:26 pm
by ray.wurlod
Does your Oracle allow VARCHAR2 to be that large?

You may need to specify LONG VARCHAR2

Posted: Wed Sep 28, 2011 5:47 pm
by chulett
An Oracle VARCHAR2 can support up to 4000, unless the version is very old.

Posted: Wed Sep 28, 2011 6:26 pm
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?

Posted: Wed Sep 28, 2011 7:31 pm
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.

Posted: Wed Sep 28, 2011 7:33 pm
by ray.wurlod
If you have only one field, why is the error message referring to parameter 6 ?

Posted: Wed Sep 28, 2011 10:41 pm
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

Posted: Thu Sep 29, 2011 12:34 am
by ray.wurlod
Disable runtime column propagation (RCP) on the output link of this stage.

Posted: Thu Sep 29, 2011 10:12 pm
by vitumati
RCP is Disable.We not enabling the RCP