Technology ๐Ÿ‘ค KP Expert ๐Ÿ“… Oct 16, 2026 ๐Ÿ‘๏ธ 64 views

Oracle RAC Flex Cluster Explained: Architecture, Benefits and Standard vs Flex Cluster Comparison

How Hub and Leaf nodes work, how Flex Cluster differs from a Standard Cluster, the commands to check and convert it, and what changed in 18c and 19c.
64
Maximum Hub nodes in a Flex Cluster
2,000
Maximum nodes in total, Hub and Leaf
12c
Release that introduced Flex Cluster

Oracle Flex Cluster is a cluster architecture, introduced in Oracle Grid Infrastructure 12c Release 1, that splits cluster nodes into two roles: Hub nodes and Leaf nodes.

Hub nodes are tightly connected, access shared storage directly and run Oracle RAC database instances. Leaf nodes are loosely connected, attach to a single Hub node and were designed to run application workloads.

In this guide, you will learn:

  • What Flex Cluster is and why Oracle introduced it
  • How Hub nodes, Leaf nodes, Flex ASM and GNS fit together
  • How Standard and Flex Clusters differ
  • The commands to check cluster mode and node roles
  • How to convert a Standard Cluster to a Flex Cluster, step by step
  • Benefits, limitations, version changes and interview questions
Quick answer: Oracle Flex Cluster = Hub nodes (database tier) + Leaf nodes (application tier) managed by one Oracle Clusterware stack. It requires Flex ASM and Grid Naming Service (GNS).
Why Oracle Introduced Flex Cluster

Flex Cluster was built to remove the scaling limits of the Standard Cluster. In a Standard Cluster, every node must access shared storage and exchange heartbeats with every other node over the private interconnect.

This full-mesh design causes three problems as clusters grow:

  • Interconnect traffic grows fast โ€” with N nodes there are N ร— (N โˆ’ 1) / 2 links. A 4-node cluster has 6 links; a 32-node cluster has 496.
  • Every node needs shared storage โ€” adding a node means extra SAN zoning, storage paths and voting disk access, even if it only runs applications.
  • Reconfiguration is costly โ€” when any node joins or fails, the whole cluster reconfigures, and larger clusters take longer.
Six nodes: 15 links in a full mesh vs 3 Hub links plus 3 Leaf links STANDARD CLUSTER FLEX CLUSTER HHHLLL

Flex Cluster keeps the full mesh only among a small set of Hub nodes. Leaf nodes talk to just one Hub node and need no shared storage at all.

Flex Cluster Architecture: Hub Nodes, Leaf Nodes, Flex ASM and GNS

A Flex Cluster has two tiers of nodes held together by four components.

Leaf nodes reach the cluster only through a Hub node LEAF NODES ยท APPLICATION TIER ยท NO SHARED STORAGE Leaf 1App servers, app VIPs Leaf 2App servers, app VIPs Leaf 3App servers, app VIPs Leaf 4App servers, app VIPs HUB NODES ยท DATABASE TIER Hub 1RAC instance ยท Flex ASM ยท voting disks ยท OCR Hub 2RAC instance ยท Flex ASM ยท voting disks ยท OCR Full-mesh private interconnect each Leaf heartbeats with one Hub direct accessdirect access Shared storage (ASM disk groups)Accessed only by Hub nodes through Flex ASM
Component
Role
Key Point
Hub nodes
Database tier: run RAC instances, access shared storage, voting disks and OCR
Fully connected; up to 64 per cluster
Leaf nodes
Application tier: host app servers and Clusterware-managed app resources
Connect to one Hub; no shared storage
Flex ASM
Lets database instances use ASM instances on a subset of Hub nodes
Mandatory for Flex Cluster
GNS
Name resolution and dynamic discovery of Hub nodes by Leaf nodes
Needs a fixed GNS VIP
How Flex Cluster Works

Flex Cluster routes all Leaf node activity through Hub nodes, so only Hub nodes carry the cost of full cluster membership.

  1. Startup โ€” a Leaf node starts Oracle Clusterware and uses GNS to discover the available Hub nodes.
  2. Attachment โ€” the Leaf node connects to one Hub node over the private network and exchanges heartbeats only with that Hub.
  3. Cluster membership โ€” the Hub node relays the Leaf node's status to the cluster. Leaf nodes never access voting disks or the OCR directly.
  4. Storage access โ€” database instances on Hub nodes use shared storage through Flex ASM. Leaf nodes do not need shared storage.
  5. Hub node failure โ€” its Leaf nodes reconnect to a surviving Hub node automatically.
  6. Leaf node failure โ€” only resources on that Leaf are affected; Hub nodes are not evicted and no full reconfiguration happens.

Resources on Leaf nodes, such as application VIPs or custom application resources, are managed by the same Clusterware stack, so applications can fail over between Leaf nodes just like database services fail over between Hub nodes.

Standard Cluster vs Flex Cluster

A Standard Cluster treats every node the same; a Flex Cluster splits nodes into Hub and Leaf roles.

Feature
Standard Cluster
Flex Cluster
Node types
One type, all nodes equal
Hub nodes and Leaf nodes
Shared storage access
Required on every node
Hub nodes only
Interconnect topology
Full mesh among all nodes
Full mesh among Hubs; each Leaf links to one Hub
Voting disk and OCR access
Every node
Hub nodes only
Maximum size
Smaller clusters
Up to 64 Hub nodes, up to 2,000 nodes total
ASM
Standard ASM or Flex ASM
Flex ASM required
GNS
Optional
Required, with a fixed GNS VIP
Typical workload
Database only
Database on Hubs, applications on Leaves
Mode change
Can convert to Flex
Cannot convert back to Standard
Default for new installs
Up to 12c Release 1
From 12c Release 2 onward

Prerequisites

Have these in place before you configure or convert to a Flex Cluster:

  • Oracle Grid Infrastructure 12c or later โ€” Flex Cluster does not exist in 11g
  • Flex ASM enabled โ€” Flex Cluster requires it; Flex ASM can run without Flex Cluster, but not the other way round
  • Grid Naming Service (GNS) with a fixed VIP โ€” Leaf nodes use GNS to find Hub nodes
  • Network planning โ€” Hub nodes need public network, private interconnect and shared storage; Leaf nodes need public and private networks only
Version note: Check the Oracle Clusterware Administration and Deployment Guide for your exact release before changing cluster mode on a production system.
Commands to Check Cluster Mode and Node Roles

Use crsctl and asmcmd to see whether your cluster is Standard or Flex and what role each node has.

Check the Current Cluster Mode

grid user
crsctl get cluster mode status

# Sample output
Cluster is running in "flex" mode

Check the Configured Cluster Mode

grid user
crsctl get cluster mode config

Check Whether Flex ASM Is Enabled

grid user
asmcmd showclustermode

Check Node Roles

grid user
crsctl get node role config
crsctl get node role status -all
olsnodes -s -t -a

Change a Node's Role

root
crsctl set node role hub
crsctl set node role leaf

Restart Oracle Clusterware on that node after changing its role.

How to Convert a Standard Cluster to Flex Cluster

Converting takes one crsctl command plus a Clusterware restart on each node, but GNS and Flex ASM must be ready first.

Watch out: The change is one-way. You cannot convert a Flex Cluster back to a Standard Cluster, so test the procedure on a non-production cluster first.

Step 1: Back Up the OCR

root
ocrconfig -manualbackup

Step 2: Confirm the Current Mode

grid user
crsctl get cluster mode status

Step 3: Enable Flex ASM If Needed

Check with asmcmd showclustermode. If Flex ASM is not enabled, run asmca, choose Convert to Oracle Flex ASM, and run the generated script as root.

Step 4: Configure GNS with a Fixed VIP

Skip this step if GNS already exists.

root
srvctl add gns -vip <gns_vip_address> -domain <gns_subdomain>
srvctl start gns

Step 5: Set the Cluster Mode to Flex

root ยท any one node
crsctl set cluster mode flex

Step 6: Restart Clusterware on Every Node

Do this one node at a time, so the database stays available on the other nodes:

root ยท each node
crsctl stop crs
crsctl start crs -wait

Step 7: Verify the New Mode

grid user
crsctl get cluster mode status

Step 8: Assign Leaf Roles If Required

All existing nodes become Hub nodes. To make a node a Leaf, run crsctl set node role leaf as root on that node and restart Clusterware there.

Tip: Schedule a maintenance window, because each node restart stops the instances running on that node.
Benefits and Limitations of Flex Cluster

Benefits

  • Larger clusters โ€” up to 2,000 nodes in one cluster
  • Less interconnect traffic โ€” full-mesh heartbeats run only among Hub nodes
  • Simpler storage โ€” Leaf nodes need no SAN connection
  • Single management layer โ€” database and application tiers under one Clusterware stack
  • Application high availability โ€” Leaf resources fail over like database services
  • Faster reconfiguration โ€” a Leaf failure does not force a full cluster reconfiguration

Limitations

  • More components โ€” GNS and Flex ASM are mandatory
  • One-way conversion โ€” no return to a Standard Cluster
  • No database instances on Leaf nodes in 12.1 โ€” read-only instances on Leaf nodes arrived in 12c Release 2
  • Leaf nodes are deprecated โ€” deprecated from Grid Infrastructure 18c, so new designs should not depend on them
Flex Cluster Across Oracle Versions

Flex Cluster is still the cluster architecture in 19c, but Leaf nodes are deprecated, so modern clusters run Hub nodes only.

