一次修改dbsnmp,sysman密码的尝试

set oracle_sid=
1.emctl stop dbconsole
2.CONNECT / AS SYSDBA
3.alter user dbsnmp identified by  oracle

4.通过连接用户测试新密码
5.编辑targets.xml (oracle/product/10.2.0/db_1/sysman/emd)
      <Property NAME="password" VALUE="829e1a25401de489" ENCRYPTED="TRUE"/>
      Replace the encrypted value by the new password value
      Replace TRUE by FALSE
5.重启dbconsole
emctl start dbconsole(restart dbconsole)

进去报一个java异常,

错误
 
java.lang.Exception: Received unexpected response text : <html><head><title>EMDAEMON</title></head><body text="#000000" bgcolor="#FFFFC0"><H1>EMDAEMON</H1><H2> HTTP/1.1 404 , Not Found<br></h2></body></html>

 

再次进去,报java异常:

错误
 
java.lang.Exception: No such metric
进入首页下面的监视配置,重新配置监视密码,输入修改后的密码,注销OEM再进去,没有错误。

注:EM Daemon is not running.修改密码第一次前进去OEM时候,emctl status dbconsole,看到EM Daemon is not running.提示。推测此时应该由于监视密码与dbsnmp密码不匹配的问题。配置监视密码后再次查看emctl status dbconsole,可以看到dbconsole状态正常。

 

sysman密码修改
1.停止dbconsole
emctl stop dbconsole
查看状态确认已经停止emctl status dbconsole
2.sqlplus / as sysdba
alter user sysman identified by 123;
3.解锁用户(select username,account_status from dba_users;)
alter user sysman account unlock;
4.测试新密码
5.修改emoms.properties(oracle/product/10.2.0/db_1/计算机名_实例名/sysman/config)
将emoms.properties另存为emoms.properties.old

修改emoms.properties文件
找到oracle.sysman.eml.mntr.emdRepPwd=把等于后的加密字串替换成刚才更改的密码oracle123;
找到oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE 把TRUE换成FALSE。

emctl setpasswd dbconsole
emctl start dbconsole

>emctl status dbconsole ,显示如下

http://pc-198801010322:5500/em/console/aboutApplication
EM Daemon is not running.
---------------------------------------------------------

再次敲入上面命令,显示dbconsole状态正常

>emctl status dbconsole

http://pc-198801010322:5500/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.

可以进入

 

你可能感兴趣的:(java,oracle,加密,manager,测试,user)