Oracle RAC One Node is best understood as Oracle RAC infrastructure with only one active database instance at a time, plus the ability to relocate that instance to another RAC node with minimal interruption.
1. RAC One Node architecture
A typical 2-node configuration looks like this:
The critical point is:
Both servers are members of the RAC cluster, but normally only one RAC One Node database instance is running.
This is fundamentally different from traditional RAC, where multiple instances of the same database normally run simultaneously.
2. Main components
Oracle Grid Infrastructure
Both nodes run Oracle Grid Infrastructure, including:
- Oracle Clusterware
- ASM
- CRS
- SCAN
- VIPs
- Cluster resources
So the underlying infrastructure is still a proper RAC cluster.
Shared storage
Both nodes access the same database storage, normally through ASM:
The database does not need to copy its datafiles from Node 1 to Node 2 when relocating.
Both nodes already have access to:
- Datafiles
- Control files
- Online redo logs
- SPFILE
- FRA
- ASM disk groups
3. Normal operation
Suppose you have:
During normal operation:
The database workload is handled by PROD_1 on Node 1.
Node 2 remains available as another possible location for the database.
4. What happens during relocation?
This is one of the biggest advantages of RAC One Node.
Suppose Node 1 needs:
- OS patching
- Hardware maintenance
- Firmware upgrade
- Grid Infrastructure maintenance
- Planned server shutdown
Instead of stopping the application database for a long maintenance window, you can relocate the database.
Conceptually:
Oracle calls this capability Online Database Relocation.
The temporary overlap is important. During a planned online relocation, another instance can temporarily start on the destination node to facilitate the transition.
That does not make it regular active-active RAC operation.
5. RAC vs RAC One Node
This distinction is extremely important.
| Feature | RAC | RAC One Node |
|---|---|---|
| Cluster nodes | Multiple | Multiple |
| Active DB instances | Multiple | Normally one |
| Shared storage | Yes | Yes |
| ASM | Commonly | Commonly |
| Clusterware | Yes | Yes |
| Active-active DB | Yes | No |
| Workload across nodes | Yes | Normally one node |
| Instance relocation | Yes | Core capability |
| Horizontal DB scaling | Yes | Limited |
| Server maintenance flexibility | Excellent | Excellent |
| Cache Fusion | Normal operation | Limited significance with single active instance |
Think of it like this:
RAC
Both database instances actively service the same database.
RAC One Node
6. What happens if the active node crashes?
Suppose the database is running on Node 1:
Clusterware detects the failure and can restart the database instance on the surviving node:
There will still be an interruption because the instance has to be recovered/start on the surviving node.
Therefore:
RAC One Node provides high availability, but it isn't the same as active-active RAC where another database instance is already running and serving the database.
7. Planned vs unplanned event
There is an important architectural difference.
Planned relocation
For maintenance:
This is designed to reduce application disruption.
Unplanned Node 1 failure
The application experiences an outage while failover/recovery occurs.
Actual recovery time depends heavily on workload, redo volume, storage latency, Fast Application Notification/client configuration, and instance recovery settings.
8. RAC One Node vs Data Guard
As a Database Architect, this distinction is particularly important when designing HA/DR.
RAC One Node
Protects mainly against:
- Server failure
- OS problems
- Planned server maintenance
- Some hardware failures
But the nodes normally share the same storage/database.
Data Guard
Provides another database:
Data Guard protects against much broader failure scenarios, especially when the standby is in a separate fault domain/site.
Therefore a strong architecture can be:
This separates two requirements:
- RAC One Node = local HA / mobility
- Data Guard = database/site-level DR
9. Why would you choose RAC One Node instead of RAC?
This is where RAC One Node can be attractive for an enterprise database estate.
Imagine a cluster with powerful servers:
Each database runs as a single active instance, but Clusterware can relocate databases between the nodes.
This provides:
Consolidation
Multiple databases can share the RAC cluster infrastructure.
Maintenance flexibility
Before maintenance:
Then perform maintenance on Node 1.
Workload mobility
You can redistribute databases between servers.
Reduced complexity compared with active-active RAC
Applications don't necessarily need the same scale-out model that true RAC is designed to provide.
10. One important misconception
People sometimes interpret RAC One Node as:
"Oracle database running on one standalone server with another cold standby."
That's not quite correct.
The architecture still uses Oracle RAC/Clusterware infrastructure.
The better mental model is:
A RAC-enabled database constrained to run primarily as a single active instance, with the capability to move between cluster nodes.
Architecture decision
Choose RAC One Node when:
- You need local HA.
- One server can comfortably support the entire database workload.
- You want planned online relocation.
- You have several databases to consolidate.
- You don't need multiple active instances for scale-out.
Choose full RAC when:
- A single server isn't enough.
- Multiple instances need to process workload concurrently.
- You need scale-out across cluster nodes.
- Application/database workload justifies RAC complexity.
Add Data Guard when:
- You need DC/site protection.
- You need a geographically separated DR database.
- Storage/cluster failure must also be protected against.
Normally treat RAC One Node as an HA/consolidation decision and Data Guard as a DR decision, rather than viewing one as a replacement for the other.
No comments:
Post a Comment