Page 1 of 1

ORA:01036

Posted: Mon Dec 17, 2007 5:25 am
by satheesh_color
Hi All,

I used OracleStage as an lookup.and i wrote an user-defined sql as:

select day_id,store_id, count(*) Record_count from dm_sale group by day_id,store_id.

I can able to ran the sql using Toad or sqlplus.

But while running the job it throws an error ora:01036:illegal variable/number

day_id decimal(key field)
store_id decimal(key field)
Record_count decimal

Please help me on how to resolve trhis issue.

Satheesh

Posted: Mon Dec 17, 2007 5:42 am
by ray.wurlod
Please post the exact SQL as displayed in your Oracle stage. Is this generated SQL or user-defined SQL?

Posted: Mon Dec 17, 2007 7:30 am
by chulett
Ray, they did.

Satheesh, your problem has been asked and answered quite a number of times here already, so many times that I just don't feel the need to spell it all out again. Search for some unique part of your error message to see what I mean. For example, I did an Exact search for ORA-01036 (dash not colon) and found several conversations detailing both your problem and the solution.