DB2调用 get_dbsize_info的时候,报错SQL0443N和SQL0572N:

来源:互联网 发布:程序员第一天上班想哭 编辑:程序博客网 时间:2024/06/05 15:51

问题描述:

调用 get_dbsize_info的时候,报错SQL0443N和SQL0572N:
$ db2 "call get_dbsize_info(?,?,?,0)"
SQL0443N  Routine "*IZE_INFO" (specific name "") has returned an error
SQLSTATE with diagnostic text "SQL0572 Token:NULLID.STADMH07".

解决办法:

SQL0572N  Package "<pkgname>" is inoperative.

Explanation: 

The package "<pkgname>" is marked as inoperative and must be explicitly
rebound (without specifying RESOLVE CONSERVATIVE) before it can be used.
This package cannot be used because one or more user-defined functions
that it depends upon have been dropped.

User response: 

 Explicitly rebind the named package using either the REBIND (without
specifying RESOLVE CONSERVATIVE) or the BIND command.

在这里,重新绑定一下报错中的package即可:

db2 rebind package NULLID.STADMH07
0 0