Compare · Distributed SQL

Oracle vs CockroachDB Licensing is the comparison that decides whether your RAC plus Active Data Guard footprint is a competitive necessity or an expensive habit.

An Oracle vs CockroachDB comparison is essential reading for any organisation paying for RAC, Active Data Guard, GoldenGate, and the Partitioning option simultaneously. CockroachDB is a distributed SQL database with PostgreSQL wire-compatibility, native multi-region survivability, and a commercial model that does not charge for high availability as a separate option. The 5-year TCO gap to Oracle Database EE plus RAC plus Active Data Guard lands at 60 to 78 percent for genuinely distributed workloads. This is a buyer-side breakdown of where it wins, where it does not, and how Oracle's account team will challenge the move.

13 min readPublished 18 May 2026CompareBy Oracle Licensing Experts
Former Oracle insiders25+ years600+ engagements$1.8B advised38% avg cost reduction100% buyer-side
Oracle EE + RAC + ADG
Processor + 22% support
$47,500
EE+RAC+ADG list, per x86 core
vs
CockroachDB Cloud Dedicated
Consumption · vCPU-hour + storage
$0.45
per vCPU-hour (AWS, on-demand)

What CockroachDB is

CockroachDB is a distributed SQL database designed for global OLTP workloads. It is PostgreSQL wire-compatible, supports serialisable isolation by default, and is built around the concept of distributed range-replicated data with automatic rebalancing. The architectural lineage is Google's Spanner paper, adapted to commodity infrastructure.

For Oracle estates, CockroachDB is the most credible like-for-like alternative to Oracle Database EE plus RAC plus Active Data Guard. RAC delivers active-active inside a single shared-storage cluster; ADG delivers cross-site disaster recovery; CockroachDB delivers both natively without separately-licensed options. For globally distributed workloads — financial services trading systems with operational presence in multiple regions, retail platforms with regional latency requirements, telecoms with active-active national-grid requirements — CockroachDB frequently outperforms RAC because RAC was never architected for cross-region operation.

What CockroachDB replaces in an Oracle estate: Database EE, the RAC option, Active Data Guard, GoldenGate for replication, and a meaningful portion of Partitioning option usage. It is the wrong destination for analytics-heavy workloads (Snowflake or Databricks) and for document-shaped workloads (MongoDB).

Distributed SQL architecture

Three architectural features decide most RAC-replacement comparisons:

  • Range-replicated storage with consensus. Data is split into 512 MB ranges, each replicated 3+ ways using Raft consensus. Reads and writes route to the leaseholder replica. Failover is automatic and sub-second; there is no concept of a "primary" or "standby" cluster.
  • Multi-region survivability. Survival goals are configured per database: zone survival, region survival, or multi-region survival. A multi-region cluster survives the loss of an entire AWS region without data loss and with no failover orchestration. The equivalent on Oracle requires Active Data Guard far synchronous, custom application logic, and significant operational engineering.
  • Native horizontal scale. Adding nodes increases capacity linearly. There is no equivalent to RAC's interconnect bottleneck. Sharding is automatic; the application sees a single SQL endpoint.

The implication for buyer-side TCO: features that Oracle bundles into separately-licensed RAC and Active Data Guard options — at $23,000 per core list each, on top of the base EE licence — are CockroachDB defaults.

Licensing: Core, Enterprise, Cloud

PathModelWhen to use
CockroachDB CoreBSL communityDev / pre-production. Lacks multi-region, change feeds, audit logging, advanced auth. BSL converts to Apache 2.0 after 3 years per release.
CockroachDB Enterprise (self-managed)Paid licence + supportOn-premise production. Includes multi-region capabilities, change feeds, role-based access control, audit logging, enterprise backup & restore. Priced per vCPU, typically annually.
CockroachDB Cloud DedicatedPer vCPU-hour + storage + RUProduction. Single-tenant cluster on AWS, Azure, or GCP. Customer chooses cloud provider, region, multi-region survival goal.
CockroachDB Cloud StandardPer RU + storageMulti-tenant managed service. Pay per Request Unit. Suits steady moderate workloads where dedicated capacity overhead is hard to justify.
CockroachDB Cloud BasicFree tier / low usageDev and pre-production. Per-RU charges above a generous free monthly allowance.

