``` # 查询状态及角色 select switchover_status,database_role from v$database; ```