rmanwithdg final
DESCRIPTION
RMANwithDG FinalTRANSCRIPT
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 1
Upcoming: Using RMAN in a Data Guard Environment
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2
Oracle Advisor Webcast Program
Current schedule
Archived recordings
Doc ID 740966.1
Upcoming: Using RMAN in a Data Guard Environment
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 3
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
phone (operator assisted)
Upcoming: Using RMAN in a Data Guard Environment
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 4
ATTENTION AUDIO Options
You can
either listen the audio broadcast on your computer
or join teleconference (dial in)
Upcoming: Using RMAN in a Data Guard Environment
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 5
Voice Streaming Audio Broadcast
Listen only mode Advantage: no need to dial in What about Questions? Type your questions into WebEx Q&A panel
If you prefer full audio access in order to ask questions directly, please connect to our
teleconference
Connect details you will find at next slide
Upcoming: Using RMAN in a Data Guard Environment
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 6
ATTENTION AUDIO INFORMATION
Teleconference Connect details:
1. Conference ID: 68619110
2. International dial in: +44 (0) 1452 562 665
3. US Free call: 1866 230 1938
4. List with national toll free numbers is available in
note 1148600.1
You can view this info anytime during the conference using Communicate > Teleconference > Join Teleconference
from your WebEx menu
Upcoming: Using RMAN in a Data Guard Environment
-
Oracle Advisor Webcast
Using RMAN in a Data Guard
Environment Debbie Smedley
Senior Principal Technical Support Engineer
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 8
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)
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 9
Oracle Advisor Webcast Program
Current schedule
Archived recordings
Doc ID 740966.1
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 10
AUDIO INFO Join Teleconference
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 11
Q&A panel
type your question here 1
Ask: ALL PANELLIST leave default! 2
Send your question 3
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 12
your question pop-up here
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 13
The following is intended to outline our general product
direction. It is intended for information purposes only, and
may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality,
and should not be relied upon in making purchasing decision.
The development, release, and timing of any features or
functionality described for Oracles products remains at the
sole discretion of Oracle.
Safe Harbor Statement
-
Oracle Advisor Webcast
Using RMAN in a Data Guard
Environment Debbie Smedley
Senior Principal Technical Support Engineer
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 15
Objectives
To understand
Archivelog Deletion Policy
Recovery Catalog Usage with DG
Procedure to rollforward
a standby using Incremental Backup
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 16
Agenda
Archivelog Deletion Policy
Troubleshooting RMAN-08137
RMAN CATALOG and db_unique_name
Standby Rollforward using Incremental Backup
Physical Schema Considerations
Process Flow
Demo
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 17
Archive Log Deletion
Only logs in FRA can be automatically deleted
Default deletion under space pressure if
archivelog has been backed up
OR
archivelog is obsolete per RMAN Retention Policy
Use of FRA for archivelogs needs an RMAN Retention Policy
Retention policy needs RMAN Database Backup
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 18
Archive Log Deletion Policy 10G
Non-FRA Archivelogs must be explicitly deleted
Ignored by all delete mechanisms
Values:
APPLIED ON STANDBY | NONE | CLEAR
RMAN>backup archivelog ....DELETE INPUT;
RMAN>DELETE archivelog....;
RMAN>DELETE obsolete;
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 19
How to set Archive Log Deletion Policy in 10G
Primary Standby where
RMAN is used
Standby where no
RMAN is used
APPLIED ON STANDBY
_log_deletion_policy =ALL (331924.1 )
NONE APPLIED ON STANDBY
(331924.1 )
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 20
Archive Log Deletion Policy 11G
Non-FRA Archivelogs must be explicitly deleted
Respected by all delete mechanisms
Values
APPLIED ON [ALL] STANDBY
SHIPPED TO [ALL] STANDBY
BACKED UP integer TIMES TO DEVICE TYPE
NONE
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 21
How to set Archive Log Deletion Policy in 11G
Primary Standby where
RMAN is used
Standby where no
RMAN is used
SHIPPED TO [ALL] STANDBY
APPLIED ON [ALL] STANDBY
BACKED UP N TIMES TO DEVICE
TYPE
APPLIED ON [ALL] STANDBY
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 22
RMAN-08137
Log is needed by Data Guard
Log is needed by Streams/Golden Gate
Log is needed by Guaranteed Restore Point
RMAN-08137: WARNING: archived log not deleted as it is still needed
RMAN-08120: WARNING: archived log not deleted, not yet applied by
standby
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 23
Troubleshooting RMAN-08137
Data Guard
Logs that have not shipped will not appear in the output
SQL>select sequence#, archived, applied from v$archived_log where
dest_id=2 and status = 'A' and sequence# > ;
SEQUENCE# ARC APPLIED
---------- --- ---------
38 YES NO
37 YES NO
36 YES NO
39 YES NO
40 YES NO
41 YES NO
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 24
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;
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 25
Troubleshooting RMAN-08137
Streams 10G
290143.1: Minimum Archived Log Necessary to Restart 10g and 11g Streams
Capture Process
Streams 11G
Alternatively
SQL>select min(required_checkpoint_scn)from dba_capture ;
SQL>select min_required_capture_change#from v$database ;
RMAN>delete noprompt force archivelog all completed before '';
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 26
Troubleshooting RMAN-08137
Upload to Oracle Support Services:
rman.log/rman.trc
Spfile/init.ora
Alert log
%export NLS_DATE_FORMAT= 'dd-mon-YY hh24:mi:ss'
%rman target / log rman.log trace rman.trc debug
RMAN>show all;
RMAN>delete
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 27
RMAN 11G Use of Catalog with Data Guard
Primary
RMAN> list backup summary completed after 'sysdate -1';
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
----- -- -- - ----------- ------------------ ------- ------- ---------- ---
962 B F A DISK 09-jun-13 18:02:37 1 1 NO FULL_PRIMARY
963 B F A DISK 09-jun-13 18:04:26 1 1 NO FULL_PRIMARY
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 28
RMAN 11G Use of Catalog with Data Guard
RMAN> set backup files for device type disk to accessible;
RMAN> list backup summary completed after 'sysdate -1';
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
----- -- -- - ----------- ------------------ ------- ------- ---------- ---
962 B F A DISK 09-jun-13 18:02:37 1 1 NO FULL_PRIMARY
963 B F A DISK 09-jun-13 18:04:26 1 1 NO FULL_PRIMARY
1408 B F A DISK 09-jun-13 18:08:01 1 1 NO FULL_STANDBY
1409 B F A DISK 09-jun-13 18:09:02 1 1 NO FULL_STANDBY
RMAN>set backup files for device type disk to notaccessible; (11.2)
RMAN>set backup files for device type disk to inaccessible; (11.1)
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 29
Standby Rollforward using Incremental Backup
Standby is far behind Primary
Excessive number of archivelogs to be applied
Required archivelogs no longer available
Wide spread corruption on Standby (nologging)
Flashback database first
Advantages
Much faster than redo apply
No archivelogs to be applied
LOGICAL corruptions from nologging updates avoided
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 30
Considerations
Changes to the physical schema
Files added to primary?
Files or tablespaces dropped from Primary?
New tablespaces transported into Primary?
Different naming conventions
DB_FILE_NAME_CONVERT
LOG_FIlE_NAME_CONVERT
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 31
Process Flow
Determine lowest file
checkpoint
Determine physical
schema changes
RMAN>backup
incremental from scn
database;
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;
S
T
A
N
D
B
Y
P
R
I
M
A
R
Y Transfer backups
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 32
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
RMAN is not host aware
Standby can see backup if:
Catalog is used
Path/filename does not change on standby host
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 33
Demonstration
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 34
Summary
Archivelog Deletion Policy
Troubleshooting RMAN-8137
Using a catalog with Data Guard
Rollforward of a Standby database
using an incremental backup
What we covered today
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 35
Questions & Answers
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 36
Q&A panel
type your question here 1
Ask: ALL PANELLIST leave default! 2
Send your question 3
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 37
Further Info & Help
Generic Advisor Webcast Note (Doc ID 740966.1) Database Advisor Webcast (Doc ID 1456176.1) DB Newsletter (Doc ID 1284265.1) MOS Community Database Backup and Recovery
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 38
Oracle Advisor Webcast Program
Current schedule
Archived recordings
Doc ID 740966.1
select your product:
e.g.
Oracle Database
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 39
Archives Schedule
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 40
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 41
Learn More
About Oracle Support Best Practices www.oracle.com/goto/proactivesupport
Get Proactive in My Oracle Support https://support. oracle.com | Doc ID: 432.1
Get Proactive Blog https://blogs.oracle.com/getproactive/
Ask the Get Proactive Team [email protected]
Available References and Resources to Get Proactive
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 42
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 43
Top Articles and Community Links
Include any specific links to relevant KM articles here.
Presenter to Include a link to pre-defined Q&A thread in the appropriate KM
Community
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 44
THANK YOU
-
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 45