Most enterprise customers run Cloud Dedicated for production. Self-managed Enterprise is the path for regulated estates that cannot use a managed cloud service. Negotiated multi-year commits on Cloud Dedicated typically reduce 20 to 35 percent against on-demand.

Cloud Dedicated and Standard pricing

ComponentCloud Dedicated (AWS us-east-1)Notes
vCPU compute$0.45 / vCPU-hour (on-demand)1-year commit ~22% off; 3-year commit ~38% off
MemoryIncluded in vCPU priceStandard 4 GB / vCPU; high-memory shapes available
Storage$0.25 / GB-month (provisioned)Auto-extends; IOPS scaled with capacity
Backup storage$0.045 / GB-monthContinuous, granular point-in-time recovery
Multi-regionLinear per additional regionAdd survivability without licence uplift — region cost only
Request Units (Standard tier)$0.85 / 1M RUsUse for steady moderate workloads
Data transferCloud-provider egress ratesIntra-region typically free

The single largest TCO variable is right-sizing. We routinely see CockroachDB Cloud Dedicated estates running 20 to 35 percent over necessary because the cluster was sized for projected peak rather than measured peak. A buyer-side capacity review before the next renewal usually pays back the engagement within the first quarter.

Modelling an Oracle RAC migration to CockroachDB?Our former Oracle insiders will benchmark CockroachDB pricing, right-size the cluster footprint, defend the Oracle support drop on RAC and ADG, and push back on Oracle's counter-offer. Buyer-side. No commitment.
Speak to a Licence Optimisation expert →

Capability comparison with Oracle Database EE + RAC + ADG

CapabilityOracle EE + RAC + ADGCockroachDB Cloud Dedicated
Active-active multi-nodeRAC (option licensed)Native, all editions
Multi-region survivalADG far sync (option licensed)Native multi-region clusters
Automatic failoverADG fast-start failoverSub-second, Raft-based, no orchestration
Horizontal scale-outRAC interconnect-boundLinear scale-out, add nodes online
Default isolationRead committedSerialisable (stricter)
Wire compatibilityOracle NetPostgreSQL wire protocol
SQL syntaxMature, Oracle-specificPostgreSQL-compatible with extensions
PL/SQLMatureLimited stored procedures; UDFs in SQL
PartitioningPartitioning option licensedNative row-level partitioning + locality
Encryption at restAdvanced Security (option licensed)Built-in, KMS integrations
Change feedsGoldenGate (separately licensed)Native change data capture
Time travel / AS OFFlashback Database (EE)AS OF SYSTEM TIME (default 25 hr retention)

Performance, consistency, latency

Three performance characteristics dominate Oracle-to-CockroachDB comparisons:

  • Strong consistency by default. Serialisable is the default isolation level. The application gets stronger correctness guarantees than Oracle's read-committed default without buying additional features. For applications that historically required Oracle SERIALIZABLE plus careful locking discipline, CockroachDB simplifies the model.
  • Latency in multi-region. Single-region writes are typically 1 to 4 ms; cross-region writes pay one inter-region round-trip latency. Multi-region tables with regional pinning ("home region") let workloads serve reads and writes locally with cross-region replication on the critical path only for high-availability scenarios — a pattern that has no Oracle equivalent without significant operational engineering.
  • Throughput. Linear scale-out to thousands of nodes. Industry-published TPC-C results above 1 million tpmC on commodity hardware. For Oracle workloads that historically required exotic RAC hardware to hit throughput targets, CockroachDB delivers comparable throughput on standard cloud compute.

The trade-off: single-row latency on small operations is higher than well-tuned Oracle on Exadata. For workloads that benchmark single-statement latency in sub-millisecond territory, Oracle still wins. For workloads that benchmark steady-state throughput, consistency, and survivability, CockroachDB wins decisively.

5-year TCO worked example

Scenario: 96-core Oracle Database EE workload with the RAC option, Active Data Guard, Partitioning, Advanced Compression, Advanced Security, and Diagnostics Pack. Three-region multi-master deployment serving a global trading platform. Annual run-rate: $4.3M including support.

