Procedure to restore selected list of archivelogs
Steps overview:
0. Verify the control_file_record_keeptime parameter
1. Find out the list of archivelogs really available
2. Now define the goal of which archives we needed to restore
3. Verify if we have backup for the archvielog
4. Kick off the restore from rman
5. Verify if the archivelogs are now showing in v$archived_log
Execution:
0. Verify the control_file_record_keep_time parameter
show parameter control_file_record_keep_time;
Output:
1. Find out the list of archivelogs really available
export NLS_DATE_FORMAT='DD/MON/YYYY HH24:MI:SS';
rman> crosscheck archivelog all;
alter session set nls_date_format='DD/MON/YYYY HH24:MI:SS';
set lines 200
set pages 3000
set colsep ,
select sequence#,status,completion_time,first_change#,next_change# from v$archived_log order by 1;
Output:
2. Now define the goal of which archives we needed to restore
We need archives covering change 459732, this needs to be accessible from logminer. So I am going to restore archive which has this change-1 (459731).
>> goal defined
3. Verify if we have backup for the archvielog
list backup of archivelog from scn 459730;
output:
4. Kick off the restore from rman
restore archivelog from scn 459730;
output:
5. Verify if the archivelogs are now showing in v$archived_log
alter session set nls_date_format='DD/MON/YYYY HH24:MI:SS';
select sequence#,status,completion_time,first_change#,next_change# from v$archived_log order by 1;
Output:
YouTube Video:
No comments:
Post a Comment