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 doesn't agree with date on Server

Re: Sysdate doesn't agree with date on Server

From: Joel Garry <joelga_at_pebble.ml.org>
Date: 1998/04/03
Message-ID: <6g3tms$te8$1@pebble.ml.org>#1/1

In article <6g0lka$14r5_at_piper.ncr.pwgsc.gc.ca>, Al <al_at_work> wrote:
>You have probably set a time zone environment variable in the .profile of
>the account that runs the oracle instances.
>
>. i.e.
>
>TZ=EST5EDT
>

And be sure both the environment that root uses and oracle uses export the TZ.

>
>Tansel Ozkan wrote in message <35212B90.642C_at_openix.com>...
>>Hello all,
>>
>>When I query the sysdate from Oracle, the time I am getting is different
>>than the time on the server machine on which the database is residing.
>>What could be the possible reasons for this?
>>
>>At SQLPlus prompt:
>>
>>select TO_CHAR(sysdate,'HH-MI-SS') from dual;
>>TO_CHAR(SYSDATE,'HH-MI-SS')
>>-------------------------------------------
>>10-51-13
>>
>>
>>On Unix prompt:
>>
>>$date
>>Tue Mar 31 12:51:13 EST 1998
>>
>>As you may have noticed, there is exactly a 2 hour of difference.
>>
>>Any comments..
>>
>>Thanks..
>>
>>Tansel
>
>

-- 
These opinions are my own and not necessarily those of Information Quest
jgarry@eiq.com                           http://www.informationquest.com
http://ourworld.compuserve.com/homepages/joel_garry
"See your DBA?"  I AM the @#%*& DBA!
Received on Fri Apr 03 1998 - 00:00:00 CST

Original text of this message

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