db2存储过程中调用sysproc.admin_cmd('reorg table xx.tb ')时报错

存储过程中要做reorg操作,查过sysproc.admin_cmd里面是可以试用reorg的,但是执行后报错,SQL0880NSAVEPOINT"SYSPSM_XX_P... 存储过程中要做reorg操作,查过sysproc.admin_cmd里面是可以试用reorg的,但是执行后报错,SQL0880N SAVEPOINT "SYSPSM_XX_P0595301_5" does not exist or is invalid in this context .SQLsTATE=3B001
db2版本是8.2.9 按理是可以调用sysproc.admin_cmd的,里面用runstats命令都可以的,就是rerog不行
展开
 我来答
Iam_Singer
2013-08-22 · 超过66用户采纳过TA的回答
知道小有建树答主
回答量:154
采纳率:0%
帮助的人:42万
展开全部
帮一下包试试?
db2 terminate
db2 CONNECT TO dbname user USERID using PASSWORD
db2 BIND path\db2schema.bnd BLOCKING ALL GRANT PUBLIC SQLERROR CONTINUE
db2 BIND path\@db2ubind.lst BLOCKING ALL GRANT PUBLIC ACTION ADD
db2 BIND path\@db2cli.lst BLOCKING ALL GRANT PUBLIC ACTION ADD
db2 terminate

where dbname represents the name of a database to which the files should be bound, and where path is the full path name of the directory where the bind files are located, such as INSTHOME\sqllib\bnd where INSTHOME represents the home directory of the DB2 instance. db2ubind.lst and db2cli.lst contain lists of required bind files used by DB2 database products. Packages that are already bound will return an SQL0719N error. This is expected.
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式