- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Time change !!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2006 07:19 PM
06-07-2006 07:19 PM
Time change !!
The current time in the system is 10 minute faster than the actual time.
# date
Thu Jun 8 02:28:58 CDT 2006
#
How to set the time.
(i)Any Precaution to take,
Oracle is running in the system.
(ii) If any reboot required.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2006 07:30 PM
06-07-2006 07:30 PM
Re: Time change !!
before change the system time, i think you must shutdown the database and related application running on the server.
to change the time, simply run the command "date MMDDhhmmYY" to change the time or using SAM.
no reboot is require to change the time.
GOOD LUCK!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2006 07:30 PM
06-07-2006 07:30 PM
Re: Time change !!
before change the system time, i think you must shutdown the database and related application running on the server.
to change the time, simply run the command "date MMDDhhmmYY" or using SAM.
no reboot is require to change the time.
GOOD LUCK!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2006 07:53 PM
06-07-2006 07:53 PM
Re: Time change !!
===================================================================
date [-u] [mmddhhmm[[cc]yy]]
Set the HP-UX system clock to the date and time
specified. You require the superuser privilege.
If you include the -u option, the specified date and time
is assumed to be in Coordinated Universal Time (UTC).
The numeric argument is interpreted left to right in
two-digit pairs as follows:
mm Month number [01-12].
dd Day number in the month [01-31].
hh Hour number (24-hour system) [00-23].
mm Minute number [00-59].
cc Century minus one [19-20].
yy Last two digits of the year number [70-99, 00-
37 (1970-1999, 2000-2037)]. If omitted, the
current year is used.
If you attempt to set the date backwards, date generates
the warning,
do you really want to run time backwards?[yes/no]
Type yes or the equivalent for your locale to set the
clock backwards; anything else to cancel the command.
When date is used to set the date, a pair of date change
records is written to the file /var/adm/wtmps.
(XPG4 only.) No warning is generated if date is set
backwards.
===================================================================
i)Any Precaution to take: i dont know exactly.wait for others responses.
[i think no need to take any precaution]
ii)reboot not required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2006 08:00 PM
06-07-2006 08:00 PM
Re: Time change !!
simple way is thru sam
1. run the command sam
2. select the last "sam area"--- Time
3. then third option-->System time
change the time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2006 09:31 PM
06-07-2006 09:31 PM
Re: Time change !!
if you are running hpux newer than 11.00, you can slow the time gradually over a period, e.g.:
# date -a -60
which will - over a period - subtract 60 seconds from the system time.
It is difficult to say when the period is over, as you get the prompt back immediately after executing the command:
60 seconds can probably be dealt with in app. 10-15 minutes.
Try and execute the command a few times with this interval - and be patient.
The advantage is of course that you do not have to think about the database, users etc.
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2006 12:04 AM
06-08-2006 12:04 AM
Re: Time change !!
/usr/sbin/ntpdate
cron this command to sync on a regular basis.
As a precaution, I would first shutdown Oracle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2006 01:17 AM
06-08-2006 01:17 AM
Re: Time change !!
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2006 03:01 AM
06-08-2006 03:01 AM
Re: Time change !!
I've always wondered, how does "daylight savings" time affect do this? Does it do it slowly, or does it just suddenly flop it over at 2:00 AM? Is it automatic - not ntp, but does the "clock" program on HPUX automatically change for DST? Or will it just update then next time I request a date change? I just realized some weeks ago that I could be exposed b/c of databases being open and running during the switch on and off of daylight savings time...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2006 03:09 AM
06-08-2006 03:09 AM
Re: Time change !!
Also has list/links to public time servers to can point to for accurate time.
As stated, computers are not time pieces. They will sync to a standard timepiece (atomic clock) but without the sync they should not be relied on for keeping accurate time.
As to when the time changes (1 forward or backward) the definition changes as well.
Example, PDT becomes PST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2006 03:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2006 07:01 AM
06-08-2006 07:01 AM
Re: Time change !!
Modern databases use sequence numbers for transactions but some DBAs and developers may store the current time and then use it as an indexed pointer. Most programmers will account for such situations but some do not. One solution is to run the databases and middleware in TZ=GMT0 and design the middleware to perform database-to-user dates to their timezone. HP-UX is somewhat unique in that 50 users can each have their own timezone. man environ
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2006 07:11 AM
06-08-2006 07:11 AM
Re: Time change !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2006 08:46 PM
06-08-2006 08:46 PM
Re: Time change !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2006 09:26 PM
06-08-2006 09:26 PM
Re: Time change !!
hth,
Raj.