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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Date format in SQL*plus limited to 9 characters??!!

Re: Date format in SQL*plus limited to 9 characters??!!

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Wed, 10 Jan 2001 22:22:57 +0800
Message-ID: <3A5C7041.3449@yahoo.com>

Alan Long wrote:
>
> I'm using Oracle 8 SQL*plus on NT4
>
> A simple "select sysdate from dual" correctly produces:
>
> SYSDATE
> ---------
> 09-jan-01
>
> I then change the date format with "alter session set nls_date_format =
> 'dd-mon-yyyy'"
>
> "Select sysdate from dual" produces:
>
> SYSDATE
> ---------
> 09-jan-20
>
> The last 2 characters have been truncated.
>
> I then try a column format command "column mydate format a14"
>
> "select sysdate mydate from dual" results in:
>
> MYDATE
> --------------
> 09-jan-20
>
> The column header has changed to 14 characters but the date is still limited
> to 9 characters.
>
> I've used other versions of SQL*plus and have no problem...... I can display
> date/times like '20-Dec_2000 19:57' . It looks like some system default is
> constraining my current version of SQL*plus.
>
> Any idea how I fix this? It must be trivial!
>
> --
> Regards,
> Alan

The setting can be made on both the server (as per your alter session) and on the client - check your registry - you may need to change it there as well

HTH
COnnor

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk (mirrored at
http://www.oradba.freeserve.co.uk)

"Some days you're the pigeon, some days you're the statue"
Received on Wed Jan 10 2001 - 08:22:57 CST

Original text of this message

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