<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change system time back one hour in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921272#M407952</link>
    <description>To answer the following:&lt;BR /&gt; # date&lt;BR /&gt;Fri Aug 26 12:20:22 SADT 2005&lt;BR /&gt;&lt;BR /&gt;It really should be only 11:30:22. What does the DT mean after SA? SA"DT"?&lt;BR /&gt;&lt;BR /&gt;Years ago, HP-UX had entries in /etc/tztab for Sa that indicated SA had Daylight Savings Time, hence S(outh)A(frica)D(aylightSavings)T(ime)&lt;BR /&gt;&lt;BR /&gt;SA does not have Daylight Savings Time, there are no changes during the year like UK etc.&lt;BR /&gt;&lt;BR /&gt;When I worked there, we used ot have to create our own entries to fix this, but a few years ago this was corrected.&lt;BR /&gt;&lt;BR /&gt;Check you tztab file, also your /etc/TIMEZONE entry.&lt;BR /&gt;</description>
    <pubDate>Fri, 26 Aug 2005 05:18:13 GMT</pubDate>
    <dc:creator>melvyn burnard</dc:creator>
    <dc:date>2005-08-26T05:18:13Z</dc:date>
    <item>
      <title>Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921268#M407948</link>
      <description>I have system in South Africa that is displaying the time 1 hour ahead of what it should be.&lt;BR /&gt; # date&lt;BR /&gt;Fri Aug 26 12:20:22 SADT 2005&lt;BR /&gt;&lt;BR /&gt;It really should be only 11:30:22.  What does the DT mean after SA?  SA"DT"?&lt;BR /&gt;&lt;BR /&gt;I do plan on rebooting the server today, so I just want to change the time back one hour.  Is there a preferred method instead of the just using the "date" command.</description>
      <pubDate>Fri, 26 Aug 2005 04:25:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921268#M407948</guid>
      <dc:creator>Joe Profaizer</dc:creator>
      <dc:date>2005-08-26T04:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921269#M407949</link>
      <description>Hi Joe,&lt;BR /&gt;of course there are some methods;&lt;BR /&gt;go to SAM;&lt;BR /&gt;time--&amp;gt;sysclock&lt;BR /&gt;or&lt;BR /&gt;set_parms&lt;BR /&gt;&lt;BR /&gt;also have a look at this links;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=850635" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=850635&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=847752" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=847752&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=843029" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=843029&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Aug 2005 04:36:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921269#M407949</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-08-26T04:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921270#M407950</link>
      <description>another useful links;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www5.itrc.hp.com/service/james/search.do?searchtext=timezone&amp;amp;hpl=1&amp;amp;todo=search&amp;amp;searchcriteria=allwords&amp;amp;from=forums&amp;amp;searchcategory=ALL&amp;amp;rn=25&amp;amp;presort=rank&amp;amp;source=7000&amp;amp;esc=europe.support.itrc.hp.com&amp;amp;wpa=forums1.itrc.hp.com%3A80&amp;amp;origin=0&amp;amp;chkServStor=on" target="_blank"&gt;http://www5.itrc.hp.com/service/james/search.do?searchtext=timezone&amp;amp;hpl=1&amp;amp;todo=search&amp;amp;searchcriteria=allwords&amp;amp;from=forums&amp;amp;searchcategory=ALL&amp;amp;rn=25&amp;amp;presort=rank&amp;amp;source=7000&amp;amp;esc=europe.support.itrc.hp.com&amp;amp;wpa=forums1.itrc.hp.com%3A80&amp;amp;origin=0&amp;amp;chkServStor=on&lt;/A&gt;</description>
      <pubDate>Fri, 26 Aug 2005 04:38:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921270#M407950</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-08-26T04:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921271#M407951</link>
      <description>Joe,&lt;BR /&gt;&lt;BR /&gt;The only caution with setting the clock back is if you're running a DataBase environment.  It can cause havoc with your rollback logs.  So just make sure your DB is not active when you set the clock.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 26 Aug 2005 05:09:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921271#M407951</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-08-26T05:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921272#M407952</link>
      <description>To answer the following:&lt;BR /&gt; # date&lt;BR /&gt;Fri Aug 26 12:20:22 SADT 2005&lt;BR /&gt;&lt;BR /&gt;It really should be only 11:30:22. What does the DT mean after SA? SA"DT"?&lt;BR /&gt;&lt;BR /&gt;Years ago, HP-UX had entries in /etc/tztab for Sa that indicated SA had Daylight Savings Time, hence S(outh)A(frica)D(aylightSavings)T(ime)&lt;BR /&gt;&lt;BR /&gt;SA does not have Daylight Savings Time, there are no changes during the year like UK etc.&lt;BR /&gt;&lt;BR /&gt;When I worked there, we used ot have to create our own entries to fix this, but a few years ago this was corrected.&lt;BR /&gt;&lt;BR /&gt;Check you tztab file, also your /etc/TIMEZONE entry.&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Aug 2005 05:18:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921272#M407952</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2005-08-26T05:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921273#M407953</link>
      <description>hi &lt;BR /&gt;&lt;BR /&gt;you may also wish to review your timezone.&lt;BR /&gt;(use echo $TZ )&lt;BR /&gt;&lt;BR /&gt;you should use "set_parms timezone" to do the appropriate changes.&lt;BR /&gt;&lt;BR /&gt;man set_parms&lt;BR /&gt;for more information.&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Fri, 26 Aug 2005 05:34:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921273#M407953</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-08-26T05:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921274#M407954</link>
      <description>Because Oracle tracks the sequence of events in the database using the System&lt;BR /&gt;Commit Number (SCN), changing the system clock for daylight savings time will&lt;BR /&gt;have no effect on database operation.  The only point where the time change&lt;BR /&gt;can have potentially harmful effect is during time-based recovery.&lt;BR /&gt;&lt;BR /&gt;Time based recovery requires checking of the actual time the transaction was&lt;BR /&gt;recorded in the logfile.  Every log record has a time stamp associated with&lt;BR /&gt;it.  If the system manager for some reason changes the system clock, Oracle&lt;BR /&gt;Support recommends shutting down the database and taking a cold backup ( or a&lt;BR /&gt;hot backup if preferred).  If for some reason a dba has to go back to a backup&lt;BR /&gt;which was taken prior to the system clock change and rollforward, recovery&lt;BR /&gt;works just fine except for time based recovery (Note that time based recovery&lt;BR /&gt;works fine if the system clock is moved forward in time).  When the system&lt;BR /&gt;clock is changed backwards, its possible that there could be two redo records&lt;BR /&gt;with the same time stamp.  If time based recovery is done in this scenario,&lt;BR /&gt;since ORACLE applies only redo entries that were written prior to a specified&lt;BR /&gt;time, ecovery stops when it finds the first redo record which has that&lt;BR /&gt;specified time.&lt;BR /&gt;&lt;BR /&gt;The following example will illustrate the problem:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3pm            4pm     4.15    4.30  5pm--&amp;gt;4pm   4.16pm  4.30   5pm&lt;BR /&gt;|--------------|-------|-------|-------|---------|-------|------|&lt;BR /&gt;cold/hot      T1      T2      T3     clock       T4     T5      T6&lt;BR /&gt;backup                               change&lt;BR /&gt;&lt;BR /&gt;                                       |&amp;lt;----------R1----------&amp;gt;|&lt;BR /&gt;&lt;BR /&gt;A cold backup was taken at 3pm. A transaction T1 was done at 4pm.  So the redo&lt;BR /&gt;record has a time stamp of 4pm. Transaction T2 was done at 4.15pm and&lt;BR /&gt;transaction T3 at 4.30pm.&lt;BR /&gt;&lt;BR /&gt;At 5pm the system clock was changed backward, one hour. 16 minutes later (i.e;&lt;BR /&gt;at time 4.16pm) transaction T4 was done.  Later on, the disk crashed and we&lt;BR /&gt;lost the databasefiles.&lt;BR /&gt;&lt;BR /&gt;Any recovery done to recover data upto certain time in the range R1 will not&lt;BR /&gt;recover the data in the range R1 but recovers only until corresponding time&lt;BR /&gt;before the system clock change.&lt;BR /&gt;&lt;BR /&gt;Say if the DBA decides to recover until T5(4:30pm) which is in time range R1.&lt;BR /&gt;DBA restores the backup from 3pm and does a recovery until 4:30 thinking it&lt;BR /&gt;would recover until T5. Actually the recovery is done until T3 and not T5. So&lt;BR /&gt;all the trasanctions entered after T3 will be lost. Recovery beyond 5pm or say&lt;BR /&gt;beyond range R1 should not cause any lose of data.&lt;BR /&gt;&lt;BR /&gt;Note:&lt;BR /&gt;  Although specifying a time in the interval 'clock change' to 'T6' will&lt;BR /&gt;  result in incomplete recovery to the first occurrence of the specified&lt;BR /&gt;  time it is still possible to recover to any point in time in this range&lt;BR /&gt;  using SCN based recovery (using the RECOVER UNTIL CHANGE clause).&lt;BR /&gt;&lt;BR /&gt;Conclusion:&lt;BR /&gt;  Following a time change where the clocks go back in time there is a&lt;BR /&gt;  window where INCOMPLETE recovery using TIME BASED recovery is affected.&lt;BR /&gt;  Recovery to a point in time within this window can be achieved using&lt;BR /&gt;  SCN (or CHANGE) based recovery.&lt;BR /&gt;  Recovery to a point in time after this window requires no special action.&lt;BR /&gt;****************************************&lt;BR /&gt;What does this all mean?I do not think NTP is an issue.It regulates the&lt;BR /&gt;clock ticks.The issue seems to be a DB recovery issue with Logging and&lt;BR /&gt;Daylight Saving Time and this has been around forever.</description>
      <pubDate>Fri, 26 Aug 2005 06:02:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921274#M407954</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-08-26T06:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921275#M407955</link>
      <description>I would suggest using ntp to connect to a correct time server.&lt;BR /&gt;&lt;BR /&gt;Then your clock will run slowly for the period of time needed to correct this problem.&lt;BR /&gt;&lt;BR /&gt;Setting back time can crash oracle databases among other nasty impacts.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 26 Aug 2005 06:06:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921275#M407955</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-08-26T06:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921276#M407956</link>
      <description>Hi Joe,&lt;BR /&gt;&lt;BR /&gt;there is another method to adjust the clock SLOWLY.&lt;BR /&gt;#date -a -3600&lt;BR /&gt;&lt;BR /&gt;do a man date and look for parameter "a".&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Fri, 26 Aug 2005 08:05:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921276#M407956</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2005-08-26T08:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921277#M407957</link>
      <description>I would not change the time at all because it is not necessary. HP-UX only keeps time in GMT (Zulu, UTC, etc) and what you see with the date command is a translated value.The reason is simple: Timezones have nothing to do with astronomy--they are 100% political and quite arbitrary. This is a great site to explain time problems: &lt;A href="http://physics.nist.gov/GenInt/Time/world.html" target="_blank"&gt;http://physics.nist.gov/GenInt/Time/world.html&lt;/A&gt; Knowing that, HP-UX was designed to handle any possible set of rules about time and time shifts like Daylight Saving Time.&lt;BR /&gt; &lt;BR /&gt;Do you want to see the current time in California or New York? Use these commands:&lt;BR /&gt; &lt;BR /&gt;TZ=PST8PDT date&lt;BR /&gt;TZ=EST5EDT date&lt;BR /&gt; &lt;BR /&gt;Now you have to get your server onto the correct GMT time. Type this command:&lt;BR /&gt; &lt;BR /&gt;TZ=GMT0 date &lt;BR /&gt; &lt;BR /&gt;Is that the correct time for GMT (use this website to verify: &lt;A href="http://www.firstscience.com/site/time.asp" target="_blank"&gt;http://www.firstscience.com/site/time.asp&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;If you need to change the time, to make GMT0 correct, read the warnings. Although Oracle doesn't track transactions by time, many DBA's will code time/date into fields making the database sensitive to time changes. As mentioned, you can slew the time so that no seconds are lost or gained but the time between seconds can be expanded or reduced until the time is correct. This is a standard feature of NTP (the xntpd program). &lt;BR /&gt; &lt;BR /&gt;But it cannot adjust more than 1024 seconds (17 minutes) so a 'jump' change will be necessary. So schedule some downtime so you can stop all the applications and then change the date/time.&lt;BR /&gt; &lt;BR /&gt;Now if GMT0 is correct, you simply need to change the default timezone. SADT does not seem to be in the sandard /usr/lib/tztab file (the original version is in /usr/newconfig/usr/lib/tztab so you can compare it:&lt;BR /&gt; &lt;BR /&gt;diff /usr/newconfig/usr/lib/tztab /usr/lib/tztab&lt;BR /&gt; &lt;BR /&gt;Since SADT does not appear in a normal tztab file, it may have been added to /etc/TIMEZONE without realizing that it will be ignored if there is no matching entry in tztab. This often happens when someone familiar with another flaovr of Unix makes changes based on the other system's rules. The command:&lt;BR /&gt; &lt;BR /&gt;TX=SDAT date&lt;BR /&gt;and&lt;BR /&gt;TZ=XYZW date&lt;BR /&gt;and&lt;BR /&gt;TZTAB=GMT0 date&lt;BR /&gt; &lt;BR /&gt;may produce the same result. So your time may indeed be displaying as GMT right now. Check if you get the correct time with:&lt;BR /&gt; &lt;BR /&gt;TZ=SAST-2 date&lt;BR /&gt; &lt;BR /&gt;This is the entry in tztab for South Africa. Now it does not have a Daylight Saving offset in tztab. The man page for tztab and the comments will help define the complete entry for tztab. Another really use page is: man environ where the TZ value and fields are defined. With the rules in environ, you can create any timezone with any offset (not just by hours) and any Daylight Saving Time offset.&lt;BR /&gt; &lt;BR /&gt;Now it appears that South Africa uses GMT+2 with no Daylight Saving (from &lt;A href="http://www.timeanddate.com/worldclock/" target="_blank"&gt;http://www.timeanddate.com/worldclock/&lt;/A&gt; ) so the /etc/TIMEZONE file should read:&lt;BR /&gt; &lt;BR /&gt;TZ=SAST-2&lt;BR /&gt;export TZ&lt;BR /&gt;&lt;BR /&gt;That should fix your problem once the GMT0 time is correct.</description>
      <pubDate>Fri, 26 Aug 2005 09:06:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921277#M407957</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-08-26T09:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921278#M407958</link>
      <description>Bill,&lt;BR /&gt;GMT time on my system is one hour early than posted on the web site you referenced.  I'm not sure how to change the GMT back one hour.</description>
      <pubDate>Fri, 26 Aug 2005 09:20:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921278#M407958</guid>
      <dc:creator>Joe Profaizer</dc:creator>
      <dc:date>2005-08-26T09:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921279#M407959</link>
      <description>You'll have to do it at a time that won't affect your applications, perhaps on the weekend, late at night, etc. Shutdown all your applications, then use the date command to set the time back one hour. When you do, GMT0 time also goes back one hour. Now restart your applications.</description>
      <pubDate>Fri, 26 Aug 2005 10:00:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921279#M407959</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-08-26T10:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921280#M407960</link>
      <description>Thank you everyone!!</description>
      <pubDate>Sat, 27 Aug 2005 04:37:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921280#M407960</guid>
      <dc:creator>Joe Profaizer</dc:creator>
      <dc:date>2005-08-27T04:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change system time back one hour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921281#M407961</link>
      <description>Very good information.  The /etc/TIMEZONE was key.</description>
      <pubDate>Sat, 27 Aug 2005 04:38:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-back-one-hour/m-p/4921281#M407961</guid>
      <dc:creator>Joe Profaizer</dc:creator>
      <dc:date>2005-08-27T04:38:45Z</dc:date>
    </item>
  </channel>
</rss>

