Base Database Service and Exadata
Co-managed Oracle Database on OCI: DB systems, editions and licensing, patching, backups, Data Guard and RAC, and Exadata Database Service.
Co-managed Oracle databases
Base Database Service and Exadata Database Service run Oracle Database the way an on-premises DBA knows it, with root access to the servers and full SYSDBA access to the databases, while OCI automates the routine work: provisioning, patching, backups, and Data Guard.
Oracle calls this co-managed. OCI owns the hardware and gives you tools that do the heavy lifting, but you decide when patches go on, you can log in to the server, and you can tune anything. That freedom comes with responsibility: a DBA who changes things outside the tools, such as editing files by hand, can break the automation.
| OCI takes care of | You take care of |
|---|---|
| Hardware, networking, and the virtualization layer | Choosing the shape, edition, version, and storage |
| Installing Grid Infrastructure and the database software | Deciding when to patch and upgrade, and running the prechecks |
| Providing patches, and applying them when you say so | Operating system hardening and anything you install on the server |
| Automated backups and Data Guard setup through the console | Backup retention, standby placement, and testing restores and switchovers |
| Users, security, tuning, and everything inside the database |
Base Database Service: DB systems
A DB system is one virtual machine, or two for RAC, with Oracle Database installed and ready. When you create one, you choose:
- Shape
- The type of virtual machine, such as
VM.Standard.E5.Flexon AMD processors. Flexible shapes let you pick the number of OCPUs, where one OCPU is one physical processor core with two hardware threads, and memory is sized to match. - Storage
- Block storage for data and recovery files. It's managed either with Logical Volume Manager, which provisions fastest and suits single-instance databases, or with Automatic Storage Management (ASM), which RAC requires. Storage can be increased later without downtime.
- Version and edition
- Oracle Database 19c or 26ai, and one of four editions, which decide which features are included.
- License model
- License Included, where the Oracle license is part of the hourly price, or bring your own license (BYOL), using licenses the company already owns.
The four editions build on each other:
| Edition | What it adds |
|---|---|
| Standard Edition | The core database, for smaller workloads. |
| Enterprise Edition | Enterprise Edition features, such as Data Guard, online operations, and parallel query. |
| Enterprise Edition High Performance | Most extra-cost options: Multitenant, Partitioning, Advanced Compression, Advanced Security, and the Diagnostics and Tuning Packs, among others. |
| Enterprise Edition Extreme Performance | Everything, including Real Application Clusters (RAC), Database In-Memory, and Active Data Guard. |
Because it's co-managed, you work on a DB system the way you would on-premises:
# connect to the server as the opc user, then switch to oracle
$ ssh -i ~/.ssh/kofi_key opc@10.0.1.15
$ sudo su - oracle
# full SYSDBA access, as on-premises
$ sqlplus / as sysdba
SQL> SELECT name, open_mode, database_role FROM v$database;
NAME OPEN_MODE DATABASE_ROLE
--------- -------------------- ----------------
SALES READ WRITE PRIMARY
For tasks the automation tracks, such as patching, backups, and creating pluggable databases, use the console, the OCI CLI, or the dbaascli tool on the server, rather than doing them by hand, so OCI's view of the database stays correct.
Patching and upgrades
Oracle releases a Release Update (RU) for each database version every quarter, with security and bug fixes. On a DB system, OCI lists the patches available for both Grid Infrastructure and the database, and you choose when to apply them:
- Run the precheck, which confirms the patch can be applied without problems.
- Apply the patch, in a quiet period agreed with the application team. On a two-node RAC system, nodes are patched one at a time, so the database stays available.
- Confirm the new version, and watch the application closely afterward.
Patching a standby first, then switching over, keeps downtime short for single-instance databases with Data Guard. Major version upgrades, such as 19c to 26ai, are also started from the console or dbaascli, after testing on a copy.
Backups
Automatic backups use RMAN behind the scenes, and are switched on and set up from the console. They go to one of two places:
- Autonomous Recovery Service
- Oracle's recommended backup destination, based on the Zero Data Loss Recovery Appliance. After one full backup, it only takes incremental backups, and with real-time data protection switched on, it receives redo continuously, so a restore can recover to within a second or so of a failure.
- Object Storage
- Daily backups to OCI's object storage, with a choice of retention periods.
From the console, you can restore to the latest backup, to a point in time, or to a specific system change number (SCN). You can still write your own RMAN scripts, but don't mix them with automatic backups for the same database, or the two will get in each other's way.
Data Guard and RAC
- Data Guard from the console
- A few clicks create a standby DB system and configure Data Guard: in another availability domain or fault domain for high availability, or in another region for disaster recovery. You choose the protection mode, such as Maximum Availability, which sends redo synchronously so no committed data is lost, or Maximum Performance, which sends it asynchronously. Switchover, for planned work, and failover, for real failures, are buttons in the console.
- Active Data Guard
- Opens the standby read-only while it keeps applying redo, so it can serve reports and backups. It's included in Extreme Performance edition.
- RAC on DB systems
- A two-node DB system, on ASM storage and Extreme Performance edition, runs one database on two virtual machines in different fault domains. If one node fails, the other keeps the database open, and nodes can be patched one at a time.
Exadata Database Service
When a database outgrows a virtual machine, or needs the highest performance and availability, it moves to Exadata. An Exadata system combines database servers with intelligent storage servers on a very fast internal network. Features such as Smart Scan, which filters data in the storage servers before sending it to the database, make large queries much faster.
- Dedicated infrastructure
- You rent a whole Exadata system and divide it into VM clusters: groups of virtual machines across the database servers, each with its own Oracle Grid Infrastructure and RAC databases. You can scale the number of active CPUs up and down online, paying only for what's switched on.
- Exascale infrastructure
- Exadata performance without renting a whole system. You create VM clusters on Oracle's shared Exadata infrastructure and pay only for the CPUs and storage you use, so small and medium databases can benefit from Exadata too.
- Exadata Cloud@Customer
- The dedicated service with the Exadata installed in your own data center, for databases that must stay on-premises because of regulations or latency.
Day-to-day work on Exadata is the same as on Base Database Service: SSH and SYSDBA access, patching from the console or dbaascli, automatic backups, and Data Guard, with RAC throughout.
Creating a DB system
With the OCI CLI, creating a single-instance DB system for Kofi's sales database looks like this (the long OCIDs, OCI's resource IDs, are shortened):
$ oci db system launch --compartment-id ocid1.compartment.oc1..aaaa \
--availability-domain "Uocm:US-ASHBURN-AD-1" --subnet-id ocid1.subnet.oc1..bbbb \
--shape VM.Standard.E5.Flex --cpu-core-count 2 --node-count 1 \
--database-edition ENTERPRISE_EDITION_HIGH_PERFORMANCE --license-model LICENSE_INCLUDED \
--db-version 19.0.0.0 --db-name SALES --hostname kofi-db01 \
--storage-management LVM --initial-data-storage-size-in-gb 256 \
--ssh-authorized-keys-file ~/.ssh/kofi_key.pub --admin-password "<strong-password>"
Like other clouds, a DB system can be stopped to save on compute; storage is still billed while it's stopped.
Key takeaways
- Base Database Service and Exadata are co-managed: OCI automates provisioning, patching, backups, and Data Guard, while you keep root and SYSDBA access.
- A DB system is sized by shape and OCPUs, with LVM or ASM storage, a version, one of four editions, and a License Included or BYOL model.
- Higher editions include extra-cost options, such as the Diagnostics Pack in High Performance and RAC in Extreme Performance.
- Apply quarterly Release Updates when you choose, after a precheck. Use the console, OCI CLI, or
dbaasclifor tracked tasks. - Back up to the Autonomous Recovery Service or Object Storage, and set up Data Guard across availability domains or regions from the console.
- Exadata, on dedicated or Exascale infrastructure, or Cloud@Customer, serves the largest databases, with RAC and Smart Scan.