linux中停sap服务,启动和关闭HANA服务器

在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

通知adm来启动和停止HANA

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值