[go: up one dir, main page]

DEV Community

Ashwin Sharma P
Ashwin Sharma P

Posted on • Originally published at Medium

SAP Basis Snippets #2

Start and stop commands for Hana database

First login to <sid>adm user of hana database

su  - <sid>adm
Enter fullscreen mode Exit fullscreen mode

Execute the below command

HDB start
Enter fullscreen mode Exit fullscreen mode

This executes the HDB program in path /usr/sap/<SID>/HDB<instance no.>/

The below command for stopping also uses same HDB program

HDB stop
Enter fullscreen mode Exit fullscreen mode

One more program that can be used for start/stop of Hana DB is the sapcontrol program located in the path /usr/sap/hostctrl/exe/

The start command is as follows

sapcontrol -nr <instance no.> -function Start
Enter fullscreen mode Exit fullscreen mode

The stop command is as given below

sapcontrol -nr <instance no.> -function Stop
Enter fullscreen mode Exit fullscreen mode

Top comments (0)