Introduction
Database backups are one of the most important responsibilities of a Database Administrator.
In an Oracle Exascale environment, backup management is integrated with OCI services, but understanding what happens behind the scenes is still important for a DBA.
In this hands-on exercise, I worked through an end-to-end Oracle Exascale database backup workflow using dbaascli and OCI Object Storage.
The exercise covered:
Creating an OCI Object Storage bucket
Understanding the Object Storage namespace
Creating an OCI Auth Token
Identifying the OCI username
Identifying the user's IAM group
Creating IAM policies for Object Storage
Preparing a
dbaasclibackup configurationConfiguring the database backup
Troubleshooting an existing backup destination
Checking backup history and schedules
Starting an RMAN Level-0 backup
Monitoring the backup using UUID
Generating a backup report
Verifying the backup location
Understanding what constitutes a properly validated backup
The objective was not simply to run a backup command, but to understand the complete backup workflow from OCI IAM to RMAN and Object Storage.
1. Environment
The lab/pre-production environment used for this exercise was based on Oracle Exascale Database Service.
For this blog, the actual database-specific names are replaced with generic production-style names.
| Component | Value |
|---|---|
| Platform | Oracle Exascale Database Service |
| Database | ProdDB |
| DB Unique Name | PROD01 |
| Oracle Database | Oracle AI Database 26ai |
| Oracle Version | 23.26.3.0.0 |
| Backup Tool | dbaascli |
| DBAAS CLI | 26.2.2.0.0 |
| Backup Type | Regular Level-0 |
| Backup Destination | OCI Object Storage |
| Encryption | Enabled |
| Encryption Algorithm | AES256 |
| Recovery Window | 30 days |
The important architecture was:
OCI
|
+----------+----------+
| |
IAM Policy Object Storage
| |
Auth Token Backup Bucket
| |
+----------+----------+
|
dbaascli
|
RMAN
|
ProdDB2. Create the OCI Object Storage Bucket
The first step was to prepare an Object Storage destination.
From the OCI Console:
Object Storage → Buckets → Create Bucket
The bucket was configured as:
Bucket Name : exascale-prod-backup
Storage Tier : Standard
Visibility : Private
Encryption : Oracle-managed key
Region : MumbaiFor database backups, keeping the bucket private is important.
The bucket should not be publicly accessible.
3. Identify the Object Storage Namespace
OCI Object Storage uses a namespace for identifying the Object Storage tenancy.
This is different from:
OCI tenancy OCID
User OCID
Bucket name
Username
For example:
tenantName=<OBJECT_STORAGE_NAMESPACE>The namespace is required by the backup configuration.
A common mistake is confusing:
Tenancy OCIDwith:
Object Storage NamespaceThey are not the same thing.
4. Create an OCI Auth Token
The next step was creating an OCI Auth Token for the OCI user that would be used for Object Storage authentication.
From OCI Console:
Profile → My Profile → Auth Tokens → Generate Token
The important point here is:
The Object Storage password used by the backup configuration is the OCI Auth Token, not the OCI console password.
The configuration parameter is:
ossAuthToken=<AUTH_TOKEN>Security warning
The Auth Token is a secret.
It should never be:
Posted on GitHub
Included in a public blog
Shared in screenshots
Added to a LinkedIn post
Sent through chat
Stored in a world-readable configuration file
In this exercise, the token was deliberately excluded from command output during verification.
5. Identify the OCI Username
The OCI username associated with the Auth Token is required by dbaascli.
The configuration parameter is:
ossUserName=<OCI_USERNAME>It is important not to confuse this with:
bucketName
tenantName
Auth TokenFor example:
ossUserName=<OCI_USERNAME>
tenantName=<OBJECT_STORAGE_NAMESPACE>
bucketName=exascale-prod-backup
ossAuthToken=<AUTH_TOKEN>Each value has a different purpose.
6. Identify the OCI User's Group
The Object Storage permissions were granted through an IAM group.
From OCI Console:
Identity & Security → Domains → Users → User → Groups
The user was a member of a dedicated group.
For this blog, we'll represent it as:
<BACKUP_GROUP>This group is important because the IAM policies are assigned to the group.
7. Create IAM Policies
The OCI user needs sufficient permissions to access the Object Storage bucket.
The policy used was based on the following structure:
Allow group <BACKUP_GROUP> to manage objects in compartment Prod_Db_Comp where target.bucket.name = 'exascale-prod-backup'
Allow group <BACKUP_GROUP> to read buckets in compartment Prod_Db_CompThese policies allow the backup user/group to interact with the required Object Storage bucket.
The policy was created from:
Identity & Security → Policies → Create Policy
After creation, the policy status showed:
ActiveWhy IAM is important
Authentication and authorization are two different things.
The Auth Token provides authentication.
The IAM policy determines what the authenticated user is allowed to do.
Conceptually:
OCI User
|
| Auth Token
↓
Authentication
|
| IAM Policy
↓
Authorization
|
↓
Object Storage Bucket8. Prepare the dbaascli Backup Configuration
The next step was creating a backup configuration file.
For example:
/tmp/prod_backup.cfgThe important parameters were:
backupDestination=oss
ossRecoveryWindow=30
bucketName=exascale-prod-backup
ossURL=https://swiftobjectstorage.<region>.oraclecloud.com/v1
tenantName=<OBJECT_STORAGE_NAMESPACE>
ossUserName=<OCI_USERNAME>
ossAuthToken=<AUTH_TOKEN>Other RMAN-related settings included:
sectionSize=64G
channelsPerNode=default
filesPerSet=64
encryptionAlgorithm=AES256
encryption=true
optimization=ON
compressionLevel=low
archivelogRetentionDaysInFRA=1
manageArchivelogs=yesThe configuration also contained scheduling-related parameters:
backupFrequencyAL=30
L0BackupDay=SUN
scheduleBackups=no9. Protect the Configuration File
Because the configuration file contains authentication information, it should not be readable by every operating-system user.
For example:
chmod 600 /tmp/prod_backup.cfgVerify:
ls -l /tmp/prod_backup.cfgThe goal is to make sure the file is accessible only to the appropriate account.
10. Verify the Configuration Without Exposing the Token
Before submitting the configuration, I verified only the non-sensitive parameters.
For example:
grep -v '^ossAuthToken=' /tmp/prod_backup.cfg | \
grep -E '^(bucketName|ossURL|tenantName|ossUserName)='Expected output:
bucketName=exascale-prod-backup
ossURL=https://swiftobjectstorage.<region>.oraclecloud.com/v1
tenantName=<OBJECT_STORAGE_NAMESPACE>
ossUserName=<OCI_USERNAME>This is a simple but useful DBA practice.
Instead of printing the entire configuration file, selectively display only the parameters that need validation.
11. Check the dbaascli Version and Supported Commands
Before executing backup operations, I checked the CLI help:
dbaascli database backup --helpThe environment was running:
DBAAS CLI version 26.2.2.0.0The available operations included:
--list
--start
--delete
--status
--getBackupReport
--configure
--getConfig
--validate
--showHistory
--getSchedulesThis was useful because it allowed the exact syntax supported by the installed version to be used instead of assuming syntax from another release.
12. Configure the Database Backup
The backup configuration was submitted using:
dbaascli database backup \
--dbname proddb \
--configure \
--configFile /tmp/prod_backup.cfgThe command returned a UUID.
For example:
UUID <CONFIGURATION_UUID> for this backupThe UUID is important because it allows the operation to be tracked.
13. Do Not Assume the Configuration Was Applied
This became one of the most important lessons from the exercise.
The --configure command completed and returned a UUID, but that did not automatically mean the desired configuration had become the active configuration.
I checked the configuration using:
dbaascli database backup \
--dbname proddb \
--getConfig \
--configFile /tmp/current_proddb_backup.cfgThen:
grep -vE '^(ossAuthToken|catalogPassword)=' \
/tmp/current_proddb_backup.cfgThis showed the currently persisted backup configuration.
14. Troubleshooting DBAAS-10006
During the configuration process, the CLI returned:
DBAAS-10006 : Failed to create the job.
Database is configured with different destination.
Disable the current backups and reconfigure.This was an important discovery.
The issue was not simply:
Wrong bucket
Wrong Auth Token
Wrong IAM policy
Network failure
The database already had a different backup destination configured.
Therefore, the backup configuration could not simply be replaced by submitting another configuration.
15. Check Backup History
To understand what was currently happening, I checked the backup history:
dbaascli database backup \
--dbname proddb \
--showHistoryThis provided visibility into previous backup operations.
This is particularly useful when troubleshooting backup configuration problems because it tells us whether the database has:
Previous Level-0 backups
Level-1 backups
Archive-log backups
FRA cleanup operations
Failed backup jobs
Successful backup jobs
16. Check Backup Schedules
I also checked:
dbaascli database backup \
--dbname proddb \
--getSchedulesThe environment showed an active FRA cleanup schedule similar to:
backupType : FRA_CLEANUP
status : ACTIVE
frequency : 30 MinutesThis is an important distinction.
FRA cleanup is not the same as database backup scheduling.
For example:
FRA Cleanup
≠
Level-0 Backup
≠
Level-1 Backup
≠
Archive Log BackupEach has a different purpose.
17. Existing Configuration vs New Configuration
At this point, the important DBA lesson was:
Desired configuration
↓
New Object Storage bucket
↓
But existing backup destination already configured
↓
DBAAS-10006
↓
Existing configuration must be handled correctlyRather than repeatedly executing --configure, the current configuration and backup history needed to be understood first.
This is a good example of why troubleshooting should be based on actual DBAASCLI output rather than repeatedly retrying the same command.
18. Start a Level-0 Backup
Once the working backup configuration was established, the full Level-0 backup was started using:
dbaascli database backup \
--dbname proddb \
--start \
--level0The command returned a backup UUID.
For example:
<BACKUP_UUID>19. Monitor the Backup Using UUID
The backup operation can be monitored with:
dbaascli database backup \
--dbname proddb \
--status \
--uuid <BACKUP_UUID>The status output can show information such as:
UUID
STATE
ACTION
STARTED
ENDED
TAG
PCT
LOGThis is much better than simply waiting and assuming that the backup completed successfully.
20. Generate the Latest Backup Report
After the Level-0 backup completed, I generated a JSON backup report:
dbaascli database backup \
--dbname proddb \
--getBackupReport \
--latest \
--json /tmp/prod_backup_report.jsonThe report contained information such as:
{
"dbUniqueName": "PROD01",
"backupType": "Regular-L0",
"tag": "DBAASTOOLS_27_09_2026_204107",
"dbName": "ProdDB",
"dbDataSize": "106035",
"dbRedoSize": "16168",
"encryptionType": "FILE"
}It also included the backup location and TDE wallet location.
21. Verify the Backup Type
The most important field was:
backupType = Regular-L0A Level-0 backup represents a full baseline backup for incremental backup strategies.
This confirmed that the operation was not merely:
FRA cleanup
Archive-log backup
Level-1 incremental
It was a Regular Level-0 database backup.
22. Verify the Object Storage Backup Location
The backup report also provided:
backupLocation=<OCI_OBJECT_STORAGE_LOCATION>This is an important verification step.
Instead of saying:
"The backup command succeeded."
we can say:
"The backup report confirms a Regular-L0 backup and provides its Object Storage location."
That is much stronger evidence.
23. TDE Wallet Backup
The report also contained a TDE wallet location.
For example:
tdeWalletLoc=<OCI_OBJECT_STORAGE_TDE_WALLET_LOCATION>This is important because encrypted databases require the corresponding encryption key material to be available during recovery.
A backup strategy should therefore consider not only:
Database databut also the required encryption metadata/key material.
24. Backup Encryption
The backup configuration included:
encryption=true
encryptionAlgorithm=AES256The resulting report showed:
encryptionType=FILEThis demonstrates that backup encryption was part of the configured workflow.
Security should be considered at multiple levels:
OCI IAM
↓
Private Object Storage
↓
Auth Token
↓
Backup Encryption
↓
TDE / Database Encryption25. Backup Validation — The Most Important Part
One of the biggest lessons from this exercise is:
A backup is not truly valuable until it can be recovered.
Creating backup files is only one part of the process.
A mature backup workflow should eventually include:
Backup
↓
Backup Report
↓
Backup Validation
↓
Restore Test
↓
Recovery TestThe installed dbaascli version also provides:
dbaascli database backup \
--dbname proddb \
--validateValidation should be treated as a separate step from backup creation.
26. Useful dbaascli Commands
The following commands are useful when managing backups:
Check configuration
dbaascli database backup \
--dbname proddb \
--getConfigCheck backup history
dbaascli database backup \
--dbname proddb \
--showHistoryCheck schedules
dbaascli database backup \
--dbname proddb \
--getSchedulesStart Level-0
dbaascli database backup \
--dbname proddb \
--start \
--level0Check backup status
dbaascli database backup \
--dbname proddb \
--status \
--uuid <BACKUP_UUID>Get latest backup report
dbaascli database backup \
--dbname proddb \
--getBackupReport \
--latest \
--json /tmp/prod_backup_report.jsonValidate backup
dbaascli database backup \
--dbname proddb \
--validate27. End-to-End Workflow
The complete workflow can be summarized as:
OCI CONSOLE
|
+-----------+-----------+
| |
Object Storage IAM
| |
Create Bucket Create Policy
| |
+-----------+-----------+
|
OCI User
|
Auth Token
|
↓
Exascale VM
|
dbaascli
|
Backup Configuration
|
↓
RMAN
|
Level-0 Backup
|
↓
OCI Object Storage
|
↓
Backup Report
|
↓
Validation/Restore28. Troubleshooting Lessons
This exercise produced several useful DBA lessons.
Lesson 1 — Don't trust only the command exit
A command can complete at the CLI layer while the underlying operation later fails.
Always check the operation UUID/status.
Lesson 2 — Check the persisted configuration
After configuring:
dbaascli database backup --dbname proddb --getConfigDon't assume the new configuration is active.
Lesson 3 — Existing backup destinations matter
If you receive:
DBAAS-10006
Database is configured with different destinationdon't repeatedly submit the same configuration.
Investigate:
getConfig
showHistory
getSchedules
status
logsLesson 4 — FRA cleanup isn't a database backup
Seeing:
FRA_CLEANUPdoes not mean a Level-0 backup is running.
Understand the difference between:
FRA Cleanup
Archive Log Backup
Level-0
Level-1Lesson 5 — Protect credentials
Never expose:
ossAuthToken
passwords
private keys
API keysWhen checking a configuration file, mask or exclude secrets.
For example:
grep -v '^ossAuthToken=' /tmp/prod_backup.cfg29. What I Would Improve in a Production Environment
For a real production implementation, I would go beyond simply creating a Level-0 backup.
The operational workflow should include:
Backup
Regular Level-0
+
Archive Log BackupsMonitoring
Backup Job
↓
Status
↓
Failure AlertRetention
Recovery Window
+
Object Storage RetentionValidation
Backup Validation
↓
Restore Test
↓
Recovery TestSecurity
IAM
+
Private Bucket
+
Auth Token Protection
+
Encryption30. Final Takeaway
The biggest lesson from this hands-on exercise was that database backup administration is not simply about creating backup files.
The complete workflow involves several layers:
OCI Object Storage
↓
OCI IAM
↓
Auth Token
↓
dbaascli
↓
DTRS / Database Services
↓
RMAN
↓
Level-0 Backup
↓
Object Storage
↓
Backup Report
↓
Validation
↓
RecoveryAnd the real success criteria should be:
Can I recover the database when I actually need to?
That is the difference between having a backup and having a reliable recovery strategy.
Final DBA Checklist
☑ Create private OCI Object Storage bucket
☑ Identify Object Storage namespace
☑ Create OCI Auth Token
☑ Identify OCI username
☑ Identify IAM group
☑ Create Object Storage IAM policies
☑ Prepare dbaascli configuration
☑ Protect configuration file
☑ Verify non-sensitive parameters
☑ Configure database backup
☑ Check configuration UUID/status
☑ Verify persisted backup configuration
☑ Check backup history
☑ Check backup schedules
☑ Start Level-0 backup
☑ Monitor backup UUID
☑ Generate backup report
☑ Verify Object Storage destination
☑ Validate backup
☑ Perform periodic restore/recovery testingClosing
This hands-on exercise gave me a much deeper understanding of how Oracle Exascale Database Service, OCI IAM, Object Storage, dbaascli, RMAN, encryption, and backup validation work together.
For a DBA, the command to create a backup is only the beginning.
The real question is always: Can I recover from it?
Comments
Post a Comment