zoukankan      html  css  js  c++  java
  • 【DB2】SQL0437W Performance for this complex query may be sub-optimal

    参考链接

    Technote (troubleshooting)


    Problem(Abstract)

    Error

    [IBM][CLI Driver][DB2/6000] SQL0437W Performance for this complex query
    may be sub-optimal.
    Reason Code "1". SQLSTATE=01602
    EXPENG-E-TYP1, The operation pack. is invalid for data type ,binary.

    Resolving the problem

    The following lists general causes of this error and their solutions were obtained from AS400.

    http://www.csa.ru/dblab/DB2/db2m0/sql0400.htm
    SQL0437W Performance of this complex query may be sub-optimal. Reason code: "<reason-code>". 
    Cause: The statement may achieve sub-optimal performance since the complexity of the query requires resources that are not 
    available or optimization boundary conditions were encountered. The following is a list of reason codes: 
    1The join enumeration method was altered due to memory constraints 
    2The join enumeration method was altered due to query complexity 
    3Optimizer cost underflow 
    4Optimizer cost overflow 
    5Query optimization class was too low 
    6Optimizer ignored an invalid statistic 
    The statement will be processed. 
    Action: One or more of the following: 
    Increase the size of the statement heap (stmtheap) in the database configuration file. (Reason code 1) 
    Break the statement up into less complex SQL statements. (Reason codes 1,2,3,4) 
    Ensure predicates do not over-specify the answer set (Reason code 3) 
    Change the current query optimization class to a lower value (Reason codes 1,2,4) 
    Issue Runstats for the tables involved in the query (Reason codes 3,4) 
    Change the current query optimization class to a higher value (Reason code 5) 
    Reissue RUNSTATS for both the tables involved in the query and their corresponding indexes, i.e. use the AND INDEXES ALL 
    clause so that table and index statistics are consistent (Reason code 6) 
    sqlcode: +437 
    sqlstate: 01602

     
  • 相关阅读:
    OpenFileDialog 类的ShowDialog() 错误的解决
    DataTable.Select()使用心得
    postgis 自相交数据检测 修复
    postgresql 添加列主键自增
    postgresql 死锁处理
    linux 安装中文字体(生成图片中文乱码解决)
    Dockerfile 部署jar
    SpringBoot学习总结文章
    怎样在Linux服务器上部署自己的项目?(超详细)
    关于连接Redis时Could not get a resource from the pool问题
  • 原文地址:https://www.cnblogs.com/DBA-Ivan/p/9972933.html
Copyright © 2011-2022 走看看