RMANwithDG Final
RMANwithDG Final
AGENDA
Presentation approximately 45 minutes
Q&A Session approximately 15 minutes
Web attendees can ask questions via Q&A panel Phone attendees can ask questions via Q&A panel or
AGENDA
Presentation approximately 45 minutes
Q&A Session approximately 15 minutes
Web attendees can ask questions via Q&A panel only Phone attendees can ask questions via Q&A panel or phone (operator
assisted)
10
Q&A panel
11
12
13
Objectives
To understand
Archivelog Deletion Policy
15
Agenda
Process Flow
Demo
16
OR
archivelog is obsolete per RMAN Retention Policy
Use of FRA for archivelogs needs an RMAN Retention Policy Retention policy needs RMAN Database Backup
17 Copyright 2013, Oracle and/or its affiliates. All rights reserved.
Values:
APPLIED ON STANDBY | NONE | CLEAR
18
19
20
21
RMAN-08137
RMAN-08137: WARNING: archived log not deleted as it is still needed RMAN-08120: WARNING: archived log not deleted, not yet applied by standby
22
Troubleshooting RMAN-08137
Data Guard
SQL>select sequence#, archived, applied from v$archived_log where dest_id=2 and status = 'A' and sequence# > <seq> ; SEQUENCE# ARC APPLIED ---------- --- --------38 YES NO 37 YES NO 36 YES NO 39 YES NO 40 YES NO 41 YES NO
Logs that have not shipped will not appear in the output
23 Copyright 2013, Oracle and/or its affiliates. All rights reserved.
Troubleshooting RMAN-08137
Restore Points
SQL> select scn, database_incarnation# inc, guarantee_flashback_database, name from v$restore_point; SCN INC GUA NAME ---------- --- --- --------------8195754 3 YES RERUNDEMO SQL> select thread#, sequence# from v$archived_log where 8195754 between first_change# and next_change#; THREAD# SEQUENCE# ---------- ---------1 42 SQL>drop restore point RERUNDEMO;
24
Troubleshooting RMAN-08137
Streams 10G
290143.1: Minimum Archived Log Necessary to Restart 10g and 11g Streams Capture Process
SQL>select min(required_checkpoint_scn)from dba_capture ;
Streams 11G
SQL>select min_required_capture_change#from v$database ;
Alternatively
RMAN>delete noprompt force archivelog all completed before '<date>';
25
Troubleshooting RMAN-08137
%export NLS_DATE_FORMAT= 'dd-mon-YY hh24:mi:ss' %rman target / log rman.log trace rman.trc debug RMAN>show all; RMAN>delete
26
#Pieces ------1 1
#Copies ------1 1
27
Completion Time -----------------09-jun-13 18:02:37 09-jun-13 18:04:26 09-jun-13 18:08:01 09-jun-13 18:09:02
#Pieces ------1 1 1 1
#Copies ------1 1 1 1
RMAN>set backup files for device type disk to notaccessible; (11.2) RMAN>set backup files for device type disk to inaccessible; (11.1)
28
Advantages
Much faster than redo apply
No archivelogs to be applied LOGICAL corruptions from nologging updates avoided
29
Considerations
Changes to the physical schema
Files added to primary? Files or tablespaces dropped from Primary? New tablespaces transported into Primary?
30
Process Flow
S T A N D B Y
Determine lowest file checkpoint <stbyscn>
Determine physical schema changes RMAN>backup datafile 7, 8; RMAN>backup current controlfile for standby;
RMAN>restore standby controflile; RMAN>restore datafile 7,8; Rename files RMAN>recover database noredo;
Transfer backups
P R I M A R Y
31
Primary Backup
In order of preference: 1. NFS location /Tape 2. Local directory common to both eg /tmp 3. Local directory common to Primary only
Catalog is used
32
Demonstration
33
Summary
What we covered today
Archivelog Deletion Policy
Troubleshooting RMAN-8137 Using a catalog with Data Guard Rollforward of a Standby database
34
35
Q&A panel
36
37
38
Schedule
Archives
39
40
Learn More
Available References and Resources to Get Proactive
About Oracle Support Best Practices www.oracle.com/goto/proactivesupport
41
42
43
THANK YOU
44
45