Cost componentOracle EE + RAC + ADGCockroachDB Cloud Dedicated
EE licence amortisation (5 yrs)$2.28M$0
RAC option amortisation (5 yrs)$2.21M$0
ADG option amortisation (5 yrs)$2.21M$0
Other options amortisation (5 yrs)$1.82M$0
Annual support (5 yrs)$9.42MBundled in usage
CockroachDB compute (3-yr commit, 5 yrs)$0$2.85M
Storage + backup (5 yrs)Hardware$0.42M
Multi-region cluster overhead (5 yrs)Included$0.48M
Migration project (Year 0)$0$1.95M (one-off)
Operational delta (5 yrs)baseline-$1.20M (no RAC ops, no DG ops)
5-year TCO$17.94M$4.50M

The 75 percent saving across five years is at the upper end of what we see, driven primarily by elimination of the RAC and ADG options. For Oracle estates that are not licensed for RAC plus ADG, the saving narrows to 50 to 60 percent against base EE — still material but less dramatic.

Migration: SQL, PL/SQL, app changes

Oracle-to-CockroachDB migrations are PostgreSQL-pattern migrations with multi-region wrinkles. Four components:

Schema and SQL. CockroachDB's PostgreSQL compatibility means most Oracle-to-Postgres patterns apply. Tools such as the AWS Schema Conversion Tool, ora2pg, and CockroachDB's own MOLT toolkit auto-convert 70 to 85 percent of typical schemas. Remaining manual remediation covers NUMBER precision, DATE semantics, identity columns, MERGE syntax, and Oracle-specific functions.

PL/SQL. The genuine work, as with any Oracle exit. CockroachDB has limited stored-procedure support relative to Oracle PL/SQL. The pattern is to lift PL/SQL business logic into application services rather than transliterate. SCT-style tooling auto-converts 30 to 50 percent; the rest is manual.

Multi-region design. Where CockroachDB earns its place. Regional table pinning, multi-region survival goals, and follower reads are first-class concepts that need to be designed into the schema. Migrations that ignore this design layer produce CockroachDB clusters that look like single-region Postgres — leaving the multi-region upside on the table.

Application changes. PostgreSQL wire compatibility means most JDBC / .NET / Python drivers work without code changes. The application-level changes are around handling serialisable retry errors gracefully — a one-time engineering investment in retry helpers.

Realistic timeline for a 96-core multi-region Oracle estate: 14 to 22 months end-to-end. Migration cost typically $1.6M to $2.8M depending on PL/SQL volume.

Already running CockroachDB and approaching renewal?Cluster right-sizing, multi-region survival-goal optimisation, and commit-term benchmarking typically cut 25 to 35 percent off run-rate. Buyer-side. Evidence-based.
Request a CockroachDB right-size review →

Oracle audit risk during a CockroachDB migration

Cancelling RAC, Active Data Guard, and Oracle Database EE support all trigger LMS engagement letters with predictable regularity. Three vectors:

  • RAC option compliance. Historic deployments may have run RAC on more nodes than were ever licensed. Even if RAC is decommissioned, back-licence claims arrive. The buyer-side defence is the documented historical RAC node inventory.
  • ADG / standby compliance. Active Data Guard's licensing rules are nuanced — standby uses are sometimes licensed under different metrics. Oracle's playbook is to assert maximal licensing requirements on every standby that ever existed.
  • Java SE Universal Subscription. The parallel audit. Java Employee Metric inflates the position dramatically regardless of Oracle Database disposition.

With buyer-side preparation — Effective Licence Position, virtualisation evidence, options usage history filed before the cancellation goes out — outcomes typically settle between 18 and 30 percent of Oracle's opening claim. Without preparation, opening claims of $5M to $25M for mid-market estates are routine.

When CockroachDB is NOT the right answer

Three scenarios where CockroachDB is the wrong destination:

  1. Single-region OLTP workloads with no global presence. For workloads that will only ever run in one region, Aurora or AlloyDB is simpler operationally and frequently cheaper. CockroachDB's distributed-SQL upside lives in multi-region. See our Oracle vs Aurora comparison.
  2. PL/SQL-heavy estates. CockroachDB's stored-procedure support is not at parity with Oracle PL/SQL or with PostgreSQL plpgsql. For estates with substantial PL/SQL business logic that cannot be lifted into application services, Postgres-compatible engines preserve more investment.
  3. Analytics-dominant workloads. CockroachDB is OLTP-oriented. Workloads that are primarily analytical belong on Snowflake or Databricks. See our Oracle vs Snowflake comparison.

