如何修改ASM SYS用户密码

你必须使用orapwd命令重建密码文件的方式来修改sys用户的密码,而不能使用alert user命令:

1.设置ASM实例的Oracle_HOME和ORACLE_SID

2. connect /as sysdba fromsqlplus

3. 如果参数 "remote_login_passwordfile" 设置为EXCLUSIVE,必须关闭ASM实例

4. RENAME或DELETE已存在的密码文件PWD<SID>.ora( InWindows) / orapw<SID> ( in UNIX)

5.使用命令:

WINDOWS:

orapwdfile=<ORACLE_HOME>/database/PWD<SID>.orapassword=<sys_password>

UNIX:

orapwdfile=<ORACLE_HOME>/dbs/orapw<SID> password=<sys_password>

 在11.2你还能使用asmcmd使改单ASM实例的SYS用户密码

$ export ORACLE_SID=+ASM

$ asmcmd

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

 In Clusterenvironment

ASMCMD> orapwusr--modify --password sys

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

NOTE: This is notapplicable for SYSASM privilege.

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-04/130014.htm

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享
盖楼 抢沙发
  • 星锅

    昵称

  • 取消
    昵称表情代码图片