Oracle11g 重建EM

1、Logon SQLPLUS as user SYS or SYSTEM, and drop the sysman account and management objects:

drop user SYSMAN cascade;

drop role MGMT_USER;
                            
drop public synonym MGMT_BSLN;                                                  
drop public synonym MGMT$ALERT_ANNOTATIONS;                                     
drop public synonym MGMT$ALERT_CURRENT;                                         
drop public synonym MGMT$ALERT_HISTORY;                                         
drop public synonym MGMT$ALERT_NOTIF_LOG;                                       
drop public synonym MGMT$APPLIED_PATCHES;                                       
drop public synonym MGMT$APPLIED_PATCHSETS;                                     
drop public synonym MGMT$APPL_PATCH_AND_PATCHSET;                               
drop public synonym MGMT$AUDIT_LOG;                                             
drop public synonym MGMT$AVAILABILITY_CURRENT;                                  
drop public synonym MGMT$AVAILABILITY_HISTORY;                                  

                             
drop public synonym MGMT$BLACKOUTS;                                             
drop public synonym MGMT$BLACKOUT_HISTORY;                                      
drop public synonym MGMT$CLUSTER_INTERCONNECTS;                                 
drop public synonym MGMT$CPF_ADVISORY_INFO;                                     
drop public synonym MGMT$CPF_HOMES_INFO;                                        
drop public synonym MGMT$CPF_PATCH_DATA;                                        
drop public synonym MGMT$CPF_PATCH_INFO;                                        
drop public synonym MGMT$CSA_CLIENTS;                                           
drop public synonym MGMT$CSA_CLIENT_RULE_VIOLS;                                 
drop public synonym MGMT$CSA_COLLECTIONS;                                       
drop public synonym MGMT$CSA_FAILED;                                            

                           
drop public synonym MGMT$CSA_HOST_COOKIES;                                      
drop public synonym MGMT$CSA_HOST_CPUS;                                         
drop public synonym MGMT$CSA_HOST_CUSTOM;                                       
drop public synonym MGMT$CSA_HOST_IOCARDS;                                      
drop public synonym MGMT$CSA_HOST_NICS;                                         
drop public synonym MGMT$CSA_HOST_OS_COMPONENTS;                                
drop public synonym MGMT$CSA_HOST_OS_FILESYSTEMS;                               
drop public synonym MGMT$CSA_HOST_OS_PROPERTIES;                                
drop public synonym MGMT$CSA_HOST_RULES;                                        
drop public synonym MGMT$CSA_HOST_SW;                                           
drop public synonym MGMT$CSM_DOMAIN_DAILY;                                      

                          
drop public synonym MGMT$CSM_DOMAIN_DIST_DAILY;                                 
drop public synonym MGMT$CSM_DOMAIN_DIST_HOURLY;                                
drop public synonym MGMT$CSM_DOMAIN_HOURLY;                                     
drop public synonym MGMT$CSM_IP_DAILY;                                          
drop public synonym MGMT$CSM_IP_DIST_DAILY;                                     
drop public synonym MGMT$CSM_IP_DIST_HOURLY;                                    
drop public synonym MGMT$CSM_IP_HOURLY;                                         
drop public synonym MGMT$CSM_METRIC_DETAILS;                                    
drop public synonym MGMT$CSM_MT_DSR_DAILY;                                      
drop public synonym MGMT$CSM_MT_DSR_DIST_DAILY;                                 
drop public synonym MGMT$CSM_MT_DSR_DIST_HOURLY;                                

                          
drop public synonym MGMT$CSM_MT_DSR_HOURLY;                                     
drop public synonym MGMT$CSM_MT_IP_DAILY;                                       
drop public synonym MGMT$CSM_MT_IP_DIST_DAILY;                                  
drop public synonym MGMT$CSM_MT_IP_DIST_HOURLY;                                 
drop public synonym MGMT$CSM_MT_IP_HOURLY;                                      
drop public synonym MGMT$CSM_MT_METRIC_DETAILS;                                 
drop public synonym MGMT$CSM_MT_URL_DAILY;                                      
drop public synonym MGMT$CSM_MT_URL_DIST_DAILY;                                 
drop public synonym MGMT$CSM_MT_URL_DIST_HOURLY;                                
drop public synonym MGMT$CSM_MT_URL_HOURLY;                                     
drop public synonym MGMT$CSM_REGION;                                            

                            
drop public synonym MGMT$CSM_REGION_DAILY;                                      
drop public synonym MGMT$CSM_REGION_DIST_DAILY;                                 
drop public synonym MGMT$CSM_REGION_DIST_HOURLY;                                
drop public synonym MGMT$CSM_REGION_HOURLY;                                     
drop public synonym MGMT$CSM_SUBNET_DAILY;                                      
drop public synonym MGMT$CSM_SUBNET_DIST_DAILY;                                 
drop public synonym MGMT$CSM_SUBNET_DIST_HOURLY;                                
drop public synonym MGMT$CSM_SUBNET_HOURLY;                                     
drop public synonym MGMT$CSM_URL_DAILY;                                         
drop public synonym MGMT$CSM_URL_DIST_DAILY;                                    
drop public synonym MGMT$CSM_URL_DIST_HOURLY;                                   

                           
drop public synonym MGMT$CSM_URL_HOURLY;                                        
drop public synonym MGMT$CSM_WATCHLIST;                                         
drop public synonym MGMT$CS_CONFIG_STANDARDS;                                   
drop public synonym MGMT$CS_EVAL_SUMMARY_RULE;                                  
drop public synonym MGMT$CS_EVAL_SUMMARY_STANDARD;                              
drop public synonym MGMT$DB_CONTROLFILES;                                       
drop public synonym MGMT$DB_CONTROLFILES_ALL;                                   
drop public synonym MGMT$DB_DATAFILES;                                          
drop public synonym MGMT$DB_DATAFILES_ALL;                                      
drop public synonym MGMT$DB_DBNINSTANCEINFO;                                    
drop public synonym MGMT$DB_DBNINSTANCEINFO_ALL;                                

                           
drop public synonym MGMT$DB_FEATUREUSAGE;                                       
drop public synonym MGMT$DB_INIT_PARAMS;                                        
drop public synonym MGMT$DB_INIT_PARAMS_ALL;                                    
drop public synonym MGMT$DB_LICENSE;                                            
drop public synonym MGMT$DB_LICENSE_ALL;                                        
drop public synonym MGMT$DB_OPTIONS;                                            
drop public synonym MGMT$DB_OPTIONS_ALL;                                        
drop public synonym MGMT$DB_REDOLOGS;                                           
drop public synonym MGMT$DB_REDOLOGS_ALL;                                       
drop public synonym MGMT$DB_ROLLBACK_SEGS;                                      
drop public synonym MGMT$DB_ROLLBACK_SEGS_ALL;                                  

                          
drop public synonym MGMT$DB_SGA;                                                
drop public synonym MGMT$DB_SGA_ALL;                                            
drop public synonym MGMT$DB_TABLESPACES;                                        
drop public synonym MGMT$DB_TABLESPACES_ALL;                                    
drop public synonym MGMT$DELTA_COMPONENTS;                                      
drop public synonym MGMT$DELTA_COMPONENT_DETAILS;                               
drop public synonym MGMT$DELTA_FS_MOUNT;                                        
drop public synonym MGMT$DELTA_HARDWARE;                                        
drop public synonym MGMT$DELTA_HOST_CONFIG;                                     
drop public synonym MGMT$DELTA_INIT;                                            
drop public synonym MGMT$DELTA_ONEOFF_PATCHES;                                  

                            
drop public synonym MGMT$DELTA_ORACLE_HOME;                                     
drop public synonym MGMT$DELTA_OS_COMPONENTS;                                   
drop public synonym MGMT$DELTA_OS_COMP_DETAILS;                                 
drop public synonym MGMT$DELTA_OS_KERNEL_PARAMS;                                
drop public synonym MGMT$DELTA_PATCHSETS;                                       
drop public synonym MGMT$DELTA_PATCHSET_DETAILS;                                
drop public synonym MGMT$DELTA_VENDOR_SW;                                       
drop public synonym MGMT$DELTA_VIEW;                                            
drop public synonym MGMT$DELTA_VIEW_DETAILS;                                    
drop public synonym MGMT$E2E_1DAY;                                              
drop public synonym MGMT$E2E_HOURLY;                                            

                          
drop public synonym MGMT$E2E_RAW;                                               
drop public synonym MGMT$ECM_CONFIG_HISTORY;                                    
drop public synonym MGMT$ECM_CONFIG_HISTORY_KEY1;                               
drop public synonym MGMT$ECM_CONFIG_HISTORY_KEY2;                               
drop public synonym MGMT$ECM_CONFIG_HISTORY_KEY3;                               
drop public synonym MGMT$ECM_CONFIG_HISTORY_KEY4;                               
drop public synonym MGMT$ECM_CONFIG_HISTORY_KEY5;                               
drop public synonym MGMT$ECM_CONFIG_HISTORY_KEY6;                               
drop public synonym MGMT$ECM_CURRENT_SNAPSHOTS;                                 
drop public synonym MGMT$ECM_VISIBLE_SNAPSHOTS;                                 
drop public synonym MGMT$EM_HOMES_PLATFORM;                                     

                            
drop public synonym MGMT$ESA_ALL_PRIVS_REPORT;                                  
drop public synonym MGMT$ESA_ANY_DICT_REPORT;                                   
drop public synonym MGMT$ESA_ANY_PRIV_REPORT;                                   
drop public synonym MGMT$ESA_AUDIT_SYSTEM_REPORT;                               
drop public synonym MGMT$ESA_BECOME_USER_REPORT;                                
drop public synonym MGMT$ESA_CATALOG_REPORT;                                    
drop public synonym MGMT$ESA_CONN_PRIV_REPORT;                                  
drop public synonym MGMT$ESA_CREATE_PRIV_REPORT;                                
drop public synonym MGMT$ESA_DBA_GROUP_REPORT;                                  
drop public synonym MGMT$ESA_DBA_ROLE_REPORT;                                   
drop public synonym MGMT$ESA_DIRECT_PRIV_REPORT;                                

                           
drop public synonym MGMT$ESA_EXMPT_ACCESS_REPORT;                               
drop public synonym MGMT$ESA_KEY_OBJECTS_REPORT;                                
drop public synonym MGMT$ESA_OH_OWNERSHIP_REPORT;                               
drop public synonym MGMT$ESA_OH_PERMISSION_REPORT;                              
drop public synonym MGMT$ESA_POWER_PRIV_REPORT;                                 
drop public synonym MGMT$ESA_PUB_PRIV_REPORT;                                   
drop public synonym MGMT$ESA_SYS_PUB_PKG_REPORT;                                
drop public synonym MGMT$ESA_TABSP_OWNERS_REPORT;                               
drop public synonym MGMT$ESA_TRC_AUD_PERM_REPORT;                               
drop public synonym MGMT$ESA_TRC_AUD_PERM_REP_NT;                               
drop public synonym MGMT$ESA_WITH_ADMIN_REPORT;                                 

                            
drop public synonym MGMT$ESA_WITH_GRANT_REPORT;                                 
drop public synonym MGMT$GROUP_DERIVED_MEMBERSHIPS;                             
drop public synonym MGMT$GROUP_FLAT_MEMBERSHIPS;                                
drop public synonym MGMT$GROUP_MEMBERS;                                         
drop public synonym MGMT$GRP_METRICS_DAILY;                                     
drop public synonym MGMT$GRP_METRICS_HOURLY;                                    
drop public synonym MGMT$GRP_METRICS_RAW;                                       
drop public synonym MGMT$HA_BACKUP;                                             
drop public synonym MGMT$HA_FILES;                                              
drop public synonym MGMT$HA_FILES_ALL;                                          
drop public synonym MGMT$HA_INFO;                                               
                            
