Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2246606
  • 博文数量: 310
  • 博客积分: 6853
  • 博客等级: 准将
  • 技术积分: 2833
  • 用 户 组: 普通用户
  • 注册时间: 2005-08-04 16:41
文章分类

全部博文(310)

文章存档

2013年(17)

2012年(42)

2011年(76)

2010年(71)

2009年(99)

2007年(2)

2006年(1)

2005年(2)

分类: Oracle

2012-02-27 17:34:37


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:
      
      
      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 可以正常使用了。
修改了sysman密码,发现数据库用户老被锁定,同时EM无法连接,解锁后,一会儿又被锁定,经过查看日志分析,发现是em的dbconsole自动重试,造成sysman用户锁定,而修改sysman的密码,并没有修改em的dbconsole的连接密码,不知道是我的操作有问题(用sqlplus修改密码)还是oracle本身不够人性化,解决办法:
emctl setpasswd dbconsole
这样重新设置em的dbconsole密码,重启em即可。
阅读(1722) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~