- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How Would you Handle This - Date/Time inadvertentl...
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
05-18-2004 07:03 AM
05-18-2004 07:03 AM
In a previous experience, I would do a 24+ hours shutdown of the server after which I start the server single user, correct the date and we're golden.
Everyone agrees but the method in how to correct the date is being debated, should we use "set_parms" or just use "date"?
What I am proposing is:
disable oracle/apps startup
shutdown server for 24+ hours
startup
use "set_parms date"
enable oracle/apps startup
reboot
What you guys think? Is there any difference between "set_parms date" and just using the "date" ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:09 AM
05-18-2004 07:09 AM
Re: How Would you Handle This - Date/Time inadvertently set 24 hours ahead. - Need to Correct
/sbin/init.d/xntpd stop
date
/sbin/init.d/xntpd start
This will allow NTP to be "close enough" to start, if applicable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:16 AM
05-18-2004 07:16 AM
Re: How Would you Handle This - Date/Time inadvertently set 24 hours ahead. - Need to Correct
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:20 AM
05-18-2004 07:20 AM
Re: How Would you Handle This - Date/Time inadvertently set 24 hours ahead. - Need to Correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:20 AM
05-18-2004 07:20 AM
Re: How Would you Handle This - Date/Time inadvertently set 24 hours ahead. - Need to Correct
First as you said time sensitive applications need to stopped. Date adjusted (date command or ntpdate or /etc/set_params date) and then applications started.
But keeping server disabled is good in you case. That is becasue some transactions already have timestamp of tomorrow and if you start immediately, some transactions will have timestamp of today. If that is fine with oracle you can start immedialtely after doing date adjustment. If not you will have to disable the server for 24 hrs.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:22 AM
05-18-2004 07:22 AM
Re: How Would you Handle This - Date/Time inadvertently set 24 hours ahead. - Need to Correct
Already I am thinking.. sar data, MWA datafiles, etc?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:26 AM
05-18-2004 07:26 AM
Re: How Would you Handle This - Date/Time inadvertently set 24 hours ahead. - Need to Correct
Two thoughts:
1) Just come up in single user mode (rather than disabling startups), then do the date, then init 3 (or 4 or whatever your default run level is).
2) set_parms is what is run during install. It's a common script available to do all those initialization things that need to be done at install time. I suspect it justs calls the date command, but all it does is provide an interface to make it more approachable for "rookies".
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:38 AM
05-18-2004 07:38 AM
Re: How Would you Handle This - Date/Time inadvertently set 24 hours ahead. - Need to Correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:51 AM
05-18-2004 07:51 AM
Re: How Would you Handle This - Date/Time inadvertently set 24 hours ahead. - Need to Correct
As suggested by others, I would also use 'date' to change the date. But I will ensure that the application/database is shutdown before I do so. I would even reboot the system after changing the date to make the things clean.
set_parms is a collection of configuration tools with date one of them. You can use it either instead of date.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:59 AM
05-18-2004 07:59 AM
Re: How Would you Handle This - Date/Time inadvertently set 24 hours ahead. - Need to Correct
it also does some error checking. Like did you input numbers and didn't try using something 2/30 (feburuary 30th).
then uses the date command to set the system clock.
So, either is going use the date command to set the system clock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 08:01 AM
05-18-2004 08:01 AM
SolutionHere is what I would try:
Stop Oracle/apps
Disable xntpd [as per Clay's suggestion]
set the correct date/time
wait 24 hours
Startup xntpd
Start Oracle/apps
I wouldn't recommend stopping the box cold for 24 hours. I've seen too many boxes and disks croak after being down that long.
Of course, if it wasn't a production server, I'd say just change the date and see what happens. See if your developers and DBAs can tell any difference. ;)
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 11:09 AM
05-18-2004 11:09 AM
Re: How Would you Handle This - Date/Time inadvertently set 24 hours ahead. - Need to Correct
If you don't take the system to single user mode, I would strongly suggest you stop and restart both cron and syslogd.