Linux启动SAP服务,sap启动相关
轉(zhuǎn)載:http://blog.sina.com.cn/s/blog_4298a2c80102wuim.html
SAP服務(wù)器啟動順序:
服務(wù)器操作系統(tǒng)啟動完成(硬件和linux操作系統(tǒng)), 數(shù)據(jù)庫啟動完成,? SAP應(yīng)用程序啟動完成
SAP服務(wù)器關(guān)閉順序:
SAP應(yīng)用程序關(guān)閉完成,? ?數(shù)據(jù)庫關(guān)閉完成,? ?服務(wù)器操作系統(tǒng)關(guān)閉完成? (硬件和linux操作系統(tǒng))
啟動SAP系統(tǒng):登陸系統(tǒng) (nbq是系統(tǒng)標(biāo)識)
啟動sap數(shù)據(jù)庫服務(wù)器
su – oranbq
lsnrctl starus (檢查數(shù)據(jù)庫 ,可以不做)
lsnrctl start
啟動sap應(yīng)用服務(wù)器
su – nbqadm
startsap
關(guān)閉SAP系統(tǒng):登陸系統(tǒng)
關(guān)閉sap應(yīng)用服務(wù)器
su – nbqadm
stopsap
saposcol –k
sapstartsrv DVEBMGS00
stopsap sapstartsrv SCS01
關(guān)閉sap數(shù)據(jù)庫
su – oranbq
lsnrctl stop
一、啟動:
1、數(shù)據(jù)庫啟動
sapqas:su oraqas? ? ? ? ? ? ? ? ? ? ? ? 切換到數(shù)據(jù)管理帳號? (QAS應(yīng)該是系統(tǒng)標(biāo)識)
sapqas:oraqas 29> lsnrctl start? ? ? ? ? ? ? ?啟動監(jiān)聽服務(wù)
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? ? ? ? ? ? ? ? ?連接數(shù)據(jù)庫
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? ? ? ? ? ?連接數(shù)據(jù)庫實(shí)例
Connected to an idle instance.
SQL> startup? ? ? ? ? ? ? ? ? 啟動數(shù)據(jù)庫
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? ? ? ? ?數(shù)據(jù)啟動完成,退出數(shù)據(jù)庫連接
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、應(yīng)用服務(wù)器啟動
sapqas: su qasadm? ? ? 切換到SAP管理帳號? (QAS應(yīng)該是系統(tǒng)標(biāo)識)
sapqas:qasadm 51> startsap? ? 啟動SAP應(yīng)用程序
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應(yīng)用程序啟動完成,退出用戶
logout
二、關(guān)閉:
關(guān)閉SAP應(yīng)用之前,請先登陸SAP,使用SM04查看是否還有在線用戶,如有請通知退出。
1、關(guān)閉sap應(yīng)用服務(wù)器
sapqas:su qasadm? ? ? ?切換到SAP管理帳號(QAS應(yīng)該是系統(tǒng)標(biāo)識)
sapqas:qasadm 50> stopsap? ? 停止SAP應(yīng)用程序
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應(yīng)用程序和數(shù)據(jù)庫關(guān)閉完成,退出用戶。
Logout
2、關(guān)閉數(shù)據(jù)庫服務(wù)器
sapqas:su qasecq? ? 切換到數(shù)據(jù)庫管理用戶(QAS應(yīng)該是系統(tǒng)標(biāo)識)
sapqas:oraqas 41> lsnrctl stop? ? 關(guān)閉監(jiān)聽
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:~ #
總結(jié)
以上是生活随笔為你收集整理的Linux启动SAP服务,sap启动相关的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 一篇文章看懂@Scheduled定时器/
- 下一篇: Linux进阶之路————进程与服务管理