I need to be able to do a cold backup of an Oracle database with a script. In order to do this, I need to shutdown/startup the Database automatically with a script. Here is a list of the manual commands to shutdown and startup the database:
su - applmgr
cd /usr/local/bin
. stopmanagers.sh shnp
su - oracle
svrmgrl
connect internal
shutdown immediate
-----------------------------------------------------------
su - applmgr
cd /usr/local/bin
. startmanagers.sh chnp
su - oracle
svrmgrl
connect internal
startup
Could someone help me with this?
su - applmgr
cd /usr/local/bin
. stopmanagers.sh shnp
su - oracle
svrmgrl
connect internal
shutdown immediate
-----------------------------------------------------------
su - applmgr
cd /usr/local/bin
. startmanagers.sh chnp
su - oracle
svrmgrl
connect internal
startup
Could someone help me with this?