0% found this document useful (0 votes)
76 views

RMANwithDG Final

RMAN with DG

Uploaded by

infyrajayaar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views

RMANwithDG Final

RMAN with DG

Uploaded by

infyrajayaar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

Upcoming: Using RMAN in a Data Guard Environment

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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.

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.

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.

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.

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

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Advisor Webcast


Using RMAN in a Data Guard Environment
Debbie Smedley Senior Principal Technical Support Engineer

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.

Oracle Advisor Webcast Program

Current schedule Archived recordings Doc ID 740966.1

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

AUDIO INFO Join Teleconference

10

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Q&A panel

3 Send your question 2 Ask: ALL PANELLIST leave default! 1

type your question here

11

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

your question pop-up here

12

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Safe Harbor Statement


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.

13

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Advisor Webcast


Using RMAN in a Data Guard Environment
Debbie Smedley Senior Principal Technical Support Engineer

Objectives

To understand
Archivelog Deletion Policy

Recovery Catalog Usage with DG


Procedure to rollforward

a standby using Incremental Backup

15

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Agenda

Archivelog Deletion Policy


Troubleshooting RMAN-08137 RMAN CATALOG and db_unique_name Standby Rollforward using Incremental Backup
Physical Schema Considerations

Process Flow

Demo

16

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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
17 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Archive Log Deletion Policy 10G

Non-FRA Archivelogs must be explicitly deleted


Ignored by all delete mechanisms

RMAN>backup archivelog ....DELETE INPUT; RMAN>DELETE archivelog....; RMAN>DELETE obsolete;

Values:
APPLIED ON STANDBY | NONE | CLEAR

18

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

How to set Archive Log Deletion Policy in 10G

Primary APPLIED ON STANDBY _log_deletion_policy =ALL (331924.1 )

Standby where RMAN is used NONE

Standby where no RMAN is used APPLIED ON STANDBY (331924.1 )

19

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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 <device>


NONE

20

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

How to set Archive Log Deletion Policy in 11G

Primary SHIPPED TO [ALL] STANDBY APPLIED ON [ALL] STANDBY

Standby where RMAN is used BACKED UP N TIMES TO DEVICE TYPE <device>

Standby where no RMAN is used APPLIED ON [ALL] STANDBY

21

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Log is needed by Data Guard


Log is needed by Streams/Golden Gate Log is needed by Guaranteed Restore Point

22

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Upload to Oracle Support Services: rman.log/rman.trc Spfile/init.ora Alert log

26

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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 ----- -- -- - ----------962 B F A DISK 963 B F A DISK

Completion Time -----------------09-jun-13 18:02:37 09-jun-13 18:04:26

#Pieces ------1 1

#Copies ------1 1

Compressed Tag ---------- --NO FULL_PRIMARY NO FULL_PRIMARY

27

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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 ----- -- -- - ----------962 B F A DISK 963 B F A DISK 1408 B F A DISK 1409 B F A DISK

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

Compressed Tag ---------- --NO FULL_PRIMARY NO FULL_PRIMARY NO FULL_STANDBY 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)

28

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

29

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

30

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Process Flow
S T A N D B Y
Determine lowest file checkpoint <stbyscn>

RMAN>backup incremental from scn <stbyscn> database;

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

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

32

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Demonstration

33

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Summary
What we covered today
Archivelog Deletion Policy
Troubleshooting RMAN-8137 Using a catalog with Data Guard Rollforward of a Standby database

using an incremental backup

34

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Questions & Answers

35

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Q&A panel

3 Send your question 2 Ask: ALL PANELLIST leave default! 1

type your question here

36

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

37

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Advisor Webcast Program

Current schedule Archived recordings Doc ID 740966.1

select your product: e.g. Oracle Database

38

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Schedule

Archives

39

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

40

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Learn More
Available References and Resources to Get Proactive
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]

41

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

42

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

43

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

THANK YOU

44

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

45

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

You might also like