1 Chapter 16 Tuning RMAN. 2 Background One of the hardest chapters to develop material for Tuning RMAN can sometimes be difficult Authors tried to capture.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

14 Copyright © 2005, Oracle. All rights reserved. System Management Tasks and Techniques.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Chapter 5 Input/Output 5.1 Principles of I/O hardware
1 RAID Overview n Computing speeds double every 3 years n Disk speeds cant keep up n Data needs higher MTBF than any component in system n IO.
Copyright 2007, Information Builders. Slide 1 Performance and Tuning Mark Nesson, Vashti Ragoonath June 2008.
9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
Overview of performance tuning strategies Oracle Performance Tuning Allan Young June 2008.
© Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi © Bharati Vidyapeeths Institute of Computer Applications and.
Chapter 20 Oracle Secure Backup.
1 CS533 Modeling and Performance Evaluation of Network and Computer Systems Capacity Planning and Benchmarking (Chapter 9)
Database System Concepts and Architecture
Processes Management.
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
Week 1.
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
Chapter 13 The Data Warehouse
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
1 Chapter 17 Troubleshooting RMAN. 2 Background Authors thought this topic was often glazed over or not covered well Knew that every topic can’t be covered,
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
1 - Oracle Server Architecture Overview
Oracle 10g Database Administrator: Implementation and Administration Chapter 14 Proactive Maintenance.
Oracle’s Backup and Recovery Tool
Configuring Recovery Manager
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
CHAPTER 17 Configuring RMAN. Introduction to RMAN RMAN was introduced in Oracle 8.0. RMAN is Oracle’s tool for backup and recovery. RMAN is much more.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
CHAPTER 18 RMAN Backups and Reporting. Introduction to RMAN Backups and Reporting The focus of this chapter is backups of: Datafiles Control files Archived.
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
Backup & Recovery 1.
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
Recovery Manager Overview Target Database Recovery Catalog Database Enterprise Manager Recovery Manager (RMAN) Media Options Server Session.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
SRUTHI NAGULAVANCHA CIS 764, FALL 2008 Department of Computing and Information Sciences (CIS) Kansas State University -1- Back up & Recovery Strategies.
5 Copyright © 2004, Oracle. All rights reserved. Using Recovery Manager.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
Chapter 7 Making Backups with RMAN. Objectives Explain backup sets and image copies RMAN Backup modes’ Types of files backed up Backup destinations Specifying.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
Backup and Recovery Protects From Data Loss. Backup and Recovery Protects From Data Loss Provides for Media Recovery.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
11g(R1/R2) Data guard Enhancements Suresh Gandhi
By Lecturer / Aisha Dawood 1.  Dedicated and Shared Server Processes  Configuring Oracle Database for Shared Server  Oracle Database Background Processes.
A Guide to Oracle9i1 Database Instance startup and shutdown.
Chapter 8Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 8 Complete Recovery with Recovery Manager.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
1 Chapter 17 Shared Memory Contention. 2 Overview Specifically talking about SGA – Buffer Cache – Redo Log Buffer Contention in these areas of SGA – Can.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
11 Copyright © 2006, Oracle. All rights reserved. Checkpoint and Redo Tuning.
Instance and Media Recovery Structures Supinfo Oracle Lab. 7.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements.
Sharing experience on RMAN backups ...
RMAN Backups.
Instance and Media Recovery Structures
Index Index.
Presentation transcript:

1 Chapter 16 Tuning RMAN

2 Background One of the hardest chapters to develop material for Tuning RMAN can sometimes be difficult Authors tried to capture repeatable techniques for performance tuning

3 Why Tune RMAN Backups taking too long Performance of the system is impacted during RMAN backups Restore and recovery time too long, downtime causes the business to lose money

4 One Approach to Tuning Identify measurable business performance requirements. 2. Collect data and measure performance. 3. Identify bottlenecks. 4. Make adjustments that will alleviate the worst bottleneck. 5. Repeat steps 1–4 until your performance goals are achieved.

