on 08-12-2014 1:08 PM
Hi Experts,
Is sapcontrol alternative of startsap/stopsap?
for which conditions sapcontrol -nr <> -function commands can be effectively used?
Is it possible to start database with sapcontrol command?
Thanks in advance
Hi Daniel,
Use can use startsap to start:
DB - startsap db hostname
ABAP - startsap r3 hostname
JAVA - startsap j2ee hostname
any instance - for eg J00 - startsap J00 hostname.
Why to use sapcontrol ?
Divyanshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Back to your original question: both of them take part in the start of sap system.
You can have a better overview about sapcontrol and startsap script here:
SAP Start Service - Architecture of the SAP NetWeaver Application Server - SAP Library
The sapcontrol webservice interface implements a wide variety of of other functions, e,g,
as here already mentioned GetProcessList but GetVersionInfo, ... GetEnvironment, GetStartProfile...
You can see here more detailed infos about sapcontrol web service functions:
Regards, Gabriella Kiss
Hi Daniel,
STARTSAP and STOPSAP are scripts which in turn call other kernel and host programs to startup and SAP environment .
Is sapcontrol alternative of startsap/stopsap?
Not really, sapcontrol more or less is an independent program/web-service interface which is called with additional options, which themselves are C codes.
Refer: for codes and list
Also, for starting database, at the backend, no sapcontrol is use.
Once you read the above document you know what function are all about.
One the script in VI or notepad and look for function call.
Regards,
Divyanshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
Is sapcontrol alternative of startsap/stopsap?
yes (but startsap and stopsap uses sapcontrol)
for which conditions sapcontrol -nr <> -function commands can be effectively used?
can be used for scripting
Is it possible to start database with sapcontrol command?
No, the db is started by startdb script.
Best regards
Willi Eimler
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
you can use the statement:
sapcontrol -nr <Systemnumber> -host <myhostname> -prot NI_HTTP -function Stop
to stop a system.
And:
sapcontrol -nr <Systemnumberl> -host <myhostnameY -prot NI_HTTP -function Start
to start a system.
A system is identified by a systemnumber and a hostname. The statements stops and starts systems regardless of their types.
Best regards
Willi Eimler
Hi Daniel,
yes. Look at the following example:
AS ABAP with systemnumber 01 on host alpha
ASCS with systemnumber 00 on host alpha
Java with systemnumber 04 on host beta
SCS with systemnumber 03 on host beta
Statement to stop the systems:
sapcontrol -nr 01 -host alpha -prot NI_HTTP -function Stop
sapcontrol -nr 00 -host alpha -prot NI_HTTP -function Stop
sapcontrol -nr 04 -host beta -prot NI_HTTP -function Stop
sapcontrol -nr 03 -host beta -prot NI_HTTP -function Stop
You can control the status of the instance with
sapcontrol -nr <sysnr> -host <host> -prot NI_HTTP -function GetProcessList
Best regards
Willi Eimler
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.