你好,游客 登录 注册 搜索
背景:
阅读新闻

Oracle 11.2.0.3管理ASM实例

[日期:2012-11-29] 来源:51cto  作者:斩月 [字体:大 中 小]

五:删除ASM磁盘组,默认磁盘故障条件下,经过12960秒即3.6个小时后自动删除;删除磁盘组之前需要保证无数据存放在磁盘组上且无到该磁盘组的active连接

  1. [grid@localhost ~]$ tail -f /u01/app/grid/diag/asm/+asm/+ASM/trace/alert_+ASM.log
  2. ORA-15062: ASM disk is globally closed
  3. Thu Nov 29 12:00:53 2012
  4. WARNING: Disk 0 (FRA_0000) in group 2 will be dropped in: (12960) secs on ASM inst 1
  5. WARNING: Disk 1 (FRA_0001) in group 2 will be dropped in: (12960) secs on ASM inst 1
  6. Thu Nov 29 12:00:58 2012
  7. asm实例:
  8. SQL> select path,name,repair_timer from v$asm_disk where group_number=2;
  9. PATH NAME REPAIR_TIMER
  10. -------------------- ---------- ------------
  11. FRA_0000 12960
  12. FRA_0001 12960
  13. /dev/asm-disk6 FRA_0002 0
  14. /dev/asm-disk7 FRA_0003 0
  15. SQL> alter diskgroup fra online disk 'FRA_0000';
  16. Diskgroup altered.
  17. SQL> alter diskgroup fra online disk 'FRA_0001';
  18. Diskgroup altered.
  19. SQL> select name,path,failgroup,mount_status from v$asm_disk;
  20. NAME PATH FAILGROUP MOUNT_STATUS
  21. ---------- -------------------- -------------------- ---------------------
  22. FRA_0002 /dev/asm-disk6 FG2 CACHED
  23. FRA_0003 /dev/asm-disk7 FG2 CACHED
  24. DATA_0000 /dev/asm-disk1 DATA_0000 CACHED
  25. DATA_0002 /dev/asm-disk2 DATA_0002 CACHED
  26. DATA_0001 /dev/asm-disk3 DATA_0001 CACHED
  27. FRA_0001 /dev/asm-disk5 FG1 CACHED
  28. FRA_0000 /dev/asm-disk4 FG1 CACHED
  29. SQL> drop diskgroup fra;
  30. drop diskgroup fra
  31. *
  32. ERROR at line 1:
  33. ORA-15039: diskgroup not dropped
  34. ORA-15053: diskgroup "FRA" contains existing files
  35. rdbms实例:
  36. SQL> drop tablespace test01 including contents;
  37. Tablespace dropped.
  38. SQL> shutdown immediate
  39. Database closed.
  40. Database dismounted.
  41. Oracle instance shut down.
  42. asm实例:
  43. SQL> drop diskgroup fra including contents;
  44. Diskgroup dropped.
  45. rdbms实例:
  46. SQL> startup
  47. ORACLE instance started.
  48. Total System Global Area 313860096 bytes
  49. Fixed Size 1344652 bytes
  50. Variable Size 192940916 bytes
  51. Database Buffers 113246208 bytes
  52. Redo Buffers 6328320 bytes
  53. Database mounted.
  54. 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:
Processes = 50+50*n (where n indicates the number of instances used to connect to the ASM instance)

linux
相关资讯       Oracle基础教程  ASM实例  Oracle ASM 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款