To check the output of RMAN:
**********************************
select sid,output from v$rman_output;
To check backup status:
***************************
set lines 1000
set pages 500
col OPERATION for a25
col STATUS for a30
col START_TIME for a18
col END_TIME for a18
col sid for 9999
select SID,RECID,STAMP,OPERATION,OBJECT_TYPE,STATUS,to_char(START_TIME,'dd-mm-yy hh24:mi:ss') START_TIME,
to_char(END_TIME,'dd-mm-yy hh24:mi:ss') END_TIME,MBYTES_PROCESSED
from v$rman_status order by RECID;
To check backup status in last 24 hours:
*********************************************
set lines 1000
set pages 500
col OPERATION for a25
col STATUS for a30
col START_TIME for a18
col END_TIME for a18
col sid for 9999
select RECID,STAMP,OPERATION,OBJECT_TYPE,STATUS,to_char(START_TIME,'DD-MON-YY HH24:MI:SS') START_TIME,
to_char(END_TIME,'DD-MON-YY HH24:MI:SS') END_TIME,MBYTES_PROCESSED
from v$rman_status WHERE START_TIME>=sysdate-1 order by RECID;
To check %_COMPLETE:
******************************
set lines 1000
col sid for 99999
SELECT SID, SERIAL#, CONTEXT, SOFAR, TOTALWORK, ROUND(SOFAR/TOTALWORK*100,2) "%_COMPLETE",
time_remaining,OPNAME FROM V$SESSION_LONGOPS WHERE OPNAME LIKE 'RMAN%' AND OPNAME NOT LIKE
'%aggregate%' AND TOTALWORK != 0 AND SOFAR <> TOTALWORK;
To kill RMAN sessions:
**************************
set lines 500
select b.sid, b.serial#, a.spid, b.client_info,b.status from v$process a, v$session b where
a.addr=b.paddr and client_info like 'rman%';
alter system kill session '&sid,&serial#' immediate;
To find the RMAN process at OS level:
********************************************
ps- aux |grep rman%
**********************************
select sid,output from v$rman_output;
To check backup status:
***************************
set lines 1000
set pages 500
col OPERATION for a25
col STATUS for a30
col START_TIME for a18
col END_TIME for a18
col sid for 9999
select SID,RECID,STAMP,OPERATION,OBJECT_TYPE,STATUS,to_char(START_TIME,'dd-mm-yy hh24:mi:ss') START_TIME,
to_char(END_TIME,'dd-mm-yy hh24:mi:ss') END_TIME,MBYTES_PROCESSED
from v$rman_status order by RECID;
To check backup status in last 24 hours:
*********************************************
set lines 1000
set pages 500
col OPERATION for a25
col STATUS for a30
col START_TIME for a18
col END_TIME for a18
col sid for 9999
select RECID,STAMP,OPERATION,OBJECT_TYPE,STATUS,to_char(START_TIME,'DD-MON-YY HH24:MI:SS') START_TIME,
to_char(END_TIME,'DD-MON-YY HH24:MI:SS') END_TIME,MBYTES_PROCESSED
from v$rman_status WHERE START_TIME>=sysdate-1 order by RECID;
To check %_COMPLETE:
******************************
set lines 1000
col sid for 99999
SELECT SID, SERIAL#, CONTEXT, SOFAR, TOTALWORK, ROUND(SOFAR/TOTALWORK*100,2) "%_COMPLETE",
time_remaining,OPNAME FROM V$SESSION_LONGOPS WHERE OPNAME LIKE 'RMAN%' AND OPNAME NOT LIKE
'%aggregate%' AND TOTALWORK != 0 AND SOFAR <> TOTALWORK;
To kill RMAN sessions:
**************************
set lines 500
select b.sid, b.serial#, a.spid, b.client_info,b.status from v$process a, v$session b where
a.addr=b.paddr and client_info like 'rman%';
alter system kill session '&sid,&serial#' immediate;
To find the RMAN process at OS level:
********************************************
ps- aux |grep rman%
Comments
Post a Comment