【GC】OEL4.8解除安裝重新部署安裝Grid Control OMS
如果GC的OMS使用過程中出現極端問題,或者打算將OMS遷移到其他伺服器上,我們就需要考慮重新部署OMS。
現將這個操作過程記錄一下,供參考(此方法不需要刪除被監控資料庫伺服器上的Agent軟體,但Agent需要單獨配置)。
1.停止AGENT和OMS服務
1)停止repository database所在伺服器的agent
[oracle@ocmdb1 bin]$ $AGENT_HOME/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.
2)停止GC OMS伺服器上的agent和oms
[oracle@ocmdb2 ~]$ $AGENT_HOME/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.
[oracle@ocmdb2 ~]$ $OMS_HOME/bin/emctl stop oms -all
Oracle Enterprise Manager 10g Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Oracle Management Server is Down.
2.刪除GC OMS所在主機中所有與GC相關的內容
1)需要在oracle使用者下刪除的內容
su - oracle
rm -rf /u01/app/oraInventory
rm -rf /u01/app/oracle/*
rm -rf /tmp/*
2)需要在root下刪除的內容
su - root
rm -f /etc/oratab
rm -f /usr/local/bin/*
3)重新啟動作業系統
reboot
3.GC repository database中需要完成的刪除動作
1)刪除SYSMAN和MGMT_VIEW使用者
此步驟是為了防止在OMS配置過程中因資料庫物件存在導致報錯。
SQL> drop user SYSMAN cascade;
User dropped.
SQL> drop user MGMT_VIEW cascade;
User dropped.
2)刪除表空間
[oracle@ocmdb1 ~]$ export ORACLE_SID=ocmgc
[oracle@ocmdb1 ~]$ sqlplus / as sysdba
SQL> select tablespace_name from dba_tablespaces where tablespace_name like 'MGMT%';
TABLESPACE_NAME
------------------------------
MGMT_ECM_DEPOT_TS
MGMT_TABLESPACE
SQL> drop tablespace MGMT_ECM_DEPOT_TS including contents and datafiles;
Tablespace dropped.
SQL> drop tablespace MGMT_TABLESPACE including contents and datafiles;
Tablespace dropped.
4.重新安裝GC的OMS
請參考《【GC】OEL4.8部署安裝 Grid Control OMS》(http://space.itpub.net/519536/viewspace-667751)重新進行安裝。
5.小結
按照這個過程我們便完成了GC OMS的重新安裝。但是,注意此時GC OMS還不能夠正常的監控到原Agent的資訊,需要做對原Agent做進一步的調整。關於配置Agent應對OMS伺服器變化的調整下回分解。
Good luck.
secooler
10.07.11
-- The End --
現將這個操作過程記錄一下,供參考(此方法不需要刪除被監控資料庫伺服器上的Agent軟體,但Agent需要單獨配置)。
1.停止AGENT和OMS服務
1)停止repository database所在伺服器的agent
[oracle@ocmdb1 bin]$ $AGENT_HOME/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.
2)停止GC OMS伺服器上的agent和oms
[oracle@ocmdb2 ~]$ $AGENT_HOME/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.
[oracle@ocmdb2 ~]$ $OMS_HOME/bin/emctl stop oms -all
Oracle Enterprise Manager 10g Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Oracle Management Server is Down.
2.刪除GC OMS所在主機中所有與GC相關的內容
1)需要在oracle使用者下刪除的內容
su - oracle
rm -rf /u01/app/oraInventory
rm -rf /u01/app/oracle/*
rm -rf /tmp/*
2)需要在root下刪除的內容
su - root
rm -f /etc/oratab
rm -f /usr/local/bin/*
3)重新啟動作業系統
reboot
3.GC repository database中需要完成的刪除動作
1)刪除SYSMAN和MGMT_VIEW使用者
此步驟是為了防止在OMS配置過程中因資料庫物件存在導致報錯。
SQL> drop user SYSMAN cascade;
User dropped.
SQL> drop user MGMT_VIEW cascade;
User dropped.
2)刪除表空間
[oracle@ocmdb1 ~]$ export ORACLE_SID=ocmgc
[oracle@ocmdb1 ~]$ sqlplus / as sysdba
SQL> select tablespace_name from dba_tablespaces where tablespace_name like 'MGMT%';
TABLESPACE_NAME
------------------------------
MGMT_ECM_DEPOT_TS
MGMT_TABLESPACE
SQL> drop tablespace MGMT_ECM_DEPOT_TS including contents and datafiles;
Tablespace dropped.
SQL> drop tablespace MGMT_TABLESPACE including contents and datafiles;
Tablespace dropped.
4.重新安裝GC的OMS
請參考《【GC】OEL4.8部署安裝 Grid Control OMS》(http://space.itpub.net/519536/viewspace-667751)重新進行安裝。
5.小結
按照這個過程我們便完成了GC OMS的重新安裝。但是,注意此時GC OMS還不能夠正常的監控到原Agent的資訊,需要做對原Agent做進一步的調整。關於配置Agent應對OMS伺服器變化的調整下回分解。
Good luck.
secooler
10.07.11
-- The End --
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-667808/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【GC】OEL4.8部署安裝 Grid Control OMSGC
- 如何解除安裝Oracle Grid ControlOracle
- 【GC】未建立或丟失密碼檔案導致 Grid Control OMS無法正常安裝GC密碼
- 安裝Grid Control
- zt_如何解除安裝oracle grid controlOracle
- 安裝10.2.0.4 Grid Control之前需要安裝 10.2.0.3.0 Grid Control
- Oracle grid infrastructure 解除安裝OracleASTStruct
- Grid Control的安裝
- oracle10g GC agent安裝與解除安裝OracleGC
- grid 的解除安裝(RAC 11.2.0.3)
- Oracle 12c OEM Cloud Control OMS安裝OracleCloud
- OCM實驗-grid control安裝
- 解除安裝 11gR2 Grid ClusterWare
- OCM實驗-grid control agent安裝
- 【GC】使用 agentDownload.linux完成Grid Control Agent的快速部署安裝GCLinux
- docker安裝及解除安裝Docker
- Ubuntu解除安裝和安裝Ubuntu
- Oracle 安裝與解除安裝Oracle
- solaris mysql 安裝 解除安裝MySql
- Oracle 11g解除安裝grid和databaseOracleDatabase
- 安裝npm 解除安裝npm 安裝apidocNPMAPI
- cocoapods安裝/解除安裝/使用
- Mac Redis安裝與解除安裝MacRedis
- Ubuntu安裝和解除安裝mongodbUbuntuMongoDB
- [雲原生]Docker - 安裝&解除安裝Docker
- JDK的安裝與解除安裝JDK
- ORACLE TEXT安裝與解除安裝Oracle
- Grid Control一些術語GC、OMS、OMR、OMA的概念GC
- mysql安裝------RPM包安裝及解除安裝MySql
- grid安裝執行root.sh時Timed out waiting for the CRS stack to start - 解除安裝gridAI
- air安裝win10怎麼解除安裝_air安裝win10如何解除安裝AIWin10
- 解除安裝RAC
- 解除安裝CRS
- JDK 解除安裝JDK
- oracle解除安裝Oracle
- ORACLE 解除安裝Oracle
- docker 解除安裝Docker
- 安裝HomeBrew提示已安裝並無法解除安裝