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

  • 相关阅读:
    美团容器平台架构及容器技术实践
    【人物志】美团首席科学家夏华夏:不断突破边界的程序人生
    Category 特性在 iOS 组件化中的应用与管控
    浅谈大型互联网企业入侵检测及防护策略
    【基本功】深入剖析Swift性能优化
    CAT 3.0 开源发布,支持多语言客户端及多项性能提升
    安装window下的redis,redis可视化管理工具(Redis Desktop Manager)安装,基础使用,实例化项目
    .Net Core Redis的使用
    焦点IT Redis安装与配置( Windows10 或Windows server)
    用VScode配置Python开发环境
  • 原文地址:https://www.cnblogs.com/zykLove/p/12164803.html
Copyright © 2011-2022 走看看