Linux启动SAP服务,sap启动相关
轉載:http://blog.sina.com.cn/s/blog_4298a2c80102wuim.html
SAP服務器啟動順序:
服務器操作系統啟動完成(硬件和linux操作系統), 數據庫啟動完成,? SAP應用程序啟動完成
SAP服務器關閉順序:
SAP應用程序關閉完成,? ?數據庫關閉完成,? ?服務器操作系統關閉完成? (硬件和linux操作系統)
啟動SAP系統:登陸系統 (nbq是系統標識)
啟動sap數據庫服務器
su – oranbq
lsnrctl starus (檢查數據庫 ,可以不做)
lsnrctl start
啟動sap應用服務器
su – nbqadm
startsap
關閉SAP系統:登陸系統
關閉sap應用服務器
su – nbqadm
stopsap
saposcol –k
sapstartsrv DVEBMGS00
stopsap sapstartsrv SCS01
關閉sap數據庫
su – oranbq
lsnrctl stop
一、啟動:
1、數據庫啟動
sapqas:su oraqas? ? ? ? ? ? ? ? ? ? ? ? 切換到數據管理帳號? (QAS應該是系統標識)
sapqas:oraqas 29> lsnrctl start? ? ? ? ? ? ? ?啟動監聽服務
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 04-JUL-2013 16:20:30
Copyright (c) 1991, 2011, Oracle.? All rights reserved.
Starting /oracle/ECQ/112_64/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /oracle/ECQ/112_64/network/admin/listener.ora Log messages written to /oracle/ECQ/saptrace/diag/tnslsnr/sapqas/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=ECQ.WORLD))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=ECQ))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sapqas.site)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=ECQ.WORLD)) STATUS of the LISTENER
------------------------
Alias? ? ? ? ? ? ? ? ? ? ?LISTENER
Version? ? ? ? ? ? ? ? ? ?TNSLSNR for Linux: Version 11.2.0.3.0 -
Production Start Date? ? ? ? ? ? ? ? 04-JUL-2013 16:20:54
Uptime? ? ? ? ? ? ? ? ? ? 0 days 0 hr. 0 min. 0 sec
Trace Level? ? ? ? ? ? ? ?off
Security? ? ? ? ? ? ? ? ? ON: Local OS Authentication
SNMP? ? ? ? ? ? ? ? ? ? ? OFF
Listener Parameter File? ?/oracle/ECQ/112_64/network/admin/listener.ora Listener Log File? ? ? ? ?/oracle/ECQ/saptrace/diag/tnslsnr/sapqas/listener/alert/log.xml Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=ECQ.WORLD)))? ?(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=ECQ)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sapqas.site)(PORT=1521))) Services Summary...
Service "ECQ" has 1 instance(s).
Instance "ECQ", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully
sapqas:oraecq 30> sqlplus /nolog? ? ? ? ? ? ? ? ?連接數據庫
SQL*Plus: Release 11.2.0.3.0 Production on Thu Jul 4 16:21:41 2013
Copyright (c) 1982, 2011, Oracle.? All rights reserved.
SQL> conn /as sysdba? ? ? ? ? ?連接數據庫實例
Connected to an idle instance.
SQL> startup? ? ? ? ? ? ? ? ? 啟動數據庫
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
Total System Global Area 4576575488 bytes
Fixed Size? ? ? ? ? ? ? ? ? 2235848 bytes
Variable Size? ? ? ? ? ? 2298479160 bytes
Database Buffers? ? ? ? ?2264924160 bytes
Redo Buffers? ? ? ? ? ? ?10936320 bytes
Database mounted.
Database opened.
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
sapqas:oraecq 31> exit? ? ?退出用戶
logout
2、應用服務器啟動
sapqas: su qasadm? ? ? 切換到SAP管理帳號? (QAS應該是系統標識)
sapqas:qasadm 51> startsap? ? 啟動SAP應用程序
Checking ECQ Database Database is running
-------------------------------------------
Starting Startup Agent sapstartsrv
OK
Instance Service on host sapqas started
-------------------------------------------
starting SAP Instance DVEBMGS00
Startup-Log is written to /home/ecqadm/startsap_DVEBMGS00.log
-------------------------------------------
/usr/sap/ECQ/DVEBMGS00/exe/sapcontrol -prot NI_HTTP -nr 00 -function
Start Instance on host sapqas started
sapqas:qasadm 51> exit? ? ? ? ? ?SAP應用程序啟動完成,退出用戶
logout
二、關閉:
關閉SAP應用之前,請先登陸SAP,使用SM04查看是否還有在線用戶,如有請通知退出。
1、關閉sap應用服務器
sapqas:su qasadm? ? ? ?切換到SAP管理帳號(QAS應該是系統標識)
sapqas:qasadm 50> stopsap? ? 停止SAP應用程序
Checking ECQ Database Database is running
-------------------------------------------
stopping the SAP instance DVEBMGS00
Shutdown-Log is written to /home/ecqadm/stopsap_DVEBMGS00.log
-------------------------------------------
/usr/sap/ECQ/DVEBMGS00/exe/sapcontrol -prot NI_HTTP -nr 00 -function Stop Instance on host sapqas stopped Waiting for cleanup of resources
..............
Trying to stop ECQ database ...
Log file: /home/ecqadm/stopdb.log ECQ database stopped Checking ECQ Database
Database is not available via R3trans
-------------------------------------------
sapqas:ecqadm 51> exit? SAP應用程序和數據庫關閉完成,退出用戶。
Logout
2、關閉數據庫服務器
sapqas:su qasecq? ? 切換到數據庫管理用戶(QAS應該是系統標識)
sapqas:oraqas 41> lsnrctl stop? ? 關閉監聽
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 04-JUL-2013 16:49:03
Copyright (c) 1991, 2011, Oracle.? All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=ECQ.WORLD)) The command completed successfully
sapqas:oraqas 42> exit? ?退出用戶
logout sapqas:~ #
總結
以上是生活随笔為你收集整理的Linux启动SAP服务,sap启动相关的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 一篇文章看懂@Scheduled定时器/
- 下一篇: Linux进阶之路————进程与服务管理