cancel
Showing results for 
Search instead for 
Did you mean: 

Do sap processes check for shutdown?

kurt_wagner
Explorer
0 Kudos

Hi

does anybody have an idea if the sap processes on a system i (a.k.a. as/400) watch for a system shutdown? We've had a power failure the other day an now we are taking actions. Once the power failure is recognized (CPF1816) we have the option to shutdown the system in a controlled way (PWRDWNSYS). In this case the system shutdown is sent to all jobs (RTVJOBA ENDSTS(..)). Now the interesting question is if sap jobs take notice of the job end-status or not

any ideas?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello, Kurt.

If you issue command PWRDWNSYS with *CNTRLD the sap jobs get notice about end.

On test system with running SAP instance i issue PWRDWNSYS *CNTRLD 360

sapstart.log

(2941) ****  Caught Signal to Stop all Programs. ****

(2941) Parent Shutdown

(2941) Wait 300 sec for Process 2967 terminating...

(2941) Stop Child Process: 2966                   

(2941) Wait 300 sec for Process 2966 terminating...

Execute Post-Shutdown Commands

------------------------------

(-1) Local: /usr/sap/<SID>/DVEBMGS00/exe/cleanipc 00 remove

(2941) Exiting with Return-Code 0. (Ok)

kurt_wagner
Explorer
0 Kudos

That's gread news ! Thanks alot! 

Former Member
0 Kudos

Correct Answer:-

Dear Kurt,

To remove shared memory occupied by sap instance, firstly we have to login with sidadm user

1. su - sidadm

2. stopsap r3

3. Cleanipc <instance no> remove.

4. Whether you can start again or exit.

Regards,

Praveen Mishra

Answers (1)

Answers (1)

kurt_wagner
Explorer
0 Kudos

Although the question has been anwered before I would like to add a comment for those who look at it later:

It is true - on our test system I issued a ENDSBS *CNTRLD *NOLIMIT. It took exactly 5 minutes to shut down the solution manager instance (my test candidate). But the jobs end ABNORMALLY (system value QABNORMSW is set to 1).

In my personal opinion in case of a power failure it is acceptable, but for normal system shutdown the method is not recommended.