问题描述:
调用 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