0% found this document useful (0 votes)
10 views2 pages

Restore Archive - Log

The document outlines a series of commands for restoring archived logs in an Oracle database using RMAN, including channel allocation and log sequence restoration. It also includes SQL queries for session management, database recovery, and archived log details. Additionally, it provides commands for checking scheduled cron jobs related to RMAN backups.

Uploaded by

tpyzvc6g2d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Restore Archive - Log

The document outlines a series of commands for restoring archived logs in an Oracle database using RMAN, including channel allocation and log sequence restoration. It also includes SQL queries for session management, database recovery, and archived log details. Additionally, it provides commands for checking scheduled cron jobs related to RMAN backups.

Uploaded by

tpyzvc6g2d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

================================================restore

archive_log================================================

run
{
allocate channel t1 type 'sbt_tape' parms
'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
allocate channel t2 type 'sbt_tape' parms
'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
allocate channel t3 type 'sbt_tape' parms
'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
restore archivelog from sequence 144804 until sequence 144821;
released channel t1;
released channel t2;
released channel t3;
}

===================================================================================
=================================

select 'alter system kill session '''||sid||','||serial#||''';' as script from


v$session where last_call_et < 300 and STATUS ='ACTIVE';

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

alter database recover managed standby database disconnect from session;

alter database recover managed standby database using current logfile disconnect
from session;

SELECT database_role FROM v$database;

SELECT THREAD# "Thread",SEQUENCE# "Last Sequence Generated" FROM V$ARCHIVED_LOG


WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG
GROUP BY THREAD#) ORDER BY 1;

144803

Thread Last Sequence Generated


---------- -----------------------
1 144827

SELECT name
FROM v$archived_log
WHERE thread# = 1
AND dest_id = 1
AND sequence# BETWEEN 144827 and 144803;

crontab -l

crontab -l | grep -i rman

cd /u05/rman

cat rman_bkp_full.sh

cat /u05/rman/rman_bkp_full.scr

You might also like