oracle 11g asm磁盘组的兼容属性是什么
今天就跟大家聊聊有关oracle 11g asm磁盘组的兼容属性是什么,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。
从oracle 11g版本开始,asm磁盘组会有两个新属性来兼容asm版本和数据库版本
COMPATIBLE.ASM - The minimum version of the ASM software that can access the disk group. In 11g, the default setting is 10.1.
COMPATIBLE.RDBMS - The minimum COMPATIBLE database initialization parameter setting for any database instance that uses the disk group. In 11g, the default setting is 10.1.
1.创建asm磁盘组时可以指定对应版本
CREATE DISKGROUP data DISK '/dev/raw/*'
ATTRIBUTE 'compatible.asm' = '11.1';
CREATE DISKGROUP data DISK '/dev/raw/*'
ATTRIBUTE 'compatible.rdbms' = '11.1', 'compatible.asm' = '11.1';
2.如果没加属性数据库和asm版本均默认为10.1
SQL> SELECT group_number, name, compatibility, database_compatibility FROM v$asm_diskgroup;
GROUP_NUMBER NAME COMPATIBILITY DATABASE_COMPATIBILI
------------ ---------- -------------------- --------------------
1 ASM_DG 10.1.0.0.0 10.1.0.0.0
3.对已有的磁盘组进行属性修改
ALTER DISKGROUP asm_dg SET ATTRIBUTE 'compatible.asm' = '11.1';
ALTER DISKGROUP asm_dg SET ATTRIBUTE 'compatible.rdbms' = '11.1';
4.检查结果
COLUMN name FORMAT A10COLUMN compatibility FORMAT A20COLUMN database_compatibility FORMAT A20SELECT group_number, name, compatibility, database_compatibility FROM v$asm_diskgroup;GROUP_NUMBER NAME COMPATIBILITY DATABASE_COMPATIBILI------------ ---------- -------------------- -------------------- 1 ASM_DG 11.1.0.0.0 11.1.0.0.01 row selected.SQL>COLUMN name FORMAT A20COLUMN value FORMAT A20SELECT group_number, name, value FROM v$asm_attribute ORDER BY group_number, name;GROUP_NUMBER NAME VALUE------------ -------------------- -------------------- 1 au_size 1048576 1 compatible.asm 11.1.0.0.0 1 compatible.rdbms 11.1 1 disk_repair_time 3.6h4 rows selected.SQL>
看完上述内容,你们对oracle 11g asm磁盘组的兼容属性是什么有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注行业资讯频道,感谢大家的支持。