Question: I need to be able to monitor my
Data Pump sessions. I see that there is a view dba_datapump_sessions, but
I need a script to see how to use it. Also, how do I monitor a long
running data pump import or export job?
Answer: Monitoring Oracle Data
Pump is tricky, especially after the rows are added and
Oracle is busy with indexes, constraints, and CBO
statistics. At this stage, the Data Pump looks hung, but
it's not stalled, it's working on metadata and metadata
definitions. You can monitor an Oracle Data Pump expdp
and impdp in several ways:
- Monitor at the OS - Do a "ps -ef"
on the data pump process and watch it consume CPU. You
can also monitor the data pump log file with the "tail
-f", command, watching the progress of the import
in real time. If you watch the Data Pump log, be sure to
include the feedback=1000 parameter to direct import to
display a dot every 1,000 lines of inserts.
- Monitor with the data pump views -
The main view to monitor Data Pump jobs are
dba_datapump_jobs and dba_datapump_sessions.
- Monitor with longops - You can
query the v$session_longops to see the progress
of data pump, querying the sofar and
You can monitor an import with these basic queries. For a
full set of data pump import monitoring scripts see the
Oracle script collection.
Get the Complete
Oracle SQL Tuning Information
The landmark book
SQL Tuning The Definitive Reference" is
filled with valuable information on Oracle SQL Tuning.
This book includes scripts and tools to hypercharge Oracle 11g
performance and you can
for 30% off directly from the publisher.