正确修改DBSNMP和SYSMAN密码
时间:2010-06-29 来源:junhuang09
正确修改DBSNMP和SYSMAN密码
DBSNMP 密码修改
DBSNMP 密码修改
1.Stop dbconsole
2.set new password for dbsnmp
3.test dbsnmp new password by connect
4.edit targets.xml
Search for the line:
<Property NAME="UserName" VALUE="6f5848a4f53a2d0a" ENCRYPTED="TRUE"/>
<Property NAME="password" VALUE="829e1a25401de489" ENCRYPTED="TRUE"/>
Replace the encrypted value by the new password value
Replace TRUE by FALSE
5.restart dbconsole
2.set new password for dbsnmp
3.test dbsnmp new password by connect
4.edit targets.xml
Search for the line:
<Property NAME="UserName" VALUE="6f5848a4f53a2d0a" ENCRYPTED="TRUE"/>
<Property NAME="password" VALUE="829e1a25401de489" ENCRYPTED="TRUE"/>
Replace the encrypted value by the new password value
Replace TRUE by FALSE
5.restart dbconsole
SYSMAN密码修改
1、 停止dbconsole
[oracle@abcca2210028 ~]$ emctl stop dbconsole
查看状态,确认dbconsole已经停止
[oracle@abcca2210028 ~]$ emctl status dbconsole
2、修改sysman用户的密码,我 把密码改成oracle123
[oracle@abcca2210028 ~]$ sqlplus / as sysdba
SQL> alter user sysman identified by oracle123;
解锁用户
SQL> alter user sysman account unlock;
确认密码已修改
SQL> conn sysman/oracle123@csc
Connected.
3、转到$ORACLE_HOME/(host)_(sid)/sysman/config目录下
a. 把emoms.properties另存为emoms.properties.old
b. 修改emoms.properties文件
找到oracle.sysman.eml.mntr.emdRepPwd=把等于后的加密字串替换成刚才更改的密码oracle123;
找到oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE 把TRUE换成FALSE。
4、重启dbconsole,访问EM恢复正常
[oracle@abcca2210028 ~]$ emctl start dbconsole
按如上所说操作完毕之后,dbconsole可以登录,但是无法做维护。报io的一个异常:
解决:
$ emctl stop dbconsole
$ emca -repos recreate
修复完毕,dbconsole 可以正常使用 了。
查看状态,确认dbconsole已经停止
[oracle@abcca2210028 ~]$ emctl status dbconsole
2、修改sysman用户的密码,我 把密码改成oracle123
[oracle@abcca2210028 ~]$ sqlplus / as sysdba
SQL> alter user sysman identified by oracle123;
解锁用户
SQL> alter user sysman account unlock;
确认密码已修改
SQL> conn sysman/oracle123@csc
Connected.
3、转到$ORACLE_HOME/(host)_(sid)/sysman/config目录下
a. 把emoms.properties另存为emoms.properties.old
b. 修改emoms.properties文件
找到oracle.sysman.eml.mntr.emdRepPwd=把等于后的加密字串替换成刚才更改的密码oracle123;
找到oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE 把TRUE换成FALSE。
4、重启dbconsole,访问EM恢复正常
[oracle@abcca2210028 ~]$ emctl start dbconsole
按如上所说操作完毕之后,dbconsole可以登录,但是无法做维护。报io的一个异常:
解决:
$ emctl stop dbconsole
$ emca -repos recreate
修复完毕,dbconsole 可以正常使用 了。
修改了sysman密码,发现数据库用户老被锁定,同时EM无法连 接,解锁后,一会儿又被锁定,经过查看日志分析,发现是em的dbconsole自动重试,造成sysman用户锁定,而修改sysman的密码,并没有 修改em的dbconsole的连接密码,不知道是我的操作有问题(用sqlplus修改密码)还是oracle本身不够人性化,解决办法:
emctl setpasswd dbconsole
这样重新设置em的dbconsole密码,重启em即可。
相关阅读 更多 +