Cloud Training Exa Cs Backup Recovery
Cloud Training Exa Cs Backup Recovery
Cloud Training Exa Cs Backup Recovery
ExaCS supports backing up databases on an Exadata DB system to an existing bucket in the Oracle Cloud
Infrastructure Object Storage service and to the local disk Fast Recovery Area.
• You need to Create a backup configuration file that indicates the backup destination, when the backup should
run, and how long backups are retained. If the backup destination is Object Storage, the file also contains the
credentials to access the service.
• As a next step you associate the backup configuration file with a database. The database will be backed up as
scheduled, or you can create an on-demand backup.
Note: You must update the cloud-specific tooling on all the compute nodes in your Exadata DB system before
performing the Backup-restore procedures. For more information, see Updating an Exadata DB System.
An existing Object Storage bucket to use as the backup destination. You can use the Console or the Object
Storage API to create the bucket.
•An auth token generated by Oracle Cloud Infrastructure. You can use the Console or the IAM API to generate
the password.
•The user name specified in the backup configuration file must have tenancy-level access to Object Storage.
Administrator should create a policy like the following that limits access to only the required resources in Object
Storage for backing up and restoring the database:
• Create a Service Gateway and define Routing Rule as shown for Service gateway. You can have a
separate rule just for this.
• Note: NAT GW is not needed anymore, In
Case you need , you can have one.
• /var/opt/oracle/bkup_api/bkup_api
• /var/opt/oracle/ocde/assistants/bkup/obkup
• /var/opt/oracle/oss
• /var/opt/oracle/ocde/assistants/bkup/bkup
• How are backups taken
• Automatic jobs via crontab
• On demand on VM
• SSH to the first compute node in the Exadata DB system and login as root.
• Create a new backup configuration file in /var/opt/oracle/ocde/assistants/bkup as below for scheduling
backup to both disk and Object storage
• Save the file and set permission.
# cd /var/opt/oracle/ocde/assistants/bkup
# vi bkup.cfg ==> This file may be empty by default. Enter the below values into the file and can be customized as well. Change the permission of the file
• When the scheduled backup runs, you can check its progress with the following command.
/var/opt/oracle/bkup_api/bkup_api bkup_status
Note: If you used Object Storage as a backup destination, you can display the backup files in your bucket
in the Console on the Storage page, by selecting Object Storage.
Note: A backup configuration can contain the credentials to access the Object Storage bucket. For this reason,
you might want to remove the file after successfully configuring the backup.
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 10
Installing Backup Configuration Example
[root@xdprod-n53zg1 bkup]# /var/opt/oracle/bkup_api/bkup_api set config --
file=/var/opt/oracle/ocde/assistants/bkup/bkup.cfg --dbname=bmsprod
DBaaS Backup API V1.5 @2016 Multi-Oracle home
-> Action : set_config
-> logfile: /var/opt/oracle/bkup_api/log/bkup_api.log
cfgfile : /var/opt/oracle/ocde/assistants/bkup/bkup.cfg
Using configuration file: /var/opt/oracle/ocde/assistants/bkup/bkup.cfg Verifying Configuration
API::Parameters validated.
** process started with PID: 204524
** see log file for monitor progress
To create a backup that follows the current retention policy, enter the following command:
# /var/opt/oracle/bkup_api/bkup_api bkup_start --dbname=<database_name>
Connect to the first compute node in your Exadata DB system as the opc user and sudo to root
where dbname is the database name for the database that you want to act on. Delete the backup you want:
Use the RMAN delete backup command to delete a backup from the Object Store.
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 14
Updating the Password by bkup_api Utility
OSS authentication check/Update password
curl -v -X GET <oss url> -u <userid of oss>:<passwd of oss>
Next step is to verify if the password is stored correctly in the wallet. Wallet is located at
/u01/app/oracle/admin/<SID>/db_wallet
Login as root user on first node of ExaCS after logging as “opc” user
To change oss password in db_wallet Create a file that contains the updated password such as /tmp/bal.cfg which looks like
password=Welcome1
chmod 0600 /tmp/bal.cfg
Run the command to set the new password.
/var/opt/oracle/bkup_api/bkup_api update_wallet --cfg=password-file
./opt/oracle/bkup_api/bkup_api update_wallet --cfg=/tmp/bal.cfg
• backup tag
• SCN
• PITR
• Latest Backup
• Log files : /var/opt/oracle/log/<dbname>/orec
Note: You can use sudo instead of logging to root from opc user
bkup_oss_user = [email protected]
[root@xdprod-n53zg1 ~]# /var/opt/oracle/bkup_api/bkup_api get_config_info --entry bkup_oss_url --dbname=bmsprod
DBaaS Backup API V1.5 @2016 Multi-Oracle home
bkup_oss_url = https://swiftobjectstorage.us-ashburn-1.oraclecloud.com/v1/ociobenablement/balxdbucket
[root@xdprod-n53zg1 ~]# /var/opt/oracle/bkup_api/bkup_api get_config_info --entry bkup_oss --dbname=bmsprod
DBaaS Backup API V1.5 @2016 Multi-Oracle home
bkup_oss = yes
[root@xdprod-n53zg1 ~]# /var/opt/oracle/bkup_api/bkup_api get_config_info --entry bkup_cfg_files --dbname=bmsprod
DBaaS Backup API V1.5 @2016 Multi-Oracle home
bkup_cfg_files = yes
cloud.oracle.com/tryit