12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Setting up the Globalization Support Environment11.2.5.1.3 Number of Days and Months in a Year <strong>Oracle</strong> supports six calendar systems inaddition to Gregorian, the default:■■Japanese Imperial—uses the same number of months and days as Gregorian, butthe year starts with the beginning of each Imperial EraROC Official—uses the same number of months and days as Gregorian, but theyear starts with the founding of the Republic of China■ Persian—has 31 days for each of the first six months. The next five months have 30days each. The last month has either 29 days or 30 days (leap year).■■■Thai Buddha—uses a Buddhist calendarArabic Hijrah—has 12 months with 354 or 355 daysEnglish Hijrah—has 12 months with 354 or 355 daysThe calendar system is specified by the NLS_CALENDAR parameter.11.2.5.1.4 First Year of Era The Islamic calendar starts from the year of the Hegira.The Japanese Imperial calendar starts from the beginning of an Emperor's reign. Forexample, 1998 is the tenth year of the Heisei era.11.2.5.2 NLS_CALENDARMany different calendar systems are in use throughout the world. NLS_CALENDARspecifies which calendar system <strong>Oracle</strong> uses. The default value is Gregorian. Thevalue can be any valid calendar format name.NLS_CALENDAR can have one of the following values:■■■■■■■Arabic HijrahEnglish HijrahGregorianJapanese ImperialPersianROC Official (Republic of China)Thai BuddhaIn Example 11–8 NLS_CALENDAR is set to English Hijrah.Example 11–8NLS_CALENDAR='English Hijrah'-- set NLS_CALENDAR with ALTER SESSIONALTER SESSION SET NLS_CALENDAR='English Hijrah';-- display the current system dateSELECT SYSDATE FROM DUAL;You should see output similar to the following, depending on the current system date:SYSDATE--------------------24 Ramadan 142211.2.6 Numeric and List ParametersThis topic includes the following topics:Working in a Global Environment 11-11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!