Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b44efd

Browse files
authored
Create rman-start-end.sql
1 parent 4d57823 commit 7b44efd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

rman-start-end.sql

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YY HH24:MI';
2+
--
3+
select
4+
sys_context('USERENV','DB_UNIQUE_NAME') "dbname",
5+
OUTPUT_DEVICE_TYPE "DEVICE",
6+
TO_CHAR(START_TIME, 'mm/dd/yy hh24:mi') START_TIME,
7+
TO_CHAR(END_TIME, 'mm/dd/yy hh24:mi') END_TIME,
8+
OPERATION, OBJECT_TYPE, STATUS,
9+
INPUT_BYTES/1024 "INPUT_KB",
10+
OUTPUT_BYTES/1024 "OUTPUT_KB"
11+
FROM
12+
V$RMAN_STATUS
13+
where
14+
START_TIME > (sysdate - 33) and
15+
ROW_LEVEL > 0 and
16+
OBJECT_TYPE like 'DB INCR%'
17+
and OPERATION like 'BACKUP%'
18+
order by recid;

0 commit comments

Comments
 (0)