ORA-15231: advancing diskgroup compatibility would exclude connected clients
Cause: Disk group compatibility could not be advanced because connected clients were at a lower compatibility than the target value.
Action: Make sure all connected clients are at target compatibility level or higher.
ORA-15231是Oracle用于指示“提升磁盘组兼容性将排除已连接的客户端”的错误消息。当在Oracle RAC环境中尝试提高Disk Group兼容性级别(eg. 11.2.0.4 –> 12.1.0.2)时,会得到此错误。
ORA-15231意味着在提高可用于磁盘组兼容性级别的Oracle RAC实例数量时,仍有一些实例连接到磁盘组。
当磁盘组的兼容性级别更改时,您需要确保所有Oracle RAC实例都已关闭以便停用每个实例中的ASM实例。然后,您必须在管理控制台中重新启动实例,以允许提升的兼容性级别应用于磁盘组。
1. 首先,检查运行中的磁盘组兼容性级别,通过执行以下SQL语句:
(sqlplus / as sysdba)
SQL> SELECT name,compatibility FROM v$asm_diskgroup;
2. 关闭连接到磁盘组的每个Oracle RAC实例,它应该被执行在所有实例上,以确保每个实例的ASM实例已经停用:
(sqlplus / as sysdba)
SQL> SHUTDOWN IMMEDIATE;
3. 升级磁盘组的兼容性级别:
(sqlplus / as sysdba)
SQL > ALTER DISKGROUP data_disk SET ATTRIBUTE ‘COMPATIBILITY’ = ‘12.2.0.1’;
4. 在Oracle RAC管理控制台中重新启动实例以应用新的兼容性级别:
EMCLI > STARTUP INSTANCE target_instance