ORACLE 11G EXPDP交互模式 interactive mode


 

expdp導出工具可以實現在導出任務執行過程中修改並行度、終止、監控任務功能。

做實驗驗證一下:

[oracle@test dpdump]$ expdp system/password directory=DATA_PUMP_DIR dumpfile=alphaFull full=y job_name=alphaFull

Export: Release 11.2.0.3.0 - Production on Fri Dec 20 17:03:30 2013

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

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYSTEM"."ALPHAFULL":  system/******** directory=DATA_PUMP_DIR dumpfile=alphaFull full=y job_name=alphaFull 
Estimate in progress using BLOCKS method...
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 76.37 MB
Processing object type DATABASE_EXPORT/TABLESPACE
……   ……
Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM
^C
Export> help
------------------------------------------------------------------------------

The following commands are valid while in interactive mode.
Note: abbreviations are allowed.

ADD_FILE
Add dumpfile to dumpfile set.

CONTINUE_CLIENT
Return to logging mode. Job will be restarted if idle.

EXIT_CLIENT
Quit client session and leave job running.

FILESIZE
Default filesize (bytes) for subsequent ADD_FILE commands.

HELP
Summarize interactive commands.

KILL_JOB
Detach and delete job.

PARALLEL
Change the number of active workers for current job.

REUSE_DUMPFILES
Overwrite destination dump file if it exists [N]. 

START_JOB
Start or resume current job.
Valid keyword values are: SKIP_CURRENT.

STATUS
Frequency (secs) job status is to be monitored where
the default [0] will show new status when available.

STOP_JOB
Orderly shutdown of job execution and exits the client.
Valid keyword values are: IMMEDIATE.


Export> CONTINUE_CLIENT
Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ
Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM
Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/PRE_TABLE_ACTION
Job "SYSTEM"."ALPHAFULL" stopped by user request at 17:05:26

 

另打開一個terminal:這里指定attach參數為剛才的job_name參數

[oracle@test ~]$ expdp system/password attach=alphaFull

Export: Release 11.2.0.3.0 - Production on Fri Dec 20 17:04:07 2013

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

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Job: ALPHAFULL
  Owner: SYSTEM                         
  Operation: EXPORT                         
  Creator Privs: TRUE                           
  GUID: EDF48D67526907E6E043646EA8C00CB2
  Start Time: Friday, 20 December, 2013 17:03:37
  Mode: FULL                           
  Instance: orcl
  Max Parallelism: 1
  EXPORT Job Parameters:
  Parameter Name      Parameter Value:
     CLIENT_COMMAND        system/******** directory=DATA_PUMP_DIR dumpfile=alphaFull full=y job_name=alphaFull 
  State: EXECUTING                      
  Bytes Processed: 0
  Current Parallelism: 1
  Job Error Count: 0
  Dump File: /s01/app/oracle/admin/orcl/dpdump/alphaFull.dmp
    bytes written: 4,096
  
Worker 1 Status:
  Process Name: DW00
  State: EXECUTING                      
  Object Schema: SYSMAN
  Object Name: AQ$_MGMT_LOADER_QTABLE_N
  Object Type: DATABASE_EXPORT/SCHEMA/SEQUENCE/SEQUENCE
  Completed Objects: 51
  Total Objects: 51
  Worker Parallelism: 1

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

在這里STOP_JOB之后,在任務執行的session可以看到

Job "SYSTEM"."ALPHAFULL" stopped by user request at 17:05:26


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM