【GC】Grid Control Agent完整刪除方法
當需要刪除Grid Control Agent的時候,往往會因為刪除不完整導致無法重新順利部署Agent的問題。
這裡給出Grid Control Agent的完整刪除方法。供大家參考。
1.確認Agent當前狀態
[oracle@secdb1 ~]$ cd /u01/app/oracle/agent/agent10g/bin
[oracle@secdb1 bin]$ ./emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 10.2.0.1.0
OMS Version : 10.2.0.1.0
Protocol Version : 10.2.0.0.0
Agent Home : /u01/app/oracle/agent/agent10g
Agent binaries : /u01/app/oracle/agent/agent10g
Agent Process ID : 7413
Parent Process ID : 7395
Agent URL :
Repository URL :
Started at : 2011-11-10 11:13:49
Started by user : oracle
Last Reload : 2011-11-11 00:37:06
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 134
Size of XML files pending upload(MB) : 6.09
Available disk space on upload filesystem : 76.00%
Last successful heartbeat to OMS : 2011-11-11 02:15:07
---------------------------------------------------------------
Agent is Running and Ready
2.停掉Agent
[oracle@secdb1 bin]$ ./emctl stop agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Stopping agent ... stopped.
3.刪除Agent對應的軟體
此處使用靜默方式完成Agent軟體刪除。
[oracle@secdb1 bin]$ cd /u01/app/oracle/agent/agent10g/oui/bin
[oracle@secdb1 bin]$ pwd
/u01/app/oracle/agent/agent10g/oui/bin
[oracle@secdb1 bin]$ ./runInstaller -silent -deinstall -removeallfiles -removeAllPatches REMOVE_HOMES="{/u01/app/oracle/agent/agent10g}"
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-11-11_02-20-26AM. Please wait ...[oracle@secdb1 bin]$ Oracle Universal Installer, Version 10.2.0.5.0 Production
Copyright (C) 1999, 2009, Oracle. All rights reserved.
Starting deinstall
Deinstall in progress (Friday, November 11, 2011 2:20:43 AM CST)
WARNING:The directory: /u01/app/oracle/agent/agent10g will be deleted after deinstall.
Click on "Yes" to continue.
Click on "No" to perform. deinstall without deleting the directory.
Click on "Cancel" to go back to "Inventory Dialog".
Configuration assistant "Agent Deinstall Assistant" succeeded
................................................................ 100% Done.
Deinstall successful
End of install phases.(Friday, November 11, 2011 2:22:01 AM CST)
End of deinstallations
Please check '/u01/app/oracle/oraInventory/logs/silentInstall2011-11-11_02-20-26AM.log' for more details.
4.刪除inventory.xml檔案中有關Agent的資訊
inventory.xml檔案存放在oraInventory目錄下的ContentsXML目錄中。
1)確認oraInventory資料夾存放位置的方法
/etc/oraInst.loc檔案中記錄了oraInventory資料夾的位置
[oracle@secdb1 agent]$ cat /etc/oraInst.loc
inventory_loc=/u01/app/oracle/oraInventory
inst_group=oinstall
2)刪除inventory.xml檔案中中NAME是agent10g的內容
[oracle@secdb1 ~]$ vi /u01/app/oracle/oraInventory/ContentsXML/inventory.xml
<!-- Copyright (c) 2009 Oracle Corporation. All rights Reserved -->
<!-- Do not modify the contents of this file by hand. -->
10.2.0.5.0
2.1.0.6.0
~
~
5.刪除agent目錄
[oracle@secdb1 oracle]$ rm -rf $ORACLE_BASE/agent?
6.小結
按照上述步驟便可以順利地刪除Grid Control Agent軟體,以便重新部署安裝Agent。
重點關注上述步驟中的第4步驟,這個步驟是最容易遺忘的地方,切記。
Good luck.
secooler
11.11.15
-- The End --
這裡給出Grid Control Agent的完整刪除方法。供大家參考。
1.確認Agent當前狀態
[oracle@secdb1 ~]$ cd /u01/app/oracle/agent/agent10g/bin
[oracle@secdb1 bin]$ ./emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 10.2.0.1.0
OMS Version : 10.2.0.1.0
Protocol Version : 10.2.0.0.0
Agent Home : /u01/app/oracle/agent/agent10g
Agent binaries : /u01/app/oracle/agent/agent10g
Agent Process ID : 7413
Parent Process ID : 7395
Agent URL :
Repository URL :
Started at : 2011-11-10 11:13:49
Started by user : oracle
Last Reload : 2011-11-11 00:37:06
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 134
Size of XML files pending upload(MB) : 6.09
Available disk space on upload filesystem : 76.00%
Last successful heartbeat to OMS : 2011-11-11 02:15:07
---------------------------------------------------------------
Agent is Running and Ready
2.停掉Agent
[oracle@secdb1 bin]$ ./emctl stop agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Stopping agent ... stopped.
3.刪除Agent對應的軟體
此處使用靜默方式完成Agent軟體刪除。
[oracle@secdb1 bin]$ cd /u01/app/oracle/agent/agent10g/oui/bin
[oracle@secdb1 bin]$ pwd
/u01/app/oracle/agent/agent10g/oui/bin
[oracle@secdb1 bin]$ ./runInstaller -silent -deinstall -removeallfiles -removeAllPatches REMOVE_HOMES="{/u01/app/oracle/agent/agent10g}"
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-11-11_02-20-26AM. Please wait ...[oracle@secdb1 bin]$ Oracle Universal Installer, Version 10.2.0.5.0 Production
Copyright (C) 1999, 2009, Oracle. All rights reserved.
Starting deinstall
Deinstall in progress (Friday, November 11, 2011 2:20:43 AM CST)
WARNING:The directory: /u01/app/oracle/agent/agent10g will be deleted after deinstall.
Click on "Yes" to continue.
Click on "No" to perform. deinstall without deleting the directory.
Click on "Cancel" to go back to "Inventory Dialog".
Configuration assistant "Agent Deinstall Assistant" succeeded
................................................................ 100% Done.
Deinstall successful
End of install phases.(Friday, November 11, 2011 2:22:01 AM CST)
End of deinstallations
Please check '/u01/app/oracle/oraInventory/logs/silentInstall2011-11-11_02-20-26AM.log' for more details.
4.刪除inventory.xml檔案中有關Agent的資訊
inventory.xml檔案存放在oraInventory目錄下的ContentsXML目錄中。
1)確認oraInventory資料夾存放位置的方法
/etc/oraInst.loc檔案中記錄了oraInventory資料夾的位置
[oracle@secdb1 agent]$ cat /etc/oraInst.loc
inventory_loc=/u01/app/oracle/oraInventory
inst_group=oinstall
2)刪除inventory.xml檔案中
[oracle@secdb1 ~]$ vi /u01/app/oracle/oraInventory/ContentsXML/inventory.xml
<!-- Copyright (c) 2009 Oracle Corporation. All rights Reserved -->
<!-- Do not modify the contents of this file by hand. -->
~
~
5.刪除agent目錄
[oracle@secdb1 oracle]$ rm -rf $ORACLE_BASE/agent?
6.小結
按照上述步驟便可以順利地刪除Grid Control Agent軟體,以便重新部署安裝Agent。
重點關注上述步驟中的第4步驟,這個步驟是最容易遺忘的地方,切記。
Good luck.
secooler
11.11.15
-- The End --
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-710722/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Deinstall the Enterprise Manager 13c Cloud Control AgentCloud
- 刪除google網頁快照方法Go網頁
- 陣列的方法-新增刪除陣列
- oracle刪除重資料方法Oracle
- windows.old可以刪除嗎?windows.old檔案的刪除方法Windows
- win10 如何刪除服務 win10刪除服務方法Win10
- win10系統如何刪除組_win10刪除組方法Win10
- python列表刪除專案的方法Python
- DOM節點刪除方法小結
- Win10如何刪除字型_win10刪除字型的兩種方法Win10
- win10如何刪除windows.old_win10刪除windows.old的方法Win10Windows
- win10 禁止刪除縮圖方法 win10如何禁止刪除縮圖Win10
- win10休眠檔案有必要刪除嗎 刪除休眠檔案的方法Win10
- Python列表刪除元素的方法有哪些?Python
- js中dom節點刪除remove方法JSREM
- 重構 001 - 刪除Java的Setter方法Java
- Windows 10刪除備份檔案方法Windows
- 幾種刪除Linux目錄的方法Linux
- Kendo UI:grid完成增刪改查(*)UI
- ag-grid api方法API
- Oracle 刪除千萬級資料量時,可以考慮以下方法來提高刪除效率Oracle
- 資料夾刪除不了怎麼辦?資料夾刪除不了的解決方法
- 如何刪除win10更新檔案_win10刪除更新檔案的方法Win10
- windows10更新助手怎麼刪除_windows10更新助手刪除操作方法Windows
- win10如何刪除智慧新聞_win10刪除智慧頭條的方法Win10
- win10 刪除管理員使用者方法 win10如何刪除管理員Win10
- php(js)批量刪除/單個刪除PHPJS
- Linux 中刪除目錄的多種方法Linux
- Python 中刪除列表元素的三種方法Python
- PHP從陣列中刪除元素的方法PHP陣列
- win10怎麼刪除更新檔案 win10刪除更新檔案的方法Win10
- win10怎麼刪除dll檔案_win10dll檔案刪除的方法Win10
- MySQL使用mysqldump+binlog完整恢復被刪除的資料庫(轉)MySql資料庫
- 工作293:調節刪除順序刪除
- 誤刪除資料了怎麼辦?小編交易誤刪除資料的恢復方法
- win10如何刪除隱藏軟體_win10刪除隱藏軟體的方法Win10
- Python優雅遍歷字典刪除元素的方法Python
- Linux如何刪除使用者組?方法有哪些?Linux
- Python字串刪除第一個字元常用的方法!Python字串字元