os: centos 7.6
db: oracle 19.3

开发环境做压测时报错 WARNING: too many parse errors,简单分析了下.

错误

2019-07-30T16:35:15.930590+08:00
PDB1(3):WARNING: too many parse errors, count=49360 SQL hash=0xa4a6bcc4
PDB1(3):PARSE ERROR: ospid=19135, error=12872 for statement:
2019-07-30T16:35:15.930755+08:00
PDB1(3):SELECT hopo.a_id, hopo.a_number, hopo.amount, hopo.currency, hopo.a_date, hopo.source_code, hopo.order_number, hopo.a_type_code, hopo.status, hopo.a_scene
PDB1(3):Additional information: hd=0x728db780 phd=0xaf348bc0 flg=0x110676 cisid=116 sid=116 ciuid=116 uid=116 sqlid=c74zdxqkadg64
PDB1(3):...Current username=peiyongbin
PDB1(3):...Application: java@node01 (TNS V1-V3) Action:2019-07-30T16:37:19.949643+08:00
PDB1(3):WARNING: too many parse errors, count=49460 SQL hash=0xa4a6bcc4
PDB1(3):PARSE ERROR: ospid=27728, error=12850 for statement:
2019-07-30T16:37:19.949781+08:00
PDB1(3):SELECT hopo.a_id, hopo.a_number, hopo.amount, hopo.currency, hopo.a_date, hopo.source_code, hopo.order_number, hopo.a_type_code, hopo.status, hopo.a_scene
PDB1(3):Additional information: hd=0x70a987a8 phd=0xaf348bc0 flg=0x110676 cisid=116 sid=116 ciuid=116 uid=116 sqlid=c74zdxqkadg64
PDB1(3):...Current username=peiyongbin
PDB1(3):...Application: java@node01 (TNS V1-V3) Action: 
$ oerr ora 12872
12872, 00000, "First slave parse gave different plan"
// *Cause: First hard parse on slave given QC-supplied environment and
//         parameters gave different plan from QC. Try again with outline.
// *Action: No external action. Internally used for outline-based reparse. $ oerr ora 12850
12850, 00000, "Could not allocate slaves on all specified instances: %s needed, %s allocated"
// *Cause: When executing a query on a gv$ fixed view, one or more
//         instances failed to allocate a slave to process query.
// *Action:Check trace output for instances on which slaves failed to start.
//         GV$ query can only proceed if slaves can be allocated on all
//         instances.

ora 12872

这是12.2的新特性,自动生成解析失败的信息写入db alert log, 即使没有在数据库启用event 10035, 以前版本可以通过启用10035 event分析解决失败信息写入alert log.
WARNING: too many parse errors 并不是每次解析都提示,默认是在同一SQL在60分钟内每出现100次就会提示一次worning到DB ALERT LOG.
对于这个阀值应该是有隐藏参数”_kks_parse_error_warning” 控制的。

可以忽略

SQL>  set lines 200;
set pages 200;
col inst_id format 99;
col con_id format 99;
col name for a35;
col description for a30;
col value for a10;selectx.inst_id,y.con_id,x.ksppinm  name,x.ksppdesc description,y.ksppstvl  value,y.ksppstdf  isdefault,decode(bitand(y.ksppstvf,7),1,'MODIFIED',4,'SYSTEM_MOD','FALSE')  ismod,decode(bitand(y.ksppstvf,2),2,'TRUE','FALSE')  isadj
from sys.x$ksppi x,sys.x$ksppcv y
where 1=1and x.inst_id = y.inst_idand x.indx = y.indxand x.ksppinm like '%parse_error%'
order by translate(x.ksppinm, ' _', ' '),x.inst_id,y.con_id
;
/INST_ID CON_ID NAME                   DESCRIPTION            VALUE      ISDEFAULT ISMOD      ISADJ
------- ------ ----------------------------------- ------------------------------ ---------- --------- ---------- -----1      1 _kks_cached_parse_errors       KKS cached parse errors    0      TRUE      FALSE      FALSE1      1 _kks_parse_error_warning       Parse error warning        100        TRUE      FALSE      FALSE

ora 12850

SQL> show parameter QUERY_REWRITE_ENABLED;NAME                     TYPE    VALUE
------------------------------------ ----------- ------------------------------
query_rewrite_enabled            string  TRUE
SELECT /*+ opt_param('query_rewrite_enabled', 'false') */alter session set "_optimizer_enhanced_join_elimination"=FALSE;
alter session set "_optimizer_multicol_join_elimination"= FALSE;
alter session set "_optimizer_join_elimination_enabled"=false;

参考:
‘WARNING: too many parse errors’ in the 12.2 Alert.log (文档 ID 2320935.1)

