Starting and Stopping SAP Systems in UNIX

October 12, 2016 by S4

Filed under SAP

Last modified October 25, 2016

1.    Steps to Stop SAP Instance

 

There are two steps to stop the SAP system:

 

  1. Stop the sap application server.
  2. Stop the database listener.

 

If there are multiple application servers, follow the same step as step 1 to stop all the application servers one by one before stopping the central instance and then the database listener

 

  1. Stop the application server. (This is the only instance, central + database) Go to command prompt, type telnet 10.40.0.1 & press enter

 

User name: root

Password: xyz

 

# su – pd1adm

prirdb:pd1adm 1> stopsap

 

You’ll get the following screen in the console

 

Checking PD1 Database

ABAP Database is running

Stopping the SAP instance DVEBMGS00

Shutdown-Log is written to /home/pd1adm/stopsap_DVEBMGS00.log Instance on host prirdb stopped

Waiting for cleanup of resources…

Running /usr/sap/PD1/SYS/exe/run/stopdb

Trying to stop PD1 database …

Log file: /home/pd1adm/stopdb.log

PD1 database stopped

/usr/sap/PD1/SYS/exe/run/stopdb completed successfully

prirdb:pd1adm 2>

 

Checking PD1 Database

ABAP Database is not available via R3trans

 

 

  1. Stop the database listener.

To stop the listener we have to log out of pd1adm and log in to ORA user.

 

prirdb:pd1adm 3> exit

# su – orapd1

prirdb:orapd1 1> lsnrctl stop

 

You’ll get the following screen in the console.

 

LSNRCTL for HPUX: Version <VERSION> – Production on <DATE> <TIME> Copyright (c) 1991, 2005, Oracle.   All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=PRD.WORLD)) The command completed successfully

 

 

Now log out from the system.

 

prirdb:orapd1 2> exit

# exit

 

 

Steps to Start SAP Instance

 

There are two steps to start the SAP system:

 

  1. Start the listener
  2. Start the SAP application server.

 

Similarly I f we have number of application servers

 

 

 

 

 

  1. Stop the database listener.

 

If you have restarted the server then the listener should be automatically start. To check the status telnet the server and login into orapd1 and give command:   lsnrctl status. If the listener is not started start the listener.

 

prirdb:orapd1 3> lsnrctl start

 

You will get the following screen.

 

prirdb:orapd1 4>

prirdb:orapd1 5>   exit

#

 

Now once the listener started we can start the sap instance now.

 

#

#su – pd1adm

prirdb:pd1adm 21>startsap

Checking PD1 Database

ABAP Database is not available via R3trans

Starting SAP-Collector Daemon

11:23:21 10.01.2008    LOG: Effective User Id is root

*

* This is Saposcol Version COLL 20.94 700 – V2.6.0 2007-02-15 HP-UX IA64 * Usage:   saposcol -l: Start OS Collector

* saposcol -k: Stop   OS Collector

* saposcol -d: OS Collector Dialog Mode

* saposcol -s: OS Collector Status

* The OS Collector (PID 31392) is already running …

saposcol already running

Running /usr/sap/PD1/SYS/exe/run/startdb

Trying to start PD1 database …

Log file: /home/pd1adm/startdb.log

PD1 database started

/usr/sap/PD1/SYS/exe/run/startdb completed successfully

Starting SAP Instance 00

 

Startup-Log is written to /home/pd1adm/startsap_ DVEBMGS00.log Instance Service on host prirdb started

Instance on host prirdb started

prirdb:pd1adm 22>exit

# exit

Now logon through SAP GUI to check whether you are able to logon.

Leave a Comment