Solved

Change ORACLE DB Gregorian / Persian calender...

Posted on 2014-09-13
1
681 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Queries 15 48
Component is listed with a Protocol more than once 3 42
Oracle dataguard 5 46
add more rows to hierarchy 3 25
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to recover a database from a user managed backup

828 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