db2clp里不能执行超长的脚本,怎么解决?

njhart2003 2007-01-20 10:01:52
我们在项目开发时,有几个存储过程的脚本比较长有100K左右,在db2clp里执行“db2 -td@ -vf xxxx.sql”总是不成功,但通过其他工具如questcenter等是可以执行的,我也试过调节db2clp的客户端的缓存设置,但依然保存,各位老大,有啥办法可以使长脚本在db2clp里执行?



...全文
1082 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
njhart2003 2007-09-24
  • 打赏
  • 举报
回复
答错的、根本不相干的就不给分了,怕误人子弟;
其他友情关注、顶帖的给10分鼓励一下。
njhart2003 2007-06-21
  • 打赏
  • 举报
回复
半年过去了,这个问题还没有解决...
微服森林 2007-05-18
  • 打赏
  • 举报
回复
我遇到过,具体怎么改忘记了。在网上搜索应该可以找到答案。
类似:db2 update db cfg for tec using stmtheap 8000
也就是修改一下cfg配置文件的一个参数。
祝你好运
mana5116 2007-05-13
  • 打赏
  • 举报
回复
升级DB2到8.2,在8.2里面限制变为了2M
mana5116 2007-05-13
  • 打赏
  • 举报
回复
你可以试验一下在control center里面执行。

还可以试验一下安装其他版本的客户端,比如9
yangxiao_jiang 2007-04-29
  • 打赏
  • 举报
回复
请看:
http://www-1.ibm.com/support/docview.wss?rs=71&context=SSEPGG&q1=sql+length&uid=swg21181258&loc

DB21006E The input command is too long. The maximum length is 65535.
Technote (FAQ)

Problem
DB2 v8.2 introduces a new feature that allows statements longer than 64 kilobytes to be processed by the database server. The limit has been increased to 2 megabytes. However, if you try to process a statement longer than 64 kilobytes via CLP or the Command Center, DB21006E is returned.

Cause
Although the database server now accepts statements up to 2 megabytes to be processed, this feature has not yet been propagated to CLP and the Command Center. For these tools, the maximum size a statement can have is still limited to 64 kilobytes.

Solution
The 64 kilobyte limit for statement size on DB2 tools such as CLP and the Command Center is planned to be lifted in an upcoming release of DB2. You can use another application that uses static or dynamic SQL to issue statements longer than 64 kilobytes.
DBUncle 2007-04-26
  • 打赏
  • 举报
回复
up
haitao8686 2007-04-19
  • 打赏
  • 举报
回复
njhart2003 2007-02-25
  • 打赏
  • 举报
回复
据说db2 V8.2在db2clp里支持的最长脚本为64K,我的那个脚本文件有128K左右,超长了。
eboy2004 2007-02-25
  • 打赏
  • 举报
回复
db2batch -d <db name> -a username/password -f <file name>
Eddie005 2007-02-19
  • 打赏
  • 举报
回复
up
jinxin19831117 2007-02-13
  • 打赏
  • 举报
回复
报什么错说下啊

5,889

社区成员

发帖
与我相关
我的任务
社区描述
IBM DB2 是美国IBM公司开发的一套关系型数据库管理系统,它主要的运行环境为UNIX(包括IBM自家的AIX)、Linux、IBM i(旧称OS/400)、z/OS,以及Windows服务器版本
社区管理员
  • DB2
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