$ vi /etc/rc.d/init.d/oracle
Kindly let us know once you execute above steps, so we can verify the same.
For server linaspsg22 currently no database is present on it, after creation of any
database in future, then only need to add entry of new database in /etc/oratab file
(can be done by DBA team).
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++
oracle:OMS:/etc/init.d # cat oracle
# chkconfig: 345 99 10
# description: Oracle auto start-stop script.
# Set ORA_OWNER to the user id of the owner of the # Oracle database in ORA_HOME.
. /etc/rc.d/init.d/functions
ORA_OWNER=oracle
RETVAL=0
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c
"/export/home/oracle/admin/OMS/scripts/listener_start.sh"
su - $ORA_OWNER -c "/export/home/oracle/admin/OMS/scripts/ora_start.sh"
touch /var/lock/subsys/oracle
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c "/export/home/oracle/admin/OMS/scripts/listener_stop.sh"
su - $ORA_OWNER -c "/export/home/oracle/admin/OMS/scripts/ora_stop.sh"
rm -f /var/lock/subsys/oracle
;;
*)
echo $"Usage: $0 {start|stop}"
RETVAL=1
esac
exit $RETVAL
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Hello Ranjani ,
As a Root User :-
After the above output , DBA team to check whether the oracle service is configured
for Runlevel 3,4,5.The server is currently booted in runlevel 3.
Below test needs to be done in coordination with the Infra Team and DBA Team on
server 172.29.2.142 :-
If the above test is successful then DBA Team to implement the above script to the
Production servers.
NOTE :- OSKOMS UAT Database running on server 172.29.2.142 will not be available
during the above test.
++++++++++++++++++++++++++++++++++++++