oracle 11g 修改sysman和dbsnmp用戶密碼後沒法使用em

實驗背景:數據庫

現有一臺配置了EM的oracle數據庫,數據庫版本11.2.0.4,修改sysmandbsnmp用戶密碼後重啓em,發現em不可用。如圖:oracle

sysman和dbsnmp用戶狀態,發現sysman用戶狀態爲鎖住app

 

 

 

正確修改sysman和dbsnmp用戶密碼的方法以下:spa

 

一、關閉emserver

[oracle@dbserver ~]$ emctl stop dbconsolexml

Oracle Enterprise Manager 11g DatabaseControl Release 11.2.0.4.0blog

Copyright (c) 1996, 2013 OracleCorporation. All rights reserved.get

Stopping Oracle Enterprise Manager 11gDatabase Control ...it

... Stopped.io

[oracle@dbserver ~]$

 

二、修改sysman的密碼而且給sysman用戶解鎖

 

三、執行emctl setpasswd dbconsole命令修改密碼

[oracle@dbserver ~]$ emctl setpasswddbconsole

Oracle Enterprise Manager 11g DatabaseControl Release 11.2.0.4.0

Copyright (c) 1996, 2013 OracleCorporation. All rights reserved.

Please enter new repository password:

Repository password successfully updated.

 

[oracle@dbserver ~]$

 

四、修改dbsnmp用戶的口令

[oracle@dbserver emd]$ pwd

/u01/app/oracle/product/11.2.0/db_1/dbserver_sztech1/sysman/emd

[oracle@dbserver emd]$

[oracle@dbserver emd]$ cp targets.xmltargets.xml.bak

[oracle@dbserver emd]$vi targets.xml

修改下面內容

<Property NAME="password"VALUE="oracle123" ENCRYPTED="FALSE"/>

 

五、從新啓動em

[oracle@dbserver emd]$ emctl startdbconsole

Oracle Enterprise Manager 11g DatabaseControl Release 11.2.0.4.0

Copyright (c) 1996, 2013 OracleCorporation. All rights reserved.

Starting Oracle Enterprise Manager 11gDatabase Control ..... started.

 

Logs are generated in directory/u01/app/oracle/product/11.2.0/db_1/dbserver_sztech1/sysman/log

[oracle@dbserver emd]$

 

六、驗證

能夠看到,em能夠正常使用

相關文章
相關標籤/搜索