drop public synonym MGMT$HA_INFO_ALL;                                           
drop public synonym MGMT$HA_INIT_PARAMS;                                        
drop public synonym MGMT$HA_INIT_PARAMS_ALL;                                    
drop public synonym MGMT$HA_MTTR;                                               
drop public synonym MGMT$HA_RMAN_CONFIG;                                        
drop public synonym MGMT$HA_RMAN_CONFIG_ALL;                                    
drop public synonym MGMT$HOMES_AFFECTED;                                        
drop public synonym MGMT$HOSTPATCH_GROUPS;                                      
drop public synonym MGMT$HOSTPATCH_GRP_COMPL_HIST;                              
drop public synonym MGMT$HOSTPATCH_HOSTS;                                       
drop public synonym MGMT$HOSTPATCH_HOST_COMPL;                                  
                            
drop public synonym MGMT$HW_NIC;                                                
drop public synonym MGMT$INTERFACE_STATS;                                       
drop public synonym MGMT$JOBS;                                                  
drop public synonym MGMT$JOB_ANNOTATIONS;                                       
drop public synonym MGMT$JOB_EXECUTION_HISTORY;                                 
drop public synonym MGMT$JOB_NOTIFICATION_LOG;                                  
drop public synonym MGMT$JOB_STEP_HISTORY;                                      
drop public synonym MGMT$JOB_TARGETS;                                           
drop public synonym MGMT$MESSAGES;                                              
drop public synonym MGMT$METRIC_CATEGORIES;                                     
drop public synonym MGMT$METRIC_COLLECTION;                                     
                            
drop public synonym MGMT$METRIC_CURRENT;                                        
drop public synonym MGMT$METRIC_DAILY;                                          
drop public synonym MGMT$METRIC_DETAILS;                                        
drop public synonym MGMT$METRIC_ERROR_CURRENT;                                  
drop public synonym MGMT$METRIC_ERROR_HISTORY;                                  
drop public synonym MGMT$METRIC_HOURLY;                                         
drop public synonym MGMT$MISSING_TARGETS;                                       
drop public synonym MGMT$MISSING_TARGETS_IN_GROUPS;                             
drop public synonym MGMT$ORACLE_SW_ENT_INSTALL;                                 
drop public synonym MGMT$ORACLE_SW_ENT_TARGETS;                                 
drop public synonym MGMT$ORACLE_SW_GRP_INSTALL;                                 

                            
drop public synonym MGMT$ORACLE_SW_GRP_TARGETS;                                 
drop public synonym MGMT$OS_COMPONENTS;                                         
drop public synonym MGMT$OS_FS_MOUNT;                                           
drop public synonym MGMT$OS_HW_SUMMARY;                                         
drop public synonym MGMT$OS_KERNEL_PARAMS;                                      
drop public synonym MGMT$OS_PATCHES;                                            
drop public synonym MGMT$OS_PROPERTIES;                                         
drop public synonym MGMT$OS_SUMMARY;                                            
drop public synonym MGMT$PATCH_ADVISORIES;                                      
drop public synonym MGMT$POLICIES;                                              
drop public synonym MGMT$POLICY_PARAMETERS;                                     

                            
drop public synonym MGMT$POLICY_VIOLATION_CONTEXT;                              
drop public synonym MGMT$POLICY_VIOLATION_CTXT;                                 
drop public synonym MGMT$POLICY_VIOLATION_CURRENT;                              
drop public synonym MGMT$POLICY_VIOLATION_HISTORY;                              
drop public synonym MGMT$POLICY_VIOL_ANNOTATIONS;                               
drop public synonym MGMT$POLICY_VIOL_NOTIF_LOG;                                 
drop public synonym MGMT$RACDB_INTERCONNECTS;                                   
drop public synonym MGMT$SOFTWARE_COMPONENTS;                                   
drop public synonym MGMT$SOFTWARE_COMPONENT_ONEOFF;                             
drop public synonym MGMT$SOFTWARE_COMP_PATCHSET;                                
drop public synonym MGMT$SOFTWARE_DEPENDENCIES;                                 
                            
