重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2102|回复: 0
打印 上一主题 下一主题

How to recreate shared ASM password file in 19c Grid Infrastructure (GI)

[复制链接]
跳转到指定楼层
楼主
发表于 2020-11-17 18:48:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
How to recreate shared ASM password file in 19c Grid Infrastructure (GI) (Doc ID 2717306.1)

In this Document
Goal
Solution
References
APPLIES TO:
Oracle Database - Enterprise Edition - Version 19.1.0.0.0 and later
IBM AIX on POWER Systems (64-bit)
GOAL
This note provides the steps to recreate the shared ASM password file in 19c and above Flex ASM.
SOLUTION
A new feature (new asmcmd commands) is included in 19.8 (Jul2020 RU) GI RU to allow users to create asm password using "asmcmd credverify" and "asmcmd credfix" commands.
These commands are new to 19.8 RU, so you must apply 19.8 or higher GI RU.

When 19.8 GI RU is applied, you can use "asmcmd credverify" and "asmcmd credfix" to verify and fix the asm credential issue.
The asmcmd "credverify" checks to see if credentials have been created properly across a multinode cluster, and are consistent across the OCR, OLR, and password file. the asmcmd "credfix" also does the same, but the command additionally deletes inconsistent credentials and adds new ones across the OCR, OLR, and password file. It also enables flex ASM if the GPnP profile has not been changed yet.
The following is one example of how "asmcmd credverify" and "asmcmd credfix" work.
The recommended usage is "asmcmd --nocp credverify" and "asmcmd --nocp credfix" as the following example shows.
The “nocp” option is used to disable the connection feature pooling for ASMCMD. The option is being used to ensure connection pooling doesn’t affect the execution of ‘credverify’ and ‘credfix’.
There is no negative impact of using --nocp option
Starting from 20.3, the default behavior is --nocp, so starting from 20.3, "asmcmd credverify" and "asmcmd credfix" behaves same as asmcmd --nocp credverify" and "asmcmd--nocp  credfix"

Case 1: If there is no credentials in OCR:

GI_HOME/bin/asmcmd --nocp credverify
credverify: No credentials in OCR, please run 'credfix' to fix the credentials.

GI_HOME/bin/asmcmd --nocp credfix
op=addcrscreds wrap=/tmp/creds0.xml
credfix: Creating new credentials, no valid credentials in OCR.
credfix: New user <username2> created.
op=credimport wrap=/tmp/creds0.xml olr=true force=true
credfix: OLR for <node1> has been fixed if credentials were created incorrectly.
credfix: Starting SSH session on node den02rrx.
credfix: OLR for <node2> has been fixed if credentials were created incorrectly.
credverify: Credentials created correctly on <node1>.
credverify: starting SSH session on node <node2>.
credverify: Credentials created correctly on <node2>. Exiting SSH session.
credfix: Credentials have been fixed if they were created incorrectly.


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-29 19:30 , Processed in 0.076779 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表