5 Systemic Influences CPU Memory Operating system Disk layout Network Database architecture Tape technology and vendor Application design Design of data model and its physical implementation Robustness of SQL statements

6 Views Used for Monitoring V$RMAN_BACKUP_JOB_DETAILS V$BACKUP_ASYNC_IO V$BACKUP_SYNC_IO V$PROCESS V$SESSION V$SESSION_LONGOPS V$RECOVERY_PROGRESS V$SESSION_WAIT

7 Identifying RMAN Processes Sometimes you might want to kill an RMAN process SQL> SELECT b.sid, b.serial#, a.spid, b.client_info FROM v$process a, v$session b WHERE a.addr = b.paddr AND b.client_info LIKE '%rman%';

8 Measuring Backup Performance If you cant measure it, you cant manage it... SQL> SELECT session_recid, input_bytes_per_sec_display, output_bytes_per_sec_display, time_taken_display, end_time FROM v$rman_backup_job_details ORDER BY end_time;

9 Monitoring RMAN Job Progress Are we there yet? Are we there yet? SQL> select sid, serial#, sofar, totalwork, opname, round(sofar/totalwork*100,2) "% Complete" from v$session_longops where opname LIKE 'RMAN%' and opname NOT LIKE '%aggregate%' and totalwork != 0 and sofar <> totalwork;

10 Identifying I/O Bottlenecks How do you determine I/O is a bottleneck? Asynchronous I/O vs. synchronous SQL> SELECT sid, serial, filename, type, elapsed_time, effective_bytes_per_second FROM v$backup_async_io WHERE close_time > sysdate – 7;

11 Improving Tape I/O Performance RMAN can be configured to backup directly to tape (see MML chapter) Tape I/O is often the bottleneck Can be difficult to diagnose and resolve Use an incremental backup strategy with block change tracking Adjust multiplexing of backup sets

12 Improving Tape I/O Performance Many variables to consider... MML software configuration Network configuration Level of tape compression Tape streaming Tape block size

13 Maximizing Throughput to Backup Device Multiplexing with RMAN means it can read multiple files at the same time and simultaneously write them to the same backup piece As of Oracle 10g, RMAN will automatically tune the level of multiplexing

14 Maximizing Throughput to Backup Device Filesperset limits the number of files in each backup set Maxopenfiles limits the number of files simultaneously open Diskratio instructs RMAN to read datafiles from a specified number of disks

15 Setting Large Pool Memory Size One approach, use ASMM 1. Ensure statistics_level is set to TYPICAL (the default) or ALL 2. Set sga_target to an appropriate nonzero value for your database not exceeding the sga_max_size 3. Set the following initialization parameters to zero: – shared_pool_size – large_pool_size – java_pool_size – db_cache_size – streams_pool_size

16 Tuning Media Recovery With Oracle 10g or higher, RMAN should automatically perform recovery in parallel You can override the default behavior: RMAN> recover database parallel 4;

17 Tuning Crash Recovery Crash recovery is performed by SMON after a database crash (power outage, shutdown abort) Why would you care how long crash recovery takes? Can be tuned with fast_start_mttr_target Gives the database a target time for performing crash recovery

18 One Approach to Tuning Crash Recovery 1. Disable the initialization parameters that interfere with fast_start_mttr_target 2. Determine the lower bound for fast_start_mttr_target 3. Determine the upper bound for fast_start_mttr_target 4. Select a value within the upper and lower bounds 5. Monitor and adjust

19 Slowing RMAN Down Sometimes RMAN can impact other processes running on the system Couple of techniques: – The backup duration... minimize load command – The rate clause of the allocate channel or configure channel command

20 Improving Performance Through Parallelism Use the parallel clause of the configure command Doesnt do much for single disk systems RMAN> configure device type disk parallelism 4; RMAN> show channel;

21 Improving Performance Using Incremental Features RMAN has many incremental features Incremental backups Change tracking Incremental update