drop public synonym MGMT$SOFTWARE_HOMES;                                        
drop public synonym MGMT$SOFTWARE_HOME_PROPERTIES;                              
drop public synonym MGMT$SOFTWARE_ONEOFF_PATCHES;                               
drop public synonym MGMT$SOFTWARE_OTHERS;                                       
drop public synonym MGMT$SOFTWARE_PATCHES_IN_HOMES;                             
drop public synonym MGMT$SOFTWARE_PATCHSETS;                                    
drop public synonym MGMT$STEPS;                                                 
drop public synonym MGMT$STEP_GROUPS;                                           
drop public synonym MGMT$STEP_METRICS_DAILY;                                    
drop public synonym MGMT$STEP_METRICS_HOURLY;                                   
drop public synonym MGMT$STEP_METRICS_RAW;                                      
                           
drop public synonym MGMT$STORAGE_REPORT_DATA;                                   
drop public synonym MGMT$STORAGE_REPORT_DISK;                                   
drop public synonym MGMT$STORAGE_REPORT_ISSUES;                                 
drop public synonym MGMT$STORAGE_REPORT_KEYS;                                   
drop public synonym MGMT$STORAGE_REPORT_LOCALFS;                                
drop public synonym MGMT$STORAGE_REPORT_NFS;                                    
drop public synonym MGMT$STORAGE_REPORT_PATHS;                                  
drop public synonym MGMT$STORAGE_REPORT_VOLUME;                                 
drop public synonym MGMT$TARGET;                                                
drop public synonym MGMT$TARGET_ASSOCIATIONS;                                   
drop public synonym MGMT$TARGET_COMPONENTS;                                     
                            
