I am facing a problem of having difference in sysdate and current_timestamp. Server date matches with sysdate but not with current_timestamp.
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wed May 30 16:29:04 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
SQL> SELECT CURRENT_TIMESTAMP,to_char(sysdate, 'Dy DD-Mon-YYYY HH24:MI:SS') as "Now" from dual;
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Are you in the same timezone as the database server? Because it could be that CURRENT_TIMESTAMP is specific to the time on the client machine, rather than the server. Just a thought...
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Bookmarks