EM12C 安裝及卸載 注意點整理,em12c卸載

來源:互聯網
上載者:User

EM12C 安裝及卸載 注意點整理,em12c卸載
版本:  em12c 12.1.0.4          OS :  redhat 5.7 x86_64bit (CentOS6.2,測試過,當時因glibc*.i686包安裝一直報錯,所以放棄了)

==>  em12c 安裝,就不說了,網上一大把,或者查看官方文檔:
==>這裡涉及一些參數配置:

Check the CBO stats gathering jobDisable the stats gathering job  1.Check the processes instance parameter value  The processes instance parameter needs to be set to at least 300.  2.Check the session_cached_cursors instance parameter value.  The session_cached_cursors instance parameter should be set to 300.  Any value between 200 and 500, inclusive, will be accepted. 3.Check the job_queue_processes instance parameter value.   The job_queue_processes instance parameter should be set to 20. 4.Check the shared_pool_size instance parameter value.   The shared_pool_size instance parameter should be set to   at least 600 megabytes or roughly one third of the sga_target size. 5. Check the redo log size.    The size of the EM database instance should be 300 megabytes or greater.    Generally, there should be 3 or more redo logs available of this size. 6. Ensure that the EM tablespace has at least one datafile set to autoextensible    Add at least one datafile with the autoextend attribute to the EM tablespace 7.Check the open_cursors instance parameter value.   The open_cursors instance parameter should be set between 300 and 400, inclusive. 8.Check the sga_target instance parameter value.   The sga_target instance parameter should be set to at least 2 gigabytes, and   roughly twice the size of the pga_aggregate_target setting. 9.Check for invalid objects in the EM repository   Compile all invalid objects in the EM repository

 

==> 如果之前你的db 安裝了EM 的話,那麼這條命令可以協助你:


[oracle@em12c ~]$ emca -deconfig dbcontrol db -repos drop -SYS_PWD password -SYSMAN_PWD  passwordSTARTED EMCA at Jul 24, 2014 10:13:13 AMEM Configuration Assistant, Version 11.2.0.3.0 ProductionCopyright (c) 2003, 2011, Oracle. All rights reserved.Enter the following information:Database SID: em12cListener port number: 1521----------------------------------------------------------------------WARNING : While repository is dropped the database will be put in quiesce mode.----------------------------------------------------------------------Do you wish to continue? [yes(Y)/no(N)]: YJul 24, 2014 10:13:22 AM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /dba/app/oracle/cfgtoollogs/emca/em12c/emca_2014_07_24_10_13_12.log.Jul 24, 2014 10:13:23 AM oracle.sysman.emcp.util.DBControlUtil stopOMSINFO: Stopping Database Control (this may take a while) ...Jul 24, 2014 10:13:46 AM oracle.sysman.emcp.EMReposConfig invokeINFO: Dropping the EM repository (this may take a while) ...Jul 24, 2014 10:15:57 AM oracle.sysman.emcp.EMReposConfig invokeINFO: Repository successfully droppedEnterprise Manager configuration completed successfullyFINISHED EMCA at Jul 24, 2014 10:16:00 AM


被監控伺服器,上關於sudo命令的設定:---/usr/local/etc/sudoers#
## Allow root to run any commands anywhereroot        ALL=(ALL)           ALLoracle     ALL=(ALL)           ALL      -->添加一行
#Defaults        requiretty                        -->注釋掉Defaults:oracle     !requiretty                 -->添加oracle## Refuse to run if unable to disable echo on the tty. This setting should also be# changed in order to be able to use sudo without a tty. See requiretty above.##Defaults     !visiblepw                           -->注釋掉Defaults     visiblepw                              -->添加



==>被監控伺服器,agent 卸載,其實EM12C 主伺服器,卸載方式同樣,涉及sysman,sysaux 下的一些資料表空間記得清楚)(一)卸載外掛程式eg:[oracle@dominic4 plugins]$ pwd 
/em12c/plugins
[oracle@dominic4 plugins]$ ls 
oracle.em.savf.discovery.plugin_12.1.0.2.0oracle.sysman.emas.discovery.plugin_12.1.0.6.0 
oracle.em.soav.discovery.plugin_12.1.0.4.0 oracle.sysman.oh.agent.plugin_12.1.0.4.0 
oracle.sysman.db.agent.plugin_12.1.0.6.0 oracle.sysman.oh.discovery.plugin_12.1.0.4.0 
oracle.sysman.db.discovery.plugin_12.1.0.6.0  oracle.sysman.xa.discovery.plugin_12.1.0.6.0

[oracle@dominic4 ~]$ /em12c/core/12.1.0.4.0/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/em12c/plugins/oracle.sysman.xa.discovery.plugin_12.1.0.6.0,/em12c/plugins/oracle.sysman.db.discovery.plugin_12.1.0.6.0,/em12c/plugins/oracle.sysman.db.agent.plugin_12.1.0.6.0}" -removeALLFiles -invPtrLoc /etc/oraInst.loc

----plugins 下的所有 oracle.* 都需要刪除。

(二) 卸載sbin
[oracle@dominic4 ~]$ /em12c/core/12.1.0.4.0/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/em12c/sbin}" -removeALLFiles -invPtrLoc /etc/oraInst.loc 
Starting Oracle Universal Installer... 

Checking swap space: must be greater than 500 MB. Actual 3498 MB Passed 
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-08-11_11-59-57AM. Please wait ...[oracle@dominic4 ~]$ Oracle Universal Installer, Version 11.1.0.12.0 Production 
Copyright (C) 1999, 2014, Oracle. All rights reserved. 

Starting deinstall 


Deinstall in progress (Monday, August 11, 2014 12:00:01 PM CST) 
............................................................... 100% Done. 

Deinstall successful 

End of install phases.(Monday, August 11, 2014 12:00:02 PM CST) 
End of deinstallations 
Please check '/dba/app/oraInventory/logs/silentInstall2014-08-11_11-59-57AM.log' for more details.
( 三)卸載 agent home [oracle@dominic4 ~]$ /em12c/core/12.1.0.4.0/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/em12c/core/12.1.0.4.0}" -removeALLFiles -invPtrLoc /etc/oraInst.loc 
Starting Oracle Universal Installer... 

Checking swap space: must be greater than 500 MB. Actual 3498 MB Passed 
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-08-11_12-03-20PM. Please wait ...[oracle@dominic4 ~]$ Oracle Universal Installer, Version 11.1.0.12.0 Production 
Copyright (C) 1999, 2014, Oracle. All rights reserved. 

Starting deinstall 


Deinstall in progress (Monday, August 11, 2014 12:03:23 PM CST) 
Configuration assistant "Agent Deinstall Assistant" succeeded 
............................................................... 100% Done. 

Deinstall successful
End of install phases.(Monday, August 11, 2014 12:04:18 PM CST)End of deinstallationsPlease check '/dba/app/oraInventory/logs/silentInstall2014-08-11_12-03-20PM.log' for more details. (四) 刪除目錄
rm -rf   /em12c/*  
history -c
怎找到電腦裡所有的軟體,我想整理一下是否安裝與卸載

用360軟體管家
 
安裝卸載過程留下大量垃圾怎清理掉

用360安全衛士
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.