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: NLS_COMP and NLS_SORT

Re: NLS_COMP and NLS_SORT

From: Nigel Thomas <nigel_at_preferisco.com>
Date: Sun, 23 Apr 2006 05:07:53 -0700 (PDT)
Message-ID: <20060423120753.48987.qmail@web54703.mail.yahoo.com>


Simone

>If I use an alter session statement to set NLS_SORT and NLS_COMP the
>change is conscripted to a single user session. So, exists a way to
>set the two paramethers permanently?

NLS_COMP and NLS_SORT can be set in init.ora as well as in the environment, according to Oracle9i Database Globalization Support Guide - 3 Setting Up a Globalization Support Environment (see eg at http://www.cs.umb.edu/cs634/ora9idocs/server.920/a96529/ch3.htm#51170)

Or you can use a login trigger to set these at the beginning of every session:

CREATE TRIGGER set_session_nls_params
AFTER LOGON
ON SCHEMA my_schema.schema -- or ON DATABASE if you prefer BEGIN
   DBMS_SESSION.SET_NLS('NLS_COMP', 'ANSI');

Regards Nigel

--
http://www.freelists.org/webpage/oracle-l
Received on Sun Apr 23 2006 - 07:07:53 CDT

Original text of this message

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