ASMCMD> orapwusr --modify --password sys
Enter password: ******jycjyc
ASMCMD> exit
[root@rac1 ~]# su - grid
Last login: Tue Oct 12 15:52:27 CST 2021 on pts/0
[grid@rac1 ~]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Tue Oct 12 15:56:17 2021
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> select * from v$pwfile_users;
USERNAME SYSDBA
------------------------------------------------------------ ----------
SYSOPER SYSASM
---------- ----------
SYS TRUE
TRUE FALSE
ASMSNMP TRUE
FALSE FALSE
SQL> grant sysasm to sys;
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
[grid@rac1 ~]$ sqlplus sys/jyc as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Tue Oct 12 15:56:48 2021
Copyright (c) 1982, 2013, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name: ^C
[grid@rac1 ~]$ sqlplus sys/jycjyc as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Tue Oct 12 15:56:55 2021
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
[grid@rac1 ~]$ sqlplus sys/jycjyc as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Tue Oct 12 16:00:10 2021
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> set line 160
SQL> select * from v$pwfile_users;
USERNAME SYSDBA SYSOPER SYSASM
------------------------------------------------------------ ---------- ---------- ----------
SYS TRUE TRUE TRUE
ASMSNMP TRUE FALSE FALSE
SQL> grant sysasm to ASMSNMP;
Grant succeeded.
SQL> select * from v$pwfile_users;
USERNAME SYSDBA SYSOPER SYSASM
------------------------------------------------------------ ---------- ---------- ----------
SYS TRUE TRUE TRUE
ASMSNMP TRUE FALSE TRUE
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
[grid@rac1 ~]$ sqlplus asmsnmp/jyc as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Tue Oct 12 16:01:03 2021
Copyright (c) 1982, 2013, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name: ^C^[[A
[grid@rac1 ~]$ sqlplus asmsnmp/jycjyc as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Tue Oct 12 16:01:10 2021
Copyright (c) 1982, 2013, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name: ^C
[grid@rac1 ~]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Tue Oct 12 16:01:19 2021
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 ASMSNMP identified by jyc;
User altered.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
[grid@rac1 ~]$ sqlplus asmsnmp/jyc as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Tue Oct 12 16:01:44 2021
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> select * from v$pwfile_users;
USERNAME SYSDBA
------------------------------------------------------------ ----------
SYSOPER SYSASM
---------- ----------
SYS TRUE
TRUE TRUE
ASMSNMP TRUE
FALSE TRUE
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
[grid@rac1 ~]$ ssh rac2
Last login: Tue Oct 12 15:35:43 2021
[grid@rac2 ~]$ sqlplus asmsnmp/jyc as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Tue Oct 12 16:02:18 2021
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> select * from v$pwfile_users;
USERNAME SYSDBA
------------------------------------------------------------ ----------
SYSOPER SYSASM
---------- ----------
SYS TRUE
TRUE TRUE
ASMSNMP TRUE
FALSE TRUE
SQL>
SQL> exit
其它参考:
11g修改asm密码_sqlora的专栏-CSDN博客



