db2advis执行报错

今天对一个很大的sql文件执行db2advis:

db2advis -d asbdm -i JMS6531.ddl  -m IM > advis_result.txt 报错:

No catalog node table space name has been specified on the command line. Using default

Using user id as default schema name. Use -n option to specify schema


打开输出文件advis_result.tx :

execution started at timestamp 2015-12-17-20.50.18.724761

found [1] SQL statements from the input file

Could not drop the local catalog tables

Could not create the local catalog tables

0 solutions were evaluated by the advisor

exiting with error code [-159]


请问这是什么原因?该怎么处理呢? 谢谢!

参与7

3同行回答

db2haodbdb2haodb数据库开发工程师IGI
应该是文件 太大造成的,不要MQT,只要Index是没问题的。谢谢大家!显示全部

应该是文件 太大造成的,不要MQT,只要Index是没问题的。谢谢大家!

收起
互联网服务 · 2016-03-02
浏览1460
新数科技新数科技IT顾问北京新数科技有限公司
你这个问题是由于文件很大导致的吗?如果换一个小一点的SQL文件呢?如果都有问题,我建议你重建explain表,如果还有问题,建议重新绑定所有的package。显示全部

你这个问题是由于文件很大导致的吗?如果换一个小一点的SQL文件呢?

如果都有问题,我建议你重建explain表,如果还有问题,建议重新绑定所有的package。

收起
IT咨询服务 · 2015-12-20
浏览1575
dezai1223dezai1223系统运维工程师浪潮
db2advis -d sample -n db2inst3 -i test.sqlSQL语句末尾记得加\";\"-n schema-nameSpecifies the qualifying name of simulation catalog tables, and the qualifier for the new indexes and MQTs. The default schema name is the caller\'s user ID, except for cat...显示全部

db2advis -d sample -n db2inst3 -i test.sql

SQL语句末尾记得加\";\"

-n schema-name

Specifies the qualifying name of simulation catalog tables, and the qualifier for the new indexes and MQTs. The default schema name is the caller\'s user ID, except for catalog simulation tables where the default schema name is SYSTOOLS. The default is for new indexes to inherit the schema name of the index\'s base.

收起
系统集成 · 2015-12-18
浏览1530

提问者

db2haodb
数据库开发工程师IGI
擅长领域: 数据库存储前置系统

问题状态

  • 发布时间:2015-12-18
  • 关注会员:3 人
  • 问题浏览:3909
  • 最近回答:2016-03-02
  • X社区推广