Release
What Changed
19c and later
Flex Cluster remains the architecture; Leaf nodes stay deprecated. Check your release notes before using them.
18c
Leaf nodes deprecated.
12c Release 2 (12.2)
Every new cluster installs as a Flex Cluster. Leaf nodes can host read-only database instances. Cluster Domain (Domain Services Cluster and Member Clusters) introduced.
12c Release 1 (12.1)
Flex Cluster introduced as an optional mode, with Hub and Leaf nodes and Flex ASM.
What this means for you: On 19c your cluster is almost certainly in Flex mode already โ€” crsctl get cluster mode status will confirm it. Plan new deployments with Hub nodes only.
Oracle Flex Cluster Interview Questions

Q1. What is an Oracle Flex Cluster?

A cluster architecture from Grid Infrastructure 12c that divides nodes into Hub nodes (database tier) and Leaf nodes (application tier).

Q2. What is the difference between a Hub node and a Leaf node?

Hub nodes access shared storage, voting disks and OCR directly and run database instances. Leaf nodes connect to one Hub node and need no shared storage.

Q3. Is Flex ASM mandatory for Flex Cluster?

Yes. Flex Cluster requires Flex ASM, though Flex ASM can be used in a Standard Cluster.

Q4. Why is GNS required?

Leaf nodes use GNS to discover and connect to Hub nodes.

Q5. What is the maximum size of a Flex Cluster?

Up to 64 Hub nodes and up to 2,000 nodes in total.

Q6. How do you convert a Standard Cluster to Flex?

Enable Flex ASM and GNS, run crsctl set cluster mode flex as root, then restart Clusterware on each node.

Q7. Can you convert a Flex Cluster back to Standard?

No. The conversion is one-way.

Q8. What happens when a Hub node fails?

Its Leaf nodes reconnect to another Hub node automatically.

Q9. Can Leaf nodes run database instances?

Not in 12c Release 1. From 12c Release 2, Leaf nodes can run read-only database instances.

Q10. Do Leaf nodes access voting disks?

No. They take part in cluster membership through their Hub node.

Q11. Are Leaf nodes supported in 19c?

They were deprecated from 18c, so they should not be used in new 19c designs.

Frequently Asked Questions

Is Flex Cluster the same as Flex ASM?

No. Flex Cluster defines node roles in the cluster. Flex ASM lets database instances use ASM instances on other nodes. Flex Cluster needs Flex ASM, but they are separate features.

Is Oracle RAC One Node a Flex Cluster?

No. RAC One Node is a database configuration with one active instance. It can run on either a Standard or a Flex Cluster.

Do I need a Flex Cluster for a 2-node RAC?

Not for scaling. From 12c Release 2, new clusters are Flex by default, so a 2-node cluster usually runs in Flex mode with Hub nodes only.

Does Flex Cluster need extra licensing?

Flex Cluster is part of Oracle Grid Infrastructure. Database licensing still follows your Oracle RAC and Enterprise Edition terms, so confirm with your Oracle licensing contact.

What is the difference between Flex Cluster and Extended Cluster?

An Extended (stretch) Cluster spreads nodes across sites for disaster protection. Flex Cluster is about node roles and scale.

How do I know which nodes are Hub and which are Leaf?

Run crsctl get node role status -all or olsnodes -a.

Conclusion

Oracle RAC Flex Cluster changed how Oracle clusters scale by splitting nodes into Hub and Leaf roles, cutting interconnect traffic and removing the need for shared storage on application nodes. Leaf nodes have since been deprecated, but Flex Cluster itself is the default architecture from 12c Release 2, so every RAC DBA on 19c is already running one.

Recap: what to take away

  • Flex Cluster splits nodes into Hub nodes (database tier) and Leaf nodes (application tier)
  • Only Hub nodes access shared storage, voting disks and OCR
  • Flex ASM and GNS with a fixed VIP are mandatory
  • Check the mode with crsctl get cluster mode status; convert with crsctl set cluster mode flex โ€” one way only
  • Flex is the default from 12c Release 2; Leaf nodes are deprecated from 18c

Want more hands-on guides? KP Expert publishes practical, step-by-step guides for infrastructure and certification professionals. Explore KP Expert.

ORACLE RAC SERIES Published by KP Expert โ†’
Recently Enrolled

Student enrolled in this course.

View course
Explore Courses

Latest from @kp__expert

Follow on Instagram
Loading Instagram posts...

AI Course Assistant

Share your details and goals to get the best course recommendations.

Recommended Courses

Select a course name to view full details.

Course Details
Enrollment & Contact
  • Review selected course and confirm your enrollment request.
  • Click checkout to move into the full payment process.
  • After payment submission, your enrollment is processed by our team.
Admissions Contact
Email: info@kpexpert.com
Phone: +91 92708 37105
Your submitted details
Name, email and phone will appear here.
Your request has been submitted successfully. Our team will contact you shortly.