设为首页 收藏本站
查看: 971|回复: 0

[经验分享] Starting and Stopping the SAP Web AS ABAP+J2EE System

[复制链接]

尚未签到

发表于 2015-9-18 09:24:29 | 显示全部楼层 |阅读模式
You can use this procedure to stop and restart the J2EE Engine in case of the J2EE Engine installed as an add-in in a SAP Web AS ABAP System.

DSC0000.gif NOTE
The J2EE Engine gets automatically started with the ABAP System, but you can stop and restart the J2EE Engine. If you don't restart the J2EE Engine it will be launched again with the next restart of the ABAP System.

Procedure


  • In the ABAP System start the ICM Monitor (transaction SMICM or by choosing DSC0001.gif Administration DSC0002.gif System Management Monitor System Monitoring Internet Communication Manager DSC0003.gif ).
  • On the initial screen of the ICM monitor (Transaction SMICM), choose Administration J2EE Server .
  • Choose one of the following functions:


    • Sending a Soft Shutdown (With or Without a Restart)
    The (ABAP) dispatcher of the SAP Web Application Server sets the restart flag for the J2EE Engine and sends the SOFTSHUTDOWN message to the J2EE Engine. The dispatcher does not actively close the connection, the J2EE Engine must close itself instead. If the application server is restarted, the J2EE Engine is restarted by the dispatcher.


    • Sending a Hard Shutdown (With or Without a Restart)
    The (ABAP) dispatcher of the SAP Web Application Server sets the restart flag for the J2EE Engine and sends the HARDTSHUTDOWN message to the J2EE Engine. The dispatcher does not actively close the connection, the J2EE Engine must close itself instead. If the application server is restarted, the J2EE Engine is restarted by the (ABAP) dispatcher.


    • Ending the Process (With or Without a Restart)
    The SAP Web Application Server's dispatcher sets the restart flag for the J2EE Engine and sends a signal to the process (shell or Java process). If the application server is restarted, the J2EE Engine is restarted by the dispatcher.


    • Restart Yes/No
    This sets the J2EE Engine's restart flag.
Starting and Stopping the SAP Web AS J2EE System (Windows)

You use this procedure to start and stop the SAP system after the installation. You can use the SAP Management Console or the SAP NetWeaver Developer Studio to start and stop the SAP system.
You have to start the following components:


  • Database (SAP DB)
  • Central Services (Enqueue Service and Message Service)
  • J2EE instance
  • Software Deployment Manager (SDM)

Prerequisites
You have administrator rights on the SAP system host.

Procedure

Starting the SAP System using the SAP Management Console


  • On the SAP system host, choose Start Programs SAP Management Console .
    You get the following window:



  • Right-click the SAP system node (C11 in this example) in the left-hand panel and choose Start.
    The SAP DB, the Central Services and the SAP J2EE instance start.

    NOTE
    You can start only the SAP DB as follows:


    • Select the database node.


      • In the right-hand panel, the Database Manager is displayed.

    • In the Database Manager, choose Online.


      • The database status changes to online (green color).


When the processes are running, you see the following screen:




Monitoring the Status
To display the status of all processes, choose the process list subnode of the required node in the left-hand panel.
The JControl process starts the dispatcher and the server. To display the dispatcher and server status, choose Process Table.

Stopping the SAP System


  • Choose Start Programs SAP Management Console .
  • In the left-hand panel, right-click the SAP Systems node and choose Stop.

Starting and Stopping the SAP System in the SAP NetWeaver Developer Studio
You can also start the SAP system from within the SAP NetWeaver Developer Studio.

Prerequisite
The SAP DB is running and online. You can start it using the SAP Management Console (see above) or the SAP Database Manager.

Procedure


  • Choose Window Preferences SAP J2EE Engine .
  • Select the option SAP J2EE engine is installed on local host and choose Browse.
    You see the system ID of the installed SAP system (e.g. C11).
  • Select the system and choose OK two times.
  • In the top menu, choose Window Show View Other J2EE J2EE Engine.
    The J2EE Engine view is opened.
  • In the J2EE Engine view, right-click the Local engine node and choose Start local engine.
    The processes are started.
  • Click on the Refresh tree icon.
    In the right panel of the J2EE Engine view, the status of the process is displayed.




More Information
J2EE Startup and Control Frameworkin the Architecture Manual
Java Startup and Control Framework  
Definition
  The Java startup and control framework comprises the programs JControl and Jlaunch. JLaunch is started by JControl and itself starts the bootstrap Java program or an element of the Java cluster (dispatcher or server process).
Use
  The Java startup and control framework is used to start, stop, and monitor a Java Instance.
  The program JControl starts the Java instance as specified in the configuration file.
