oracle 11g asm磁盘组兼容属性

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:24

本帖最后由 paulyi 于 2014-2-18 21:49 编辑

oracle 11g asm磁盘组兼容属性

从oracle 11g版本开始,asm磁盘组会有两个新属性来兼容asm版本和数据库版本
[list]

[*][font=新宋体]COMPATIBLE.ASM - The minimum version of the ASM software that can access the disk group. In 11g, the default setting is 10.1.
[*][font=新宋体]COMPATIBLE.RDBMS - The minimum [font=新宋体]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 A10
COLUMN compatibility FORMAT A20
COLUMN database_compatibility FORMAT A20
SELECT 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 A20
COLUMN value FORMAT A20
SELECT 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.6h
4 rows selected.
SQL>

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】