Killing or pausing the impdp/expdp job

    內容表格
    1. 1. 說明
    2. 2. 步驟

    版本為 00:20, 27 Dec 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    說明

     

    步驟

    狀況一:在 expdp/impdp 的命令列

    執行 Ctrl + C 中斷目前程序
    Export> kill_job
    Are you sure you wish to stop this job ([yes]/no): yes 
    or
    Export> stop_job=immediate
    

    狀況二:已經離開 expdp/impdp 命令列

    找出匯出或匯入的 JOB_NAME

    SQL> set linesize 350
    SQL> col owner_name format a12
    SQL> col job_mode format a10
    SQL> col operation format a10
    SQL> SELECT owner_name, job_name, operation, job_mode, state FROM dba_datapump_jobs;
    
    OWNER_NAME   JOB_NAME                       OPERATION  JOB_MODE   STATE
    ------------ ------------------------------ ---------- ---------- ------------------------------
    SYSTEM       SYS_EXPORT_SCHEMA_01           EXPORT     SCHEMA     EXECUTING <====
    SYSTEM       SYS_IMPORT_SCHEMA_02           IMPORT     SCHEMA     NOT RUNNING
    SYSTEM       SYS_IMPORT_SCHEMA_01           IMPORT     SCHEMA     NOT RUNNING
     

    重新進入這個 job 的命令列

    expdp system ATTACH=<job_name>
    
    Export> kill_job
    or
    Export> stop_job=immediate 
    

     

    Powered by MindTouch Core