‘WARNING: too many parse errors PARSE ERROR: error=12872’ Messages in Alert Log Can Be ignored (文档 ID 2348380.1)

After Upgrade from 11.2.0.4 to 12.2.0.1, Application Processing Error ‘ORA-12850: COULD NOT ALLOCATE SLAVES ON ALL SPECIFIED INSTANCES: 2 NEEDED’ (文档 ID 2408314.1)

How To Diagnose ORA-12850 Could Not Allocate Slaves On All Specified Instances (文档 ID 1350377.1)

WARNING: too many parse errors相关推荐

  1. Warning: Failed to parse host xx.xx.com

    报错:Warning: Failed to parse host xx.xx.com 分析:Android Studio设置了代理,但是无法连接导致报错 解决: 1.File-->Setting ...

  2. Oracle PDB 启动报 Warning: PDB altered with errors. 状态显示受限(RESTRICTED)

    Oracle PDB 启动报 Warning: PDB altered with errors. 状态显示受限(RESTRICTED) startup 或  startup force 启动 PDB ...

  3. Template parse errors: The pipe 'translate' could not be found

    问题描述: 基于Ionic最新的super模板,创建的项目,在自己改造成懒加载机制后,原本正常的项目出现问题了,提示模板内部使用的翻译管道找不到,如图: 模板内部使用的翻译管道代码,我确定没有问题, ...

  4. 12C DELETE FROM wri$_adv_sqlt_rtn_planWHERE task_id = :tid AND exec_name = :execution_name

    转发自 惜分飞:http://www.xifenfei.com/tag/wri_adv_sqlt_rtn_plan 文章目录 数据库版本 alert 日志报错 情景再现 解决办法 近日遇到告警日志报错 ...

  5. vue中warning_使用vue的i18n 出现很多warning提示

    问题描述 使用vue的i18n 出现很多warning提示 Module parse failed: Unexpected token (1:10) You may need an appropria ...

  6. 在Server 2003上部署IIS+PHP+MySQL配置清单

    在Server 2003上部署IIS+PHP+MySQL I.安装Windows Server 2003 将光盘放入光驱中,设置BIOS,从CDROM引导加载安装程序,等待启动: 设置注册信息,名字和 ...

  7. zabbix源码安装实例

    环境 系统                 Centos7 zabbix版本      Zabbix 3.4.15 (revision 86739) zabbix源码安装 tar -zxvf zabb ...

  8. Angular HTML template的解析位置

    文件: compiler.umd.js path: turbo_modules/@angular/compiler@9.1.12/bundles: 函数名:TemplateParser.prototy ...

  9. angular面试题及答案_关于最流行的Angular问题的StackOverflow上的48个答案

    angular面试题及答案 by Shlomi Levi 通过Shlomi Levi 关于最流行的Angular问题的StackOverflow上的48个答案 (48 answers on Stack ...

最新文章

  1. linux 消息队列实例
  2. Git 合并两个不同的仓库
  3. Kafka设计解析(二):Kafka High Availability (上)-转
  4. java Gregorian,Java GregorianCalendar getTimeZone()用法及代码示例
  5. Python OpenCV人脸识别案例
  6. vue.js 前端开发常见问题
  7. ArrayBlockingQueue原理分析-put方法
  8. 怎样将计算机添加桌面快捷方式,Win10系统下如何将程序快捷方式添加到桌面上?【图文教程】...
  9. 重构第12天 分解依赖(Break Dependencies)
  10. mongodb存储数据_在MongoDB中存储分层数据
  11. 微服务基本环境的搭建
  12. linux驱动简单介绍
  13. LeetCode题 - 26 删除排序数组中的重复项 python实现
  14. [再学Python] - 7 - 文件
  15. Python连接DB2数据库
  16. 『杭电1982』Kaitou Kid - The Phantom Thief (1)
  17. 图像处理_ISP_坏点矫正
  18. neo4j配置远程连接
  19. KNN算法和Kernel KNN算法的区别
  20. nobody用户介绍

热门文章

  1. PHPmywind 调用方法
  2. 【渝粤题库】广东开放大学 风险投资 形成性考核
  3. 莱鸟学spss数据分析之第六章---描述性分析
  4. 每日总结(2021/12/15)
  5. 订单管理系统(OMS)搭建实战 - 低代码拖拽定制订单管理系统
  6. apple授权登录(服务端)
  7. C语言之对 0, ‘0‘ , \0 以及 “0“ 的理解
  8. SuperPoint论文笔记
  9. 【猿说VUE】Vue列表渲染
  10. c++ 11 多线程支持 (std::packaged_task)