Starting and Stopping SAP Systems and Instances Using Commands (Unix)
You can start and stop SAP systems and instances using the startsap and stopsap commands.
You can use command line options to specify these commands. Command line options are available in new style or old style.
Using New Style for Command Line Options and Parameters
Using new style, the syntax is as follows:
stopsap | stopsap [-t | -task <task>] [-i | -instance <instance>] [-v | -vhost "<virtual hostname>[ <virtual hostname>]*"][-c | -check] [-h | -help] [-V | -VERSION] [-C | -checkVHost]
Example
-
If you want to start an ABAP or dual-stack (ABAP+Java) central instance DVEBGMS00 that has the virtual host names cic11 and cic12, enter the following commands :
startsap -t r3 -i DVEBGMS00 -v "cic11 cic12"
-
If you want to start a Java central instance JC00 that has the virtual host names cic11 and cic12, enter the following commands :
startsap -t j2ee -i JC00 -v "cic11 cic12"
The following command line options and parameters are available:
[-t | -task <task>] |
Specify task |
[-i | -instance <instance>] |
Specify SAP system instance |
[-v | -vhost "<virtual hostname>[ <virtual hostname>]*"] |
Specify virtual host names |
[-c | -check] |
Check database and SAP instance status |
[-h | -help] |
Display help |
[-V | -VERSION] |
Display startsap script version |
[-C | -checkVHost] |
Check virtual host name |
check |
Check status of database and SAP system instances |
r3 | j2ee |
Start or stop SAP instances only. You can use either r3 or j2ee, regardless if the instance to be started or stopped is an ABAP or Java instance. |
db |
Start or stop ABAP database only |
jdb |
Start or stop Java database only |
all | <blank> |
Start or stop database and SAP instance |
startupsrv |
Start or stop sapstartsrv program |
DVEBMGS<nn> |
ABAP central Instance |
D<nn> |
ABAP dialog instance |
ASCS<nn> |
ABAP central services instance (ASCS instance) |
SCS<nn> |
Java central services instance (SCS instance) |
J<nn> |
Java central instance |
TRX<nn> |
TREX instance |
ERS<nn> |
Enqueue replication server instance (ERS instance) |
SMDA<nn> |
Diagnostics agent instance |
W<nn> |
Web services instance |
G<nn> |
Gateway instance |
Using Old Style for Command Line Options and Parameters
Using old style, the syntax is as follows:
stopsap | stopsap [db|r3|j2ee|all|check|startupsrv] [<instance>] [<virtual hostname>]
Example
-
If you want to start an ABAP or dual-stack (ABAP+Java) central instance DVEBGMS00 that has the virtual host names cic11 and cic12, enter the following commands :
startsap r3 DVEBGMS00 cic11 cic12
-
If you want to start a Java central instance DVEBGMS00 that has the virtual host names cic11 and cic12, enter the following commands :
startsap j2ee JC00 cic11 cic12
The following command line options and parameters are available:
check [<instance>] [<virtual hostname>] |
Check status of database and SAP system instances |
r3 | j2ee [<instance>] [<virtual hostname>] |
Start or stop SAP instances only. You can use either r3 or j2ee, regardless if the instance to be started or stopped is an ABAP or Java instance. |
db [<instance>] [<virtual hostname>] |
Start or stop ABAP database only |
jdb [<instance>] [<virtual hostname>] |
Start or stop Java database only |
all | <blank> |
Start or stop database and all SAP system instances running on the same physical host |
startupsrv |
Start or stop sapstartsrv program |
DVEBMGS<nn> |
ABAP central Instance |
D<nn> |
ABAP dialog instance |
ASCS<nn> |
ABAP central services instance (ASCS instance) |
SCS<nn> |
Java central services instance (SCS instance) |
JC<nn> |
Java central instance |
J<nn> |
Java dialog instance |
TRX<nn> |
TREX instance |
ERS<nn> |
Enqueue replication server instance (ERS instance) |
SMDA<nn> |
Diagnostics agent instance |
W<nn> |
Web services instance |
G<nn> |
Gateway instance |
Prerequisites
-
Make sure that you have logged on to the physical host of the SAP system instances as user <sapsid>adm.
-
Make sure that the host names defined in the DNS server match the names of the SAP system instance hosts. In particular, keep in mind that host names are case-sensitive. For example, if the names of the SAP system instance hosts are in upper case, but the same host names are defined in the DNS server in lower case, starting and stopping the system does not work.
-
If you want to use startsap or stopsap (for example, in a script) and require the fully qualified name of these SAP scripts, create a link to thestartsap script in the home directory of the corresponding user.
-
You cannot use startsap or stopsap commands in a switchover cluster environment. Therefore in a high-availability (HA) system you must use the failover cluster software of your HA partner to start or stop instances running on the switchover cluster.
-
You cannot use startsap or stopsap commands to start or stop database-specific tools. For more information about how to start or stop database-specific tools, see the database-specific information in this documentation and the documentation from the database manufacturer.
-
Make sure that no SAP instance is running before you execute stopsap on a standalone database server. No automatic check is made.
-
When you use stopsap in a Multiple Components in One Database (MCOD) system with two central instances, only one central instance and the database are shut down. Therefore, you must first stop the other SAP system or make sure that it has already been stopped.
Procedure
Starting an SAP System
-
If you want to start all SAP system instances running on the same host, execute the following command:
New style: startsap or startsap -t all
Old style:startsap or startsap all
-
If you want to start SAP system instances separately, enter the following command:
New style:startsap -t r3|j2ee -i <instance> [-v "<virtual host name>"]
Old style:startsap r3|j2ee <instance> [<virtual host name>]
Make sure that you adhere to the following sequence when starting the instances:
ABAP system:
-
Database instance
-
Central instance
-
Dialog instances (if available)
Java system:
-
Database instance
-
SCS instance
-
Central instance
-
Dialog instances (if available)
Dual-stack (ABAP+Java) system:
-
Database instance
-
SCS instance
-
Central instance
-
Dialog instances (if available)
-
Stopping an SAP System
-
If you want to stop all SAP system instances running on the same host, execute the following command:
New style: stopsap or stopsap -t all
Old style:stopsap or stopsap all
-
If you want to stop SAP system instances separately, enter the following command:
New style:stopsap -t r3|j2ee -i <instance> [-v "<virtual host name>"]
Old style:stopsap r3|j2ee <instance> [<virtual host name>]
Make sure that you adhere to the following sequence when stopping the instances:
ABAP system:
-
Dialog instances (if available)
-
Central instance
-
Database instance
Java system:
-
Dialog instances (if available)
-
Central instance
-
SCS instance
-
Database instance
Dual-stack (ABAP+Java) system:
-
Dialog instances (if available)
-
Central instance
-
SCS instance
-
Database instance
-
相关推荐
在“Starting and Stopping SAP HANA Systems”部分,管理员可以学习如何启动和停止SAP HANA系统以及数据库服务,如何在系统停止和启动过程中进行监控。这对于确保系统的稳定性以及在必要时进行维护至关重要。系统...
Unit 4: Starting and Stopping SAP Systems ..........................................171 System Start: Process ....................................................................173 System Start: Logs...
This chapter discusses starting and stopping the database instance, and managing initialization parameters. Chapter 6, "Managing Database Storage Structures" This chapter discusses management of the ...
SRIM,全称为Stopping and Range of Ions in Matter,是一组用于计算离子在物质中停止和射程的程序。这个工具特别关注离子与原子间的碰撞,采用完整的量子力学处理方式来描述这一过程。SRIM始终将移动的原子视为...
- **Introduction to the Shell**: Explanation of the role of the shell in Unix-like systems and how it serves as the primary interface for interacting with the system. - **Common Shell Commands**: List...
topic postings in their once-helpful newsgroups, and fear that the community of newsgroup readers will dissolve in disgust.Stopping Spam looks at the problem of spam and explains ways you can ...
Starting and Stopping the GlassFish Server 41 Starting the Administration Console 42 Starting and Stopping the Java DB Server 43 Building the Examples 44 Tutorial Example Directory Structure 44 ...
MySQL Certification Study Guide is the official guide to studying for and passing the two MySQL ...Starting, Stopping, Configurings MySQL Upgrading MySQL Interpreting Error Messages Much More!
讲述LINUX 下的并口编程。包含: 1 Programming interface 2,Starting and stopping: open and close Control 3,Transferring data: read and write 4,Waiting for events: poll and select6 5,Examples
对于之前的版本,请参考相关文档《Stopping, starting, or restarting vCenter Server Appliances services》(编号:2054085)。 #### 列出vCenter Server Appliance服务 ##### 使用vSphere Web Client列出服务 ...
- **Mac/Linux/UNIX Installation:** Use the appropriate commands or scripts for non-Windows platforms. - **Installation Results:** Verify the installation by checking the server's configuration files ...
**5.2 启动、停止和杀死进程 (Chapter 24: Starting, Stopping, and Killing Processes)** - **启动进程**: 在不同上下文中启动进程的方法。 - **终止进程**: 使用`kill`和`killall`命令终止进程。 - **进程管理**: ...
This guide is for the administrator of a webMethods Integration ...as starting and stopping the server, configuring the server, seing up user accounts and security, and managing packages and services.
- **Resource Management**: These agents manage the lifecycle of resources, including starting, stopping, monitoring, and recovering resources. - **Integration**: They integrate with various ...