For a HANA database, you need to log in to the database to create a snapshot file for restoring the database before stopping the service system and database applications.
A cross-platform remote access tool, such as PuTTY, has been prepared.
sid indicates the SAP HANA System ID set when the user creates the database. The letter in the value is lowercase. In the following example, the value of SID is DB1.
The following command output is displayed:
suse-hana:/ # su - db1adm suse-hana:/usr/sap/DB1/HDB01>
xx indicates the value of Instance Number set when the database is created, and PW indicates the password of the system user set when the database is created. Change them based on the site requirements.
The following command output is displayed:
suse-hana:/usr/sap/DB1/HDB01> hdbsql -i 01 -n localhost:30115 -u system -p password -d DB1
Welcome to the SAP HANA Database interactive terminal.
Type: \h for help with commands
\q to quit
hdbsql DB1=>
BACKUP DATA CREATE SNAPSHOT
The following command output is displayed:
hdbsql DB1=> BACKUP DATA CREATE SNAPSHOT 13 rows affected (overall time 329.221 msec; server time 327.452 msec)
BACKUP DATA FOR FULL SYSTEM CREATE SNAPSHOT
The following command output is displayed:
hdbsql DB1=> BACKUP DATA FOR FULL SYSTEM CREATE SNAPSHOT 13 rows affected (overall time 329.221 msec; server time 327.452 msec)