OCI Database Services
How OCI is organized, the database services it offers, from Autonomous Database and Exadata to MySQL HeatWave, and how to choose between them.
Databases on OCI
Oracle Cloud Infrastructure (OCI) is Oracle's own cloud, and the natural home for Oracle Database. It's the only cloud that offers every way of running Oracle, from a single virtual machine to Exadata and the fully automated Autonomous Database, alongside managed MySQL, PostgreSQL, and NoSQL services.
For an Oracle DBA, OCI feels familiar: the databases are the same Oracle Database you know, with SYSDBA, RMAN, Data Guard, and RAC available on the services that allow them. What's new is the way OCI organizes, connects, and bills for them.
How OCI is organized
- Tenancy
- Your organization's account in OCI, created when the company signs up. It holds all users, groups, policies, and resources.
- Compartment
- A folder for resources, and OCI's main tool for organizing and securing them. Compartments can be nested, such as
salescontainingsales-prodandsales-dev, and permissions and budgets are set per compartment. Compartments are global: one compartment can hold resources in any region. It's roughly what Azure calls a resource group. - Region, availability domains, and fault domains
- A region, such as us-ashburn-1, is a geographic area. Some regions have three availability domains (ADs), separate data centers like AWS and Azure availability zones; many have one. Every AD is divided into three fault domains: groups of hardware that don't share a single point of failure, so a primary and standby in different fault domains survive a hardware failure even in a one-AD region.
- VCN (virtual cloud network)
- Your private network in a region, divided into subnets. Databases go in private subnets. Traffic is controlled by security lists, which apply to a whole subnet, and network security groups (NSGs), which apply to chosen resources, such as only the database servers.
- IAM policies
- OCI permissions are written as readable sentences, granted to groups in a compartment. For example:
Allow group DBAdmins to manage database-family in compartment sales-prod.
OCI's database services
Oracle Database services
- Oracle Autonomous Database
- A fully managed Oracle database that patches, tunes, scales, and backs itself up, with no operating system or SYSDBA access. It comes tuned for different workload types, such as Transaction Processing (ATP) and Data Warehouse (ADW). The Autonomous Database lesson covers it.
- Base Database Service
- Oracle Database on virtual machines, called DB systems. It's co-managed: OCI automates provisioning, patching, backups, and Data Guard, but you also get root access to the server and full SYSDBA access, just like on-premises.
- Exadata Database Service
- Oracle Database on Exadata, Oracle's engineered hardware for the largest and most demanding databases, with Real Application Clusters (RAC). It runs on dedicated infrastructure (a whole Exadata for your company) or on Exascale infrastructure (Exadata performance in smaller, shared slices).
- Exadata Cloud@Customer
- The same Exadata service, but the hardware sits in your own data center, for data that must stay on-premises. Oracle manages the infrastructure remotely, and you use the OCI console and tools.
The Base Database and Exadata lesson covers the co-managed services. Oracle has recently added "AI" to many product names, such as Oracle AI Database 26ai (the successor to 23ai) and Autonomous AI Database, so you'll see both old and new names in documentation.
Other database services
- MySQL HeatWave
- Managed MySQL, built by the MySQL team at Oracle. Its HeatWave in-memory engine runs analytics queries directly on the MySQL data, so reports don't need a separate data warehouse.
- OCI Database with PostgreSQL
- Managed open source PostgreSQL, with storage optimized by OCI and high availability across availability domains or fault domains.
- OCI NoSQL Database
- A serverless key-value and JSON document database with fast, predictable response times, similar to DynamoDB on AWS.
- OCI Cache
- Managed in-memory caching with Redis or Valkey.
Multicloud and self-managed
Through Oracle Database@Azure, Oracle Database@AWS, and Oracle Database@Google Cloud, the same Exadata and Autonomous Database services run inside other clouds' data centers, as you saw in the Azure and AWS modules. They're managed with OCI's tools, so everything in this module applies to them. And, as on any cloud, any database can be installed yourself on an OCI Compute virtual machine.
Comparing the Oracle Database services
The biggest difference between the Oracle services is how much Oracle manages, and how much control you keep:
| Autonomous Database | Base Database Service | Exadata Database Service | |
|---|---|---|---|
| Management | Fully managed by Oracle | Co-managed | Co-managed |
| OS and SYSDBA access | No | Yes | Yes |
| Patching | Automatic, by Oracle | You choose when, OCI applies it | You choose when, OCI applies it |
| Scaling | Online, with automatic scaling | CPU and storage can be changed; a CPU change restarts the server, one node at a time with RAC | Online, up to very large sizes |
| RAC | Runs on Exadata, with RAC behind the scenes | Two-node RAC on some shapes | Yes |
| Best for | New applications, analytics, and teams that want to spend least time on operations | Small and medium databases, and lift-and-shift moves from on-premises | Large, mission-critical databases that need the highest performance |
Choosing a service
For Oracle, a common pattern is to start with Autonomous Database for new applications, use Base Database Service when an application needs a specific setup, version, or OS access, and move to Exadata when a database outgrows a virtual machine or needs RAC.
What every service has in common
- Created and organized the same way, in compartments and VCNs, through the OCI Console, the OCI CLI, or infrastructure as code with Terraform and OCI Resource Manager.
- Sized by CPU. Most services are sized in ECPUs or OCPUs, OCI's units of processing power, plus storage.
- Backed up automatically, to Object Storage or the Autonomous Recovery Service.
- Highly available by placing copies in different availability domains or fault domains.
- Secured with the same tools: IAM policies, private subnets and NSGs, encryption by default, and OCI Vault for keys.
- Monitored and billed the same way, with OCI Monitoring, Database Management, and Cost Analysis.
The Managing Databases on OCI lesson covers these responsibilities across the services.
In practice: an Oracle estate moves to OCI
Kofi's company moves its Oracle databases to OCI. Each lands on the service that matches its needs:
| Database | What it needs | Service |
|---|---|---|
| New internal APEX app | Little to manage, low cost | Autonomous Database, APEX workload type |
| Vendor ERP | OS access, a specific patch level, Enterprise Edition options | Base Database Service, High Performance edition, with the company's own licenses |
| Core banking | 20 TB, a four-node RAC cluster, highest performance | Exadata Database Service on dedicated infrastructure |
| Data warehouse | Large analytical queries | Autonomous Database, Data Warehouse workload type |
| Regulated customer data | Must stay in the company's own data center | Exadata Cloud@Customer |
Key takeaways
- OCI resources live in a tenancy, organized in nested compartments, and run in regions with availability domains and fault domains, inside private networks called VCNs.
- Oracle Database runs on Autonomous Database (fully managed), Base Database Service (co-managed virtual machines), and Exadata, in OCI or in your own data center.
- OCI also offers MySQL HeatWave, OCI Database with PostgreSQL, OCI NoSQL Database, and OCI Cache.
- The same Oracle services run in Azure, AWS, and Google Cloud through Oracle Database@ offerings, managed with OCI's tools.
- The main choice for Oracle is how much control you need: Autonomous for the least work, Base Database for full control, Exadata for the largest workloads.