?
Solved

Change ORACLE DB Gregorian / Persian calender...

Posted on 2014-09-13
1
Medium Priority
?
815 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 1500 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

770 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