Pre-Procedure for VMware VM Protection

If you do not need to protect the VMware VM where the Oracle database is installed, skip this section.

Prerequisites

Procedure

  1. Use PuTTY to log in to the VM where the Oracle database is installed as user root.
  2. Run the TMOUT=0 command to disable user logout upon system timeout.

    After you run the preceding command, the system continues to run even when no operation is performed, resulting in security risks. For security purposes, you are advised to run the exit command to exit the system after completing your operations.

  3. (Optional) If the /home/Agent directory does not exist, create the Agent directory under the /home directory.

    1. Run the cd /home command to go to the /home directory.
    2. Run the mkdir Agent command to create the Agent directory.

  4. Copy eReplication Agent installation package OceanStor BCManager *_Agent-CentOS7-x86_64.tar.gz to the /home/Agent directory on the production application server.
  5. Run the cd /home/Agent command to go to the directory where the Agent's installation package resides.
  6. Run the gzip -d "OceanStor BCManager *_Agent-CentOS7-x86_64.tar.gz" command to decompress the installation package in the gz format.
  7. Run the tar -xvf "OceanStor BCManager *_Agent-CentOS7-x86_64.tar.gz" command to decompress the installation package in the tar format.
  8. Run the cd sbin/thirdparty/sample command to go to the script save path and check whether the following scripts exist:

    sh_funcs.sh

    csh_funcs.sh

    post-thaw-script

    pre-freeze-script

  9. Copy the four scripts obtained in Step 8 to the /user/sbin directory of the VM.
  10. Run the vi Script name command and modify the following configuration items in the post-thaw-script and pre-freeze-script scripts:

    The database user password is optional. If OS authentication is enabled, you do not need to set this item. If OS authentication is not enabled, set this item.

    Database user account: username=admin

    Database user password: password=password

    Database instance name: ORACLE_SID=hwdb

    Installation directory of the database: ORACLE_HOME=/u01/app/oracle/product/18.3.1/dbhome_1

    Operating system account for running the database: oracle_user=oracle

    The values of the preceding configuration items are only examples. Change them based on the site requirements.

  11. If there are multiple VMs where the Oracle database is installed, repeat Step 1 to Step 10 on each VM.

Copyright © Huawei Technologies Co., Ltd.