1 Reply Latest reply: May 5, 2011 4:00 PM by Hussein Sawwan-Oracle RSS

    SYSTEM.Current_DateTime

    OliverM-Oracle
      we observerd that the Oracle $$DATE$$ and SYSTEM Object property "CurrentDatetime" uses Oracle system variable SYSTEM.Current_datetime to retrieve the current system date/time value. I also see that SYSTEM.Current_datetime is NOT in Sync with Client/Server Time. Also please verify the results of the following query that was run in our environment where the issue appears.

      SQL Statement which produced this data:
      select sysdate ,
      new_time(sysdate, 'MDT', 'EDT') LOCAL_TIME,
      dbtimezone,
      sessiontimezone,
      new_time(sysdate, 'MDT', 'EDT') - (substr(sessiontimezone,1,instr(sessiontimezone,':')-1)/24) CLIENT_TIME,
      new_time(sysdate, 'MDT', 'MDT') - (substr(dbtimezone,1,instr(dbtimezone,':')-1)/24) DB_TIME
      from dual;

      SYSDATE LOCAL_TIME DBTIMEZONE SESSIONTIMEZONE CLIENT_TIME DB_TIME
      5/4/2011 2:54:28 PM 5/4/2011 4:54:28 PM +00:00 -04:00 5/4/2011 8:54:28 PM 5/4/2011 2:54:28 PM

      Based on the above results, does the value of DBTIMEZONE and SESSIONTIMEZONE need to in Sync. If so, how do we make the change to Sync the values. Also is that the root cause of the problem for SYSTEM.Current_DateTime to be in out of sync with the client/Server Time.

      what SYSTEM.Current_datetime value depends on. Where do we need to set the value so the values are in Sync???