oracle 11g em重建报唯一约束错误解决方法

所属分类: 数据库 / oracle 阅读数: 64
收藏 0 赞 0 分享
今天在手工配置Oracle11g的EM时总是报如下错误:
WARNING:ORA-00001:uniqueconstraint(SYSMAN.PARAMETERS_PRIMARY_KEY)violated
ORA-06512:at"SYSMAN.EMD_LOADER",line4986
ORA-06512:atline1
以Metalink上也没有找到解决办法,以下是我的解决过程:

1、数据库版本
SQL>select*fromv$version;
BANNER
------------------------------------------------------------------------------------------------------------------------------
OracleDatabase11gEnterpriseEditionRelease11.2.0.3.0-64bitProduction
PL/SQLRelease11.2.0.3.0-Production
CORE11.2.0.3.0Production
TNSforLinux:Version11.2.0.3.0-Production
NLSRTLVersion11.2.0.3.0–Production

2、配置EM时的步骤
[oracle@Core-Nbu-Rollback~]$emca-configdbcontroldb-reposrecreate
STARTEDEMCAatNov23,20123:52:08PM
EMConfigurationAssistant,Version11.2.0.3.0Production
Copyright(c)2003,2011,Oracle.Allrightsreserved.
Enterthefollowinginformation:
DatabaseSID:test
DatabaseControlisalreadyconfiguredforthedatabasetest
YouhavechosentoconfigureDatabaseControlformanagingthedatabasetest
Thiswillremovetheexistingconfigurationandthedefaultsettingsandperform.afreshconfiguration
----------------------------------------------------------------------
WARNING:Whilerepositoryisdroppedthedatabasewillbeputinquiescemode.
----------------------------------------------------------------------
Doyouwishtocontinue?[yes(Y)/no(N)]:Y
ListenerORACLE_HOME[/soft/ora11g/11202]:
PasswordforSYSuser:
PasswordforDBSNMPuser:
PasswordforSYSMANuser:
Emailaddressfornotifications(optional):
OutgoingMail(SMTP)serverfornotifications(optional):
-----------------------------------------------------------------
Youhavespecifiedthefollowingsettings
DatabaseORACLE_HOME................/soft/ora11g/11202
Localhostname................Core-Nbu-Rollback
ListenerORACLE_HOME................/soft/ora11g/11202
Listenerportnumber................1521
DatabaseSID................test
Emailaddressfornotifications...............
OutgoingMail(SMTP)serverfornotifications...............
-----------------------------------------------------------------
----------------------------------------------------------------------
WARNING:Whilerepositoryisdroppedthedatabasewillbeputinquiescemode.
----------------------------------------------------------------------
Doyouwishtocontinue?[yes(Y)/no(N)]:Y
Nov23,20123:52:33PMoracle.sysman.emcp.EMConfigperform
INFO:Thisoperationisbeingloggedat/soft/ora11g/cfgtoollogs/emca/test/emca_2012_11_23_15_52_07.log.
Nov23,20123:52:35PMoracle.sysman.emcp.util.DBControlUtilstopOMS
INFO:StoppingDatabaseControl(thismaytakeawhile)...
Nov23,20123:52:56PMoracle.sysman.emcp.EMReposConfiginvoke
INFO:DroppingtheEMrepository(thismaytakeawhile)...
Nov23,20123:54:56PMoracle.sysman.emcp.EMReposConfiginvoke
INFO:Repositorysuccessfullydropped
Nov23,20123:54:57PMoracle.sysman.emcp.EMReposConfigcreateRepository
INFO:CreatingtheEMrepository(thismaytakeawhile)...
Nov23,20123:57:30PMoracle.sysman.emcp.EMReposConfigcreateRepository
WARNING:ORA-00001:uniqueconstraint(SYSMAN.PARAMETERS_PRIMARY_KEY)violated
ORA-06512:at"SYSMAN.EMD_LOADER",line4986
ORA-06512:atline1
Nov23,20123:57:30PMoracle.sysman.emcp.EMReposConfiginvoke
SEVERE:Errorcreatingtherepository
Nov23,20123:57:30PMoracle.sysman.emcp.EMReposConfiginvoke
INFO:Refertothelogfileat/soft/ora11g/cfgtoollogs/emca/test/emca_repos_create_<date>.logformoredetails.
Nov23,20123:57:30PMoracle.sysman.emcp.EMConfigperform
SEVERE:Errorcreatingtherepository
Refertothelogfileat/soft/ora11g/cfgtoollogs/emca/test/emca_2012_11_23_15_52_07.logformoredetails.
Couldnotcompletetheconfiguration.Refertothelogfileat/soft/ora11g/cfgtoollogs/emca/test/emca_2012_11_23_15_52_07.logformoredetails.
更多精彩内容其他人还在看

