Chinaunix首页 | 论坛 | 博客
  • 博客访问: 27889
  • 博文数量: 6
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 70
  • 用 户 组: 普通用户
  • 注册时间: 2020-07-06 10:35
文章分类

全部博文(6)

文章存档

2020年(6)

我的朋友

分类: Oracle

2020-07-23 14:58:56

ASM实例其实是和oracle实例类似的,都是有SGA和一系列后台进程组成。其实它本身也是一个oracle实例,区别在于,oracle db实例管理的是db数据库,而asm实例只管理asm磁盘。

点击(此处)折叠或打开

  1. SQL> show parameter sga

  2. NAME TYPE VALUE
  3. ------------------------------------ ---------------------- ------------------------------
  4. lock_sga boolean FALSE
  5. sga_max_size big integer 4G
  6. sga_target big integer 2G
asm进程:

点击(此处)折叠或打开

  1. [grid@rac1 gpnpd]$ ps -ef|grep asm
  2. grid 24319 426522 0 14:41 pts/0 00:00:00 sqlplus as sysasm
  3. grid 24680 13924 0 14:42 pts/1 00:00:00 grep --color=auto asm
  4. grid 27847 1 0 7月20 ? 00:00:32 asm_pmon_+ASM1
  5. grid 27849 1 0 7月20 ? 00:00:07 asm_psp0_+ASM1
  6. grid 27851 1 0 7月20 ? 00:10:13 asm_vktm_+ASM1
  7. grid 27855 1 0 7月20 ? 00:00:02 asm_gen0_+ASM1
  8. grid 27857 1 0 7月20 ? 00:00:31 asm_diag_+ASM1
  9. grid 27859 1 0 7月20 ? 00:00:07 asm_ping_+ASM1
  10. grid 27861 1 0 7月20 ? 00:29:51 asm_dia0_+ASM1
  11. grid 27863 1 0 7月20 ? 00:01:27 asm_lmon_+ASM1
  12. grid 27865 1 0 7月20 ? 00:01:02 asm_lmd0_+ASM1
  13. grid 27867 1 0 7月20 ? 00:01:24 asm_lms0_+ASM1
  14. grid 27871 1 0 7月20 ? 00:00:07 asm_lmhb_+ASM1
  15. grid 27873 1 0 7月20 ? 00:00:02 asm_mman_+ASM1
  16. grid 27875 1 0 7月20 ? 00:00:03 asm_dbw0_+ASM1
  17. grid 27877 1 0 7月20 ? 00:00:02 asm_lgwr_+ASM1
  18. grid 27879 1 0 7月20 ? 00:00:19 asm_ckpt_+ASM1
  19. grid 27881 1 0 7月20 ? 00:00:01 asm_smon_+ASM1
  20. grid 27883 1 0 7月20 ? 00:00:21 asm_rbal_+ASM1
  21. grid 27885 1 0 7月20 ? 00:00:26 asm_gmon_+ASM1
  22. grid 27887 1 0 7月20 ? 00:00:12 asm_mmon_+ASM1
  23. grid 27889 1 0 7月20 ? 00:03:28 asm_mmnl_+ASM1
  24. grid 27891 1 0 7月20 ? 00:00:12 asm_lck0_+ASM1
  25. grid 27954 1 0 7月20 ? 00:00:02 asm_asmb_+ASM1
  26. grid 27956 1 0 7月20 ? 00:00:05 oracle+ASM1_asmb_+asm1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
  27. oracle 29095 1 0 7月20 ? 00:00:02 ora_asmb_rac1121
  28. grid 29099 1 0 7月20 ? 00:00:06 oracle+ASM1_asmb_rac1121 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))

理解了asm实例是一个独立的实例,就不难理解它的pfile和spfile
首先查看asm的spfile:

点击(此处)折叠或打开

  1. [grid@rac1 dbs]$ echo $ORACLE_SID
  2. +ASM1
  3. [grid@rac1 dbs]$ sqlplus / as sysasm
  4. SQL> show parameter spfile

  5. NAME TYPE VALUE
  6. ------------------------------------ ----------- ------------------------------
  7. spfile string +DATA/rac-cluster/asmparameter
  8.                                                  file/registry.253.1044375779

自然可以像db一样create pfile:

点击(此处)折叠或打开

  1. SQL> create pfile from spfile;

  2. File created.


我们知道db的pfile默认存放路径是$ORACLE_HOME/dbs,同样的方法找到asm的pfile(这个grid的oracle home是/u01/app/11.2.0/grid):

点击(此处)折叠或打开

  1. [grid@rac1 dbs]$ ll /u01/app/11.2.0/grid/dbs/
  2. 总用量 20
  3. -rw-rw---- 1 grid oinstall 937 7月 20 13:14 ab_+ASM1.dat
  4. -rw-rw---- 1 grid oinstall 1544 7月 20 13:14 hc_+ASM1.dat
  5. -rw-r--r-- 1 grid oinstall 140 7月 23 14:52 init+ASM1.ora
  6. -rw-r--r-- 1 grid oinstall 2851 5月 15 2009 init.ora
  7. -rw-r----- 1 grid oinstall 1536 6月 29 16:39 orapw+ASM
  8. [grid@rac1 dbs]$ cat init+ASM1.ora
  9. *.asm_power_limit=1
  10. *.diagnostic_dest='/u01/app/oracle'
  11. *.instance_type='asm'
  12. *.large_pool_size=12M
  13. *.remote_login_passwordfile='EXCLUSIVE'
阅读(1733) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~