Skip to Content
avatar image
Former Member

How to write Server Startup & Shutdown Script.....

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)

  1. pwd

/

  1. su - oraprd -c lsnrctl start

>start

press Ctrl + d

  1. su - prdadm -c startsap

enter

#exit

PRODUCTION SERVER ‘SWITCH –OFF ’ PROCEDURE

( Before proceding, Check if we are in root or not)

  1. pwd

/

  1. su - prdadm -c stopsap (Enter)

Press Enter Again..

  1. su - oraprd -c lsnrctl stop (Enter)

LSNRCTL> stop (Enter)

Press Ctrl + d

  1. shutdown now To shutdown SAP system

  1. 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

Message was edited by:

YUSUF BHORI

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 07, 2007 at 09:28 AM

    Hello Yusuf,

    is this 6.40 or 7.00?

    as of 6.40 you can use sapcontrol command line tool to control the SAP behavior.

    Notes 936273 and 552324 might also be helpful if you run on 7.00.

    best regards

    Add comment
    10|10000 characters needed characters exceeded