ORACLE中如何找到未提交事务的SQL语句详解

这篇文章主要给大家介绍了关于ORACLE中如何找到未提交事务的SQL语句,文中通过示例代码介绍的非常详细,对大家学习或者使用ORACLE具有一定的参考学习价值,需要的朋友们下面来一起学习学习吧
收藏 0 赞 0 分享

Oracle分组函数之ROLLUP的基本用法

这篇文章主要给大家介绍了关于Oracle分组函数之ROLLUP的基本用法,文中通过示例代码介绍的非常详细,对大家学习或者使用Oracle数据库具有一定的参考学习价值,需要的朋友们下面来一起学习学习吧
收藏 0 赞 0 分享

Oracle表空间设置和管理浅析

这篇文章主要给大家介绍了关于Oracle表空间设置和管理的相关资料,文中通过示例代码介绍的非常详细,对大家学习或者使用Oracle具有一定的参考学习价值,需要的朋友们下面来一起学习学习吧
收藏 0 赞 0 分享

Oracle使用MyBatis中RowBounds实现分页查询功能

这篇文章主要介绍了Oracle使用MyBatis中RowBounds实现分页查询 ,本文通过实例代码给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下
收藏 0 赞 0 分享

Oracle自定义脱敏函数的代码详解

这篇文章主要介绍了Oracle自定义脱敏函数的实例代码,代码简单易懂,非常不错,具有一定的参考借鉴价值 ,需要的朋友可以参考下
收藏 0 赞 0 分享

oracle查询截至到当前日期月份所在年份的所有月份

这篇文章主要介绍了oracle查询截至到当前日期月份所在年份的所有月份,本文通过代码给大家介绍的非常详细,具有一定的参考借鉴价值 ,需要的朋友可以参考下
收藏 0 赞 0 分享

oracle数据库导入.dmp脚本的sql 语句

这篇文章主要介绍了oracle数据库导入.dmp脚本的sql语句,非常不错,具有一定的参考借鉴价值 ,需要的朋友可以参考下
收藏 0 赞 0 分享

oracle通过1条语句插入多个值的方法示例

这篇文章主要给大家介绍了关于oracle通过1条语句插入多个值的方法,文中通过示例代码介绍的非常详细,对大家学习或者使用oracle具有一定的参考学习价值,需要的朋友们下面来一起学习学习吧
收藏 0 赞 0 分享

oracle导入导出表时因一个分号引发的惨案

这篇文章主要给大家介绍了关于oracle导入导出表时因一个分号引发的惨案,文中通过示例代码介绍的非常详细,对大家学习或者使用oracle具有一定的参考学习价值,需要的朋友们下面来一起学习学习吧
收藏 0 赞 0 分享

Oracle创建设置查询权限用户的方法

这篇文章主要给大家介绍了关于Oracle创建设置查询权限用户的相关资料,文中通过示例代码介绍的非常详细,对大家学习或者使用Oracle具有一定的参考学习价值,需要的朋友们下面来一起学习学习吧
收藏 0 赞 0 分享
查看更多