Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: character set of a database
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0775F.71158C90
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
> -----Original Message----- > From: Ruth Gramolini [mailto:rgramolini_at_tax.state.vt.us] > Sent: vendredi, 5. janvier 2001 12:37 >=20 > Where can you find the characterset of a database?
How about
select parameter, value
from nls_database_parameters
where parameter in ('NLS_CHARACTERSET', 'NLS_NCHAR_CHARACTERSET') ;
> Also, why if you have the nls_date_format=3Dyyyyddmm and query=20 > a date field in > sqlplus it gives the date as dd-MON-yy?
I would think that in SQL*Plus the date would be shown in the format =
defined
in nls_session_parameters.nls_date_format, i.e.
SQL> alter session set nls_date_format =3D 'DD-MON-YYYY' ;
Session altered.
SQL> SELECT SYSDATE FROM DUAL ; SYSDATE
SQL> SELECT SYSDATE FROM DUAL ; SYSDATE
------_=_NextPart_001_01C0775F.71158C90
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>RE: character set of a database</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>> -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>> From: Ruth Gramolini [<A =
HREF=3D"mailto:rgramolini_at_tax.state.vt.us">mailto:rgramolini_at_tax.state.v=
t.us</A>]</FONT><BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Sent: vendredi, 5. janvier 2001 12:37</FONT>
<P><FONT SIZE=3D2>How about</FONT>
<BR><FONT SIZE=3D2>select parameter, value</FONT>
<BR><FONT SIZE=3D2>from nls_database_parameters</FONT>
<BR><FONT SIZE=3D2>where parameter in ('NLS_CHARACTERSET', =
'NLS_NCHAR_CHARACTERSET') ;</FONT>
</P>
<P><FONT SIZE=3D2>> Also, why if you have the =
nls_date_format=3Dyyyyddmm and query </FONT>
<BR><FONT SIZE=3D2>> a date field in</FONT>
<BR><FONT SIZE=3D2>> sqlplus it gives the date as dd-MON-yy?</FONT>
</P>
<P><FONT SIZE=3D2>I would think that in SQL*Plus the date would be =
shown in the format defined in nls_session_parameters.nls_date_format, =
i.e.</FONT></P>
<P><FONT SIZE=3D2>SQL> alter session set nls_date_format =3D =
'DD-MON-YYYY' ;</FONT>
</P>
<P><FONT SIZE=3D2>Session altered.</FONT>
</P>
<P><FONT SIZE=3D2>SQL> SELECT SYSDATE FROM DUAL ;</FONT>
</P>
<P><FONT SIZE=3D2>SYSDATE</FONT>
<BR><FONT SIZE=3D2>-----------</FONT>
<BR><FONT SIZE=3D2>05-JAN-2001</FONT>
</P>
<P><FONT SIZE=3D2>SQL> ALTER SESSION SET NLS_DATE_FORMAT =3D =
'DD-MON-YY' ;</FONT>
</P>
<P><FONT SIZE=3D2>Session altered.</FONT>
</P>
<P><FONT SIZE=3D2>SQL> SELECT SYSDATE FROM DUAL ;</FONT>
</P>
<P><FONT SIZE=3D2>SYSDATE</FONT>
<BR><FONT SIZE=3D2>---------</FONT>
<BR><FONT SIZE=3D2>05-JAN-01</FONT>
</P>
<P><FONT SIZE=3D2>Jacques R. Kilcho=EBr</FONT>
Received on Fri Jan 05 2001 - 15:35:36 CST
![]() |
![]() |