互联网服务

语句报错,请助

[root@laf ~]# su - db2inst1
[db2inst1@laf ~]$ db2start
07/26/2013 06:57:57     0   0   SQL1063N  DB2START processing was successful.
SQL1063N  DB2START processing was successful.
[db2inst1@laf ~]$ db2 connect to testdb     Database Connection Information
Database server        = DB2/LINUX 9.5.0
SQL authorization ID   = DB2INST1
Local database alias   = TESTDB
[db2inst1@laf ~]$ db2 "select stmt_text from table(mon_get_pkg_cache_stmt(NULL,NULL,NULL,-2)) as T where rows_read <> 0 order by rows_returned/rows_read asc fetch first 10 rows only"
SQL0206N  "NULL" is not valid in the context where it is used.  SQLSTATE=42703
[db2inst1@laf ~]$
当我执行蓝色部分的语句时,老是报红色部分的错误,什么原因导致的呢,向大家求助
参与3

2同行回答

jayciededejayciedede技术经理安图特(北京)科技有限公司
想用这个函数,升级吧;P显示全部
想用这个函数,升级吧;P收起
互联网服务 · 2013-07-28
浏览345
drdb2drdb2系统工程师se
mon_get_pkg_cache_stmt was introduced in 9.7显示全部
mon_get_pkg_cache_stmt was introduced in 9.7收起
互联网服务 · 2013-07-26
浏览346

提问者

db2_worldlove
数据库管理员zcgx

问题状态

  • 发布时间:2013-07-26
  • 关注会员:1 人
  • 问题浏览:1842
  • 最近回答:2013-07-28
  • X社区推广