今天在執行導數據的命令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
這樣就徹底結束了這個任務。