Flex ASM的配置和转换

从12c开始,推出了Flex ASM特性,允许RAC节点访问远程节点的ASM实例,而自身无需运行ASM实例。

一般在Flex集群,中心节点运行ASM实例,叶节点远程访问中心节点的ASM实例。

但是中心节点也可以不运行ASM实例而访问其他节点的ASM实例;另外,标准集群也可以启用Flex ASM。

由于有通过网络远程访问ASM实例的状况,因此也形成了ASM网络,ASM网络可与Private网络共用,即ASM&Private网络,可在安装界面指定。

确认当前ASM状态

点击(此处)折叠或打开

  1. $ asmcmd showclustermode
  2. ASM cluster : Flex mode disabled
以上说明是标准ASM

运行asmca,转换ASM为Flex ASM,以下是部分步骤截图


ASM的subnet与Public不同,将不能使用与Public相同的端口号




以root用户运行上图所示的脚本,将对集群内所有节点重启CRS

最后,确认当前集群模式

点击(此处)折叠或打开

  1. $ asmcmd showclustermode
  2. ASM cluster : Flex mode enabled

  3. #后两项是Flex ASM才有的
  4. $ srvctl config asm
    ASM home:
    Password file: +OCRV/orapwASM
    ASM listener: LISTENER
    ASM instance count: ALL
    Cluster ASM listener: ASMNET1LSNR_ASM

查看ASM监听器

点击(此处)折叠或打开

  1. $ lsnrctl status ASMNET1LSNR_ASM

  2. LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 01-JUN-2016 15:08:11

  3. Copyright (c) 1991, 2014, Oracle. All rights reserved.

  4. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=ASMNET1LSNR_ASM)))
  5. STATUS of the LISTENER
  6. ------------------------
  7. Alias ASMNET1LSNR_ASM
  8. Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production
  9. Start Date 01-JUN-2016 15:02:46
  10. Uptime 0 days 0 hr. 5 min. 24 sec
  11. Trace Level off
  12. Security ON: Local OS Authentication
  13. SNMP OFF
  14. Listener Parameter File /u01/app/12.1.0/grid/network/admin/listener.ora
  15. Listener Log File /u01/app/grid/diag/tnslsnr/node2/asmnet1lsnr_asm/alert/log.xml
  16. Listening Endpoints Summary...
  17.   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=ASMNET1LSNR_ASM)))
  18.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.1.2)(PORT=1522)))
  19. Services Summary...
  20. Service "+ASM" has 2 instance(s).
  21.   Instance "+ASM1", status READY, has 1 handler(s) for this service...
  22.   Instance "+ASM2", status READY, has 2 handler(s) for this service...
  23. The command completed successfully

请使用浏览器的分享功能分享到微信等