- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oracle Monitor/Startup Script
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
01-16-2002 02:34 PM
01-16-2002 02:34 PM
I am setting up a 2 node MC/SG cluster to run oracle 8.1.7. in the package conf file i have moved the old /sbin/init.d/oracle script into /etc/cmcluster and put /etc/cmcluster/oracle start in the function customer_defined_run_cmds
{
/etc/cmcluster/oracle start
test_return 51
}
customer_defined_halt_cmds
{
/etc/cmcluster/oracle stop
test_return 52
}
but i dont know what to put in the SERVICE_CMD field above, this is what I have now.
SERVICE_NAME[0]=oracle_SRVP
SERVICE_CMD[0]="/etc/cmcluster/oracle start"
SERVICE_RESTART[0]="-r 0"
but every time i start the package, it mounts the file systems, starts oracle, then as soon as it is started successfully it stops the service, in the package log it says:
Jan 16 14:54:38 xora000 cmcld: Processing exit status for service PKG*31233
Jan 16 14:54:38 xora000 cmcld: Service PKG*31233 terminated due to an exit(0).
Jan 16 14:54:38 xora000 cmcld: Halted package oracleSRVP on node xora000.
i am thinking that for some reason it doesnt like my oracle rc script and I may have to re-write it. can anyone confirm what should be in the SERVICE_CMD field, i think i got the run_cmds and halt_cmds right.
Any help would really be appreciated!
Aaron Sheard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 03:42 PM
01-16-2002 03:42 PM
SolutionHere is a sample ORA-pkgname.sh attached as text. My package name is merc_pkg.
Also you can get step by step info for configuration from this link
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3936-90053/B3936-90053_top.html&con=/hpux/onlinedocs/B3936-90053/00/00/32-con.html&toc=/hpux/onlinedocs/B3936-90053/00/00/32-toc.html&searchterms=cmclnodelist&queryid=20011108-085249
Please download the PDF document. It is really comprehensive. (Also check if your serice software versions are the same on both servers)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 06:39 PM
01-16-2002 06:39 PM
Re: Oracle Monitor/Startup Script
$ ls /opt/cmcluster/toolkit/oracle
ORACLE.sh README
This script is designed for HP-UX 10.20 and 11.0 and handles Oracle 7 and 8.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 06:46 AM
01-17-2002 06:46 AM
Re: Oracle Monitor/Startup Script
Thanks again for your assistance.
Aaron Sheard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 07:03 AM
01-17-2002 07:03 AM
Re: Oracle Monitor/Startup Script
you don't have to put anything to start the database and shut the database in the service cmd script. Call the ora packge script with a start and stop option in the customer defined run_cmds and halt_cmds. If you want to minitor the oracle database you call the same script with the monitor option in the the service_cmd.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 07:09 AM
01-17-2002 07:09 AM
Re: Oracle Monitor/Startup Script
Thanks again!!
Aaron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 07:13 AM
01-17-2002 07:13 AM
Re: Oracle Monitor/Startup Script
First of all, you needn't put anything in the SERVICE_CMD area; it only depends on how sensitive you want your cluster to be to application failures.
With that being said, the ORACLE.sh script provided by HP for MCSG also has a monitor argument, which is an option for you. So:
SERVICE_NAME[0]=oracle_mon
SERVICE_CMD[0]=/etc/cmcluster/ORACLE.sh monitor
SERVICE_RESTART[0]="-r 0"
Also, although it is not required, I use the halt argument in my customer_defined_halt_commands function because it causes oracle to to a shutdown abort rather than a shutdown immediate, which is much slower and enables the failover to occur faster instead of running the risk of the database shutting down because the proimary node reboots.
Just some thoughts, hope they help
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 07:21 AM
01-17-2002 07:21 AM
Re: Oracle Monitor/Startup Script
The configuration is like this,
First specify a service name in the package ascii configuration script. Next you specify the command that is required to run that service in the package control script. Normally a service can be the monitoring of the database, so to run this service you use the oracle.sh script with the monitor option in the package control script. If you don't want to minitor the database leave the service_cnd blank in the packge control script. Comment the line referring to the service cmd. put a "#" before the same.
# SERVICE_NAME[0]=oracle_SRVP
# SERVICE_CMD[0]="/etc/cmcluster/oracle start"
# SERVICE_RESTART[0]="-r 0"
Here the serive name oracle_SVRP is defined in the packge ascii configuration script and the corresponding command to run that service is mentioned in the packge control script. Comment the lines as shown above in the package control script if you don't want to run the service.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 07:32 AM
01-17-2002 07:32 AM
Re: Oracle Monitor/Startup Script
1) I would create a subdirectory under /etc/cmcluster as your packagdirectory
/etc/cmcluster/
This is where you will place your package configuration and control scripts. Do this for all packages for housekeeping and to avoid possible confusion.
2) Additionally, you aren't limited to the monitoring option in ORACLE.sh. You may alternatively decide to use a script you create on your own. As they said in MCSG class in reference to service processes, "you are only limited by your own scripting abilities"
Good luck and happy clustering
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 08:03 AM
01-17-2002 08:03 AM
Re: Oracle Monitor/Startup Script
It is intended to be either the service itself or some sort of monitoring script.
That process is monitored by Serviceguard and if it fails (or simply exits) then the package is condidered to have failed.
Anything that you specify in SERVICE_CMD must therefore run the whole time that the package is active.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 08:08 AM
01-17-2002 08:08 AM
Re: Oracle Monitor/Startup Script
hmm maybe thats why my package fires up right away then fails over to the 2nd node, starts up then shuts down. if SERVICE_CMD is not used, maybe it must be commented out (right now the value is "" but is not commented out)
Aaron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 08:31 AM
01-17-2002 08:31 AM
Re: Oracle Monitor/Startup Script
Have a good time
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 08:39 AM
01-17-2002 08:39 AM
Re: Oracle Monitor/Startup Script
cmcld: Package oracleSRVP cannot run on this node because switching has been disabled for this node
even though in the package admin:failover options I have enabled switching on BOTH nodes. it seems once it goes through this cycle, it automatically changes both nodes to switching disabled. Any ideas?
(BTW You guys are great!)
Aaron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 08:48 AM
01-17-2002 08:48 AM
Re: Oracle Monitor/Startup Script
dmc30:/var/adm/syslog# cmviewcl -v
CLUSTER STATUS
WSMIS up
NODE STATUS STATE
dmc30 up running
Network_Parameters:
INTERFACE STATUS PATH NAME
PRIMARY up 0/4/0/0 lan3
PRIMARY up 0/0/0/0 lan0
PRIMARY up 1/8/0/0 lan2
STANDBY up 1/10/0/0 lan1
PACKAGE STATUS STATE AUTO_RUN NODE
WSMDB up running enabled dmc30
Policy_Parameters:
POLICY_NAME CONFIGURED_VALUE
Failover configured_node
Failback manual
Script_Parameters:
ITEM STATUS MAX_RESTARTS RESTARTS NAME
Subnet up 1.2.3.4
Node_Switching_Parameters:
NODE_TYPE STATUS SWITCHING NAME
Primary up enabled dmc30 (current)
Alternate up enabled dmc31
mot only do you need to ensure that AUTO_RUN shows enabled for the package, but also the node itself must have switching enabled, which is displayed at the bottom under the SWITCHING parameter. If the status shows disabled, run the following command:
# cmmodpkg -e -n
use the -n option for all nodes in your cluster, then run cmviewcl -v again; The SWITCHING should display as enabled. You MUST reenable the swithing for the packge and node every time a failover occurrs.
Hope this helps
Chris