What Happens When an Exadata RAC Node Fails or Is Patched

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-managedPolicy-managed
InstanceNot relocated; restarts when the node returnsPool shrinks, or a spare server may be added
Service with preferred and available instancesFails over to the available instanceNot applicable
Service with no available instanceOffline until the node returnsNot applicable
UNIFORM serviceNot applicableKeeps running on the remaining instances
SINGLETON serviceNot applicableRestarted on another pool instance
Failback after the node returnsManual, or failback option in 19cFollows 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

Leave a Reply