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,

Slides:



Advertisements
Similar presentations
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.
Advertisements

2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
Chapter 14 Handling Online Redo Log Failures. Background RMAN doesn’t back up online redo logs You don’t use RMAN to recover from online redo log failures.
Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
RMAN Restore and Recovery
Backup and Recovery Part 1.
Chapter 12 Performing Incomplete Recovery. Background Viewed as one of the more difficult chapters to write Thought it was important to put in material.
Configuring Recovery Manager
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
CHAPTER 5 Managing Control Files, Online Redo Logs, and Archiving.
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.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
Backup Infrastructure – Additional Information Gordon D. Brown, RAL Carlos Fernando Gamboa, BNL 3D Workshop, CNAF, Bologna, Italy 13 th June 2007.
CHAPTER 16 User-Managed Backup and Recovery. Introduction to User Managed Backup and Recovery Backup and recover is one of the most critical skills a.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
7 Copyright © 2006, Oracle. All rights reserved. Dealing with Database Corruption.
C Copyright © 2009, Oracle. All rights reserved. Using Diagnosis and Debugging Techniques.
5 Copyright © 2008, Oracle. All rights reserved. Configuring the Oracle Network Environment.
5 Copyright © 2007, Oracle. All rights reserved. Configuring the Oracle Network Environment.
CHAPTER 21 Automating Jobs. Introduction to Automating Jobs DBAs rely heavily on automating jobs. DBAs cannot be effective without automation. Listed.
Recovery Manager Overview Target Database Recovery Catalog Database Enterprise Manager Recovery Manager (RMAN) Media Options Server Session.
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.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
Chapter 9 Scripting RMAN. Background Authors felt that scripting was a topic not covered well Authors wanted to cover both Unix/Linux and Windows environments.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
1Introduction Objectives 1-2 Course Objectives 1-3 Oracle Products 1-4 Relational Database Systems 1-5 How the Data Is Organized 1-6 Integrity Constraints.
Preface 1 Introduction Course Objectives 1-2 How DBAs Spend Their Time 1-3 Oracle Database 10g Manageability Goals 1-4 Database Management Challenges 1-5.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
Eurotrace Hands-On The Eurotrace File System. 2 The Eurotrace file system Under MS ACCESS EUROTRACE generates several different files when you create.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
18 Copyright © Oracle Corporation, All rights reserved. Workshop.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
A Brief Documentation.  Provides basic information about connection, server, and client.
11 Copyright © 2004, Oracle. All rights reserved. Dealing with Database Corruption.
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.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
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.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
A Hitchhikers View Of The Oracle Underground Raghav Vinjamuri.
RMAN Maintenance.
RMAN Maintenance.
Recovery Catalog Creation and Maintenance
Chapter 2: System Structures
Creating an Oracle Database
Performing Tablespace Point-in-Time Recovery
Duplicating a Database
Index Index.
Presentation transcript:

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, that could be a very long list Tried to cover the most common types of RMAN issues

3 Sources of Information Backup and recovery problems are stressful Usually you can find somebody else who has already encountered the issue Start at bottom of error stack and work your way up Syntax issues are common Check alert.log and trace files

4 Sources of Information (continued) Ask for help Search Oracle’s documentation Use RMAN forum Open a SR with Oracle Enable output logging (Oracle Support will often request this)

5 Resolving Connection Issues Common problem Usually caused by not using an authenticated user If using a password file, ensure correct username/password are being used Attempt to connect to SQL*Plus to troubleshoot

6 Handling Disk Space Issues Usually caused by running out of disk space To correct: – Change location of the backup – Add disk space (if possible) – If using a FRA, either add space or move – Change retention policy – Delete old files

7 Dealing with RMAN Error Common problem, occurs when RMAN doesn’t know where old archive redo log files are located Due to switching from user managed to RMAN Due to not using RMAN to delete old files “loss of archived log compromises recoverability”... Yikes! RMAN> crosscheck archivelog all;

8 Terminating RMAN Processes Sometimes necessary when backup or restore hangs Try control + C Manually kill process from operating system Kill RMAN session from SQL*Plus Query v$session_longops to see if the job is actually making progress

9 Diagnosing NLS Character Set Issues ORA error Sometimes caused by a mismatch between NLS character set on client and server Sometimes caused by an erroneously set NLS-related operating system parameter SQL> select value from v$nls_parameters where parameter = 'NLS_CHARACTERSET';

10 Logging RMAN Output Extremely helpful for debugging/diagnosing issues From OS prompt: $ rman target / log=rman_output.log From within RMAN: RMAN> spool log to rman_output.log RMAN> set echo on RMAN> backup database; RMAN> spool log off;

11 Viewing RMAN Command History Use v$rman_output SQL> select sid, recid, output from v$rman_output order by recid; Holds 32,768 rows

12 Enabling Debug Output You can turn on debugging in several different ways: – From the OS prompt – When allocating a channel – When configuring a channel – From the RMAN command-line prompt

13 Enabling Debug Output Enable all debugging $ rman target / debug=all log=rman_output.log Enables debugging just for I/O activities: $ rman target / debug=io

14 Information Types of Debugging io sql plsql rcvman rpc

15 Enabling Granular Time Reporting Oracle Support will often recommend that you enable this before sending them output Allows you to view down to the second when operations occurred Authors recommend that you always enable this Korn shell example: $ export NLS_DATE_FORMAT='dd-mon-yyyy hh24:mi:ss'

16 Working with Oracle Support Some problems will require help from Oracle Support To facilitate response: – Test case that illustrates step-by-step details to reproduce the problem – Complete RMAN script or command(s) that were run – Complete RMAN output log – Database alert.log file – Remote Diagnostic Agent (RDA) output (optional)

17 Resolving RMAN Compatibility Issues Ideally, all databases and catalog will be at the same level Reality, almost never the case Most up to date source RMAN compatibility matrix information in MetaLink note Checking the recovery catalog version (if using): SQL> select * from rcver;

18 Dealing with an ORA Error Vexing issue Caused by MML mis-configuration Caused by incorrectly set OS variables Work with your MML vendor to resolve Check sbtio.log file

19 Dealing with an ORA Error Vexing issue Usually related to MML not being correctly installed Work with MML vendor to resolve Look in log and trace files for more information

20 Dealing with an ORA Error Enabled I/O slaves RMAN will throw this if it can’t allocate enough memory Setup a large pool area Use ASMM See MetaLink note

21 Managing Files in an ASM Environment Background: Technical editor wrote this material in the book, often received questions regarding ASM at Oracle Support Using ASM (Automatic Storage Management) Need to view RMAN files Use ASMCMD Command line utility $ asmcmd –p Unix like commands