轉載:http://blog.sina.com.cn/s/blog_4298a2c80102wuim.htmlhtml
SAP服務器啓動順序:linux
服務器操做系統啓動完成(硬件和linux操做系統), 數據庫啓動完成, SAP應用程序啓動完成sql
SAP服務器關閉順序:數據庫
SAP應用程序關閉完成, 數據庫關閉完成, 服務器操做系統關閉完成 (硬件和linux操做系統)服務器
啓動SAP系統:登錄系統 (nbq是系統標識)oracle
啓動sap數據庫服務器tcp
su – oranbqide
lsnrctl starus (檢查數據庫 ,能夠不作)ui
lsnrctl startthis
啓動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
二、應用服務器啓動
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
2、關閉:
關閉SAP應用以前,請先登錄SAP,使用SM04查看是否還有在線用戶,若有請通知退出。
一、關閉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
二、關閉數據庫服務器
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:~ #