<?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: System date change in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820081#M86404</link>
    <description>Hi Damon.&lt;BR /&gt;&lt;BR /&gt;I used to roll the date back and forth all the time on our development server.  We had to do this in order to thoroughly test an application that had date sensitive code.  It did wreak havoc with some of my maintenance routines which deleted files based on age.&lt;BR /&gt;&lt;BR /&gt;We later found a way that you can change the date within an oracle instance without having to actually change the Unix system clock.  &lt;BR /&gt;&lt;BR /&gt;If you add this line to the init.ora, you can fake out oracle.&lt;BR /&gt;&lt;BR /&gt;fixed_date = "2002-09-30-12:00:00"&lt;BR /&gt;&lt;BR /&gt;If you then select sysdate from dual it will return sept. 30th, 2002 regardless of what Unix says.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Tim</description>
    <pubDate>Tue, 08 Oct 2002 18:55:45 GMT</pubDate>
    <dc:creator>Tim Medford</dc:creator>
    <dc:date>2002-10-08T18:55:45Z</dc:date>
    <item>
      <title>System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820071#M86394</link>
      <description>I have been asked to change the system date on my N4000 running HP-UX 11.0.  I was asked to roll the date back one month.  I am running my application on Oracle 8.1.6.&lt;BR /&gt;Has anyone attempted to do this?  I am very worried about what might happen.</description>
      <pubDate>Mon, 07 Oct 2002 13:14:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820071#M86394</guid>
      <dc:creator>Cara Tock</dc:creator>
      <dc:date>2002-10-07T13:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820072#M86395</link>
      <description>The oracle instance does not depend on the system time even if it is adjusted. &lt;BR /&gt;But if you are using a time based recovery scenario you get into trouble of double time stamp. &lt;BR /&gt;So a time based recovery scenario becomes a problem but you can still use the SCN and CANCEL based recovery scenarios for recovery. &lt;BR /&gt;The SCN(system change number) time stamps does not depend on the system time. &lt;BR /&gt;&lt;BR /&gt;But it is better to have a cold backupi.e.complete consistent shutdown of the database and a backup of it before doing into any system time change. &lt;BR /&gt;&lt;BR /&gt;But still the incremental exports,PL?SQL jobs and the cron jobs running on the system should get affected. &lt;BR /&gt;&lt;BR /&gt;Thus changing the system time will not affect the Oracle instance except the time based recovery option. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Mon, 07 Oct 2002 13:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820072#M86395</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-10-07T13:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820073#M86396</link>
      <description>This is normally a bad thing to do. Setting your system data ahead is generally not too bad but setting it backwards can confuse many applications. For example, in many database applications it is common to have a sequential transaction number of some sort. In your case, after setting the date back, transaction 1000 could occur earlier than transaction 999. &lt;BR /&gt;&lt;BR /&gt;Probably the most serious consequence is on development boxes which depend upon the make utility. Make uses the file datestamps to determine which objects need to be compiled and linked. For example, if myfile.o depends upon myfile.c, you could modify myfile.c but because myfile.o appears to be newer than myfile.o, myfile.c would not be recompiuled eventhough you just changed the source.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Oct 2002 13:20:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820073#M86396</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-10-07T13:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820074#M86397</link>
      <description>Rolling the date forwards and backwards (or backwards then forwards) can cause filesystem corruption (because files with future dates would be unknown by the system).&lt;BR /&gt;&lt;BR /&gt;If you must do this, you should make a complete system backup prior to rolling the date.  Be prepared to do a full system restore when finished testing the date.&lt;BR /&gt;&lt;BR /&gt;If you have any documents from testing for Y2K you could use them for this task.&lt;BR /&gt;Cheryl</description>
      <pubDate>Mon, 07 Oct 2002 13:21:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820074#M86397</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2002-10-07T13:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820075#M86398</link>
      <description>What kind of effect does this have on the operating system?</description>
      <pubDate>Mon, 07 Oct 2002 13:22:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820075#M86398</guid>
      <dc:creator>Cara Tock</dc:creator>
      <dc:date>2002-10-07T13:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820076#M86399</link>
      <description>Rolling the date can reak havoc on your system.  Think about all the places that dates are used (password aging, timestamps in files, sar data, at jobs, licenses which might be based on date, etc.)  The system is currently at one date, then you change the date back.  So now what was the current date is now a future date to the system.&lt;BR /&gt;&lt;BR /&gt;When this was an issue for y2k, everyone was testing by rolling the dates forwards then backwards, unless you had a backup from prior to rolling, you were advised to reinstall the operating system.&lt;BR /&gt;&lt;BR /&gt;It is not advised, especially not in a production environment.&lt;BR /&gt;&lt;BR /&gt;Cheryl</description>
      <pubDate>Mon, 07 Oct 2002 13:33:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820076#M86399</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2002-10-07T13:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820077#M86400</link>
      <description>Damon&lt;BR /&gt;&lt;BR /&gt;Yes as already stated you can have problems so a full system backup/ignite is advised before you do it.&lt;BR /&gt;&lt;BR /&gt;But one of my test servers  running Universe has the date rolled backwards and forwards on a regular basis and has had no problems.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Mon, 07 Oct 2002 13:41:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820077#M86400</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-10-07T13:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820078#M86401</link>
      <description>I would like to see what would happen, but I think I have to chicken out on this one. If someone tells me they have done this with HP-UX 11.0 and Oracle and haven't had any problems, then I might give it a try.  The system isn't in production yet, but it is close and having it down for a week for a rebuild is not an option.  Thanks for your replies.</description>
      <pubDate>Mon, 07 Oct 2002 13:59:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820078#M86401</guid>
      <dc:creator>Cara Tock</dc:creator>
      <dc:date>2002-10-07T13:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820079#M86402</link>
      <description>"filesystem corruption" sounds a bit more frightening than may be warranted here. I'm not aware of any situation where, for example, setting the date backward would create problems that fsck could find.  It certainly is true that it could cause problems with 'make' dependencies not working as expected, or incremental backups not containing the expected data.  It's also quite possible that bad things could happen with any scripts that, for example, create files with names based on the current date, or that you might confuse cron/at or the jobs run by them.&lt;BR /&gt;&lt;BR /&gt;It's nearly impossible to say what all the risks are without having a much more detailed understanding of what runs on the system in question.  Given any reasonable choice, setting the date backward on a production system should probably be avoided. Skewing time with ntpd, adjtime(), etc. is generally a lot safer.  Since you're talking about a delta of a month, I assume that's not a practical solution in your case.&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Oct 2002 15:09:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820079#M86402</guid>
      <dc:creator>doug hosking</dc:creator>
      <dc:date>2002-10-08T15:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820080#M86403</link>
      <description>Hi Damon&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Like you even I have never tried , but if I was you I owuld first try it on a test server and see what happens , ideally there shouldnt be any problems .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Tue, 08 Oct 2002 15:33:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820080#M86403</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-10-08T15:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820081#M86404</link>
      <description>Hi Damon.&lt;BR /&gt;&lt;BR /&gt;I used to roll the date back and forth all the time on our development server.  We had to do this in order to thoroughly test an application that had date sensitive code.  It did wreak havoc with some of my maintenance routines which deleted files based on age.&lt;BR /&gt;&lt;BR /&gt;We later found a way that you can change the date within an oracle instance without having to actually change the Unix system clock.  &lt;BR /&gt;&lt;BR /&gt;If you add this line to the init.ora, you can fake out oracle.&lt;BR /&gt;&lt;BR /&gt;fixed_date = "2002-09-30-12:00:00"&lt;BR /&gt;&lt;BR /&gt;If you then select sysdate from dual it will return sept. 30th, 2002 regardless of what Unix says.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 08 Oct 2002 18:55:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820081#M86404</guid>
      <dc:creator>Tim Medford</dc:creator>
      <dc:date>2002-10-08T18:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820082#M86405</link>
      <description>On a production server, I would never allow more than a few minutes change and *ONLY* when rebooting, *NEVER* change the date/time on a running system. I would go so far as to wrapper the date command so that only queries are allowed (no changes).&lt;BR /&gt;&lt;BR /&gt;Now, will this affect HP-UX? Probably not. Unless you are using time-specific services like cron. But what can you do with HP-UX? Not much. You have applications and support tools and even middleware that may be crucially dependent on time moving in one direction. If you assume that the database will be corrupted and all supporting config files will have to be rebuilt, then you'll make the right decision. There are some awful programs that store date and timestamps in the database as links and index items.&lt;BR /&gt;&lt;BR /&gt;If you like to take chances, change the date but polish up your resume' just in case.</description>
      <pubDate>Wed, 09 Oct 2002 02:37:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820082#M86405</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-10-09T02:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: System date change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820083#M86406</link>
      <description>During the y2k period of time, we had developed a utility for people to roll the clock back and forth to test the Y2k bugs.  We learnt from that system/OS normally is okay without problem.&lt;BR /&gt;&lt;BR /&gt;However, you need to be careful with Oracle, since the Oracle trnsaction logs could get confused and no longer work properly.  If you need to roll clock back for some special task, you would better of to create separate instance, stop you normal instance running in the normal clock and start this special instance at roll backed clock.&lt;BR /&gt;&lt;BR /&gt;Hope this help.</description>
      <pubDate>Wed, 09 Oct 2002 04:06:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-date-change/m-p/2820083#M86406</guid>
      <dc:creator>Wayne Yu_1</dc:creator>
      <dc:date>2002-10-09T04:06:48Z</dc:date>
    </item>
  </channel>
</rss>

