首页 > 其他分享 >执行explain plan语句时报错ora-12838

执行explain plan语句时报错ora-12838

时间:2023-01-17 21:31:08浏览次数:46  
标签:insert hr explain 20230117 plan new 12838

问题描述:执行explain plan语句时报错ora-12838,如下所示:
HR@orcl150> insert /*+APPEND PARALLEL*/ into t_hr_20230117_new (id,time) select * from t_hr_20230117;

86396 rows created.

HR@orcl150> explain plan for insert /*+APPEND PARALLEL*/ into t_hr_20230117_new (id,time) select * from t_hr_20230117;
explain plan for insert /*+APPEND PARALLEL*/ into t_hr_20230117_new (id,time) select * from t_hr_20230117
*
ERROR at line 1:
ORA-12838: cannot read/modify an object after modifying it in parallel

异常原因:
在执行explain plan前的insert语句中用到并行模式插入数据到t_hr_20230117_new表,紧接着该表有用到下一个并行模式的语句里,此种情况需要先提交.
解决过程:
HR@orcl150> commit;

Commit complete.

HR@orcl150> explain plan for insert /*+APPEND PARALLEL*/ into t_hr_20230117_new (id,time) select * from t_hr_20230117;

Explained.

说明:如上所示,成功执行explain plan语句.


标签:insert,hr,explain,20230117,plan,new,12838
From: https://blog.51cto.com/u_12991611/6017836

相关文章

  • 揭开华为云CodeArts TestPlan启发式测试设计神秘面纱!
    摘要:质量是产品的生死线。本文分享自华为云社区《​​揭开华为云CodeArtsTestPlan启发式测试设计神秘面纱!​​》,作者:华为云PaaS服务小智。2019年12月20日,是美国波音公司新......
  • 揭开华为云CodeArts TestPlan启发式测试设计神秘面纱!
    摘要:质量是产品的生死线。本文分享自华为云社区《揭开华为云CodeArtsTestPlan启发式测试设计神秘面纱!》,作者:华为云PaaS服务小智。2019年12月20日,是美国波音公司新一代......
  • 关于SmartPlant
    SmartPlant是鹰图公司(Intergraph)的化工•电力•海事部门(PP&M)下的一系列工程设计软件,包括:文档管理平台兼数据存储转化平台SmartplantFoundation绘制智能PID的Smartpl......
  • Mysql:explain
    explainmysql提供了一种方式,目的是为了让我们知道sql的执行顺序、索引使用情况、执行效率的情况tabletable是展示执行计划过程中,会使用到的表。执行explain出现的每条......
  • QSAN A Quantum-probability based Signed Attention Network for Explainable False
    一、摘要在社交媒体上的虚假信息检测具有挑战性,因为它通常需要烦冗的证据收集,但又缺乏可用的比较信息。从用户评论中挖掘出的线索作为群体智慧,可能对这项任务有相当大的好......
  • 2019, Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Locali
    AbstractGradient-weightedClassActivationMapping,usesthegradientsofanytargetconceptflowingintothefinalconvolutionallayertoprodeceacoarselo......
  • dremio PhysicalPlanReader 简单说明
    dremio在经过sql解析,sql转换,优化器,物理执行计划,会包含一个基于jackson序列化的格式的执行计划信息(整体与drill是类似的)提供的能力注册自定义的jackson序列化处理模块......
  • 为测试管理正名,华为云CodeArts TestPlan的守护之道
    摘要:华为云CodeArtsTestPlan既有公有云版本,也有下沉到私有云的版本。本文分享自华为云社区《​​为测试管理正名,华为云CodeArtsTestPlan的守护之道​​》,作者:云报。2023年......
  • AZ-500 Lab-configure a lock for the app service plan
    由于微软Azure平台界面一直都在变,所以通过考试的关键,是真正理解lab题要表达的意思,不要死记硬背。SIMULATION-Youneedtopreventadministratorsfromperformingacciden......
  • mysql性能优化explain了解
    总结索引的设计原则:1.**最适合**索引的列是出现在**WHERE子句**和连接子句中的列。2.索引列的基数越大(取值多、重复值少),索引的效果就越好。3.使用**前缀索引**可以......