天天看點

DBSNMP和SYSMAN使用者初始密碼及正确的修改方式

SYSMAN和DBSNMP跟涉及到Oracle的EM,是以跟其他的使用者修改密碼方式有所差別。

下面是這兩個使用者的預設密碼和作用說明

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

修改些列代碼中:

<Property NAME="UserName" VALUE="6f5848a4f53a2d0a" ENCRYPTED="TRUE"/>

<Property NAME="password" VALUE="829e1a25401de489" ENCRYPTED="TRUE"/>