|
ta/c1/datafile/system02.dbf';
ASM模板管理
查看默认asm模板的冗余级别和条带化
select * from v$asm_template;
查看以使用的模板
select name,redundancy,striped
from v$asm_alias a,v$asm_file b
where a.file_number=b.file_number
and a.group_number=b.group_number
order by a.file_number;
创建asm模板的语法
ALTER DISKGROUP disk_group_name ADD TEMPLATE template_name
ATTRIBUTES ([{MIRROR|HIGH|UNPROTECTED}] [{FINE|COARSE}]);
--attributes:第一列指冗余,第二列指条带
创建模板
alter diskgroup dg1 add template template1 attributes (high fine);
alter diskgroup dg1 add template template2 attributes (unprotected coarse);
修改模板
alter diskgroup dg1 alter template template1 attributes (coarse);
删除模板
alter diskgroup dg1 drop template template1;
使用模板
create tablespace test datafile '+DG1(template1)' size 50M;
|