Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: SYSDATE strange behaviour

Re: SYSDATE strange behaviour

From: Matthias Gresz <GreMa_at_t-online.de>
Date: 1998/04/03
Message-ID: <6g20sd$kqq$3@news00.btx.dtag.de>#1/1

Hi,

check the timezone settings for oracle on the server as well as on the client.

On Thu, 02 Apr 1998 16:44:52 +0200, Martin Terpstra <terpstra_at_ats.nld.alcatel.nl> wrote:

>hello,
>
>TZ = environment variable on unix which indicates
> the local timezone.
>GMT = Greenwich Mean Time
>
>
>The situation:
>
>There are two unix machines.
>On one machine the oracle database server is running in local timezone.
>When starting different oracle tools on both machines we get different
>values for the SYSDATE value !!
>
>------------------------------------------------------------------
>Oracle | machine with the oracle server | remote machine
>tool | runs on TZ=local(GMT+2) |
>==================================================================
>SQLPLUS | TZ=GMT | TZ=GMT
> | select sysdate from dual | select sysdate from dual
> | returns: GMT (not server) time | returns: local (=server) time
>------------------------------------------------------------------
>FORMS | TZ=GMT | TZ=GMT
> | sysdate in forms | sysdate in forms
> | returns: local(=server) time | returns: local(=server) time
>------------------------------------------------------------------
>REPORTS | TZ=GMT | TZ=GMT
> | sysdate in report | sysdate in report
> | returns: GMT (not server) time | returns: GMT (not server) time
>------------------------------------------------------------------
>
>What is going on??
>
>please also respond to my Email.
>
>Thank you.
>
>--
>Martin Terpstra Alcatel Telecom Nederland
>Software Design Engineer Engineering & Development
>phone : +31 (70) 307-9407 Burgemeester Elsenlaan 170
>fax : +31 (70) 307-9191 2288 BH RIJSWIJK
>mailto:terpstra_at_ats.nld.alcatel.nl NETHERLANDS

--

Regards

Matthias Gresz    :-)

GreMa_at_T-online.de
Received on Fri Apr 03 1998 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US