Structure
  The framework consists of the following components:
  ●      JControl starts, stops, and monitors the processes of a Java instance (usually a dispatcher and several server processes). The program implements the SAP signal handling to stop the instance. JControl starts the JLaunch processes.
  ●      JLaunch starts a Java program. It loads the JVM into its own address space and then represents the required cluster element. The program can receive notification from the JControl process via named pipes to stop the cluster element, and terminates, if theJControl stops running (fork emulation under Windows).
  ●      The Bootstrap JAVA program synchronizes the binary data from the Java database with the local file system and creates a property file, which describes the processes of the Java instance.
  The process is described in Startup, Operation and Shutdown of a Java Instance.
Integration
  The Java startup and control framework is called in different ways according to the operating system and installation type:
  ●      Under Windows, the SAP Management Console is used. If you choose Action ® Start from the context menu of an instance containing a J2EE Engine, the JControl program is called.
  ●      Under UNIX and OS/400 platforms, the scripts startsap and stopsap are used to call the JControl program.
  ●      If you start the Java instance using the SAP NetWeaver Developer Studio (NWDS), the client integrated into the NWDS calls the JControl programJControl.
Starting and Stopping the SAP Web AS J2EE System (UNIX)

  
You need to check that you can start and stop the SAP system after the installation using the scripts startsap and stopsap in the exe directory.

Prerequisites


  • You have signed on to the SAP system hosts as user <sapsid>adm.
  • For more information on how to start or stop database-specific tools, see the database-specific information in this documentation and the documentation from the database manufacturer.
  • 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 startsap or stopsap in the home directory of the corresponding user.

    CAUTION
    If there are multiple SAP instances on one host - for example, a central instance and a dialog instance - you must add an extra parameter to the scripts:
    startsap <instanceID>
    stopsap <instanceID>
    For example, enter:
    startsap DVEBMGS00

    NOTE
    SAP Web AS J2EE only system
    The instance name (instance ID) of the central instance is JC<Instance_Number>, the instance name of a J2EE dialog instance is J<Instance_Number>.

Procedure

Starting the SAP System


  • To start the central instance and database instance:


    • If you have a central system - that is, central instance, central services instance and database instance on the same host - enter the following on the central system host:
      startsap
      This checks if the database is already running. If not, it starts the database before starting the central services instance and the central instance.

      NOTE
      You can start the database and SAP system separately by entering the following commands:
      startsap DB <instanceID>
      startsap R3 <instanceID of central services instance>
      startsap R3 <instanceID of central instance>
      Make sure that you always start the database first because otherwise the central services instance and the central instance cannot be started.

      NOTE
      There is also the parameter J2EE that is a synonym for the parameter R3. For SAP Web AS ABAP+J2EE systems, you can enter either the commandstartsap R3 or startsap J2EE to start the SAP instance comprising both ABAP and J2EE.
    • If you have a distributed system - that is, central instance, central services instance and database instance on different hosts - do the following:


      • On the database host, enter:
        startdb
      • On the central services instance host, enter:
        startsap R3
      • On the central instance host, enter:
        startsap R3


  • Enter the following to start dialog instances, if there are any:
    startsap

Stopping the SAP System

NOTE
When you use stopsap in an MCOD (Multiple Components in One Database) system with two central instances, only one central instance and the database are shut down. Therefore, you must first stop the other SAP system with stopsap R3 or make sure that it has already been stopped.


  • Enter the following to stop dialog instances:
    stopsap
  • To stop the central instance, the central services instance and the database instance:


    • If you have a central system - that is, central instance, central services instance and database instance on the same host - enter the following on the central system host:
      stopsap
      This stops the central instance, the central services instance and then the database.

      NOTE
      You can stop the SAP system and the database separately by entering the command stopsap R3 <instanceID of central instance>, thenstopsap R3 <instanceID of central services instance> and then stopsap <instanceID> .
      Make sure that you always stop the central instance first and the central services instance second because otherwise the database cannot be stopped.

      NOTE
      There is also the parameter J2EE that is a synonym for the parameter R3. For SAP Web AS ABAP+J2EE systems, you can enter either the commandstopsap R3 or stopsap J2EE to stop the SAP instance comprising both ABAP and J2EE.
    • If you have a distributed system - that is, central instance, central services instance and database instance on different hosts - do the following:


      • On the central instance host, enter:
        stopsap R3
      • On the central services instance host, enter:
        stopsap R3
      • On the database host, enter:
        stopdb

      CAUTION
      Make sure that no SAP instance is running before you enter stopdb on a standalone database server. No automatic check is made.

  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-115201-1-1.html 上篇帖子: sap Program DEMO 介绍 下篇帖子: 智遥工作流SAP请购单流程实现过程
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表