Grid Control remove host and re-add host

Allen2312發表於2009-04-07

客戶購買了Grid Control,結果由於某些操作,發現有一個節點無法正確得到相關狀態,需要現場處理下!

我第一次到客戶現場,折騰了一天也沒什麼效果,最後就是把host給刪除了,還是費了好大勁,然後就回去看文件了,後來就有去折騰了一次還是沒有搞定,這個鬱悶!

廢話半天,第三次終於給搞定了,發現就是host沒有完全清除,在em database中還有資訊保留,清除,然後重新配置agent檔案,反覆重試兩次,搞定!

參考metalink 文件:454081.1

內容大體如下:

1. Please ensure that the agent is stopped.

2. Logon with sqlplus against the repository database as user sysman
and run following command:

exec mgmt_admin.cleanup_agent(':');


3. If this program are deleting anything end with submit

4. If the procedure find something to delete you can now start the agent again.

5. If this procedure doesn't find anything for delete

5.1 Edit the agent agent side edit the $ORACLE_HOME/sysman/config/emd.properties
Change the port number in:
EMD_URL=
to the next free port at this node

5.2 Save the emd.properties

5.3 Confirm that the Agent home $ORACLE_HOME/sysman/emd/targets.xml file has the new port number defined for the emd agent.

5.4 Start the agent.



The agent will be now added with the new port number.

It is strongly suggest always to use the procedure
exec mgmt_admin.cleanup_agent(':');
to remove entire host targets from the Grid Control.
This avoid that anything not deleted correctly
 
Grid control 功能挺不錯的,但是構架比較噁心,不易處理故障!有點黑盒的感覺!!!

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/122290/viewspace-586445/,如需轉載,請註明出處,否則將追究法律責任。

相關文章