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

     
  • 相关阅读:
    sharepoint2010无法连接到配置数据库。
    多选框加和单选框一样的控制,只能选一个
    Windows Server 2008 网站访问PHP响应慢的解决方法
    Windows下的PHP安装文件线程安全和非线程安全的区别
    Apache+PHP 环境上传文件配置
    出现 HTTP Error 503. The service is unavailable 错误
    IIS7 上传 下载文件大小限制的设置
    php 错误信息配置
    新篇章
    面向对象
  • 原文地址:https://www.cnblogs.com/DBA-Ivan/p/9972933.html
Copyright © 2011-2022 走看看