After a RAC server reboot, seeing the operating system back online does not mean the database is ready for application traffic. Oracle Clusterware still has to rebuild the node's cluster membership, access shared storage, start and monitor resources, bring database instances online, register services, and restore client connectivity.
A sequence such as OS → OHASD → CSSD → CRSD → ASM → Listener → Database → Services is useful for remembering the major components, but it should not be treated as a rigid startup script. RAC startup is better understood as a dependency-driven recovery process where Clusterware determines which resources can start, which must wait, and which can progress in parallel.
Why This Matters During a RAC Startup Problem
This distinction becomes important when a server is available but the RAC database does not return automatically. If we immediately focus on the database alert log or repeatedly run srvctl start database, we may be troubleshooting several layers above the actual failure.
For example, the database will not start successfully if the node has not established cluster membership, the required ASM disk groups are unavailable, OCR cannot be accessed, or an underlying Clusterware resource remains unhealthy.
The better production approach is simple: identify the first dependency layer that did not recover, then troubleshoot upward from there.
A RAC Startup Model
Oracle describes Clusterware using a lower stack anchored by Oracle High Availability Services and an upper resource-management stack anchored by Cluster Ready Services. From a DBA troubleshooting perspective, the following flow is more useful than memorizing an exact daemon startup order.
The diagram is intentionally a troubleshooting model rather than an exact process timeline. Some components have hard dependencies, some have weak dependencies, and several resources may be started concurrently by Clusterware.
1. OHASD: The Local Clusterware Starting Point
Once the operating system reaches the required initialization stage, Oracle High Availability Services Daemon, or OHASD, provides the foundation for the local Clusterware stack.
One important component at this stage is the Oracle Local Registry, or OLR. OLR is maintained locally on each cluster node and contains information required during the early Clusterware bootstrap.
This is different from OCR. OCR contains cluster-wide resource configuration, while OLR provides node-local Clusterware information required before the complete cluster stack is available.
If OHASD itself is unhealthy after reboot, there is little value in beginning with the database alert log. The database is only a higher-level Clusterware resource at this point.
2. CSS: Can the Node Safely Join the Cluster?
Cluster Synchronization Services, represented by OCSSD, establishes and maintains cluster membership. Before higher-level RAC resources can operate normally, the node must have a consistent view of the cluster and participate safely in membership decisions.
Voting files are fundamental at this layer. Problems involving voting disk accessibility, private interconnect communication, shared storage visibility, node membership, or fencing can prevent CSS from becoming healthy.
- Voting file accessibility
- Private interconnect communication
- Shared storage visibility
- Node membership problems
- Eviction or fencing conditions
If CSS cannot establish healthy cluster membership, expecting CRSD, RAC instances, or database services to become available is premature.
3. ASM Is Not Simply "After CRSD"
One RAC startup explanation I would avoid is the simplified sequence CSSD → CRSD → ASM. It gives the impression that ASM always waits until CRSD is completely available, which is not a good representation of Clusterware bootstrap.
Oracle Clusterware agents controlled through the lower stack can participate in bringing ASM online while the cluster stack itself is being established. This becomes particularly important when OCR or voting files reside inside ASM disk groups.
From a DBA perspective, the key point is that Clusterware and ASM can have interdependent bootstrap requirements. ASM should therefore be considered part of the infrastructure required to make shared cluster configuration and database storage available, rather than merely another database resource started near the end.
For the RAC database itself, the disk groups containing control files, data files, redo logs, SPFILE, and other required files obviously have to be mounted before instance startup can progress successfully.
4. CRSD and OCR: Cluster Resource Management
Once the upper Clusterware stack becomes available, CRSD becomes the central resource-management process. It uses cluster configuration stored in OCR to manage resources toward their configured target states.
This includes activities such as:
- Starting and stopping resources
- Monitoring resource health
- Restarting resources after failures
- Relocating resources between nodes
- Evaluating resource dependencies
The most important word here is dependency. Oracle Clusterware resources can have hard, weak, pull-up, and other dependency relationships. Clusterware therefore does not simply execute a fixed list of resources one at a time.
5. Network Resources, VIPs and Listeners
Once resource management is available, Clusterware can bring network-related resources toward their configured state. Depending on the environment, this includes the public network, node VIPs, SCAN VIPs, SCAN listeners, and local listeners.
A SCAN listener depends on its corresponding SCAN VIP because the listener has to bind to a usable network address. Client connections reaching a SCAN listener can then be redirected toward an appropriate local listener for an instance offering the requested service.
Does the listener always have to finish starting before the database?
Not necessarily. The listener relationship is another reason not to describe RAC startup as one strict sequence. Oracle database resources can have weak start dependencies involving listener resources. Clusterware attempts to bring the related listener infrastructure online, but this should not be interpreted as a universal rule that every listener must be completely online before instance startup begins.
6. RAC Instances Start, But That Is Not the End
After the required infrastructure, membership, storage, and resource dependencies are satisfied, Clusterware can start RAC instances according to the database configuration.
At this point, one of the most common operational mistakes is to see the database open and declare recovery complete.
An instance can be running while the application still cannot connect because:
- A required database service is still offline.
- The PDB associated with the service is not open.
- Dynamic service registration has not completed.
- A local or SCAN listener is unavailable.
- SCAN, VIP, DNS, or network connectivity is failing.
For an application-facing RAC system, OPEN is therefore only one milestone. The useful end state is that the cluster is healthy, required storage is available, RAC instances are open, services are running, listeners know about those services, and a real client connection succeeds.
Practical DBA Scenario: Node Rebooted but RAC Did Not Return
Assume one RAC server has been rebooted after maintenance. Linux is reachable and SSH works, but monitoring reports that the database service has not recovered.
Instead of immediately starting the database manually, I would first establish which layer is unhealthy. A small set of status commands is usually enough to locate the problem area before moving into logs and traces.
# Clusterware status across all nodes crsctl check cluster -all crsctl status resource -t # Voting infrastructure and OCR crsctl query css votedisk ocrcheck # ASM srvctl status asm # SCAN infrastructure srvctl status scan srvctl status scan_listener # RAC database and services srvctl status database -db DB_UNIQUE_NAME srvctl status service -db DB_UNIQUE_NAME
The order in which these results are interpreted matters more than running a long list of commands.
Where Should You Investigate First?
| Observation | First Layer to Investigate |
|---|---|
| OHASD cannot be contacted | Local Clusterware bootstrap and OLR |
| CSS is not online | Voting files, interconnect, membership and lower stack |
| CSS is healthy but CRS is unavailable | CRSD, OCR and supporting storage |
| ASM or required disk groups are unavailable | ASM and shared-storage layer |
| Database resource remains offline | Database resource dependencies and database alert log |
| Instance is open but service is offline | Service configuration, placement and PDB state |
| Service is online but clients cannot connect | SCAN, VIP, listeners, registration, DNS and network |
Common RAC Startup Troubleshooting Mistakes
Repeatedly Starting the Database
Running srvctl start database repeatedly will not repair a failed lower-level dependency. If CSS, ASM, OCR, or another required Clusterware resource is unhealthy, fix that layer first.
Starting With the Database Alert Log
The database alert log becomes useful once Clusterware has actually attempted to start the instance. If the failure occurred during Clusterware bootstrap, cluster membership, or ASM initialization, the relevant evidence will be lower in the stack.
Assuming ASM Always Starts After CRSD
That model can cause confusion, particularly where OCR or voting infrastructure resides in ASM. Think in terms of storage and Clusterware bootstrap dependencies rather than a simple sequential process list.
Checking Only Instance Status
An open RAC instance is not proof that application availability has been restored. Services, PDB state, listener registration, SCAN connectivity, and an actual application-style connection still need validation.
Production DBA Lessons
- OHASD is the local foundation. If the lower Clusterware stack is unavailable, do not jump directly to the database layer.
- CSS determines whether the node can participate safely in the cluster. Voting and interconnect issues therefore deserve early attention.
- ASM can participate in Clusterware bootstrap. Do not assume it is simply started after CRSD.
- CRSD manages resources based on dependencies. RAC startup is not a fixed shell-script-style sequence.
- SCAN, VIPs and listeners have their own resource relationships. Connectivity issues do not always indicate a database problem.
- Database open is not equal to application ready. Services and end-to-end connectivity are the final validation.
A Simple Sequence to Remember
For day-to-day operations, I prefer remembering the RAC recovery path like this:
Clusterware → Membership → Storage → Resources → Database → Services → Clients
This captures the operational dependency layers without suggesting that every internal daemon and resource starts sequentially.
FAQs
What starts first in Oracle RAC after a server reboot?
Oracle High Availability Services provides the foundation for the local Clusterware stack. From there, Clusterware establishes the infrastructure required for cluster membership and higher-level resource management.
Does ASM always start after CRSD?
No. Treating ASM as something that always starts only after CRSD is an oversimplification. ASM can participate in Clusterware bootstrap, particularly when OCR or voting infrastructure is stored in ASM.
Does a listener have to be online before a RAC instance can start?
Not as a universal strict requirement. Clusterware dependency definitions determine the relationship between resources, and listener dependencies can be weaker than a simple mandatory sequential startup rule.
Why is my RAC database open but the application still cannot connect?
Check the application service, PDB state, listener registration, SCAN listeners, node VIPs, DNS resolution, and network connectivity. An open instance alone does not guarantee that the complete application connection path is healthy.
What should I check first after a RAC node reboot?
Start with Clusterware health and work upward. Commands such as crsctl check cluster -all and crsctl status resource -t quickly show whether the failure is at the cluster, storage, network, database, or service layer.
Conclusion
Oracle RAC startup is best understood as dependency recovery rather than simply a list of processes starting one after another.
After a reboot, Clusterware first has to restore enough local and shared infrastructure for the node to participate safely in the cluster. Shared storage and cluster configuration must be available, higher-level resources must reach their expected states, and only then do database instances and services become genuinely useful to applications.
When something does not recover, do not ask only, "Why did my RAC database not start?" Find the first dependency layer that stopped progressing. If CSS is unhealthy, remain at cluster membership. If ASM is unavailable, remain at storage. If the database is open but the service is missing, troubleshoot the service and connectivity layer.
In production, the fastest RAC troubleshooting normally comes from finding the first unhealthy dependency, not from repeatedly restarting the final resource that happened to remain offline.
References
- Oracle Database 19c - Introduction to Oracle Clusterware
- Oracle Database 19c - Managing OCR and Voting Files
- Oracle RAC Administration and Deployment Guide
No comments:
Post a Comment