Monitor data pump expdp export script

Question:  I need to monitor a data pump export job and I want to monitor the progress of the expdp command.  What are the ways to monitor a Oracle export job?

 

Answer:  The data pump logfile is the best way to monitor the progress on a data pump export, as data pump writes it's progress on a regular basis.

From the operating system prompt, run the expdp utility to export the job_user schema. The following listing shows both the export command and the export log output:

expdp system/password schemas=JOB_USER directory=EXPORT_DIR dumpfile=JOB_USER.dmp
logfile=expdpJOB_USER.log

Export: Release 10.1.0.2.0 - Production on Saturday, 11 September, 2004 17:47
Copyright (c) 2003, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
FLASHBACK automatically enabled to preserve database integrity.
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** schemas=JOB_USER 
directory=EXPORT_DIR dumpfile=JOB_USER.dmp logfile=expdpJOB_USER.log
Estimate in progress using BLOCKS method...
Total estimation using BLOCKS method: 0 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/SE_PRE_SCHEMA_PROCOBJACT/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
Processing object type SCHEMA_EXPORT/SE_POST_SCHEMA_PROCOBJACT/PROCOBJ
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
********************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
/tmp/JOB_USER.DMP
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at 17:49

You can also observe v$session_longops to monitor some parts of an Oracle export job.
 

select
   round(sofar/totalwork*100,2)  percent_completed, 
   v$session_longops.* 
from 
   v$session_longops 
where
   sofar <> totalwork 
order by
   target, 
   sid;

 

参考至:http://www.dba-oracle.com/t_monitor_data_pump_export_expdp.htm

如有错误,欢迎指正

邮箱:[email protected]

你可能感兴趣的:(Monitor data pump expdp export script)