For genuinely distributed, multi-region OLTP estates with strong consistency requirements — financial services trading platforms, global retail platforms, telecom subscriber estates — CockroachDB is the strongest like-for-like Oracle Database EE plus RAC plus Active Data Guard replacement on the market.

$3.4MAnnual saving

Global payments processor · Oracle EE + RAC + ADG · Migration to CockroachDB

A global payments processor ran 80 Processor licences of Oracle Database EE with the RAC option, Active Data Guard, Partitioning, Advanced Security, Advanced Compression, and Diagnostics Pack in an active-active-active three-region deployment for transaction authorisation. Annual Oracle run-rate was $4.1M. The 18-month migration to CockroachDB Cloud Dedicated across three AWS regions delivered comparable transaction throughput at lower p99 latency for cross-region scenarios. CockroachDB annual run-rate at steady state with 3-year commit: $710K. An LMS engagement letter arrived 64 days after the non-renewal notice; the buyer-side audit defence pack — Effective Licence Position, RAC node inventory, ADG configuration history — held firm. Settlement landed at 19 percent of the opening claim. Net annual saving from Year 2: $3.4M. The customer subsequently migrated remaining single-region Oracle Database EE OLTP workloads to Aurora Postgres.

FAQ — Oracle vs CockroachDB Licensing

What is CockroachDB?

CockroachDB is a distributed SQL database with horizontal scale, multi-region survivability, and PostgreSQL wire-compatibility. It is designed for global OLTP workloads that historically required Oracle RAC plus Active Data Guard plus extensive operational engineering. Data is automatically replicated and rebalanced across nodes; transactions are serialisable by default; survivability can be set at zone, region, or multi-region levels.

How is CockroachDB licensed?

Three commercial paths: CockroachDB Core (BSL community), CockroachDB Enterprise (paid licence with multi-region, change feeds, advanced auth, support), and CockroachDB Cloud (managed service in Dedicated, Standard, and Basic tiers on AWS, Azure, and GCP). Cloud Dedicated is priced per vCPU-hour plus storage and request units; Standard and Basic are usage-based.

Is CockroachDB a credible Oracle RAC replacement?

For most RAC use cases, yes. CockroachDB delivers active-active multi-node operation, automatic failover, and survivability guarantees that exceed RAC for multi-region scenarios. Its consistency model (serialisable) is stricter than RAC's read-committed default. The exception is workloads tightly coupled to RAC-specific features (cache fusion semantics, single-instance latency optimisations).

Does Oracle audit customers who migrate to CockroachDB?

Yes. Non-renewal of Oracle Database EE plus RAC plus Active Data Guard support triggers an LMS engagement letter predictably. Audit vectors are virtualisation compliance, options usage history including RAC option specifically, NUP under-counting, and Java SE Universal Subscription. See our Oracle audit defence guide.

What is the migration timeline?

For a mid-sized multi-region Oracle estate with RAC and ADG: 14 to 22 months end-to-end. PL/SQL is the longest workstream and is typically lifted into application services rather than transliterated. Multi-region design — survival goals, regional pinning, follower reads — needs to be engineered, not lifted-and-shifted.

Does Oracle offer a CockroachDB equivalent?

Oracle's counter-positioning is Globally Distributed Autonomous Database on OCI, or RAC plus ADG plus GoldenGate as a stack. Globally Distributed ADB is technically interesting but priced on the same Oracle commercial model — Universal Credits with options stacking. Benchmark every counter-offer against the CockroachDB 5-year TCO. Counter-offer dynamics are covered in the Oracle negotiation guide.

Independence statement: Oracle Licensing Experts is an independent buyer-side advisory firm. Not affiliated with Oracle Corporation. We have no commercial relationship with Cockroach Labs. All numbers above reflect published pricing and benchmark engagement data.

Oracle Licensing Intelligence

Stay ahead of Oracle's audits and renewals.

Audit alerts, contract tactics, TCO benchmarks, and cloud migration intel — every two weeks. Read by ITAM leads, CIOs, and legal teams.

No spam. Unsubscribe anytime. Not affiliated with Oracle Corporation.

Building the Oracle RAC to CockroachDB business case?Our former Oracle insiders will model the real 5-year TCO, plan the multi-region cut-over, defend the audit position, and benchmark Oracle's counter-offer. 100% buyer-side. No commitment.
Request a confidential briefing →