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.
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 Huawei@123 -d DB1
Welcome to the SAP HANA Database interactive terminal.
Type: \h for help with commands
\q to quit
hdbsql DB1=>
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)
hdbsql DB1=> BACKUP DATA CREATE SNAPSHOT 13 rows affected (overall time 329.221 msec; server time 327.452 msec)