-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdpmonit.sql
More file actions
27 lines (21 loc) · 1.02 KB
/
dpmonit.sql
File metadata and controls
27 lines (21 loc) · 1.02 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
define owner_name=notfound
col owner_name format a15 new_value owner_name TRUNC
col operation format a15 TRUNC
col job_mode format a10 TRUNC
col state format a20
col username new_value username
col sid new_value sid
col inst_id new_value inst_id
PROMPT
PROMPT DATAPUMP JOBS #######################################################################################################################################################################
select * from dba_datapump_jobs order by CASE WHEN STATE IN ('RUNNING') THEN 1 ELSE 0 END;
PROMPT LONG OPERATIONS ####################################################################################################################################################################
@longs %
PROMPT TOPS ################################################################################################################################################################################
@topsab &owner_name.
rem @getcursor &sid. &inst_id.
col sid clear
col inst_id clear
PROMPT
PROMPT "" @dpmonit
PROMPT