Oracle   发布时间:2022-05-17  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了修改asm中的sys密码大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
直接修改报ORA-01109: database not open:

[[email protected] admin]$ . oraenv
oracle_sid = [prodb2] ? +ASM2
[[email protected] admin]$ sqlplus / as sysdba

sql*Plus: Release 10.2.0.5.0 - Production on чǚ? 7? 6 02:24:48 2018

copyright (C) 1982,2010,Oracle.  All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning,Real Application clusters,olAP,Data Mining
and Real Application TesTing options

sql> 
sql> 
sql> alter user sys IDentifIEd by admin;
alter user sys IDentifIEd by admin
                             *
ERROR at line 1:
ORA-01109: database not open

10g中修改密码需要修改密码文件:

cd $GRID_HOME/dbs

windows:

orapwd file=<OracLE_HOME>/database/PWD<SID>.ora password=<sys_password>

UNIX:

orapwd file=<OracLE_HOME>/dbs/orapw<SID> password=<sys_password>

测试:

节点2修改密码:
[[email protected] ~]$ cd $OracLE_HOME/dbs
[[email protected] dbs]$ orapwd file=orapw+ASM2 password=Oracle force=y
[[email protected] dbs]$ sqlplus sys/[email protected] as sysdba

sql*Plus: Release 10.2.0.5.0 - Production on чǚ? 7? 6 02:43:25 2018

copyright (C) 1982,Data Mining
and Real Application TesTing options

sql> 

节点1测试:
[[email protected] admin]$ sqlplus sys/[email protected] as sysdba

sql*Plus: Release 10.2.0.5.0 - Production on чǚ? 7? 6 02:45:31 2018

copyright (C) 1982,Data Mining
and Real Application TesTing options

sql> show parameter remote_login_passwordfile

name                     TYPE           VALUE
------------------------------------ ---------------------- ------------------------------
remote_login_passwordfile        String         EXCLUSIVE

官方建议在修改密码前关闭asm实例,测试中未关闭,远程连接正常。

11g中修改密码相对简单:
single instance:

$ export oracle_sid=+ASM

$ asmcmd

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

Cluster environment

ASMCMD> orapwusr --modify --password sys

Enter password: 
ASMCMD> exit

大佬总结

以上是大佬教程为你收集整理的修改asm中的sys密码全部内容,希望文章能够帮你解决修改asm中的sys密码所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: