【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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 安裝npm 解除安裝npm 安裝apidocNPMAPI
- Linux安裝解除安裝MySQLLinuxMySql
- Ubuntu解除安裝和安裝Ubuntu
- cocoapods安裝/解除安裝/使用
- JDK安裝和解除安裝JDK
- docker安裝及解除安裝Docker
- Mac Redis安裝與解除安裝MacRedis
- Linux 解除安裝openjdk 安裝oraclejdkLinuxJDKOracle
- debian安裝和解除安裝vmware
- JDK的安裝與解除安裝JDK
- linux 解除安裝jdk和安裝LinuxJDK
- [雲原生]Docker - 安裝&解除安裝Docker
- Ubuntu安裝和解除安裝mongodbUbuntuMongoDB
- 12.2.0.1.0 Grid RU安裝
- 12.2.0.1 Grid RUR 安裝
- 12.2 Grid RUR 安裝
- window下安裝並使用nvm(含解除安裝node、解除安裝nvm、全域性安裝npm)NPM
- air安裝win10怎麼解除安裝_air安裝win10如何解除安裝AIWin10
- Centos Docker安裝、升級、解除安裝CentOSDocker
- Linux-Ubuntu-mysql-安裝&解除安裝LinuxUbuntuMySql
- Centos7.9安裝解除安裝DockerCentOSDocker
- Python pip的安裝及解除安裝Python
- vs2015解除安裝和安裝
- oracle 19c 安裝、解除安裝Oracle
- Mysql安裝解除安裝與啟停MySql
- docker 解除安裝Docker
- 解除安裝 PythonPython
- WSL解除安裝
- debian軟體解除安裝|deb包解除安裝|dpkg命令
- rpm包安裝升級與解除安裝
- Ubuntu解除安裝及安裝node和npmUbuntuNPM
- 解除安裝windows安裝ubuntu的完全指南WindowsUbuntu
- clickhouse學習(1)-clickhouse安裝解除安裝
- Redis(windows)解除安裝RedisWindows
- docker的解除安裝Docker
- VMware Workstation解除安裝
- kangle 解除安裝命令
- 解除安裝 Microsoft EdgeROS
- linux解除安裝anocondaLinux