【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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值