oracle 终止导出数据,oracle数据库expdp/impdp操作的终止

执行expdp/impdp操作时,如果中途发现执行错误或者其他原因需要取消时,不能直接通过ctrl+c或者关闭操作窗口进行取消。使用以上操作取消后,expdp/impdp进程仍然在运行中。

[oracle@rac1 ~]$ expdp userid=\'/ as sysdba\' dumpfile=full.dmp logfile=full.log directory=dump_dir full=y

Export: Release 11.2.0.4.0 - Production on Fri Jan 12 18:00:08 2018

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,

Data Mining and Real Application Testing options

Starting "SYS"."SYS_EXPORT_FULL_01":  userid="/******** AS SYSDBA" dumpfile=full.dmp logfile=full.log directory=dump_dir full=y

Estimate in progress using BLOCKS method...

Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 370.6 MB

Processing object type DATABASE_EXPORT/TABLESPACE

Processing object type DATABASE_EXPORT/PROFILE

Processing object type DATABASE_EXPORT/SYS_USER/USER

^C

[oracle@rac1 ~]$ du -sk *

956     full.dmp

4       full.log

[oracle@rac1 ~]$ du -sk *

1040    full.dmp

4       full.log

我们发现dmp文件一直在增长,此时如果需要停止该JOB。

expdp userid=\'/ as sysdba\' attach=SYS_EXPORT_FULL_01

Export> stop_job

Are you sure you wish to stop this job ([yes]/no): yes

[oracle@rac1 ~]$

[oracle@rac1 ~]$ du -sk *

25260   full.dmp

8       full.log

[oracle@rac1 ~]$ du -sk *

25260   full.dmp

8       full.log

正常停止后dump文件不再增长。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值