该脚本耗时约为3分钟左右。
SQL> select comp_name,status,version fromdba_server_registry COMP_NAME STATUS VERSION ------------------------------------------------------ ------------------------------ OWB VALID 11.2.0.3.0 Oracle ApplicationExpress VALID 3.2.1.00.12 Oracle EnterpriseManager VALID 11.2.0.4.0 OLAP Catalog VALID 11.2.0.4.0 Spatial VALID 11.2.0.4.0 Oracle Multimedia VALID 11.2.0.4.0 Oracle XML Database VALID 11.2.0.4.0 Oracle Text VALID 11.2.0.4.0 Oracle ExpressionFilter VALID 11.2.0.4.0 Oracle Rules Manager VALID 11.2.0.4.0 Oracle WorkspaceManager VALID 11.2.0.4.0 Oracle Database CatalogViews VALID 11.2.0.4.0 Oracle Database Packages andTypes VALID 11.2.0.4.0 JServer JAVA VirtualMachine VALID 11.2.0.4.0 Oracle XDK VALID 11.2.0.4.0 Oracle Database JavaPackages VALID 11.2.0.4.0 OLAP Analytic Workspace VALID 11.2.0.4.0 Oracle OLAP API VALID 11.2.0.4.0 18 rows selected.
14、检查无效对象:
SQL> select * fromdba_objects where status !='VALID'; no rows selected
15、升级成功后删除原来的目录,通过DBCA重建EM
[oracle@db01 /]$ rm -rf/DBSoft/Product/11.2.3/ 手工创建EM资料库: ####emca -repos drop [oracle@db01 /]$ emca -reposdrop STARTED EMCA at Oct 4, 20146:11:41 AM EM Configuration Assistant,Version 11.2.0.3.0 Production Copyright (c) 2003, 2011,Oracle. All rights reserved. Enter the followinginformation: Database SID: woo Listener port number: 1521 Password for SYS user: Password for SYSMANuser: ---------------------------------------------------------------------- WARNING : While repositoryis dropped the database will be put in quiesce mode. ---------------------------------------------------------------------- Do you wish to continue?[yes(Y)/no(N)]: y Oct 4, 2014 6:11:53 AMoracle.sysman.emcp.EMConfig perform INFO: This operation isbeing logged at /DBSoft/cfgtoollogs/