-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdatapump.sql
More file actions
52 lines (41 loc) · 1.12 KB
/
datapump.sql
File metadata and controls
52 lines (41 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--==============================================================================
-- GPI - Gunther Pippèrr
-- Desc: Get Information about running data pump jobs
-- Date: November 2013
--==============================================================================
set linesize 130 pagesize 300
column owner_name format a10;
column job_name format a20
column state format a12
column operation like state
column job_mode like state
ttitle "Datapump Jobs" SKIP 2
select owner_name
, job_name
, operation
, job_mode
, state
, attached_sessions
from dba_datapump_jobs
where job_name not like 'BIN$%'
order by 1,2
/
ttitle "Datapump Master Table" SKIP 2
column status format a10;
column object_id format 99999999
column object_type format a12
column OBJECT_NAME format a25
select o.status
, o.object_id
, o.object_type
, o.owner||'.'||object_name as OBJECT_NAME
from dba_objects o
, dba_datapump_jobs j
where o.owner=j.owner_name
and o.object_name=j.job_name
and j.job_name not like 'BIN$%' order by 4,2
/
ttitle off
prompt ...
prompt ... check for "NOT RUNNING" Jobs
prompt ...