drop public synonym MGMT$TARGET_COMPOSITE;                                      
drop public synonym MGMT$TARGET_FLAT_MEMBERS;                                   
drop public synonym MGMT$TARGET_MEMBERS;                                        
drop public synonym MGMT$TARGET_METRIC_COLLECTIONS;                             
drop public synonym MGMT$TARGET_METRIC_SETTINGS;                                
drop public synonym MGMT$TARGET_POLICIES;                                       
drop public synonym MGMT$TARGET_POLICY_EVAL_SUMM;                               
drop public synonym MGMT$TARGET_POLICY_SETTINGS;                                
drop public synonym MGMT$TARGET_PROPERTIES;                                     
drop public synonym MGMT$TARGET_TYPE;                                           
drop public synonym MGMT$TARGET_TYPE_DEF;                                       
                             
drop public synonym MGMT$TARGET_TYPE_PROPERTIES;                                
drop public synonym MGMT$TEMPLATES;                                             
drop public synonym MGMT$TEMPLATE_METRICCOLLECTION;                             
drop public synonym MGMT$TEMPLATE_METRIC_SETTINGS;                              
drop public synonym MGMT$TEMPLATE_POLICY_SETTINGS;                              
drop public synonym MGMT$TXN_PERF_DAY;                                          
drop public synonym MGMT$TXN_PERF_HOUR;                                         
drop public synonym MGMT$TXN_PERF_RAW;                                          
drop public synonym MGMT_AVAILABILITY;                                          
drop public synonym MGMT_CURRENT_AVAILABILITY;                                  
drop public synonym MGMT_GUID_ARRAY;                                            
                            
drop public synonym MGMT_GUID_OBJ;                                              
drop public synonym MGMT_METRICS;                                               
drop public synonym MGMT_METRICS_1DAY;                                          
drop public synonym MGMT_PAF$APPLICATIONS;                                      
drop public synonym MGMT_PAF$INSTANCES;                                         
drop public synonym MGMT_PAF$PROCEDURES;                                        
drop public synonym MGMT_PAF$STATES;                                            
drop public synonym MGMT_PAF_JOBS;                                              
drop public synonym MGMT_PAF_PROCS_LATEST;                                      
drop public synonym MGMT_SEVERITY_ARRAY;                                        
drop public synonym MGMT_SEVERITY_OBJ;                                          
                            
drop public synonym MGMT_TARGET_BLACKOUTS;                                      
drop public synonym MGMT_TARGET_MEMBERSHIPS;                                    
drop public synonym MGMT_TARGET_PROPERTIES;                                     
drop public synonym MGMT_TYPE_PROPERTIES;                                       
drop public synonym MGMT_USER;                                                  
drop public synonym MGMT_VIEW_UTIL;
drop public synonym SMP_EMD_AVAIL_OBJ;                                          
drop public synonym SMP_EMD_DELETE_REC_ARRAY;                                   
drop public synonym SMP_EMD_INTEGER_ARRAY;                                      
drop public synonym SMP_EMD_INTEGER_ARRAY_ARRAY;                                
drop public synonym SMP_EMD_NVPAIR;                                             
drop public synonym SMP_EMD_NVPAIR_ARRAY;                                       
drop public synonym SMP_EMD_STRING_ARRAY;                                       
drop public synonym SMP_EMD_STRING_ARRAY_ARRAY;                                 
drop public synonym SMP_EMD_TARGET_OBJ;                                         
drop public synonym SMP_EMD_TARGET_OBJ_ARRAY;
drop public synonym EMD_MNTR;
drop public synonym ECM_UTIL;

2、emca -repos create

EMCA 开始于 2016-3-3 9:22:46
EM Configuration Assistant, 11.2.0.0.2 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。

输入以下信息:
数据库 SID: ORCL
监听程序端口号: 1521
SYS 用户的口令:
SYSMAN 用户的口令:

是否继续? [是(Y)/否(N)]: y
2016-3-3 9:22:59 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 C:\app\huchen0907\cfgtoollogs\emca\orcl\emca_2016_03_03_09_22_46.log。
2016-3-3 9:23:00 oracle.sysman.emcp.EMReposConfig createRepository
信息: 正在创建 EM 资料档案库 (此操作可能需要一段时间)...
2016-3-3 9:27:38 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功创建资料档案库
已成功完成 Enterprise Manager 的配置
EMCA 结束于 2016-3-3 9:27:38

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值