on 08-08-2007 7:14 AM
Hi Experts,
Presently we are startting SAP using manually with following commands in HP-UX.
============================================
PRODUCTION SERVER SWITCH ON PROCEDURE
( Before proceeding, Check if we are in root or not)
pwd
/
su - oraprd -c lsnrctl start
>start
press Ctrl + d
su - prdadm -c startsap
enter
#exit
PRODUCTION SERVER SWITCH OFF PROCEDURE
( Before proceding, Check if we are in root or not)
pwd
/
su - prdadm -c stopsap (Enter)
Press Enter Again..
su - oraprd -c lsnrctl stop (Enter)
LSNRCTL> stop (Enter)
Press Ctrl + d
shutdown now To shutdown SAP system
shutdown -hy 0 To shutdown HP Production server
===================================================
How to write HP-UX script for starting and shutdown the SAP in single command ?
Pl. guide us.
Regards,
Yusuf
null
Hi Yusuf,
2 scripts startup and shutdown:
As root: (assume you have oratab file set)
For startup:
su - oraprd -c "lsnrctl start"
su - oraprd -c dbstart
su - prdadm -c "startsap r3"
For shutdown:
su - prdadm -c "stopsap r3"
su - oraprd -c dbshut
su - oraprd -c "lsnrctl stop"
Hope these help,
George
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Yusuf,
Sorry for the late reply oratab file usually in /etc or /var/opt/oracle directory when installing database software, yes you can create one if it's not there, format is:
database_sid:oracle_home_dir:Y|N
- database_sid is the system id (SID) of an Oracle instances on the server.
- Oracle_home_dir is the ORACLE_HOME directory associated with this instance.
- The Y|N flags indicate if the instance should automatically start at boot time (Y=yes, N=no).
Oracle's "dbstart" and "dbshut" scripts use this file to figure out which instances are to be start up or shut down (using the third field, Y or N).
Thanks,
George
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.