
A walkthrough of how Oracle RAC instances and database services behave when one database node (holding one RAC instance and two database services) fails or is taken offline for patching.
Scenario
One database node, holding one RAC instance and two database services, fails or is taken offline for patching. What happens to the instance and to the services? The answer depends on how the database and its services are configured, and on whether the outage is unplanned or planned.
Administrator-managed databases
The instance
The instance stays tied to its node, so it is not restarted elsewhere. The database stays up on the surviving instances, and one of them performs instance recovery for the failed one. Sessions connected to the lost instance are disconnected unless the application uses Application Continuity or TAF. When the node returns, Clusterware restarts the instance automatically.
The services
A service has preferred instances (normal operation) and available instances (fallback). For each of the two services, the outcome is one of these:
- Preferred on the failed instance, with at least one available instance: the service fails over to the available instance.
- Preferred on the failed instance only, no available instance: the service goes offline until the instance returns. Oracle states that without at least one available instance, the service does not fail over.
- Preferred on several instances, including the failed one: the service simply keeps running on the others.
Failback after the node returns
By default, a failed-over service does not automatically move back to its preferred instance. Older Oracle documentation states that Clusterware does not relocate a service back while an available instance is still providing it. In 19c, a failback option was added to srvctl add service to enable automatic relocation back to the preferred instance. That last point comes from a community article, so confirm it in Oracle’s documentation for your version.
Policy-managed databases
The instance
The instance is not pinned to a node. The database runs on whatever servers are in its server pool, so losing a node reduces the pool by one server.
My understanding is that Clusterware can pull in a replacement server from the Free pool or a lower-priority pool if the pool is below its maximum size, and start an instance there. If no spare exists, which is typical when all Exadata nodes are in one pool, the database continues with one fewer instance. When the node returns, it rejoins the pool and an instance starts on it.
This behavior was not verified against Oracle’s documentation while preparing this document, so please check it before relying on it.
The services
- UNIFORM: Clusterware attempts to ensure the service always runs on all available instances in the server pool. The service continues on the surviving instances and starts on any new one. You cannot manually relocate a UNIFORM service to a specific instance.
- SINGLETON: Clusterware attempts to keep the service running on only one of the available instances in the pool. If its instance disappears, the service is started on another instance in the pool.
Summary for the scenario
| Administrator-managed | Policy-managed | |
|---|---|---|
| Instance | Not relocated; restarts when the node returns | Pool shrinks, or a spare server may be added |
| Service with preferred and available instances | Fails over to the available instance | Not applicable |
| Service with no available instance | Offline until the node returns | Not applicable |
| UNIFORM service | Not applicable | Keeps running on the remaining instances |
| SINGLETON service | Not applicable | Restarted on another pool instance |
| Failback after the node returns | Manual, or failback option in 19c | Follows pool membership |
Planned patching versus failure
A planned outage should not look like a crash. Drain the node first: relocate or stop the services with a drain timeout so that sessions can finish gracefully, then stop the instance, and only then patch the node. This works best with FAN-aware clients or Application Continuity.
Exadata’s rolling patching tools normally handle this sequence, but your services must be defined so that it works. The exact srvctl options vary by version, so check the syntax for yours.
Why this matters for capacity planning
Both management styles assume the surviving nodes can absorb the extra work. That means CPU, memory, process limits and HugePages for the relocated sessions or instances. This is the “headroom” that consolidated Exadata environments need to plan for.
A note on policy-managed databases
Policy-managed databases are deprecated starting with Oracle Grid Infrastructure 21c, and Oracle recommends the newer “Merged” management style instead. A third-party summary of Oracle’s notes lists the policy-managed deployment option as desupported in Oracle Database 23ai, which should be confirmed in Oracle’s own documentation. For new designs, administrator-managed databases with clearly defined preferred and available instances are the safer plan.
Sources
- Oracle Real Application Clusters documentation, “Client High Availability with Services, FAN, FCF, and Application Continuity”: https://docs.oracle.com/en/database/oracle/oracle-database/12.2/tdprc/managing-workloads-using-database-services.html
- Oracle Grid Infrastructure documentation, “Server Pools and Policy-Based Management”: https://docs.oracle.com/en/database/oracle/oracle-database/21/riwin/server-pools-and-policy-based-management.html
- Oracle Database 10g documentation on restoring RAC instances and services: https://www.dbs.ifi.lmu.de/oradoc10g/DOC/server.101/b10726/restore.htm
- Community article, “Automatic Service Failback to Preferred Instance in Oracle RAC 19c”: https://dev.to/vahidusefzadeh/automatic-service-failback-to-preferred-instance-in-oracle-rac-19c-42nl
- Summary of Oracle Database 23ai desupported features: https://www.slideshare.net/slideshow/oracle-database-desupported-features-on-23ai-part-a/270151045