KB · Oracle Database · Script

Find the sessions and OS processes behind a Data Pump job

Oracle Database · Script · Verified on Oracle 11.2 · Updated 2026-12-03

An expdp or impdp job runs as a master process and several workers, each a separate database session. When a job is slow or stuck, this maps the job name to those sessions and their OS process IDs, so you can see what each is doing and find it in top.

Usage

SQL> @dp.sql
dp.sqlMIT · Download ·
-- dp.sql: sessions and OS processes behind each running Data Pump job
-- Copyright (c) HASHJOIN. MIT License (https://hashjoin.com/kb/license/)
-- https://hashjoin.com/kb/oracle/data-pump-job-sessions/
--
-- Usage: @dp.sql

set lines 200
set trims on
col username format a20

select to_char(LOGON_TIME,'YYYY-MM-DD HH24:MI:SS') LOGON_TIME, s.program, s.sid,
       s.status, s.username, d.job_name, p.spid, s.serial#, p.pid
 from v$session s, v$process p, dba_datapump_sessions d
where p.addr=s.paddr and s.saddr=d.saddr;

curl -O https://hashjoin.com/kb/oracle/data-pump-job-sessions/dp.sql

Reading the output

One row per Data Pump session: logon time, program (DM00 is the master, DW00, DW01… are workers), SID, status, user, job name and SPID. Take a worker's SID to drill into one session to see its SQL and wait.

Gotchas

What it reads

dba_datapump_sessions v$session v$process

Tired of fixing the same thing twice?

HASHJOIN turns the checks and fixes your on-call runs by hand into tooling that gives the same answer every time. Fixed scope, and you own all of the code.