Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: [SPAM] - Re: How to get timezone in 9i - Bayesian Filter detected spam
Hi
Carefully read this text...
>On Fri, 18 Feb 2005 16:42:34 +0100, Christian Antognini
[snip]
>> Notice that you cannot alter the database if it stores tables with =
=3D
>> TIMESTAMP WITH LOCAL TIME ZONE columns.
And then give a look to these examples...
SQL> select * from v$version where rownum =3D 1;
BANNER
SQL> ALTER DATABASE SET TIME_ZONE =3D 'EST';
ALTER DATABASE SET TIME_ZONE =3D 'EST'
*
ERROR at line 1:
ORA-02231: missing or invalid option to ALTER DATABASE
B) 10g
SQL> select * from v$version where rownum =3D 1;
BANNER
SQL> ALTER DATABASE SET TIME_ZONE =3D 'EST';
ALTER DATABASE SET TIME_ZONE =3D 'EST'
*
ERROR at line 1:
ORA-30079: cannot alter database timezone when database has TIMESTAMP =
WITH
LOCAL TIME ZONE columns
As you can see the error generated in 9i is completely wrong! They = recognized the problem and fixed it in 10g.
HTH
Chris
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Feb 22 2005 - 15:26:12 CST