啓動和關閉HANA服務器 (Stopping and Starting the HANA Server)

在linux命令行下命令:

停止HANA腳本:

Stophana

啓動HANA腳本:

starthana

如果您的系統中沒有stophana和 starthana腳本只能使用 HDB start 和 HDB stop來啓動/停止HANA

使用root賬號來啓動和停止HANA系統   

as root

Start

/usr/sap/hostctrl/exe/sapcontrol -nr 00-function Start

Stop

/usr/sap/hostctrl/exe/sapcontrol -nr 00-function Stop

Status

/usr/sap/hostctrl/exe/sapcontrol -nr 00-function GetProcesslist

通知<sid>adm來啓動和停止HANA

as <sid>adm

su - hanadm

Start

HDB start

Stop

HDB stop
 

完成stopping 和 Starting後可以通過

ps-ef | grep sapstartsrv 來查看HANA相關的服務實例進程是否啓動

 

saplinux:~ # ps -ef | grep sapstartsrv

sapadm   3791     1  0 16:44?        00:00:00/usr/sap/hostctrl/exe/sapstartsrv pf=/usr/sap/hostctrl/exe/host_profile -D

hanadm   3879     1  0 16:44?        00:00:00/usr/sap/HAN/HDB00/exe/sapstartsrvpf=/usr/sap/HAN/SYS/profile/HAN_HDB00_saplinux -D -u hanadm

root     5049  5034  0 17:04 pts/0    00:00:00 grep sapstartsrv

也可以通過/usr/sap/hostctrl/exe/sapcontrol -nr 00 -function GetProcessList獲得HANA運行進程列表

saplinux:~ #/usr/sap/hostctrl/exe/sapcontrol -nr 00 -function GetProcessList

 10.11.2011 17:06:45

GetProcessList

OK

name, description, dispstatus, textstatus,starttime, elapsedtime, pid

hdbdaemon, HDB Daemon, GREEN, Running, 201111 10 16:46:11, 0:20:34, 4315

hdbnameserver, HDB Nameserver, GREEN,Running, 2011 11 10 16:46:15, 0:20:30, 4333

hdbpreprocessor, HDB Preprocessor, GREEN,Running, 2011 11 10 16:46:34, 0:20:11, 4414

hdbindexserver, HDB Indexserver, GREEN,Running, 2011 11 10 16:46:36, 0:20:09, 4431

hdbstatisticsserver, HDB Statisticsserver,GREEN, Running, 2011 11 10 16:46:37, 0:20:08, 4438


然後可以通過hdb info查看啓動和關閉狀態下sap HANA  Server的不同處。

參考:http://www.saphana.com/docs/DOC-2189


 


發佈了92 篇原創文章 · 獲贊 22 · 訪問量 54萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章