oracle procedure with particular parameters

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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

'M' is not a valid day of the week.

ORA-20000: -1846 - ORA-01846: not a valid day of the week ORA-06512
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not sure if this helps or not. And we can't really answer your proc question without seeing the actual procedure's pl/sql code.
-craig

"You can never have too many knives" -- Logan Nine Fingers
huge10
Participant
Posts: 18
Joined: Wed Jun 06, 2012 2:26 am

Post by huge10 »

The problem was in the NLS_LANGUAGE setting for the DB.

Developing the oracle procedure with Toad or SQLTools I couldn't see that the default language was setted to ITALIAN.
Datastage set the default language to ENGLISH.

Inside the procedure there is some date function with the name of the day ... so with Toad or SQLTool the procedure doesn't catch any error, when the same procedure is launched by Datastage the "italian" name of the day is unrecognized and generates the error.

:-)
the power is nothing without contol :-)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That seems reasonable. How did you correct it? Presumably you set the NLS_LANGUAGE for your particular connection to "ENGLISH".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
huge10
Participant
Posts: 18
Joined: Wed Jun 06, 2012 2:26 am

Post by huge10 »

YES, I forced the use of NLS_LANGUAGE to "ENGLISH" inside my PL/SQL Procedure
the power is nothing without contol :-)
Post Reply