If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > impact on database when server time is changed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-01-09, 19:55
db2zip db2zip is offline
Registered User
 
Join Date: Apr 2009
Posts: 42
impact on database when server time is changed

Hello,

If we change server time 2-3 hours ahead or behind, what is the impact on DB2 database?


Thank you!
Reply With Quote
  #2 (permalink)  
Old 11-02-09, 08:36
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Anything that uses the clock may cause confusion. For example, the db2diag.log file may seem out of order, even though it is not. The worst will be where you store a time or timestamp based on "current time" or "current timestamp". Someone will have to remember when the change occurred and thus comparing time from before to thos after need special consideration.

Andy
Reply With Quote
  #3 (permalink)  
Old 11-02-09, 13:45
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Typical problems are: Logs can run into serious problems and DB2 may not be able to find its built-in functions.

Therefore, you should never ever mess with the system time. I would set the system time to UTC and then work with timezones.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On