【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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【GC】OEM Grid Control 11gR1部署之Agent部分GC
- 【GC】使用 agentDownload.linux完成Grid Control Agent的快速部署安裝GCLinux
- OCM實驗-grid control agent安裝
- Oracle EM agent刪除步驟Oracle
- 刪除grid-在windows server 08上的方法WindowsServer
- gc/Agent passwd resetGC
- 【GC】OEL4.8部署安裝 Grid Control OMSGC
- 在EM Cloud Control 12c中使用emcli命令列刪除obsolete agent targetCloud命令列
- 手動刪除 oracle 的 GRIDOracle
- Grid Control一些術語GC、OMS、OMR、OMA的概念GC
- 【GC】OEM Grid Control 11gR1部署之OMS部分GC
- 【GC】How to Install Grid Control Agents on RAC Clusters? [ID 378037.1]GC
- Oracle 10g Grid Control agent發現新建立的資料庫Oracle 10g資料庫
- 【GC】OEL4.8解除安裝重新部署安裝Grid Control OMSGC
- (轉)linux下完整刪除oracleLinuxOracle
- 【GC】OEM Grid Control 11gR1部署之WebLogic Server部分GCWebServer
- [筆記]Windows下完整的刪除Oracle筆記WindowsOracle
- Step by step install grid control agent on linux 5.3 x86_64遠端安裝Linux
- 安裝Grid Control
- GoldenGate , Grid ControlGo
- Step by step install grid control agent on linux 5.3 x86_64遠端安裝(二)Linux
- 安裝10.2.0.4 Grid Control之前需要安裝 10.2.0.3.0 Grid Control
- Grid Control的安裝
- oracle grid control etc/hostsOracle
- 【GC】Grid Control 11gR1安裝過程中遭遇ERROR: invalid entry CRCGCError
- 【GC】未建立或丟失密碼檔案導致 Grid Control OMS無法正常安裝GC密碼
- oracle 快速刪除大批量資料方法(全部刪除,條件刪除,刪除大量重複記錄)Oracle
- 批次刪除資料方法
- asm例項刪除方法ASM
- 淺談zabbix和Grid control
- oracle 快速刪除大批量資料方法(全部刪除,條件刪除,刪除大量重複記錄) 轉Oracle
- 【轉】oracle 快速刪除大批量資料方法(全部刪除,條件刪除,刪除大量重複記錄)Oracle
- Agent to OMS Communi Fails if Agent is 'Blocked' in 10.2.0.5 Grid Cons_799618.1AIBloC996
- Install GC Agent 11.1.0.1 fails at Config Agent File secure.log_1273470.1GCAI
- Grid Control服務端看不到Agent相關資訊,同時OMS狀態為unknown處理服務端
- RAC 安裝失敗後的刪除(完整版)
- 刪除google網頁快照方法Go網頁
- oracle刪除重資料方法Oracle