Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle SQL plus error

Re: Oracle SQL plus error

From: Sancho <joseharvey_at_my-deja.com>
Date: Tue, 28 Nov 2000 10:31:17 GMT
Message-ID: <9001hl$ekq$1@nnrp1.deja.com>

In article <8vv240$nb8$1_at_nnrp1.deja.com>,   yuen_121_at_my-deja.com wrote:
> Dear all,
> If I execute the following SQL statment in the Oracle SQL *PLUS :
> insert into testing values (TO_DATE('12-JAN-1999','DD-MON-YYYY'))
>
> the following error occur:
> insert into testing values (TO_DATE('12-JAN-1999','DD-MON-YYYY'))
> *
> ERROR in row 1:
> ORA-01843: not a valid month
>
> But it worked fine in Oracle SQL *PLUS worksheet. Is there any
> environment variable need to set?

Check the NLS_LANG environment var. You may also call TO_DATE with a specified nls_lang instead:
insert into testing values (TO_DATE('12-ENE-1999','DD-MON-YYYY', 'NLS_DATE_LANGUAGE=SPANISH'))
Or, third, you may change this setting for the current session: alter session set nls_language=german;

HTH

--
-=[ Sancho ]=-


Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Tue Nov 28 2000 - 04:31:17 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US