Solved

Change ORACLE DB Gregorian / Persian calender...

Posted on 2014-09-13
1
564 Views
Last Modified: 2014-09-28
Hi,
I'm using ORACLE 11g XE (express edition)
I need to replace the Gregorian calender with the Persian calender settings...
And how to convert the existing data?
Thank you in advance,
Best
Andreja
0
Comment
Question by:andrejaTJ
1 Comment
 
LVL 34

Accepted Solution

by:
johnsone earned 500 total points
ID: 40320757
I don't have a version of XE that I could test this on, but from what I have found, this is controlled by the NLS_CALENDAR parameter.  No conversion of data should be necessary.  In order to see of XE supports the parameter, I would try this command in SQL*Plus:

ALTER SESSION SET NLS_CALENDAR='Persian';

If that works you should be able to change it in the init.ora.  It has been a while since I used any version of XE, so you could try this:

ALTER SYSTEM SET NLS_CALENDAR='Persian' scope=both;

You could also set this on the client side.  If you are using Windows as a client, you should be able to change it in the registry on the client and set the value that way.

For reference, the documentation on that parameter is here -> http://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams144.htm#REFRN10116
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
Via a live example, show how to take different types of Oracle backups using RMAN.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now