升级11g重复执行catupgrd.sql脚本,引起大量ORA-00001错误

Posted wenzhongyan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了升级11g重复执行catupgrd.sql脚本,引起大量ORA-00001错误相关的知识,希望对你有一定的参考价值。

Re-running the catupgrd.sql script caused many ORA-00001 errors similar to below:

ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated
ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated
ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated
ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated
ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated
ORA-00001: unique constraint (SYS.I_TABLE_PRIVILEGE_MAP) violated
ORA-00001: unique constraint (SYS.I_TABLE_PRIVILEGE_MAP) violated
ORA-00001: unique constraint (SYS.I_STMT_AUDIT_OPTION_MAP) violated
ORA-00001: unique constraint (SYS.I_STMT_AUDIT_OPTION_MAP) violated
ORA-00001: unique constraint (SYS.I_STMT_AUDIT_OPTION_MAP) violated


原因是由于bug引起 Bug 5501515 TST&PERF VIOLATED SOME TABLE'S UNIQUE CONSTRAINT WHILE UPGRADING TO 11G
Bug 8834797 APPSST GSI 11G UNIQUE CONSTRAINT VIOLATED WHILE RUNNING CATUPGRD

这个错误可以忽略,不影响正常库使用,也可以执行下dbmsutil.sql和prvtutil.plb

Unique constraint errors are expected and acceptable on re-run of catupgrd.sql or utlu111s.sql. These ORA-1 errors can be safely ignored and should not impact the upgrade process in anyway.
If still having issues with DBMS_SESSION then request  run dbmsutil.sql prvtutil.plb SYS

以上是关于升级11g重复执行catupgrd.sql脚本,引起大量ORA-00001错误的主要内容,如果未能解决你的问题,请参考以下文章

用于 oracle 11g 的 PL/SQL 中的嵌入式脚本 [重复]

Rman_异地跨平台跨版本的恢复总结及案例

oracle11g中有执行语句和执行脚本,有啥区别?

linux下oracle 11g怎么执行脚本生成hr用户名

请高人指点安装ORACLE 11G RAC最后在两节点执行 root.sh脚本时报错解决方法,如解决高分回报,感激不尽

Linux下oracle11g安装所需要软件包的检测与安装