After installation OEM 11g mostly we required is to start the OEM services even after server reboot so here you will see how to make a OEM start-up script and add into the OS start-up sequence.
This is purely to avoid manual operation of OEM start-up if in any case we reboot the server.
This is purely to avoid manual operation of OEM start-up if in any case we reboot the server.
1. Create dbora (service name) file as below:
vi /etc/init.d/dbora
#Run-level Startup script for the Oracle Instance and Listener
#
# chkconfig: 345 91 19
# description: Startup/Shutdown Oracle listener and instance
ORACLE_HOME="/oem/oracle/app/oracle/product/11.2.0/dbhome_1/"
ORACLE_OWNR="oracle"
OMS_ORACLE_HOME="/oem/Middleware/oms11g/"
OEM_AGENT_HOME="/oem/Middleware/agent11g/"
# if the executables do not exist -- display error