expdp Ora-00600 expcnt mismatch BUG 修复

环境: 19c 单机 + ADG

expdp 导出报错

Trace 文件报错 Ora-00600

临时解决办法

1、删除不匹配的对象(对exp基表操作,避免异常建议提前备份)
sql 复制代码
SQL> With b as (select count(*) cnt,objn,snapshot_id from sys.exp_stat$ es group by objn,snapshot_id)select * from sys.exp_obj$ a, b 
  2  where a.objn=b.objn and a.snapshot_id=b.snapshot_id and a.EXP_CNT<>b.CNT;

      OBJN SNAPSHOT_ID    EXP_CNT        CNT       OBJN SNAPSHOT_ID
---------- ----------- ---------- ---------- ---------- -----------
     96444           1        652      66188      96444           1

-- manually update exp_stat$, exp_obj$

SQL> delete from sys.exp_stat$ b where b.snapshot_id = 1 and b.objn = 96444 ;

66188 rows deleted.

SQL> With b as (
  2  select count(*) cnt,objn,snapshot_id from sys.exp_stat$ es group by
  3  objn,snapshot_id)
  4  select * from sys.exp_obj$ a, b where a.objn=b.objn and
  5  a.snapshot_id=b.snapshot_id
  6  and a.EXP_CNT<>b.CNT;

no rows selected

SQL> update sys.exp_obj$ a set a.EXP_CNT=0 where a.SNAPSHOT_ID= 1 and a.objn = 96444;

1 row updated.

SQL> commit;

Commit complete.

SQL> With b as (
  2  select count(*) cnt,objn,snapshot_id from sys.exp_stat$ es group by
  3  objn,snapshot_id)
  4  select * from sys.exp_obj$ a, b where a.objn=b.objn and
  5  a.snapshot_id=b.snapshot_id
  6  and a.EXP_CNT<>b.CNT;

no rows selected

修复办法

1、检查列补丁是否升级

28681153 31143146

未打上:
利用停机维护时间,安装补丁31143146并使其生效
sql 复制代码
ALTER SYSTEM SET "_FIX_CONTROL"='31143146:ON' scope=both;
已打上,检查是否生效:
sql 复制代码
--检查spfile
select name,value from V$SYSTEM_PARAMETER2 where name like '_fix_control';

--检查memeory pfile
select a.ksppinm "Parameter",
c.ksppstvl "Instance Value"
from x$ksppi a, x$ksppcv b, x$ksppsv c
where a.indx = b.indx
and a.indx = c.indx
and a.ksppinm in ('_fix_control')
order by 1;

--使特定修复措施在数据库中生效
alter system set "_fix_control"='31143146:on' scope=both;

参考文档

ORA-00600 [qosdExpStatRead: expcnt mismatch] Still Happens Even After Applied both Patch 28681153 and Patch 31143146 (Doc ID 2803002.1)
Document 2803002.1.pdf

相关推荐
weixin_307779132 分钟前
Amazon VPC中Web应用无法连接数据库的安全组配置问题分析与修复
网络·数据库·安全·云计算·aws
q***42053 分钟前
开启mysql的binlog日志
数据库·mysql
q***385138 分钟前
Spring boot启动原理及相关组件
数据库·spring boot·后端
明雨-开发1 小时前
近期发生一个因为渲染导致的bug
bug
你不是我我1 小时前
【Java 开发日记】SQL 语句左连接右连接内连接如何使用,区别是什么?
java·javascript·数据库
JELEE.1 小时前
Django中如何重写save()方法
数据库·django
程序员小远1 小时前
软件测试之bug分析定位技巧
自动化测试·软件测试·python·测试工具·职场和发展·测试用例·bug
SuperSpinach1 小时前
mysql 报错Authentication method ‘caching_sha2_password‘ is not supported.
数据库·mysql
R.lin1 小时前
MySQL 性能优化最佳实践
数据库·mysql·性能优化
北i2 小时前
TiDB 关联子查询去关联优化实战案例与原理深度解析
java·数据库·sql·tidb