标签:
今天在执行导数据的命令expdp之后发现少放了一个参数,赶紧CTRL+C,谁这个操作只能表面cancel这个操作,其实后台还在运行。
system/******** schemas=CEN_DEV_OWNER20130506,CEN_DEV_USER20130506 directory=exp_dir
dumpfile=expdp_cen052701.dmp,expdp_cen052702.dmp,expdp_cen052703.dmp,expdp_cen052704.dmp,expdp_cen052705.dmp
logfile=expdp_cen0527.log parallel=5
如何查出来并真正停掉这个任务呢?查了一些资料,操作如下:
从这两个查询来确定正在运行的dump job name:
select * from DBA_DATAPUMP_JOBS;
select * from DBA_DATAPUMP_SESSIONS;
SQL> select * from DBA_DATAPUMP_SESSIONS;
OWNER_NAME JOB_NAME INST_ID SADDR SESSION_TYPE
--------------- ------------------------------ ---------- ---------------- --------------
SYSTEM SYS_EXPORT_SCHEMA_01 1 000000097472AE68 MASTER
SYSTEM SYS_EXPORT_SCHEMA_01 1 000000095079A4E8 WORKER
进入expdp交互界面:
C:\Users\Administrator>expdp system/cenorcl attach=SYS_EXPORT_SCHEMA_01
Export> help
Export> kill_job
Are you sure you wish to stop this job ([yes]/no): yes
这样就彻底结束了这个任务。
标签:
原文地址:http://blog.csdn.net/chinadm123/article/details/46046729