ITPub博客

首页 > 数据库 > Oracle > 修改asm口令

修改asm口令

原创 Oracle 作者:gycixput 时间:2014-06-25 10:53:56 0 删除 编辑

Recreate the password file for the ASM instance as follows:

1. Set the ORACLE_HOME and ORACLE_SID to the ASM instance
2. connect /as sysdba from sqlplus
3. If the value of the "remote_login_passwordfile" parameter in the pfile or spfile is EXCLUSIVE, you must shutdown your instance 
4. RENAME or DELETE the existing password file PWD.ora( In Windows) / orapw ( in UNIX) 
5. Issue the command:

WINDOWS:

orapwd file=/database/PWD.ora password=

UNIX:

orapwd file=/dbs/orapw password=


The passwordfile can be recreated for ASM while ASM instance is up. Usually for normal DB instances, we recommended that DB instances be shutdown before changing the passwordfile.

In 11.2 you can use asmcmd to change the password for single instance environment as follows

 

$ export ORACLE_SID=+ASM

$ asmcmd

ASMCMD> passwd sys
Enter old password (optional): ******
Enter new password: ******

 In Cluster environment 

ASMCMD> orapwusr --modify --password sys

Enter password: ******
ASMCMD> exit

NOTE: This is not applicable for SYSASM privilege.

https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=moimhijzx_299&_afrLoop=959231349186519

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24585765/viewspace-1193185/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-11-05

  • 博文量
    69
  • 访问量
    212879