设为首页 加入收藏

TOP

exp/imp命令以及commit=y参数
2014-11-24 03:28:39 来源: 作者: 【 】 浏览:3
Tags:exp/imp 命令 以及 commit 参数

1、导出
确认ORACLE_SID正确
需要sysem用户,可以不用grant execute flashback to user,system密码******
export ORACLE_SID=***(无单机多实例的无需做)
exp system/****** tables=SCOTT.T9 file=/home/oracle/scott_t9_1.dmp grants=n statistics=none triggers=n compress=n FLASHBACK_SCN=10144674732950 log=/home/oracle/scott_t9_1.log;
2、导入
用system用户,
export ORACLE_SID=***(无单机多实例的无需做)
truncate table scott.t9 删除记录
[oracle@localhost ~]$ imp system/oracle file=/home/oracle/scott_t9_1.dmp fromuser=scott touser=scott ignore=y log=/home/oracle/scott_t9_imp_1.log ;
特别注意:上面imp语句中没有使用commit=y的参数,如果对大表进行imp操作应该使用commit=y参数(数据分批量提交),原因:如果导入执行很长时间,对生产产生较大影响,有可能imp操作被中断,这个中断将导致这个大事物的回滚;回滚会占用更多时间;或者直接采用数据泵的方式导出导入(数据泵默认不需要commit参数);

作者“andrew的未来之路”

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇mongodb常用管理命令 下一篇MongoDB常用命令

评论

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

·python数据分析岗的 (2025-12-25 10:02:21)
·python做数据分析需 (2025-12-25 10:02:19)
·成为一个优秀的pytho (2025-12-25 10:02:16)
·Java后端面试实习自 (2025-12-25 09:24:21)
·Java LTS版本有哪些 (2025-12-25 09:24:18)