程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> SyBase數據庫 >> SyBase教程 >> 【GC】Grid Control Agent完整刪除方法

【GC】Grid Control Agent完整刪除方法

編輯:SyBase教程

【GC】Grid Control Agent完整刪除方法


當需要刪除Grid Control Agent的時候,往往會因為刪除不完整導致無法重新順利部署Agent的問題。
這裡給出Grid Control Agent的完整刪除方法。供大家參考。

1.確認Agent當前狀態
[oracle@secdb1 ~]cd/u01/app/oracle/agent/agent10g/bin[oracle@secdb1bin] ./emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.

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 : https://secdb1.localdomain:3872/emd/main/
Repository URL : https://secdb2.localdomain:1159/em/upload
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@secdb1bin] 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

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved