在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的不同处。