• Oracle11g重建EM 报ORA-20001: SYSMAN already exists


    日志:

    Apr 4, 2015 10:08:09 PM oracle.sysman.emcp.EMReposConfig createRepository
    CONFIG: ORA-20001: SYSMAN already exists..
    ORA-06512: at line 17
    
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-20001: SYSMAN already exists..
    ORA-06512: at line 17
    
            at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1650)
            at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:1000)
            at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:339)
            at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:380)
            at oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:510)
            at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:228)
            at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:157)
            at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
            at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)
            at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)
            at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
            at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)
    Apr 4, 2015 10:08:09 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error creating the repository
    Apr 4, 2015 10:08:09 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_repos_create_<date>.log for more details.
    Apr 4, 2015 10:08:09 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2015_04_04_22_07_40.log for more details.
    Apr 4, 2015 10:08:09 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace: 
    oracle.sysman.emcp.exception.EMConfigException: Error creating the repository
            at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:240)
            at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:157)
            at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
            at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)
            at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)
            at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
            at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)
    Apr 4, 2015 10:08:09 PM oracle.sysman.emcp.EMConfig restoreOuiLoc
    CONFIG: Restoring oracle.installer.oui_loc to /u01/app/oracle/product/11.2.0.1/db_1/oui

    处理方法:

    1、使用emca -deconfig dbcontrol db命令删除配置
    2、使用emca -repos drop删除repository
    3、使用emca -config dbcontrol db -repos create 

    如果还报其它错,则按如下步骤操作:

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

                      SQL> drop user sysman cascade;
                      SQL> drop role MGMT_USER;
                      SQL> drop user MGMT_VIEW cascade;
                      SQL> drop public synonym MGMT_TARGET_BLACKOUTS;
                      SQL> drop public synonym SETEMVIEWUSERCONTEXT;
     

    [oracle@rhel201 ~]$ emca -config dbcontrol db -repos create  (创建资料库和dbcontrol)

    ***********************************************************

    ……
    Enterprise Manager configuration completed successfully
    FINISHED EMCA at Apr 4, 2015 10:25:41 PM

  • 相关阅读:
    交换机主要参数详解
    Linksys E 刷Tomato shibby
    802.11n 连接的建议设置是什么?
    Wi-Fi 协议和数率?
    windows xp 不支持Wap2加密方式
    电脑稳定性检测软件
    看懂影片标题,各种电影视频格式标题的含义
    【生活】生活点滴记录
    【自动化测试】关于UI自动化的疑问(记录ing)
    【学习】代码的编码规范
  • 原文地址:https://www.cnblogs.com/rusking/p/4394025.html
Copyright © 2020-2023  润新知