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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: character set of a database

RE: character set of a database

From: Jacques Kilchoer <Jacques.Kilchoer_at_quest.com>
Date: Fri, 5 Jan 2001 13:35:36 -0800
Message-Id: <10732.125905@fatcity.com>


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



05-JAN-2001 SQL> ALTER SESSION SET NLS_DATE_FORMAT =3D 'DD-MON-YY' ; Session altered.

SQL> SELECT SYSDATE FROM DUAL ; SYSDATE



05-JAN-01 Jacques R. Kilcho=EBr
x8816>=20

------_=_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>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; 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>&gt; Sent: vendredi, 5. janvier 2001 12:37</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Where can you find the characterset of a =
database?</FONT>
</P>

<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>&gt; Also, why if you have the =
nls_date_format=3Dyyyyddmm and query </FONT>
<BR><FONT SIZE=3D2>&gt; a date field in</FONT>
<BR><FONT SIZE=3D2>&gt; 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&gt; 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&gt; 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&gt; 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&gt; 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

Original text of this message

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