- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oracle restart
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
04-24-2006 08:02 AM
04-24-2006 08:02 AM
I searched the Forum for this question, to no avail nothing.
Anyhow.. I have an oracle database running in a two node cluster, this database is configured to be monitored by MCSG.
My question is....
When I kill one of the proccess the database is shutdown and restarted on the second node. Cool yes it restarts on the second node.
Id like to configure MCSG to "try" restarting the database on the primary node before first then if it cant start i want to to give up and try to start it on the secondary node.
Do the these lines in the control.sh file tell MCSG to restart the database 3 times when the package is started for the first time or does it tell MCSG to restart the package on the node it is residing on and if the "restart fails after 3 tries then try to start it on the second node? If not is there a way to accomplish the latter?
SERVICE_NAME[0]=orapkg
SERVICE_CMD[0]="/etc/cmcluster/orapkg/ora.sh monitor"
SERVICE_RESTART[0]="-r 3"
Thanks,
Jim D
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2006 08:21 AM
04-24-2006 08:21 AM
Re: Oracle restart
This is supposed to be a service that MCSG is to monitor. If the service fails , it would try to start the service 3 times and if it unable to do that, it would fail the package to the alternate node.
You need to look at the script /etc/cmcluster/orapkg/ora.sh to understand what it is going to do if passed a "monitor" option in the command line.
You can try and see if you configure the package to be put the monitoring in maintainance mode, so that it will not fail the package in case you kill a process manually so you can do your maintainance.
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2006 08:27 AM
04-24-2006 08:27 AM
Re: Oracle restart
JD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2006 08:07 PM
04-24-2006 08:07 PM
SolutionYou run it with the monitor option
So,
The main line is
nohup ${0} fault & # The script calls itself with the fault option.
(This means halt package)
If any of the processes monitored fail
it will try to halt the package.
that is the situation at the moment.
If you want the script to first attempt
a restart action it will need to be programmed as such.
Then you need to fine tune the script
and test it so it does exactly what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2006 01:11 AM
04-25-2006 01:11 AM
Re: Oracle restart
Funny; when I looked at the script with the DBA yesterday this line jumped out. --->
nohup ${0} fault &
Thanks for pointing me in the correct direction!
By the way I own 2 VOLKSWAGENS!
Thanks again,
Jim D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2006 03:40 AM
05-18-2006 03:40 AM
Re: Oracle restart
thanks