客户反应在扩容表空间时获取表空间容器时报错
sql0440n no authorized routine named “mon_get_container” of type “function” having compatible arguments was found.
他们说这次是用实例用户操作,之前都是用管理员用户。发来的截图能看到表空间列表,我觉得既然能看到表空间就应该能操作的,不应该是这个用户的问题。
百度直接根据报错查询相关资的结果是料乱七八糟…
谷歌也只能查询出Receive SQL0440N error when using “MON_GET_MEMORY_SET” & MON_GET_MEMORY_POOL functions on DB2 V9.7 FP5
然后结合mon_get_container函数说明感觉有点像是db2版本过低的问题。问客户他说今天操作的db2是9.1版本的,10.1版本的就没有问题。。。

这里贴一下mon_get_container函数说明
MON_GET_CONTAINER table function - Get table space container metrics
DB2 Version 9.7 for Linux, UNIX, and Windows
Syntax
Read syntax diagramSkip visual syntax diagram

-MON_GET_CONTAINER–(--tbsp_name–,--member–)---------------><

The schema is SYSPROC.
Table function parameters
tbsp_name
An input argument of type VARCHAR(128) that specifies a valid table space name in the same database as the one currently connected to when calling this function. If the argument is null or an empty string, metrics are returned for all containers in all table spaces in the database.
member
An input argument of type INTEGER that specifies a valid member in the same instance as the currently connected database when calling this function. Specify -1 for the current database member, or -2 for all database members. If the null value is specified, -1 is set implicitly.

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