ORA-01008: not all variables bound

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
sid19
Participant
Posts: 64
Joined: Mon Jun 18, 2007 12:17 am
Location: kolkata

ORA-01008: not all variables bound

Post by sid19 »

Hi,

We recently installed Datastage 11.3.1.2. We are creating a parallel job with following design



Sequential file ( One filed)---->Transformer( added one more field as key1 with hardcoded value as 1)------> Lookup stage ( Reference link directly from Oracle connector Stage with following SQL
"
SELECT 1, XX_FAH.XX_BSF_OGL_GEN_SEQ.NEXTVAL FROM DUAL WHERE 1=:1

"

doing lookup on key1. From lookup we have a target file.

we are facing following error log

SVF_DAILY_TRANS_SEQ,0: The following SQL statement failed: SELECT 1, XX_FAH.XX_BSF_OGL_GEN_SEQ.NEXTVAL FROM DUAL WHERE 1=:1.

SVF_DAILY_TRANS_SEQ,0: The OCI function OCIStmtExecute returned status -1. Error code: 1008, Error message: ORA-01008: not all variables bound. (CC_OraStatement::executeSelect, file CC_OraStatement.cpp, line 3,900)


Please let me know how to sort this out.


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

Post by chulett »

Whatever you are thinking should be matching up to the :1 bind variable needs to be marked as a key and it doesn't sound like it is. If it is, we'd need to know how your columns are configured in the lookup, in and out.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sid19
Participant
Posts: 64
Joined: Mon Jun 18, 2007 12:17 am
Location: kolkata

Post by sid19 »

Hi chulett,

We have marked field as key in the column tab of output column of Oracle connector stage and similarly Key has been Market for main link as well. We have kept the same name both the side (from Transformer as main and from Oracle connector as reference) We kept the data type as integer in both the link.

Thanks,
Sid
sid19
Participant
Posts: 64
Joined: Mon Jun 18, 2007 12:17 am
Location: kolkata

Post by sid19 »

Hi Chullet,

We have just noticed that Oracle Connector Stage -- Output -- Properties tab
Lookup type was Normal. We changed to Sparse and it working fine


Thanks,
Shamim
Sid
Post Reply