Error message: ORA-00911: invalid character.

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
neeraj
Participant
Posts: 107
Joined: Tue May 24, 2005 4:09 am

Error message: ORA-00911: invalid character.

Post by neeraj »

Hello,

I have created a job design where I am passing the SQLStatement at run time. The SQL script file is kept at Unix.

The SQL statement is

select name,ID,DOJ from Table1
where Name <>\'Rahul\' and DOJ= TO_DATE(\'01/01/2009\', \'MM/DD/YYYY\')

My job is aborting with the below mentioned Director log

Source,1: The following SQL statement failed: select name,ID,DOJ from Table1 where Name <>'Rahul' and DOJ= TO_DATE('01/01/2009', 'MM/DD/YYYY').

Source,1: The OCI function OCIStmtExecute returned status -1. Error code: 911, Error message: ORA-00911: invalid character. (CC_OraStatement::executeSelect, file CC_OraStatement.cpp, line 3,092)

This query is running fine when I am execting it in Oracle.

Can you please let me know the solution of it.

Regards
Neeraj
Bostonian
Premium Member
Premium Member
Posts: 33
Joined: Fri Nov 20, 2009 3:32 pm

Post by Bostonian »

Instead of adding \ to the line break in the query, could you try to adding APT_OSL_PARAM_ESC_SQUOTE as a User Defined variable for your project or in the specific job parameter while setting its value to "\" without quotes ?
Post Reply