银行

db2 procedure export sql3001c sqloopen -2029060079 错误

os info :suse linux 11db info :db2 v9.7.0.4user:数据库管理员用户--create procedure prc_exp_inc_dat_1()language sqlBEGIN DECLARE v_str VARCHAR(2000) default ''; set v_str='export to /backup/2012-09-02/tst.t_tst1.del of del select * from tst.t_tst1 whe... 显示全部
os info :suse linux 11
db info :db2 v9.7.0.4
user:数据库管理员用户

--
create procedure prc_exp_inc_dat_1()
language sql
BEGIN
DECLARE v_str VARCHAR(2000) default '';
set v_str='export to /backup/2012-09-02/tst.t_tst1.del of del select * from tst.t_tst1 where sta_dte=date(''2012-09-02'') fetch first 2 rows only with ur';
call sysproc.admin_cmd(v_str);

END@

--call
call prc_exp_inc_dat_1()@

报错 :
SQL3001C  An I/O error (reason = "sqlofopn -2029060079") occurred while
opening the output file.


直接导出:db2 "export to /backup/2012-09-02/tst.t_tst1.del of del select * from tst.t_tst1 where sta_dte=date('2012-09-02') fetch first 2 rows only with ur"

是不会报错的,敬请专家帮忙看看,谢谢哈。 收起
参与8

查看其它 6 个回答kt563 的回答

kt563 kt563 数据库管理员 交行卡中心
回复 3# wksw


    呵呵,这个第一个跑的,报同样的错误。
银行 · 2012-09-07
浏览3647

回答者

kt563
kt563 0 0 3
数据库管理员 交行卡中心
擅长领域: 大数据数据库服务器
评论266

kt563 最近回答过的问题

回答状态

  • 发布时间:2012-09-07
  • 关注会员:1 人
  • 回答浏览:3647
  • X社区推广