現象
ASMCMD> orapwusr --modify --password sys
Enter password: ********
ORA-15306: ASM password file update failed on at least one node
ORA-15321: cannot set attribute with connected clients (DBD ERROR: error possibly near <*> indicator at char 41 in '/* ASMCMD */alter user sys identified by <*>adadadad')
ASMCMD> exit
sql內改
[grid@rac1 ~]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Tue Apr 14 20:10:44 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> alter user sys identified by Oracle123;
alter user sys identified by Oracle123
*
ERROR at line 1:
ORA-15306: ASM password file update failed on at least one node
ORA-15321: cannot set attribute with connected clients
解決方法
進入grid_home的dbs
[grid@rac1 dbs]$ pwd
/u01/app/11.2.0/grid/dbs
[grid@rac1 dbs]$ ls
ab_+ASM1.dat hc_+ASM1.dat init.ora
創建祕鑰文件
[grid@rac1 dbs]$ orapwd file='orapw+ASM1' entries=5 password=Oracle123
[grid@rac1 dbs]$ ls
ab_+ASM1.dat hc_+ASM1.dat init.ora orapw+ASM1
複製到其它節點
[grid@rac1 dbs]$ scp orapw+ASM1 rac2:/u01/app/11.2.0/grid/dbs/orapw+ASM2
orapw+ASM1 100% 2048 2.0KB/s 00:00
[grid@rac1 dbs]$
創建 asmsnmp 並賦予權
[grid@rac1 rac1]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Tue Apr 14 20:14:53 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> create user asmsnmp identified by Oracle123;
User created.
SQL> grant sysdba to asmsnmp;
Grant succeeded.
SQL> select * from v$pwfile_users;
USERNAME SYSDBA
------------------------------------------------------------ ----------
SYSOPER SYSASM
---------- ----------
SYS TRUE
TRUE FALSE
ASMSNMP TRUE
FALSE FALSE
SQL>
更改成功
[grid@rac1 rac1]$ asmcmd
ASMCMD> orapwusr --modify --password sys
Enter password: *********
ASMCMD>
ASMCMD>
ASMCMD>