Orcle 12c 新特性---Oracle ASM Shared Password File in a Disk Group
作者:
Expect-乐
1 说明
在12c中,Oracle ASM通过将密码文件存储在磁盘组里面,这样方便管理。
2 实验
2.1 查看当前ASM密码文件
--节点1
[grid@rac1 ~]$ srvctl config asm -detail
ASM home: <CRS home>
Password file: +OCR_VOTING/orapwASM
ASM listener: LISTENER
ASM is enabled.
ASM is individually enabled on nodes:
ASM is individually disabled on nodes:
ASM instance count: 3
Cluster ASM listener: ASMNET1LSNR_ASM
--节点2
[grid@rac2 ~]$ srvctl config asm -detail
ASM home: <CRS home>
Password file: +OCR_VOTING/orapwASM
ASM listener: LISTENER
ASM is enabled.
ASM is individually enabled on nodes:
ASM is individually disabled on nodes:
ASM instance count: 3
Cluster ASM listener: ASMNET1LSNR_ASM
默认存储在OCR磁盘组中,可以通过手动修改密码文件所在磁盘组
2.2 修改密码文件位置
[root@rac1 ~]# /u01/app/12.2.0/grid/bin/srvctl modify asm -pwfile '+DATA/orapwASM'
[root@rac1 ~]# /u01/app/12.2.0/grid/bin/srvctl config asm
ASM home: <CRS home>
Password file: +DATA/orapwASM
ASM listener: LISTENER
ASM instance count: 3
Cluster ASM listener: ASMNET1LSNR_ASM
2.3 创建密码文件
--ASM 密码文件
orapwd file='+data/ASM/orapwasm' asm=y
--数据库密码文件
orapwd file='+data/ORCL/orapwdb' dbuniquename='cndba'
--通过之前版本的密码文件,在磁盘组中创建新的密码文件
orapwd input_file='/oraclegrid/dbs/orapwasm' file='+data/ASM/orapwasm' asm=y
更多信息,参考官方文档:
http://docs.oracle.com/database/121/OSTMG/GUID-1A4E79BE-7D26-4FAC-BC11-B6C2F677A41F.htm#OSTMG02600
版权声明:本文为博主原创文章,未经博主允许不得转载。
-Oracle ASM Shared Password File in a Disk Group