五:删除ASM磁盘组,默认磁盘故障条件下,经过12960秒即3.6个小时后自动删除;删除磁盘组之前需要保证无数据存放在磁盘组上且无到该磁盘组的active连接
- [grid@localhost ~]$ tail -f /u01/app/grid/diag/asm/+asm/+ASM/trace/alert_+ASM.log
- ORA-15062: ASM disk is globally closed
- Thu Nov 29 12:00:53 2012
- WARNING: Disk 0 (FRA_0000) in group 2 will be dropped in: (12960) secs on ASM inst 1
- WARNING: Disk 1 (FRA_0001) in group 2 will be dropped in: (12960) secs on ASM inst 1
- Thu Nov 29 12:00:58 2012
- asm实例:
- SQL> select path,name,repair_timer from v$asm_disk where group_number=2;
- PATH NAME REPAIR_TIMER
- -------------------- ---------- ------------
- FRA_0000 12960
- FRA_0001 12960
- /dev/asm-disk6 FRA_0002 0
- /dev/asm-disk7 FRA_0003 0
- SQL> alter diskgroup fra online disk 'FRA_0000';
- Diskgroup altered.
- SQL> alter diskgroup fra online disk 'FRA_0001';
- Diskgroup altered.
- SQL> select name,path,failgroup,mount_status from v$asm_disk;
- NAME PATH FAILGROUP MOUNT_STATUS
- ---------- -------------------- -------------------- ---------------------
- FRA_0002 /dev/asm-disk6 FG2 CACHED
- FRA_0003 /dev/asm-disk7 FG2 CACHED
- DATA_0000 /dev/asm-disk1 DATA_0000 CACHED
- DATA_0002 /dev/asm-disk2 DATA_0002 CACHED
- DATA_0001 /dev/asm-disk3 DATA_0001 CACHED
- FRA_0001 /dev/asm-disk5 FG1 CACHED
- FRA_0000 /dev/asm-disk4 FG1 CACHED
- SQL> drop diskgroup fra;
- drop diskgroup fra
- *
- ERROR at line 1:
- ORA-15039: diskgroup not dropped
- ORA-15053: diskgroup "FRA" contains existing files
- rdbms实例:
- SQL> drop tablespace test01 including contents;
- Tablespace dropped.
- SQL> shutdown immediate
- Database closed.
- Database dismounted.
- Oracle instance shut down.
- asm实例:
- SQL> drop diskgroup fra including contents;
- Diskgroup dropped.
- rdbms实例:
- SQL> startup
- ORACLE instance started.
- Total System Global Area 313860096 bytes
- Fixed Size 1344652 bytes
- Variable Size 192940916 bytes
- Database Buffers 113246208 bytes
- Redo Buffers 6328320 bytes
- Database mounted.
- Database opened.
六:其他asm实例初始化参数含义
|
instance_type:Defines the type of the instance, such as RDBMS and ASM. However, this has been made optional in an Oracle Grid Infrastructure ASM. asm_power_limit:Manages the degree of parallelism to speed up the ASM disk rebalance operations, for example, whenever a disk is being dropped from an existing disk group or when the disk group rebalance is initiated manually. This is a dynamic parameter that can be set in the range from 0 to 11 (1024 in 11gR2 and above). Considering the size of a disk group, you may increase the limit of the POWER to speed up the rebalancing operation. Multiple ASM instances can hold the different values across a cluster. When no limit is specified, it uses the default value for the rebalancing operation. asm_diskstring: Used by the ASM instance to identify and discover the disks mentioned in the paths. Once the disks are discovered, they will appear in the V$ASM_DISK dynamic view. The disk discovery occurs when an ASM instance is initiated, when you issue a query against the V$ASM_DISK/V$ASM_DISKGROUP dynamic views, or when you MOUNT, UNMOUNT, RESIZE, ADD a disk. It is a dynamic parameter and you can specify multiple paths within this parameter processes: Apart from the SGA initialization parameter value, the PROCESSES initialization parameter value has some influence over the ASM instance. Therefore, you may use the following formula to tune the PROCESSES initialization parameter when multiple database instances are accessing the instance: |
