免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4973 | 回复: 3
打印 上一主题 下一主题

[求助]关于DB2的load [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-11-19 20:26 |只看该作者 |倒序浏览
本帖最后由 kenshinsee 于 2011-11-19 20:29 编辑

大家好,我碰到一个DB2 无法load 一个文件到表中,用户是有load权限的,且换一个平面文件即可正常load,但就是用户本身export的无法load,import是可以正常执行的。
  1. [hong@localhost ~]$ db2 "load from /home/hong/test.del of del insert into test"
  2. SQL3501W  The table space(s) in which the table resides will not be placed in
  3. backup pending state since forward recovery is disabled for the database.

  4. SQL3109N  The utility is beginning to load data from file
  5. "/home/hong/test.del".

  6. SQL2036N  The path for the file or device "/home/hong/test.del" is not valid.

  7. SQL3107W  There is at least one warning message in the message file.


  8. Number of rows read         = 0
  9. Number of rows skipped      = 0
  10. Number of rows loaded       = 0
  11. Number of rows rejected     = 0
  12. Number of rows deleted      = 0
  13. Number of rows committed    = 0

  14. [hong@localhost ~]$
复制代码
我觉得可能是平面文件权限的问题,但我给了777还是不行,大家帮忙看一下吧,谢谢了!

论坛徽章:
0
2 [报告]
发表于 2011-11-21 13:15 |只看该作者
用load client

论坛徽章:
0
3 [报告]
发表于 2011-11-21 14:07 |只看该作者
回复 2# shenzhenzsf
你好,我是在SERVER上运行的,而且load和load client都试过,都不行。但我用这个load是可以导入db2inst1这个用户export的文件的,所以我觉得会不会是文件的owner或者owner group的问题?

论坛徽章:
0
4 [报告]
发表于 2011-11-21 15:15 |只看该作者
找到原因了。。。DB2没有访问我导出文件所在文件夹的权限。。。anyway, thanks for your prompt response !
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP