53
F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

Embed Size (px)

Citation preview

Page 1: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

FCopyright © 2006, Oracle. All rights reserved.

Oracle Secure Backup

Page 2: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-2 Copyright © 2006, Oracle. All rights reserved.

Objectives

After completing this lesson, you should be able to do the following:

• Describe the Oracle Secure Backup architecture and how it benefits your environment

• Discuss the basic Oracle Secure Backup media management concepts

• Install and configure Oracle Secure Backup

• Use RMAN and Oracle Secure Backup to back up and restore the Oracle database

• Use Oracle Secure Backup to back up and restore file system files

Page 3: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-3 Copyright © 2006, Oracle. All rights reserved.

Data Protection to Tape for the Oracle Stack

File system data• Oracle home• Other nondatabase data

Oracle database• Versions Oracle9i and later• Real Application Clusters

Oracle Application Server configuration files

Oracle Collaboration Suite configuration files

Tapelibrary

Oracle Secure Backup

Centralized tape backup

management

Backup and Restore

Page 4: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-4 Copyright © 2006, Oracle. All rights reserved.

The Customer Advantage:Complete Oracle Solution

• Oracle Secure Backup and RMAN provide an end-to-end backup solution for Oracle environments– Centralized backup management to tape for file

system data and the Oracle database– Most well-integrated media management layer for

RMAN backups– Backup of any data anywhere on the network

• A single technical support resource for the entire backup solution expedites problem resolution.

• This ensures reliable data protection at a lower cost and complexity.

Page 5: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-5 Copyright © 2006, Oracle. All rights reserved.

Oracle Secure Backup forCentralized Tape Backup Management

Multivendor clients backed up over the

network

LAN

Tapelibrary

NASUNIXLinux Windows

Media servers locally

backed up

Oraclebackup

Oracle Secure Backup• Central administration

of local and network backup and restore

• Local and remote tape device management

• Client/server architecture

• Heterogeneous data protection to tape

Oracledatabase

Page 6: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-6 Copyright © 2006, Oracle. All rights reserved.

Oracle Secure BackupAdministrative Domain

• Administrative server: – Maintains Oracle Secure Backup

catalog files containing configuration settings and backup history

– Has standard access mode only• Media or SAN server:

– Transfers data to or from attached devices

– Has standard or NDMP access modes

• Client:– Is a server backed up by Oracle

Secure Backup– Has standard or NDMP access

modes

Administrative

server

Media or SAN

server

Client

OracleSecureBackupCatalog

Datato

back upNetwork

Page 7: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-7 Copyright © 2006, Oracle. All rights reserved.

Oracle Secure Backup:Backup Management Overview

• Centralized management of the administrative domain– Consolidated catalog– Users and privileges

• Ease of administration with multiple interface options, backup policies, and much more

• Backing up and restoring data– File system and Oracle database– Management through policies

• Media management (tapes)

• Automated tape device management

• Flexible configuration options

Page 8: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-8 Copyright © 2006, Oracle. All rights reserved.

Oracle Secure Backup Catalog

/usr/local/oracle/backup

admin

adminCentralized on the

administrative server

Should be backed upon a regular basis

admin operator oracle reader user

classdatasetdefault device family host oconf schedule usersummary

confighistory log state

Page 9: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-9 Copyright © 2006, Oracle. All rights reserved.

Oracle Secure Backup Users

Name & password

Class

privileges

UNIX username& group

Windows domainaccount & password

Email address

NDMP accessauthorization

Given name

Preauthenticationuser information

Oracle SecureBackup

user

Page 10: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-11 Copyright © 2006, Oracle. All rights reserved.

Predefined Classes

User can perform Oracle database backups and restores 

Access Oracle Secure Backups (database)

Modify any job, regardless of its owner 

List any job, regardless of its owner 

Manage devices and change device state 

Query and display information about devices 

Receive e-mail describing internal errors 

Receive e-mail requesting operator assistance 

Perform restores as privileged user 

Perform restores as self 

Modify any jobs, owned by user 

List any jobs, owned by user 

Perform backups as privileged user 

Perform backups as self 

Modify administrative domain’s configuration

Modify own username and password  

Display administrative domain's configuration 

Browse backup catalogs with this access  

READERORACLEUSEROPERATORADMINRights

privileged

all

not denied

owner

permitted

owner

permitted

owner

named

none

Page 11: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-12 Copyright © 2006, Oracle. All rights reserved.

Oracle Secure Backup Interface Options

OracleSecureBackup

obtoolRMAN

Web tool

EM

Databaseoperations

File systemoperations

Page 12: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-13 Copyright © 2006, Oracle. All rights reserved.

Managing Data to Be Protected

Intuitive Enterprise Manager scheduling interface

Use RMAN backup levels: Full and incremental

RMAN backup sets

Oracle Database

Flexible date/time calendar–based scheduling

On-demand backups

Frequency of backups

Multilevel backups: Full, incremental, or off-site

Backup options

Oracle Secure Backup data sets: User defined

Defining what data to back up

File System Data

Page 13: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-14 Copyright © 2006, Oracle. All rights reserved.

Oracle Secure Backup Media Concepts

Media family

Volume set

Volume

Backup image

Set of tapes containing backup images

Product of one backup operation

Tape

Means to manage the content of a volume set

Page 14: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-15 Copyright © 2006, Oracle. All rights reserved.

Volume Set Recycling

Volume setcreation

Write window Retain duration

Volume setexpiration

Volume setclosed

TimeUpdates allowed Updates forbidden

Recycling File System File Volumes

Exceedexpire duration

Volumeset

Recycling Backup Pieces Volumes

Backuppiece

Backuppiece

Backuppiece

Backuppiece

Expired Expired Expired Expired

Manuallydeleted

Or

Page 15: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-17 Copyright © 2006, Oracle. All rights reserved.

Automated Device Management

• Oracle Secure Backup automates the control of tape libraries.– Accepts SCSI commands from the library to:

Manage the tapes inventory

Move tapes to or from storage elements and drives

– Automates tape drive cleaning– Supports bar code readers and media verification

• Automated device discovery and configuration for NDMP v3 and v4 capable servers

Page 16: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-18 Copyright © 2006, Oracle. All rights reserved.

Library Management Operations

Storageelements

insertvol

Tapedrives

Loadvolunloadvol

movevol

Library

extractvol

Page 17: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-19 Copyright © 2006, Oracle. All rights reserved.

Oracle Secure Backup: Installation

Media servers

Softwareinstallation

Administrativedomain definition

Devicedefinition/discovery

Administrativeserver

Mediaserver Client

Tape drives/libraries

Deviceattachments

creation

OTN CD-ROM

Oracle Secure Backup only

Administrativeserver

Mediaserver Client

Oracle Secure Backup/NDMP

1 23

Page 18: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-20 Copyright © 2006, Oracle. All rights reserved.

Installing Oracle Secure Backup Software

WindowsUNIX/Linux

OTN

Staged locally

Unzip/untar

Remove stage

Install

UNIX/Linux

CD-ROM

Install

OR

Eachhost

Onehost

Determineserver roles

Page 19: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-21 Copyright © 2006, Oracle. All rights reserved.

Administrative Server Installation: Example

[root@EDRSR14P1 stage]# mkdir -p /usr/local/oracle/backup[root@EDRSR14P1 stage]# cd /usr/local/oracle/backup[root@EDRSR14P1 backup]# /stage/ob-4.1cdrom040914/setupWelcome to Oracle's setup program for Oracle Secure Backup. This program loads Oracle Secure Backup software from the CD-ROM to a filesystem directory of your choosing.This CD-ROM contains Oracle Secure Backup version 10.2.Please wait a moment while I learn about this host... done.- - - - - - - - - - - - - - - - - - -You may load any of the following Oracle Secure Backup packages:1. solaris (Solaris 32, SPARC) administrative server, media server, client2. linux32 (RH 2.1, RHEL 3, RHEL 4, SuSE 8, SuSE 9) administrative server, media server, client3. solaris64 (Solaris 2.8 and later, SPARC) administrative server, media server, client

Enter a space-separated list of packages you'd like to load. To load all packages, enter 'all' [2]: 2

Page 20: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-22 Copyright © 2006, Oracle. All rights reserved.

Defining Your Administrative Server in EM

Page 21: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-23 Copyright © 2006, Oracle. All rights reserved.

The Oracle Secure Backup Device and Media Page

Page 22: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-24 Copyright © 2006, Oracle. All rights reserved.

Adding Devices

Page 23: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-25 Copyright © 2006, Oracle. All rights reserved.

Managing Devices by Using EM

Page 24: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-26 Copyright © 2006, Oracle. All rights reserved.

RMAN and Oracle Secure Backup

OracleSecureBackup

Back up or restorebackup sets

to tape

Back upfile systemfiles to tape

Anywhere on the network

RecoveryManager

Browse/managebackup pieces

Oracleserver

session

SBTlibrary

Possible operations

Page 25: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-27 Copyright © 2006, Oracle. All rights reserved.

Accessing Oracle Secure Backup from RMAN

Backup or restore

RecoveryManager

DatabaseBackupStorage

Selectors

Oracle Secure Backup

PreauthorizedRMAN user

Oracleserver

session

SBTlibrary

Oracledatabase

files

Page 26: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-28 Copyright © 2006, Oracle. All rights reserved.

User Preauthorization

User executes anallocate SBT_TAPEchannel command.

RecoveryManager

Oracleserver

session

SBTlibrary

PreauthorizedRMAN user

OS useroracle

Host

OracleBackup

user

Backupor

restore

Administrativeobserviced

1

2

3 4

5

4

The Oracle serversession runs under

OS user oracle.

Localobserviced

Page 27: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-29 Copyright © 2006, Oracle. All rights reserved.

Database Backup Storage Selector

Name

Databasenames & IDs

Content

Copy numberMedia family

Hosts & Restrictions

Expire duration

Wait time

DatabaseBackupStorageSelector

Page 28: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-30 Copyright © 2006, Oracle. All rights reserved.

RMAN and Oracle Secure Backup: Usage Model

Install Oracle software.

Install Oracle Secure Backup software.

Create userwith necessary rights.

Create media family.

Create database storage selector.

Allocate SBT channel.

Page 29: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-31 Copyright © 2006, Oracle. All rights reserved.

Defining Database Storage Selector

Page 30: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-32 Copyright © 2006, Oracle. All rights reserved.

Testing Your Tape Drives

Page 31: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-33 Copyright © 2006, Oracle. All rights reserved.

Scheduling Backups by Using EM Database Control

Page 32: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-34 Copyright © 2006, Oracle. All rights reserved.

Oracle-Suggested Strategy for Backups

Page 33: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-35 Copyright © 2006, Oracle. All rights reserved.

Managing Tape Backups

Page 34: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-36 Copyright © 2006, Oracle. All rights reserved.

Performing Database Recovery by Using Tape Backups

Page 35: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-37 Copyright © 2006, Oracle. All rights reserved.

Backing Up File System Files with Oracle Secure Backup

• Two ways of backing up data– On-demand backups– Scheduled backups

• Two types of backup– Full: All specified files– Incremental: Only files that have changed since the

last lower backup

0 1 2 3 2 3Backup level

Up to nine levels

Full

Page 36: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-38 Copyright © 2006, Oracle. All rights reserved.

Oracle Secure Backup Web Tool

Page 37: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-39 Copyright © 2006, Oracle. All rights reserved.

Oracle Secure Backup Data Set Scripts

• Textualdescriptionthat defines whichfiles to back up

• Examplesfound in thesamplesdirectory

/

usr2usr1 usr3 usr4

home

labs file2.txtfile1.tmp

stc1 stc2 stc3

tmpfile1.temp

labs labstmp

file2.junk labs

Structure to back up(example)

Page 38: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-40 Copyright © 2006, Oracle. All rights reserved.

Data Set Script: Examples

# Dataset "common-exclusions":exclude name tmpexclude name *.tmpexclude name *.temp

exclude name *~include path /home/usr1include path /home/usr2include host stc1include host stc2include host stc3 { include dataset common-exclusions include path /home/usr3 before backup optional "/etc/local/nfy '/usr3 begin'" after backup optional "/etc/local/nfy '/usr3 end'" include path /home/usr4 { exclude name *.junk }}

Page 39: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-41 Copyright © 2006, Oracle. All rights reserved.

Oracle Secure Backup view

Data Set Organization

/usr/local/oracle/backup

config

dataset

admin

NEWCLIENTS

/

Data setdirectoriesand files

NEWCLIENTS Data setdirectoriesand files

Pre-created

Top-leveldata setdirectory

OS view

… …

Page 40: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-42 Copyright © 2006, Oracle. All rights reserved.

Creating Data Sets Using the Web Interface

Page 41: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-43 Copyright © 2006, Oracle. All rights reserved.

File System Files: Backup Concepts

Backup window

Backup trigger

Backup schedule

When can jobs be executed?

When should a job execute?

What is the job?

Page 42: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-44 Copyright © 2006, Oracle. All rights reserved.

Oracle Secure Backup Jobs

• Backups using data sets:– Data set jobs: One for each data set request– Backup jobs: One for each impacted host for each

data set job

• File system file restores:– Restore jobs: One for each needed backup image

• RMAN jobs

• For each job, Oracle Secure Backup maintains:– A log – A running transcript

Page 43: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-46 Copyright © 2006, Oracle. All rights reserved.

Creating On-Demand Backup Requests

Page 44: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-47 Copyright © 2006, Oracle. All rights reserved.

Sending Backup Requests to the Scheduler

Page 45: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-48 Copyright © 2006, Oracle. All rights reserved.

Creating Backup Schedules

Page 46: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-49 Copyright © 2006, Oracle. All rights reserved.

Creating Backup Triggers

Page 47: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-50 Copyright © 2006, Oracle. All rights reserved.

Viewing Job Properties and Transcripts

Page 48: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-51 Copyright © 2006, Oracle. All rights reserved.

Restoring File System Files with Oracle Secure Backup

Two ways for restoring data

• Catalog-based restore: Based on catalog backups history

• Raw restore: Based on your memory

Page 49: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-52 Copyright © 2006, Oracle. All rights reserved.

Creating a Catalog-Based Restore Request

Page 50: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-53 Copyright © 2006, Oracle. All rights reserved.

Creating a Catalog-Based Restore Request

Page 51: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-55 Copyright © 2006, Oracle. All rights reserved.

Sending Catalog-Based Restore Requests to the Scheduler

Page 52: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-56 Copyright © 2006, Oracle. All rights reserved.

Listing All Backups of a Client

Page 53: F Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup

F-57 Copyright © 2006, Oracle. All rights reserved.

Summary

In this lesson, you should have learned how to:

• Describe the Oracle Secure Backup architecture and how it benefits your environment

• Discuss basic Oracle Secure Backup media management concepts

• Install and configure Oracle Secure Backup

• Use RMAN and Oracle Secure Backup to back up and restore the Oracle database

• Use Oracle Secure Backup to back up and restore file system files