Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5380087
  • 博文数量: 890
  • 博客积分: 12876
  • 博客等级: 上将
  • 技术积分: 10760
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-04 14:18
个人简介

猝然临之而不惊,无故加之而不怒。

文章分类

全部博文(890)

文章存档

2016年(1)

2014年(18)

2013年(41)

2012年(48)

2011年(65)

2010年(84)

2009年(121)

2008年(101)

2007年(129)

2006年(95)

2005年(118)

2004年(69)

分类: Oracle

2013-01-15 08:49:07

Oracle10g EM无法连接数据库实例 & 正确修改DBSnmp和SYSMAN密码

--SYSMAN和DBSNMP跟涉及到Oracle的EM,所以跟其他的用户修改密码方式有所区别。下面是这两个用户的默认密码和作用说明:

---------------------------------------------------------------------------

DBSNMP
DBSNMP
The account used by the Management Agent component of Oracle Enterprise Manager to monitor and manage the database .
Oracle Enterprise Manager Grid Control Installation and Basic Configuration.
SYSMAN
CHANGE_ON_INSTALL
The account used to perform Oracle Enterprise Manager database administration tasks. Note that SYS and SYSTEM can also perform these tasks.
Oracle Enterprise Manager Grid Control Installation and Basic Configuration
---------------------------------------------------------------------------------
错误修改可能造成的问题
如果像修改其它用户的方式修改其密码的话,登陆em,可能出现如下状态:
(1)提示Enterprise Manager 无法连接到数据库实例
(2)数据库实例,是红色向下的箭头
(3)到数据库的实例链接,是红色向下的箭头
(4)监听,绿色向上的箭头
(5)检查SYSMAN用户,处于锁定状态,使用解锁命令,又会自动锁定。
但是数据库其它一起正常。
正确的修改方式
1、SYSMAN密码修改
1、 停止dbconsole
[oracle@xxx ~]$ emctl stop dbconsole
查看状态,确认dbconsole已经停止
[oracle@xxx ~]$ emctl status dbconsole
2、修改sysman用户的密码
[oracle@xxx ~]$ sqlplus / as sysdba
SQL> alter user sysman identified by yyyy;
解锁用户
SQL> alter user sysman account unlock;
确认密码已修改
SQL> conn sysman/ yyyy @qqq
Connected.
3、转到$ORACLE_HOME/(host)_(sid)/sysman/config目录下
a. 把emoms.properties另存为emoms.properties.old
b. 修改emoms.properties文件
找到oracle.sysman.eml.mntr.emdRepPwd=把等于后的加密字串替换成刚才更改的密码yyyy;
找到oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE 把TRUE换成FALSE。
4、重启dbconsole,访问EM恢复正常
[oracle@xxx ~]$emctl start dbconsole
2、修改DBSNMP密码
2、DBSNMP 密码修改
修改的流程类似修改SYSMAN,只不过第3步如下:
转到$ORACLE_HOME/(host)_(sid)/sysman/emd目录下
[oracle@xxx ~]$ cp targets.xml targets.xml.bak
[oracle@xxx ~]$vi targets.xml
修改些列代码中:


用新的dbsnmp的密码代替上列password的Value值,ENCRYPTED的值修改成FALSE。


From:http://blog.csdn.net/csc_hanker/article/details/5190229


阅读(2247) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~