Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sysdate displays on client is different from Oracle Db Server

eg_kuaNov 23 2015 — edited Dec 23 2015

Hi,

The sysdate display on client is different from Oracle DB Server resides at Unix. The DB at Unix is showing correct time but not on the client.

***************************************************************************************

From client:

SQL*Plus: Release 11.2.0.4.0 Production on Mon Nov 23 17:26:48 2015

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management,

OLAP,

Data Mining and Real Application Testing options

SQL> select to_char(sysdate,'dd-mm-yyyy hh24:mi:ss') from dual;

TO_CHAR(SYSDATE,'DD

-------------------

23-11-2015 01:30:08

***************************************************************************************

From DB Server:

SQL>  select to_char(sysdate,'dd-mm-yyyy hh24:mi:ss') from dual;

TO_CHAR(SYSDATE,'DD

-------------------

23-11-2015 17:30:14

***************************************************************************************

The DB Server is showing the correct time. When I login on client using sqlplus it shows the correct date "SQL*Plus: Release 11.2.0.4.0 Production on Mon Nov 23 17:28:48 2015" but after logon the sysdate shows incorrect time on command prompt. Using current_date is showing correct date.

Anyone, any recommendations ?

Regards,

EG

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 20 2016
Added on Nov 23 2015
38 comments
16,770 views