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

标题: How to recreate shared ASM password file in 19c Grid Infrastructure (GI) [打印本页]

作者: 郑全    时间: 2020-11-17 18:48
标题: How to recreate shared ASM password file in 19c Grid Infrastructure (GI)
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.







欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2