ORASOLU TOOLBOX · HIGH AVAILABILITY

RAC Instance Status

Practical Oracle RAC SQL for reviewing cluster instances, startup times, instance state, role and overall instance availability.

ORASOLU TOOLBOX · HIGH AVAILABILITY

Understand the state of RAC instances

Review instance status, startup times, roles and cluster-level availability to establish the current state of the RAC environment.

01 · CLUSTER INSTANCES

Review all RAC instances

View instance number, name, host, status and startup time across the cluster.

SELECT
    inst_id,
    instance_number,
    instance_name,
    host_name,
    status,
    startup_time,
    database_type
FROM gv$instance
ORDER BY inst_id;
02 · ACTIVE INSTANCES

Check currently mounted instances

Confirm which RAC instances are currently mounted and review their instance numbers and names.

SELECT
    inst_number,
    inst_name
FROM v$active_instances
ORDER BY inst_number;
03 · INSTANCE UPTIME

Review RAC instance uptime

Compare instance startup times to identify recent restarts or differences between RAC nodes.

SELECT
    inst_id,
    instance_name,
    host_name,
    startup_time,
    ROUND((SYSDATE - startup_time) * 24, 2) AS uptime_hours
FROM gv$instance
ORDER BY startup_time DESC;
04 · INSTANCE STATE

Inspect instance state and role

Review status, instance role, active state and service blocking state for each RAC instance.

SELECT
    inst_id,
    instance_name,
    host_name,
    status,
    instance_role,
    active_state,
    blocked
FROM gv$instance
ORDER BY inst_id;
05 · DATABASE TYPE

Confirm RAC database type

Check the database type reported by each instance and verify the cluster is running as RAC.

SELECT DISTINCT
    database_type
FROM gv$instance
ORDER BY database_type;
06 · INSTANCE SUMMARY

Summarize instance status

Quickly summarize the number of RAC instances by current instance status.

SELECT
    status,
    COUNT(*) AS instance_count
FROM gv$instance
GROUP BY status
ORDER BY status;

ORASOLU TOOLBOX · HIGH AVAILABILITY

RAC instance status is only one part of cluster health.

Instance status should be considered together with services, session distribution, interconnect activity and application workload when investigating RAC availability and performance.

GV$ views provide information from qualified RAC instances and include INST_ID, which identifies the instance that supplied each row.