Home » RDBMS Server » Server Administration » How to change db timezone parameter. (Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit )
How to change db timezone parameter. [message #473716] Tue, 31 August 2010 06:35 Go to next message
ashfaqhdba
Messages: 10
Registered: July 2009
Junior Member
How to change db timezone parameter.

My application team has asked me to change the db timzone parameter by following sql.

ALTER database SET TIME_ZONE = '+10:00';

Is this way is the correct one , and do we have any impact on database and does it require a db bounce.

Thanks in Advance!!
Re: How to change db timezone parameter. [message #473772 is a reply to message #473716] Tue, 31 August 2010 12:00 Go to previous messageGo to next message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Quote:
Is this way is the correct one

Yes

Quote:
and do we have any impact on database

All DATE and TIMESTAMP data are wrong (strictly speaking).
And you cannot do it if you have table with TIMESTAMP WITH LOCAL TIME ZONE columns:
SQL> ALTER database SET TIME_ZONE = '+10:00';
ALTER database SET TIME_ZONE = '+10:00'
*
ERROR at line 1:
ORA-30079: cannot alter database timezone when database has TIMESTAMP WITH LOCAL TIME ZONE columns

ORA-30079: cannot alter database timezone when database has TIMESTAMP WITH LOCAL TIME ZONE columns
 *Cause:  An attempt was made to alter database timezone with
          TIMESTAMP WITH LOCAL TIME ZONE column in the database.
 *Action: Either do not alter database timezone or first drop all the
          TIMESTAMP WITH LOCAL TIME ZONE columns.


Quote:
does it require a db bounce

I don't think so, but test it.

Regards
Michel

[Updated on: Tue, 31 August 2010 12:01]

Report message to a moderator

Re: How to change db timezone parameter. [message #474040 is a reply to message #473772] Thu, 02 September 2010 04:08 Go to previous message
ashfaqhdba
Messages: 10
Registered: July 2009
Junior Member
Thanks Micheal for your inputs !!
Previous Topic: Multi-block disk reads for index range scans?
Next Topic: Error
Goto Forum:
  


Current Time: Sat Jun 29 03:51:28 CDT 2024