正确修改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 可以正常使用 了。