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
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 Oracle9 i and later Real Application Clusters Oracle Application Server configuration files Oracle Collaboration Suite configuration files Tape library Oracle Secure Backup Centralized tape backup management Backup and Restore
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.
F-5 Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup for Centralized Tape Backup Management Multivendor clients backed up over the network LAN Tape library NAS UNIX Linux Windows Media servers locally backed up Oracle backup 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 Oracle database
F-6 Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup Administrative 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 Oracle Secure Backup Catalog Data to back up Network
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
F-8 Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup Catalog /usr/local/oracle/backup admin Centralized on the administrative server Should be backed up on a regular basis adminoperatororaclereaderuser classdatasetdefaultdevicefamilyhostoconfscheduleusersummaryconfighistorylogstate
F-9 Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup Users Name & password Class privileges UNIX username & group Windows domain account & password address NDMP access authorization Given name Preauthentication user information Oracle Secure Backup user
F-10 Copyright © 2006, Oracle. All rights reserved.
F-11 Copyright © 2006, Oracle. All rights reserved. Predefined Classes
F-12 Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup Interface Options Oracle Secure Backup obtool RMAN Web tool EM Database operations File system operations
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
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
F-15 Copyright © 2006, Oracle. All rights reserved. Volume Set Recycling Volume set creation Write windowRetain duration Volume set expiration Volume set closed Time Updates allowed Updates forbidden Recycling File System File Volumes Exceed expire duration Volume set Recycling Backup Pieces Volumes Backup piece Expired Manually deleted Or
F-16 Copyright © 2006, Oracle. All rights reserved.
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
F-18 Copyright © 2006, Oracle. All rights reserved. Library Management Operations Storage elements insertvol Tape drives Loadvol unloadvol movevol Library extractvol
F-19 Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup: Installation Media servers Software installation Administrative domain definition Device definition/ discovery Administrative server Media server Client Tape drives/ libraries Device attachments creation OTNCD-ROM Oracle Secure Backup only Administrative server Media server Client Oracle Secure Backup/NDMP 1 2 3
F-20 Copyright © 2006, Oracle. All rights reserved. Installing Oracle Secure Backup Software Windows UNIX/Linux OTN Staged locally Unzip/untar Remove stage Install UNIX/Linux CD-ROM Install OR Each host One host Determine server roles
F-21 Copyright © 2006, Oracle. All rights reserved. Administrative Server Installation: Example stage]# mkdir -p /usr/local/oracle/backup stage]# cd /usr/local/oracle/backup backup]# /stage/ob-4.1cdrom040914/setup Welcome 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 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, client 2. linux32 (RH 2.1, RHEL 3, RHEL 4, SuSE 8, SuSE 9) administrative server, media server, client 3. 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
F-22 Copyright © 2006, Oracle. All rights reserved. Defining Your Administrative Server in EM
F-23 Copyright © 2006, Oracle. All rights reserved. The Oracle Secure Backup Device and Media Page
F-24 Copyright © 2006, Oracle. All rights reserved. Adding Devices
F-25 Copyright © 2006, Oracle. All rights reserved. Managing Devices by Using EM
F-26 Copyright © 2006, Oracle. All rights reserved. RMAN and Oracle Secure Backup Oracle Secure Backup Back up or restore backup sets to tape Back up file system files to tape Anywhere on the network Recovery Manager Browse/manage backup pieces Oracle server session SBT library Possible operations
F-27 Copyright © 2006, Oracle. All rights reserved. Accessing Oracle Secure Backup from RMAN Backup or restore Recovery Manager Database Backup Storage Selectors Oracle Secure Backup Preauthorized RMAN user Oracle server session SBT library Oracle database files
F-28 Copyright © 2006, Oracle. All rights reserved. User Preauthorization User executes an allocate SBT_TAPE channel command. Recovery Manager Oracle server session SBT library Preauthorized RMAN user OS user oracle Host Oracle Backup user Backup or restore Administrative observiced The Oracle server session runs under OS user oracle. Local observiced
F-29 Copyright © 2006, Oracle. All rights reserved. Database Backup Storage Selector Name Database names & IDs Content Copy numberMedia family Hosts & Restrictions Expire duration Wait time Database Backup Storage Selector
F-30 Copyright © 2006, Oracle. All rights reserved. RMAN and Oracle Secure Backup: Usage Model Install Oracle software. Install Oracle Secure Backup software. Create user with necessary rights. Create media family. Create database storage selector. Allocate SBT channel.
F-31 Copyright © 2006, Oracle. All rights reserved. Defining Database Storage Selector
F-32 Copyright © 2006, Oracle. All rights reserved. Testing Your Tape Drives
F-33 Copyright © 2006, Oracle. All rights reserved. Scheduling Backups by Using EM Database Control
F-34 Copyright © 2006, Oracle. All rights reserved. Oracle-Suggested Strategy for Backups
F-35 Copyright © 2006, Oracle. All rights reserved. Managing Tape Backups
F-36 Copyright © 2006, Oracle. All rights reserved. Performing Database Recovery by Using Tape Backups
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 Backup level Up to nine levels Full
F-38 Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup Web Tool
F-39 Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup Data Set Scripts Textual description that defines which files to back up Examples found in the samples directory / usr2usr1usr3 usr4 home labs file2.txtfile1.tmp stc1stc2stc3 tmpfile1.temp labs tmp file2.junk labs Structure to back up (example)
F-40 Copyright © 2006, Oracle. All rights reserved. Data Set Script: Examples # Dataset "common-exclusions": exclude name tmp exclude name *.tmp exclude name *.temp exclude name *~ include path /home/usr1 include path /home/usr2 include host stc1 include host stc2 include 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 }
F-41 Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup view Data Set Organization /usr/local/oracle/backup config dataset admin NEWCLIENTS / Data set directories and files NEWCLIENTS Data set directories and files Pre- created Top-level data set directory OS view ……
F-42 Copyright © 2006, Oracle. All rights reserved. Creating Data Sets Using the Web Interface
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?
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
F-45 Copyright © 2006, Oracle. All rights reserved.
F-46 Copyright © 2006, Oracle. All rights reserved. Creating On-Demand Backup Requests
F-47 Copyright © 2006, Oracle. All rights reserved. Sending Backup Requests to the Scheduler
F-48 Copyright © 2006, Oracle. All rights reserved. Creating Backup Schedules
F-49 Copyright © 2006, Oracle. All rights reserved. Creating Backup Triggers
F-50 Copyright © 2006, Oracle. All rights reserved. Viewing Job Properties and Transcripts
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
F-52 Copyright © 2006, Oracle. All rights reserved. Creating a Catalog-Based Restore Request
F-53 Copyright © 2006, Oracle. All rights reserved. Creating a Catalog-Based Restore Request
F-54 Copyright © 2006, Oracle. All rights reserved.
F-55 Copyright © 2006, Oracle. All rights reserved. Sending Catalog-Based Restore Requests to the Scheduler
F-56 Copyright © 2006, Oracle. All rights reserved. Listing All Backups of a Client
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
F-58 Copyright © 2006, Oracle. All rights reserved.