Before you use Cloud Backup to back up an Oracle database deployed on an on-premises server, you must register the Oracle database in the Cloud Backup console. This topic describes how to register an on-premises Oracle database.
Prerequisites
The on-premises database server is connected to virtual private clouds (VPCs) by using virtual private networks (VPNs) or Express Connect circuits. One of the following CIDR blocks can be used for communication between the on-premises database server and Alibaba Cloud: 100.64.0.0/10, 100.64.0.0/11, and 100.96.0.0/11.
Procedure
Log on to the Cloud Backup console.
In the left-side navigation pane, choose
. In the top navigation bar, select a region. On the Database Backup page, click the Oracle tab. On the Local Database Instance tab, click Register Database Instance.In the Add Client panel, install and activate a Cloud Backup client as prompted.
Automatically install the Cloud Backup client for database backup
Windows
Download and decompress the Cloud Backup client for Windows.
NoteTo download the Cloud Backup client to your on-premises server, you can right-click the URL to copy the URL, and then open the URL in a browser on the on-premises server.
Log on to the on-premises server. Go to the decompression directory and enter
PowerShell
in the path bar to open the terminal window. Then, click theicon in the Cloud Backup console, and copy and run the installation command in PowerShell to activate the Cloud Backup client for Windows.
If the content of the red box in the following figure appears, the Cloud Backup client for Windows is installed.
Linux
Download and decompress the Cloud Backup client for Linux.
Right-click the URL to copy the URL, and then run the
wget
command to download the Cloud Backup client for Linux to the on-premises server.wget https://a-hbr-resource-shanghai.oss-cn-shanghai.aliyuncs.com/unibackup/hbr-uni-install-linux.tar.gz
Run the tar command to decompress the Cloud Backup client for Linux.
tar -zxvf hbr-uni-install-linux.tar.gz
Log on to the on-premises server. Click the
icon in the Cloud Backup console to copy and run the installation command in the decompression directory to activate the Cloud Backup client for Linux.
If the content of the red box in the following figure appears, the Cloud Backup client for Linux is installed.
Optional. If the automatic installation of the Cloud Backup client for Windows fails, perform the following steps to manually install the Cloud Backup client.
Manually install the Cloud Backup client for database backup
After you register and activate the on-premises database, you can view the registration status on the Local Database Instance tab. If Client Status is displayed as Installed, Database Status is displayed as Online.
Delete a registered database
Uninstall the Cloud Backup client.
Log on to the on-premises server and run one of the following commands to uninstall the Cloud Backup client.
Windows
Go to the installation directory of the Cloud Backup client by using PowerShell, for example,
C:\Program Files\aliyun\unibackup>
.Run the following command:
.\uninstall-unibackup.exe /S /NCRC
Linux
CentOS
sudo rpm --erase "dbackup3-agent-oracle" sudo rpm --erase "dbackup3-agent" sudo rpm --erase "dbackup3-common"
Ubuntu
sudo dpkg -r "dbackup3-agent-oracle" "dbackup3-agent" "dbackup3-common"
Unregister a database.
If you no longer need to back up an Oracle database, perform the following operations to unregister the database: Click the Local Database Instance tab. Find the database that you want to unregister, and choose
in the Actions column.WarningAfter you unregister a database, all backups generated by the Cloud Backup client for Windows cannot be restored. Proceed with caution.
In the dialog box that appears, click OK.
Related operations
Unregister Instance
If you no longer need to back up an Oracle database, perform the following operations to unregister the database: Click the ECS Database Instance tab. Choose
in the Actions column of the database. In the message that appears, click OK.WarningAfter you unregister a database, all backups generated by the Cloud Backup client for Windows cannot be restored. Proceed with caution.
Create Cluster
If your Oracle database belongs to a cluster, you must create another cluster that consists of the database after you register the database. Cloud Backup backs up all databases in a cluster to the same backup vault. To create a cluster, perform the following operations: On the ECS Database Instance tab, select your database to be added to the cluster. Click Create Cluster. In the dialog box that appears, select the databases that belong to the cluster and click OK.
NoteAfter you create an Oracle RAC cluster, you need to configure a backup plan on only one database before you perform subsequent operations.