- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- time problem
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
Discussions
Discussions
Forums
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
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
тАО05-04-2006 09:08 AM
тАО05-04-2006 09:08 AM
After a recent outage, when the system was restarted, the NTP daemon refused to adjust the clock because the time error was too large. This was not noticed right away. Time is 3 hours behind. The system is running Oracle.
What is the correct way to get the time set ahead 3 hours? Would Oracle, or anything else, likely care if it was bumped in a single increment?
- John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 09:14 AM
тАО05-04-2006 09:14 AM
SolutionIn /etc/rc.config.d/netdaemons, you should assign the NTP server(s) to the NTPDATE_SERVERS variable. This will allow ntpdate to run at system boot time and you'll avoid the problem.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 09:15 AM
тАО05-04-2006 09:15 AM
Re: time problem
1) Shutdown everything
2) Reboot and come up in single user mode
3) Reset time to correct time
4) bring machine the rest of the way up to multi-user mode
5) Verify time is correct and that NTP is functioning correctly.
I would not try to do this while the system is in production and Oracle is up. It is entirely possible that Oracle could get confused if the time were to leap ahead 3 hours suddently.
Another possibility is the use of the 'date -a' command. The '-a' option will slowly adjust the time by whatever number of seconds you specify.
So if you were to do: date -a 10800
The time would slowly be adjusted forward by 10,800 seconds (3 hours). 'man date' for more info.
I would use this with care as well. You might get away with that on a live system. It would be better if you could test on a non-production system first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 09:19 AM
тАО05-04-2006 09:19 AM
Re: time problem
- John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 09:55 AM
тАО05-04-2006 09:55 AM
Re: time problem
The 'xntpd' daemon will terminate if its view of its time source differs from it by about 1000 seconds.
I use Jeff's approach. That is, declaring a value for 'NTPDATE_SERVER' (i.e. your time source) in '/etc/rc.config.d/netdaemons' causes an immediate adjustment during startup before things like time-sensitive databases are launched. This eliminates the problem you currently have, although stepping the clock foward is seldom a problem. Moving time backwards can cause potential recovery issues and is best handled as Patrick suggests by shutdowns and reboots.
Since time for you is behind what it should be, you can set it ahead to very near the correct value and manually initiate 'xntpd' afterwards:
# /sbin/init.d/xntpd start
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 09:59 AM
тАО05-04-2006 09:59 AM
Re: time problem
I didn't understand Jeff's advice at first, so thank you for the clarification James.
- John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 12:02 PM
тАО05-04-2006 12:02 PM
Re: time problem
export NTPDATE_SERVER=myntp.someplace.com
must work correctly as this is the known-to-work NTP server that will set the time on reboot. CVheck that it is functioning with:
ntpq -p myntp.someplace.com
If this server is not reachable, pick another server. You may want to add a reboot check script that scans rc.log looking for reboot errors and take the appropriate action(s), usually notifying all the sysadmins as to the problems.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 02:35 PM
тАО05-04-2006 02:35 PM
Re: time problem
1) It can be viewed virtually as a 3 hours period where 'nothing' happens.
2) Oracle doesn't use 'time' as the basis for 'sequencing/ordering' things. It uses SCN's - System Change Numbers - sequential, time independent markers.
(BUT running time backwards requires a bit more thought and perhaps a different approach.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2006 04:04 PM
тАО05-04-2006 04:04 PM
Re: time problem
ntpdate will set time to that of ref system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2006 09:30 AM
тАО06-06-2006 09:30 AM
Re: time problem
Thanks everyone.