ASM and RAC Overview

Oracle DBA Certification 12 min min read Updated: Nov 16, 2026 Advanced
ASM and RAC Overview
Advanced Topic 2 of 4

Why Learn These?

In large companies, production databases often run on ASM storage and RAC clusters. You may not build them on day one, but as a DBA you must understand how they work and how to check them.

ASM: Automatic Storage Management

ASM is Oracle's own volume manager and file system for database files. Instead of folders on a file system, you work with disk groups.

TermMeaning
DiskA raw device or partition given to ASM
Disk groupA pool of disks, for example +DATA and +FRA
RedundancyEXTERNAL (storage mirrors), NORMAL (2 copies), HIGH (3 copies)
ASM instanceA small instance that manages the disk groups
sql -- connected to the database SELECT name FROM v$datafile; -- +DATA/FREE/DATAFILE/users.259.1100000000 -- connected to the ASM instance SELECT name, state, type, total_mb, free_mb FROM v$asm_diskgroup;
Names: A file name starting with a plus sign, such as +DATA/..., is stored in ASM. ASM spreads data evenly and rebalances automatically when you add or remove disks.
bash asmcmd ASMCMD> lsdg -- list disk groups and free space ASMCMD> ls +DATA/FREE/

RAC: Real Application Clusters

In normal Oracle, one instance opens one database. In RAC, several instances on several servers open the same database on shared storage.

BenefitHow
High availabilityIf one server dies, the others keep serving users
ScalabilityAdd servers to add capacity
Rolling maintenancePatch one node at a time with no outage
Simple example: RAC is a bank with several counters serving the same vault. If one counter closes, the customers move to the other counters.

RAC Building Blocks

ComponentRole
Clusterware (Grid Infrastructure)Manages nodes, resources and failover
Shared storageDatafiles and redo for every instance, usually ASM
InterconnectPrivate network where instances share blocks (Cache Fusion)
SCANOne name clients use to reach the cluster, which hands out to nodes
ServicesNamed workloads, such as ORDERS_SVC, that can run on chosen nodes

Check a RAC Database

bash srvctl status database -d PRODDB srvctl status service -d PRODDB srvctl config scan crsctl check cluster -all
sql SELECT inst_id, instance_name, host_name, status FROM gv$instance;

GV$ vs V$

V$ views show only the instance you are connected to. GV$ views show all instances with an extra column inst_id. Use GV$ when you investigate a cluster.

Connecting Applications

  • Use the SCAN name and a service name, never a single node.
  • Use Fast Application Notification and Transparent Application Continuity features of the driver where available.
Free edition: Oracle Free does not include RAC or Data Guard. To practice them, use virtual machines, Oracle Cloud or Oracle's lab environments.

Conclusion

ASM manages disks in disk groups and RAC lets several instances share one database. Learn the vocabulary and the srvctl, crsctl and GV$ checks.

Quick Summary: ASM = disk groups. RAC = many instances, one database. Use srvctl and GV$.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators