1、环境准备:
#su - db2inst1
$mkdir /tmp/test
$db2 get db directory 可获取数据库名字
$db2 connect to testdb

2、导出数据:
export to "/tmp/test/test.del" of del lobs to /tmp/test/ select * from test
说明:
(1)表名test前面需要带schema名
(2)如不确认表结构,可用命令 db2 describe table test查询
3、导入数据:
确认环境信息没有问题执行导入命令
import from "/tmp/test/test.del" of del lobs from /tmp/test/ insert into test