Error using the User variables parameters in the job
Posted: Mon Sep 26, 2016 5:43 pm
My sequence has User variables activity followed by a Job Activity. I have set the job parameter of the Job activity using User variable set in the previous step.
Var1 = UserVariables_Activity_1.Var1
I am using this variable in the source sql of the job as below:
Select #Var1# as Variable1 from dual;
I am getting below error when I run the job.
Oracle_Connector_3,0: The following SQL statement failed: Select as Variable1 from Dual.
Oracle_Connector_3,0: The OCI function OCIStmtExecute returned status -1. Error code: 936, Error message: ORA-00936: missing expression. (CC_OraStatement::executeSelect, file CC_OraStatement.cpp, line 3,900)
Where am I doing wrong?
Var1 = UserVariables_Activity_1.Var1
I am using this variable in the source sql of the job as below:
Select #Var1# as Variable1 from dual;
I am getting below error when I run the job.
Oracle_Connector_3,0: The following SQL statement failed: Select as Variable1 from Dual.
Oracle_Connector_3,0: The OCI function OCIStmtExecute returned status -1. Error code: 936, Error message: ORA-00936: missing expression. (CC_OraStatement::executeSelect, file CC_OraStatement.cpp, line 3,900)
Where am I doing wrong?