본문 바로가기
🗄️ DB_이야기/# 🛢️ Oracle

[Oracle] ORA-16816: incorrect database role

by gwon_s 2026. 1. 27.

 

상황

Oracle 19c 환경에서 Data Guard + Broker가 구성된 상태에서 테스트 목적으로 SQL 기반 수동 Switchover를 수행했음

이후 기존 Primary DB는 재기동이 되어야 하는데 안되고 있는 상황에서 수동 open 후 아래와 같은 장애 발생

 

Configuration - dg_orcl

  Protection Mode: MaxPerformance
  Members:
  orcl      - Primary database
    Error: ORA-16816: incorrect database role

    orcl_stby - Physical standby database
      Error: ORA-16816: incorrect database role

Fast-Start Failover:  Disabled

Configuration Status:
ERROR   (status updated 22 seconds ago)

 

 

수동 Switchover를 하여 Broker는 인식하지 못하고 있는 상태

해결

01. 기존 Primary 및 Standby Open

startup
또는
alter database nomount;
alter database mount;
alter database open;

 

02. Broker 재기동

Broker가 DB를 다시 읽을수 있게 재기동

dgmgrl /
disable configuration
enable configuration

 

03. 상태 확인

DGMGRL> show configuration

Configuration - dg_orcl

  Protection Mode: MaxPerformance
  Members:
  orcl_stby - Primary database
    orcl      - Physical standby database

Fast-Start Failover:  Disabled

Configuration Status:
SUCCESS   (status updated 37 seconds ago)