1)create diskgroup dgroupa normal redundancy
failgroup controller1 disk
'/devices/a1' name diska1 size 120g force, ---force indicates that a specified disk should be added to the specified disk group even though the disk is already formatted as a member of an asm disk group.using the force option for a disk that is not formatted as amember of an asm disk group,return error.
'/devices/a2',
'/devices/a3
failgroup controller2 disk
'/devices/b1',
'/devices/b2',
'/devices/b3';
drop diskgroup dgroupa including contents; --disk group must be mounted
2)alter diskgroup dgroupa add disk
'/dev/rdsk/c0t4d0s2' name a5,
'/dev/rdsk/c0t5d0s2' name a6;
3)alter diskgroup dgroupa add disk '/devices/a*';
4)alter diskgroup dgroupa drop disk a5;
5)alter diskgroup dgroupa drop disk6 add failgroup fred disk '/dev/rdsk/c0t8d0s2' name a9;
6)alter diskgroup dgroupa undrop disks; --only on pending drops,not fter drop conpletion.
7)alter diskgroup dgroupb rebalance power 5; --if you want to use power clause to override the default and maximum speed defined by the asm_power_limit.
8)alter diskgroup dgroupa dismount;
9)alter diskgroup dgroupa check all; --verify disk group metadata and repair any errror found.use norepair if you only want to be alerted about errors.checking can be specified on a file or an individual disk.diskgroup must be mounted.
10)alter diskgroup resize ....(有点不明白)
11)create tablespace sample datafile '+dgroupa';
12)alter diskgroup dgroupa add template reliable attributes (mirror);
13)alter diskgroup dgroupa drop template reliable;
14)alter diskgroup dgroupa drop file '+dgroupa.268.865';
15)alter diskgroup dgroupa add alias '+dgroupa/mydir/datafile.dbf' for '+dgroupa.274.38745';
16)alter diskgroup dgroupa drop alias '+dgroupa/mydir/datafile.dbf';
阅读(3745) | 评论(0) | 转发(0) |