I developed this script to run on redhat boxes to automatically start/stop OPMN processes within the init process. Please note, it starts all processes and you must modify some of the environment variables before you use it yourself. Otherwise, enjoy!
#!/bin/sh# Startup script for all opmn componentsORA_BASE=/u01/app/oracleORA_INSTANCE=/u01/app/oracle/admin/oid_inst1ORA_OWNER=oraclecase "$1" in'start')#Start all opmn componentssu - $ORA_OWNER -c "$ORA_INSTANCE/bin/opmnctl startall";;'stop')#stop all opmn componentssu - $ORA_OWNER -c "$ORA_INSTANCE/bin/opmnctl stopall";;'restart')#stop then startsu - $ORA_OWNER -c "$ORA_INSTANCE/bin/opmnctl stopall"su - $ORA_OWNER -c "$ORA_INSTANCE/bin/opmnctl startall"esacexit $RETVAL
Thanks for this, it saved me some time writing one from scratch. One question, what is the purpose of the ORA_BASE variable, it seems not to be usedReplyDelete
ORA_INSTANCE should be $ORA_BASE/admin/oid_inst1, but for whatever reason I automatically expand my variable references while typing.ReplyDelete
Glad it could be helpful :)
dafabet | bestbet88.com - LegalbetReplyDelete
Dafabet is the #1 다파벳 sportsbook in ทางเข้า m88 the world providing the latest and best odds on all sports. The only name 1xbet in the business.