Monday, November 3, 2008

NLS_CALENDAR

Property

Description

Parameter type

String

Syntax

NLS_CALENDAR = "calendar_system"

Default value

None

Modifiable

ALTER SESSION

Range of values

Any valid calendar format name

Basic

No

NLS_CALENDAR specifies which calendar system Oracle uses. It can have one of the following values:

· Arabic Hijrah

· English Hijrah

· Gregorian

· Japanese Imperial

· Persian

· ROC Official (Republic of China)

· Thai Buddha

For example, suppose NLS_CALENDAR is set to "Japanese Imperial", the date format is "E YY-MM-DD". ("E" is the date format element for the abbreviated era name.) If the date is May 15, 1997, then the SYSDATE is displayed as follows:

SELECT SYSDATE FROM DUAL;
SYSDATE
--------
H 09-05-15

Note:

1. Query for the current value of the parameter

select name, value, isdefault, isses_modifiable, issys_modifiable,

isinstance_modifiable, isdeprecated, description

from v$parameter where upper(name) = ‘NLS_CALENDAR’;

NAME

VALUE

IS

DEFAULT

ISSES_

MODIFIABLE

ISSYS_

MODIFIABLE

ISINSTANCE_

MODIFIABLE

IS

DEPRECATED

DESCRIPTION

nls_calendar

TRUE

TRUE

FALSE

FALSE

FALSE

NLS calendar system name

Oracle initializatoin parameters

NLS_COMP

 Thank you for visiting Spatial DBA - Oracle and ArcSDE.

I have stopped updating the blog.

Please visit Oracle DBA Tips (http://www.oracledbatips.com) for more Oracle DBA Tips.

====================================================================


Property
Description
Parameter type
String
Syntax
NLS_COMP = { BINARY | LINGUISTIC | ANSI }
Default value
BINARY
Modifiable
ALTER SESSION
Basic
No
NLS_COMP specifies the collation behavior of the database session.
Values:
· BINARY
Normally, comparisons in the WHERE clause and in PL/SQL blocks is binary unless you specify the NLSSORT function.
· LINGUISTIC
Comparisons for all SQL operations in the WHERE clause and in PL/SQL blocks should use the linguistic sort specified in the NLS_SORT parameter. To improve the performance, you can also define a linguistic index on the column for which you want linguistic comparisons.
· ANSI
A setting of ANSI is for backwards compatibility; in general, you should set NLS_COMP to LINGUISTIC
Note:
1. Unless you explicitly set the value for NLS_COMP in your initialization parameter file, a default value of NULL is shown in the following views: V$PARAMETER, V$SYSTEM_PARAMETER, V$PARAMETER2, V$SYSTEM_PARAMETER2, and NLS_INSTANCE_PARAMETERS. However, the actual default value, and behavior, is BINARY. Note that you cannot change the default to NULL, because NULL is not among the valid values.
2. Query for the current value of the parameter
select name, value, isdefault, isses_modifiable, issys_modifiable,
isinstance_modifiable, isdeprecated, description
from v$parameter where upper(name) = ‘NLS_COMP’;
NAME
VALUE
IS
DEFAULT
ISSES_
MODIFIABLE
ISSYS_
MODIFIABLE
ISINSTANCE_
MODIFIABLE
IS
DEPRECATED
DESCRIPTION
nls_comp
TRUE
TRUE
FALSE
FALSE
FALSE
NLS comparison

Oracle initializatoin parameters

NLS_CURRENCY

Property

Description

Parameter type

String

Syntax

NLS_CURRENCY = currency_symbol

Default value

Derived from NLS_TERRITORY

Modifiable

ALTER SESSION

Range of values

Any valid character string, with a maximum of 10 bytes (not including null)

Basic

No

NLS_CURRENCY specifies the string to use as the local currency symbol for the L number format element. The default value of this parameter is determined by NLS_TERRITORY.

Note:

1. Query for the current value of the parameter

select name, value, isdefault, isses_modifiable, issys_modifiable,

isinstance_modifiable, isdeprecated, description

from v$parameter where upper(name) = ‘NLS_CURRENCY’;

NAME

VALUE

IS

DEFAULT

ISSES_

MODIFIABLE

ISSYS_

MODIFIABLE

ISINSTANCE_

MODIFIABLE

IS

DEPRECATED

DESCRIPTION

nls_currency

TRUE

TRUE

FALSE

FALSE

FALSE

NLS local currency symbol

Oracle initializatoin parameters

NLS_DATE_FORMAT

Property

Description

Parameter type

String

Syntax

NLS_DATE_FORMAT = "format"

Default value

Derived from NLS_TERRITORY

Modifiable

ALTER SESSION

Range of values

Any valid date format mask but not exceeding a fixed length

Basic

No

NLS_DATE_FORMAT specifies the default date format to use with the TO_CHAR and TO_DATE functions. The default value of this parameter is determined by NLS_TERRITORY.

The value of this parameter can be any valid date format mask, and the value must be surrounded by double quotation marks. For example:

NLS_DATE_FORMAT = "MM/DD/YYYY"

Note:

1. Query for the current value of the parameter

select name, value, isdefault, isses_modifiable, issys_modifiable,

isinstance_modifiable, isdeprecated, description

from v$parameter where upper(name) = ‘NLS_DATE_FORMAT’;

NAME

VALUE

IS

DEFAULT

ISSES_

MODIFIABLE

ISSYS_

MODIFIABLE

ISINSTANCE_

MODIFIABLE

IS

DEPRECATED

DESCRIPTION

nls_date_format

TRUE

TRUE

FALSE

FALSE

FALSE

NLS Oracle date format

Oracle initializatoin parameters

NLS_DATE_LANGUAGE

Property

Description

Parameter type

String

Syntax

NLS_DATE_LANGUAGE = language

Default value

Derived from NLS_LANGUAGE

Modifiable

ALTER SESSION

Range of values

Any valid NLS_LANGUAGE value

NLS_DATE_LANGUAGE specifies the language to use for the spelling of day and month names and date abbreviations (a.m., p.m., AD, BC) returned by the TO_DATE and TO_CHAR functions.

Note:

1. Query for the current value of the parameter

select name, value, isdefault, isses_modifiable, issys_modifiable,

isinstance_modifiable, isdeprecated, description

from v$parameter where upper(name) = ‘NLS_DATE_LANGUAGE’;

NAME

VALUE

IS

DEFAULT

ISSES_

MODIFIABLE

ISSYS_

MODIFIABLE

ISINSTANCE_

MODIFIABLE

IS

DEPRECATED

DESCRIPTION

nls_date_language

TRUE

TRUE

FALSE

FALSE

FALSE

NLS date language name

Oracle initializatoin parameters