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顾问给的重启方法。

  • 相关阅读:
    对于redis框架的理解(四)
    对于redis框架的理解(三)
    对于redis框架的理解(二)
    Django框架(五)—— 虚拟环境搭建
    Django框架(四)—— 路由控制:有名/无名分组、反向解析、路由分发、名称空间、伪静态、APPEND_SLASH、不同版本的Django区别
    Django框架(三)—— orm增删改查、Django生命周期
    Django框架(一)—— 安装使用Django
    C语言——二维数组
    前端(二十二)—— vue组件:局部组件、全局组件、父组件数据传到子组件、子组件数据传到父组件、父子组件实现todoList
    前端(二十一)—— vue指令:文本类指令、避免页面闪烁、v-bind指令、v-on指令、v-model指令、条件渲染指令、列表渲染指令
  • 原文地址:https://www.cnblogs.com/zykLove/p/12164803.html
Copyright © 2011-2022 走看看