zoukankan      html  css  js  c++  java
  • 重启SAP过程

    --重启sap过程

    hgcerpqa1:cmqadm 54> su - cmqadm
    hgcerpqa1:cmqadm 54> cd /usr/sap/CMQ
    hgcerpqa1:cmqadm 54> ls -altr

    hgcerpqa1:cmqadm 54> stopsap r3; (不加r3 会连同数据库一起重启,加上之后只重启sap程序)

    Checking CMQ Database
    Database is not available via R3trans
    -------------------------------------------
    stopping the SAP instance DVEBMGS20
    Shutdown-Log is written to /home/cmqadm/stopsap_DVEBMGS20.log
    -------------------------------------------
    /usr/sap/CMQ/DVEBMGS20/exe/sapcontrol -prot NI_HTTP -nr 20 -function Stop
    Instance on host hgcerpqa1 stopped
    Waiting for cleanup of resources
    ...............
    stopping the SAP instance ASCS00
    Shutdown-Log is written to /home/cmqadm/stopsap_ASCS00.log
    -------------------------------------------

    /usr/sap/CMQ/ASCS00/exe/sapcontrol -prot NI_HTTP -nr 00 -function Stop
    Instance on host hgcerpqa1 stopped
    Waiting for cleanup of resources
    .
    hgcerpqa1:cmqadm 54>
    hgcerpqa1:cmqadm 54>
    hgcerpqa1:cmqadm 54> cleanipc 20 remove

    Show/Cleanup SAP-IPC-Objects V2.3, 94/01/20
    ===========================================


    Running SAP-Systems (Nr)...:

    ----------------------------------------------------------
    ---- Clear IPC-Objects of Sap-System 20 ------------------
    ----------------------------------------------------------
    OsKey: 3200282 0x0030d51a Event Flag Key: 282 removed
    OsKey: 3200283 0x0030d51b Event Flag Key: 283 removed
    OsKey: 58900120 0x0382be98 SCSA Shared Memory Key: 58900000 removed

    Number of IPC-Objects...........: 3
    Number of removed IPC-Objects...: 3
    Summary of all Shared Memory....: 12153.4 MB (may be incomplete when not in superuser mode)


    Number of SAP_ES files found:.............: 0
    Number of SAP_ES files removed:...........: 0

    hgcerpqa1:cmqadm 55> cleanipc 00 remove

    Show/Cleanup SAP-IPC-Objects V2.3, 94/01/20
    ===========================================


    Running SAP-Systems (Nr)...:

    ----------------------------------------------------------
    ---- Clear IPC-Objects of Sap-System 0 ------------------
    ----------------------------------------------------------
    OsKey: 10073 0x00002759 Shared Memory Key: 73 removed
    OsKey: 20026 0x00004e3a Semaphore Key: 26 removed
    OsKey: 20038 0x00004e46 Semaphore Key: 38 removed
    OsKey: 58900100 0x0382be84 SCSA Shared Memory Key: 58900000 removed

    Number of IPC-Objects...........: 4
    Number of removed IPC-Objects...: 4
    Summary of all Shared Memory....: 12153.4 MB (may be incomplete when not in superuser mode)


    Number of SAP_ES files found:.............: 0
    Number of SAP_ES files removed:...........: 0


    hgcerpqa1:oracmq 51> sqlplus "/ as sysdba"

    SQL*Plus: Release 11.2.0.3.0 Production on Mon Dec 10 17:31:00 2018

    Copyright (c) 1982, 2011, Oracle. All rights reserved.


    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options

    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    SQL>
    SQL>
    SQL>
    SQL>
    SQL>
    SQL> startup
    ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
    ORACLE instance started.

    Total System Global Area 4008546304 bytes
    Fixed Size 2234560 bytes
    Variable Size 3942647616 bytes
    Database Buffers 50331648 bytes
    Redo Buffers 13332480 bytes
    Database mounted.
    Database opened.
    SQL> show sga;

    Total System Global Area 4008546304 bytes
    Fixed Size 2234560 bytes
    Variable Size 3942647616 bytes
    Database Buffers 50331648 bytes
    Redo Buffers 13332480 bytes
    SQL>
    SQL>
    SQL>
    SQL>
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options


    hgcerpqa1:cmqadm 51> R3trans -x
    This is R3trans version 6.24 (release 722 - 24.03.17 - 20:17:03).
    unicode enabled version
    R3trans finished (0000).

    hgcerpqa1:cmqadm 52> startsap r3
    Checking CMQ Database
    Database is running
    -------------------------------------------
    Starting Startup Agent sapstartsrv
    OK
    Instance Service on host hgcerpqa1 started
    -------------------------------------------
    starting SAP Instance ASCS00
    Startup-Log is written to /home/cmqadm/startsap_ASCS00.log
    -------------------------------------------
    /usr/sap/CMQ/ASCS00/exe/sapcontrol -prot NI_HTTP -nr 00 -function Start
    Instance on host hgcerpqa1 started
    Starting Startup Agent sapstartsrv
    OK
    Instance Service on host hgcerpqa1 started
    -------------------------------------------
    starting SAP Instance DVEBMGS20
    Startup-Log is written to /home/cmqadm/startsap_DVEBMGS20.log
    -------------------------------------------
    /usr/sap/CMQ/DVEBMGS20/exe/sapcontrol -prot NI_HTTP -nr 20 -function Start
    Instance on host hgcerpqa1 started

    hgcerpqa1:cmqadm 53> ps -ef|grep dw

    亲测有有效的重启方法,韩国的优秀BC顾问给的重启方法。

  • 相关阅读:
    tp5最强分页 自定义model,控制器引用。只显示一页
    tp5分页,一看就懂,简单明了(附带额外参数)
    PHP 验证5-20位数字加字母的正则(数字和字母缺一不可)!!!
    表格样式
    tp5中很牛皮的一句sql语句,三个条件(两个不确定条件,一个硬性条件)
    centos6.8下搭建git和gitlab版本库
    解决 nginx: [alert] kill(1022, 1) failed (3: No such process)
    Zabbix利用msmtp+mutt发送邮件报警
    nginx基本配置与参数说明
    Linux添加/删除用户和用户组
  • 原文地址:https://www.cnblogs.com/zykLove/p/12164803.html
Copyright © 2011-2022 走看看