Creating a HANA Snapshot File

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.

Prerequisites

A cross-platform remote access tool, such as PuTTY, has been prepared.

Procedure

  1. Use PuTTY to log in to the eReplication Server management server.
  2. Run the su - sidladm command to switch to user sidadm.

    The following command output is displayed:

    suse-hana:/ # su - db1adm 
    suse-hana:/usr/sap/DB1/HDB01>

  1. Run the hdbsql -i xx -n localhost:3xx15 -u system -p PW -d SID command to log in to the database.

    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=>

  2. Run the BACKUP DATA CREATE SNAPSHOT command to generate a SAP HANA 1.0 snapshot file.

    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)

  1. Run the BACKUP DATA FOR FULL SYSTEM CREATE SNAPSHOT command to generate a SAP HANA 2.0 snapshot file.

    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)


Copyright © Huawei Technologies Co., Ltd.