Solved

Change ORACLE DB Gregorian / Persian calender...

Posted on 2014-09-13
1
761 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 35

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

688 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