重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3345|回复: 0
打印 上一主题 下一主题

[Oracle] oracle数据库expdp/impdp操作的终止

[复制链接]
跳转到指定楼层
楼主
发表于 2018-1-12 18:05:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
执行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文件不再增长。

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-19 17:59 , Processed in 0.108325 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表