设为首页 加入收藏

TOP

DB2数据库的导入与导出
2014-11-24 02:00:52 来源: 作者: 【 】 浏览:0
Tags:DB2 数据库 导入 导出

DB2 数据库的导入与导出
1.打开db2的命令行处理器
2.建立编目(若有建立,可跳过)
db2 catalog tcpip node nodename remote IP server 50000(编目节点)
www.2cto.com
db2 catalog db dbname as mydb at node nodename(数据库实例)
3.连接数据库
db2 connect dbname user username using password
4.导出数据库
export to [path(例:D:/TABLE1.ixf)] of ixf select [字段(例: * or col1,col2,col3)] from TABLE1;
export to [path(例:D:/TABLE1.del)] of del select [字段(例: * or col1,col2,col3)] from TABLE1;
www.2cto.com
5.导入数据库
import from [path(例:D:/TABLE1.ixf)] of ixf insert into TABLE1;
load from [path(例:D:/TABLE1.ixf)] of ixf insert into TABLE1;
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇在MySQL中使用更新日志文件 下一篇DB2 V9.7 Linux安装记录

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: