cancel
Showing results for 
Search instead for 
Did you mean: 

qustion about sapcontrol

Former Member
0 Kudos

Dear colleagues,

I have a question about sapcontrol.

sapcontrol -prot NI_HTTP -nr 00 -function Stop

This is only stop the SAP,database is not touched ,right?

Is there a option for sapcontrol to stop SAP and database at the same time?

If script is needed,for AIX,where should the script be located?

Thank you very much for your help.

Best regards,

Ellen

Accepted Solutions (1)

Accepted Solutions (1)

JPReyes
Active Contributor
0 Kudos

Why do you want to use sapcontrol to stop the instance?...

You can use stopsap / startsap via a script (you can put the script anywhere you want) and call it from crontab.

I can't see the point... maybe explain your scenario in detail

Regards

Juan

Former Member
0 Kudos

Dear colleagues,

Thanks a lot for your help.

The problem is that when customer using sapcontrol -prot NI_HTTP -nr 00 -function Stop

to stop the system,they find the database is not stopped.

They feel strange,since as

http://help.sap.com/erp2005_ehp_04/helpdata/EN/c4/3a6377505211d189550000e829fbbd/content.htm

sapcontrol also trigger sapstartsrv...

So I want to check their script.

But no idea where they put the script,customer also don't know this....

Start profile as below:

SAPSYSTEMNAME = G11

SAPSYSTEM = 00

INSTANCE_NAME = D00

DIR_CT_RUN = $(DIR_EXE_ROOT)/run

DIR_EXECUTABLE = $(DIR_INSTANCE)/exe

DIR_PROFILE = $(DIR_INSTALL)/profile

PF = $(DIRPROFILE)/G11_D00_aqaa04

SETENV_00 = LD_LIBRARY_PATH=$(DIR_LIBRARY):%(LD_LIBRARY_PATH)

SETENV_01 = SHLIB_PATH=$(DIR_LIBRARY):%(SHLIB_PATH)

SETENV_02 = LIBPATH=$(DIR_LIBRARY):%(LIBPATH)

#----


  1. Copy SAP Executables

#----


Execute_00 = immediate $(DIR_CT_RUN)/sapcpe$(FT_EXE) pf=$(_PF)

#----


  1. Start SCSA administration

#----


Execute_01 = local $(DIR_EXECUTABLE)/sapmscsa pf=$(_PF) -n

#----


  1. Start application server

#----


DW = dw.sap$(SAPSYSTEMNAME)$(INSTANCE_NAME)

Execute_02 = local rm -f $(_DW)

Execute_03 = local ln -s -f $(DIR_EXECUTABLE)/disp+work$(FT_EXE) $(_DW)

Start_Program_00 = local $(_DW) pf=$(_PF)

#----


  1. Start syslog send daemon

#----


SE = se.sap$(SAPSYSTEMNAME)$(INSTANCE_NAME)

Execute_04 = local rm -f $(_SE)

Execute_05 = local ln -s -f $(DIR_EXECUTABLE)/rslgsend $(_SE)

Start_Program_01 = local $(_SE) pf=$(_PF) -F

#----


  1. Start internet graphics server

#----


IG = ig.sap$(SAPSYSTEMNAME)$(INSTANCE_NAME)

Execute_06 = local rm -f $(_IG)

Execute_07 = local ln -s -f $(DIR_EXECUTABLE)/igswd_mt $(_IG)

Start_Program_02 = local $(_IG) -mode=profile pf=$(_PF)

So I want to know 2 things

1 can DB be stopped by using different sapcontrol option?

2 if the stop of DB is not related with the sapcontrol option,where to check the script....

it is also hard for me why startsap and sapcontrol use same script but sartsap will stop db via sapcontrol can not...

Thank you very much for your help!

Best regards,

Ellen

JPReyes
Active Contributor
0 Kudos

As far as I'm aware sapcontrol.exe just handles the web services...

When the system is started via SAPMMC the program strdbs.cmd start the database.

So I don't understand how is that your customer whats to shutdown the DB with sapcontrol

You can do this easily with a small script and avoid all the problem.

Regards

Juan

Former Member
0 Kudos

Hi,juan

Thank you very much for your help..

I want to know more about how to creat the script.

Would you like to help to me one example for the script and how to trigger the script?

Thank you very much for your help!

Best regards,

Ellen

Former Member
0 Kudos
want to know more about how to creat the script

You may want to refer to shell programming guide. Plenty are around there .. just google it.

Would you like to help to me one example for the script and how to trigger the script?

You may want to check with your Unix administrator or you can also search online and schedule via crontab

Former Member
0 Kudos

Thank you very much for your help!

Best regards,

Ellen

Answers (1)

Answers (1)

Former Member
0 Kudos

Ellen,

I would use sap standard procedure for starting and stopping. But you can choose not to stop database while stopping procedures.

Please refer to following link with various options available to you while starting and stopping SAP system. Please refer to starting and stopping the SAP system from the following link.

[http://help.sap.com/SAPHELP_ERP2004/helpdata/EN/70/b38937809c8f71e10000009b38f842/content.htm]

Hope this helps

Manoj