HANA System Database Restore and Recovery Guide
To restore and recover a HANA system database, follow these steps:
-
Log in to the HANA server as the SYSTEM user.
-
Start the HANA database using the command:
HDB start -
Stop the HANA database using the command:
HDB stop -
Restore the database backup using the command:
HDB restore '<backup_file_path>'Replace '<backup_file_path>' with the path to the backup file.
-
Start the HANA database using the command:
HDB start -
Connect to the HANA database using the command:
hdbsql -i '<instance_number>' -d '<database_name>'Replace '<instance_number>' with the HANA instance number and '<database_name>' with the name of the system database.
-
Run the RECOVER DATA command to recover the database:
RECOVER DATA USING FILE ('<log_file_path>') UNTIL TIMESTAMP '<timestamp>'Replace '<log_file_path>' with the path to the log file and '
' with the timestamp of the last successful backup. -
Once the recovery is complete, run the CHECK DATA command to ensure the database is consistent:
CHECK DATA '<schema_name>' ALLReplace '<schema_name>' with the name of the schema to check.
-
Exit the HANA database using the command:
exit
原文地址: https://www.cveoy.top/t/topic/osLH 著作权归作者所有。请勿转载和采集!