DB2+SQL2036N

DB2+SQL2036N
在使用db2的时候发现一个奇怪的问题,用import可以导入数据,但是用load就导入失败,报SQL2036N SQL2036N The path for the file, named pipe, or device “/home/test/test.sh”
is not valid.


前言

在使用db2的时候发现一个奇怪的问题,用import可以导入数据,但是用load就导入失败,报SQL2036N

真实案例

1.执行load导入语句

代码如下(示例):
执行load

db2 "load from 'test.sh' of del insert into test"

2.错误信息

代码如下(示例):

SQL3501W  The table space(s) in which the table resides will not be placed in 
backup pending state since forward recovery is disabled for the database.

SQL3109N  The utility is beginning to load data from file 
"/home/test/test.sh".

SQL2036N  The path for the file, named pipe, or device "/home/gbicc/test.sh" 
is not valid.  

SQL3107W  At least one warning message was encountered during LOAD processing.


Number of rows read         = 0
Number of rows skipped      = 0
Number of rows loaded       = 0
Number of rows rejected     = 0
Number of rows deleted      = 0
Number of rows committed    = 0

3.解决办法

代码如下(示例):
将该目录授予755权限

chmod 755 /home/test

将文件授予755权限

chmod 755 test.del

然后在执行load语句

db2 "load from 'test.sh' of del insert into test"

总结

以上就是今天要讲的内容,本文仅仅简单介绍了db2在使用load报错的时候解决办法,希望可以帮到你。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值