Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to get timezone in 9i
On Fri, 18 Feb 2005 16:42:34 +0100, Christian Antognini
<Christian.Antognini_at_trivadis.com> wrote:
> >I need to get international time zones in 3 letter format, something
> >like EST,CDT ....etc.
>
> ALTER DATABASE SET TIME_ZONE =3D 'EST';
>
> Then when you select DBTIMEZONE you get the correct format.
>
> Notice that you cannot alter the database if it stores tables with =
> TIMESTAMP WITH LOCAL TIME ZONE columns.
> --
Hi,
I am using Oracle 9.2 on Win2k Pro. Here is a cut and paste of SQL PLus:
DBTIME
Elapsed: 00:00:00.04
11:43:32 SQL> select sessiontimezone from dual;
more...
SESSIONTIMEZONE
Elapsed: 00:00:00.03
11:43:40 SQL>
11:43:41 SQL> ALTER DATABASE SET TIME_ZONE ='EST';
ALTER DATABASE SET TIME_ZONE ='EST'
*
ERROR at line 1:
ORA-02231: missing or invalid option to ALTER DATABASE
Elapsed: 00:00:00.01
Thanks.
-- http://www.freelists.org/webpage/oracle-lReceived on Mon Feb 21 2005 - 19:07:24 CST