Oracle Database 10g: Backup and Recovery

Volume II • Student Guide

D22057GC10 Production 1.0 June 2006 D46525

r O

cl a

In e
®

rn te

l& a

O

I A

s U

O e

ly n

Authors Donna Keesling Maria Billings Technical Contributors and Reviewers Christopher Andrews Tammy Bednar Tom Best Harald van Breederode Mary Jane Bryksa Marielle Canning Tim Chien Donna Cooksey Judy Ferstenberg Gerlinde Frenzen Joel Goodman Pete Jones Isabelle Marchand Sabiha Miri Manish Pawar Jim Spiller George Stabler Anthony Woodell Editor Daniel Milne Graphic Designer Satish Bettegowda Publisher Jobi Varghese

Copyright © 2006, Oracle. All rights reserved. Disclaimer This document contains proprietary information and is protected by copyright and other intellectual property laws. You may copy and print this document solely for your own use in an Oracle training course. The document may not be modified or altered in any way. Except where your use constitutes "fair use" under copyright law, you may not use, share, download, upload, copy, print, display, perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part without the express authorization of Oracle. The information contained in this document is subject to change without notice. If you find any problems in the document, please report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not warranted to be error-free. Restricted Rights Notice If this documentation is delivered to the United States Government or anyone using the documentation on behalf of the United States Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS The U.S. Government’s rights to use, modify, reproduce, release, perform, display, or disclose these training materials are restricted by the terms of the applicable Oracle license agreement and/or the applicable U.S. Government contract. Trademark Notice Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

r O

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Contents

1

Introduction Objectives 1-2 Course Objectives 1-3 What Is Backup and Recovery? 1-4 Performing Backup and Recovery Operations for an Oracle Database 1-5 Using Oracle Recovery Manager 1-6 Recovery Manager Components 1-7 Using Oracle Secure Backup 1-9 Overview of Oracle Backup Methods 1-10 When Do You Need to Use a Backup for Recovery? 1-12 Responding to User Error 1-13 Overview of Data Recovery 1-14 Oracle Database Architecture: Crash Recovery 1-15 Oracle Database Architecture: Recovery After Media Failure 1-16 Developing a Backup and Recovery Strategy for Your Oracle Database 1-17 Oracle Solutions for High Availability 1-18 Oracle High Availability Solutions for Unplanned Downtime 1-19 Summary 1-21 Configuring for Recoverability Objectives 2-2 Configuring Your Database for Backup and Recovery Operations 2-3 Configuring ARCHIVELOG Mode 2-4 Specifying a Backup Destination 2-5 Specifying a Retention Policy 2-6 Using a Flash Recovery Area 2-8 Defining a Flash Recovery Area 2-9 Defining Flash Recovery Area Using Enterprise Manager 2-10 Flash Recovery Area Space Management 2-11 Flash Recovery Area Space Usage 2-13 Monitoring the Flash Recovery Area 2-14 Benefits of Using a Flash Recovery Area 2-15 Summary 2-16 Practice Overview 2-17

2

r O

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

iii

3

Using RMAN to Create Backups Objectives 3-2 Using RMAN to Create Backups 3-3 Backup Destinations 3-4 Configuring Persistent Settings for RMAN 3-5 Using Enterprise Manager to Configure RMAN Settings 3-6 Managing Persistent Settings 3-7 Configuring and Allocating Channels for Use in Backups 3-8 Configuring Backup Optimization 3-9 Creating Backup Sets 3-11 Creating Image Copies 3-12 BACKUP Command Options 3-14 Creating a Whole Database Backup 3-16 RMAN Backup Types 3-17 Fast Incremental Backup 3-19 Enabling Fast Incremental Backup 3-20 Monitoring Block Change Tracking 3-21 Creating an Oracle-Suggested Backup 3-22 Creating Duplexed Backup Sets 3-23 Creating Duplexed Backup Sets Using CONFIGURE BACKUP COPIES 3-24 Creating Duplexed Backup Sets Using BACKUP COPIES 3-25 Creating Backups of Backup Sets 3-26 Configuring Control File Autobackups 3-27 Using a Media Manager 3-29 Creating Proxy Copies 3-31 Managing Backups: Reporting 3-32 Using Enterprise Manager to View Backup Reports 3-34 Managing Backups: Crosschecking and Deleting 3-35 Using Enterprise Manager to Manage Backups 3-36 Summary 3-37 Practice Overview 3-38

4

r O

Using RMAN to Perform Recovery Objectives 4-2 Using RMAN RESTORE and RECOVER Commands 4-3 Performing Recovery Using Enterprise Manager 4-4 Comparing Complete and Incomplete Recovery 4-5 Complete Recovery Following the Loss of Datafiles 4-6 Performing Complete Recovery: Loss of a Non-Critical datafile in ARCHIVELOG Mode 4-7

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

iv

Performing Complete Recovery: Loss of a System-Critical Datafile in ARCHIVELOG Mode 4-8 Recovery Using Incrementally Updated Backups 4-9 Using the Flash Recovery Area for Fast Recovery 4-10 Performing Restore and Recovery of a Database in NOARCHIVELOG Mode 4-11 Using Incremental Backups to Recover a Database in NOARCHIVELOG Mode 4-12 Restoring and Recovering the Database on a New Host 4-13 Preparing to Restore the Database to a New Host 4-14 Restoring the Database to a New Host 4-15 Performing Recovery with a Backup Control File 4-19 Restoring the Server Parameter File from the Control File Autobackup 4-20 Restoring the Control File from Autobackup 4-21 Performing Disaster Recovery 4-23 Summary 4-25 Practice Overview 4-26 5 Using Oracle Flashback Technologies Objectives 5-2 Using Oracle Flashback Technology 5-3 Flashback Drop and the Recycle Bin 5-4 Understanding the Recycle Bin 5-5 Restoring Tables from the Recycle Bin 5-6 Automatic Space Reclamation in the Recycle Bin 5-7 Manual Space Reclamation in the Recycle Bin 5-8 Bypassing the Recycle Bin 5-9 Querying the Recycle Bin 5-10 Querying Data in Dropped Tables 5-11 Using Flashback Technology to Query Data 5-12 Configuring Undo for Flashback 5-13 Flashback Query: Overview 5-14 Flashback Query: Example 5-15 Flashback Versions Query: Overview 5-16 Using Enterprise Manager to Perform Flashback Versions Query 5-17 Flashback Versions Query: Considerations 5-18 Flashback Transaction Query: Overview 5-19 Using Enterprise Manager to Perform Flashback Transaction Query 5-20 Flashback Transaction Query: Considerations 5-21 Flashback Table: Overview 5-22 Flashback Table 5-23 Enabling Row Movement on a Table 5-24 Performing Flashback Table 5-25

r O

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

v

Flashback Table: Considerations 5-26 Flashback Database: Overview 5-27 Flashback Database Architecture 5-28 Configuring Flashback Database 5-29 Using Enterprise Manager to Configure Flashback Database 5-30 Flashback Database: Examples 5-31 Using Enterprise Manager to Perform Flashback Database 5-32 Flashback Database Considerations 5-35 Monitoring Flashback Database 5-36 Tuning Considerations for Flashback Database 5-39 Using Guaranteed Restore Points 5-41 Summary 5-42 Practice Overview 5-43 6 Using RMAN to Create a Duplicate Database Objectives 6-2 Using RMAN to Create a Duplicate Database 6-3 Using a Duplicate Database 6-4 Creating a Duplicate Database 6-5 Creating an Initialization Parameter File for the Auxiliary Instance 6-6 Specifying Parameters to Control File Naming 6-7 Starting the Instance in NOMOUNT Mode 6-9 Ensuring That Backups and Archived Redo Log Files Are Available 6-10 Allocating Auxiliary Channels 6-11 Using the RMAN DUPLICATE Command 6-12 Understanding the RMAN Duplication Operation 6-13 Specifying Options for the DUPLICATE Command 6-14 Using Enterprise Manager to Create a Duplicate Database 6-15 Using Enterprise Manager: Source Working Directory 6-16 Using Enterprise Manager: Select Destination 6-17 Using Enterprise Manager: Destination Options 6-18 Using Enterprise Manager: Review Page 6-19 Summary 6-20 Practice Overview 6-21 Performing Tablespace Point-in-Time Recovery Objectives 7-2 Tablespace Point-in-Time Recovery (TSPITR) Concepts 7-3 Tablespace Point-in-Time Recovery (TSPITR): Terminology 7-4 Tablespace Point-in-Time Recovery: Architecture 7-5 Understanding When to Use TSPITR 7-7 7 r O cl a In e rn te l& a O I A s U O e ly n vi .

Preparing for TSPITR 7-8 Determining the Correct Target Time 7-9 Determining the Tablespaces for the Recovery Set 7-10 Identifying Objects That Will Be Lost 7-11 Performing Basic RMAN TSPITR 7-12 Performing Fully Automated TSPITR 7-13 Using Enterprise Manager to Perform TSPITR 7-14 Understanding TSPITR Processing 7-15 Performing Customized RMAN TSPITR with an RMAN-Managed Auxiliary Instance 7-17 Performing RMAN TSPITR Using Your Own Auxiliary Instance 7-18 Troubleshooting RMAN TSPITR 7-19 Summary 7-21 Practice Overview 7-22 8 Using the RMAN Recovery Catalog Objectives 8-2 RMAN Repository Data Storage: Comparison of Options 8-3 Storing Information in the Recovery Catalog 8-4 Reasons to Use a Recovery Catalog 8-5 Creating the Recovery Catalog: Three Steps 8-6 Configuring the Recovery Catalog Database 8-7 Creating the Recovery Catalog Owner 8-8 Creating the Recovery Catalog 8-9 Managing Target Database Records in the Recovery Catalog 8-10 Registering a Database in the Recovery Catalog 8-11 Using Enterprise Manager to Register a Database 8-12 Unregistering a Target Database from the Recovery Catalog 8-14 Cataloging Additional Backup Files 8-15 Manually Resynchronizing the Recovery Catalog 8-16 Using RMAN Stored Scripts 8-17 Creating RMAN Stored Scripts 8-18 Executing RMAN Stored Scripts 8-19 Displaying RMAN Stored Script Information 8-20 Updating and Deleting RMAN Stored Scripts 8-21 Backing Up and Recovering the Recovery Catalog 8-22 Re-creating an Unrecoverable Recovery Catalog 8-23 Exporting and Importing the Recovery Catalog 8-24 Upgrading the Recovery Catalog 8-25 Dropping the Recovery Catalog 8-26 Summary 8-27 Practice Overview 8-28 r O cl a In e rn te l& a O I A s U O e ly n vii .

9 Monitoring and Tuning RMAN Objectives 9-2 Monitoring RMAN Sessions 9-3 Monitoring RMAN Job Progress 9-5 Monitoring RMAN Job Performance 9-7 Interpreting RMAN Message Output 9-8 Using the DEBUG Option 9-9 Understanding RMAN Code Layer Error Numbers 9-10 Interpreting RMAN Error Stacks 9-11 Tuning RMAN 9-12 RMAN Multiplexing 9-13 Allocating Disk Buffer: Example 9-14 Allocating Tape Buffers 9-15 Comparing Synchronous and Asynchronous I/O 9-16 Monitoring RMAN Job Performance 9-18 Asynchronous I/O Bottlenecks 9-19 Synchronous I/O Bottlenecks 9-20 Tape Backup Speed 9-21 Tape Subsystem Performance Rules 9-22 Controlling Tape Buffer Size with BLKSIZE 9-23 Channel Tuning 9-24 Tuning the BACKUP Command 9-25 Tuning RMAN Backup Performance 9-26 Setting LARGE_POOL_SIZE 9-27 Tuning RMAN Tape Streaming Performance Bottlenecks 9-28 Summary 9-30 Practice Overview 9-31 10 Oracle Secure Backup Overview Objectives 10-2 Oracle Secure Backup Tape Backup Management 10-3 What Is Oracle Secure Backup? 10-4 Oracle Secure Backup: Tape Management and Integration with Oracle Products 10-5 r O Client/Server Architecture Host Roles 10-6 Oracle Secure Backup for Centralized Tape Backup Management 10-7 Typical SAN Environment 10-8 Oracle Secure Backup Interface Options 10-9 Media Concepts: Overview 10-10 Backup Pieces and Backup Images 10-11 Media Management Expiration Policies 10-12 Oracle Secure Backup Media Family 10-14 cl a In e rn te l& a O I A s U O e ly n viii .

Tape Drives and Libraries 10-15 Virtual Tape Libraries (VTL) 10-17 Managing Data to Be Protected 10-18 Oracle Secure Backup Jobs 10-19 Securing Data and Access to the Backup Domain 10-20 Oracle Secure Backup: The Integration Advantage 10-22 Why Use Oracle Secure Backup? 10-23 Summary 10-24 11 Installing Oracle Secure Backup Objectives 11-2 Performing Preinstallation Tasks 11-3 Installation and Configuration of the Administrative Domain 11-4 Performing Installation Tasks 11-5 Administrative Server Installation: Example 11-6 Wizard-Based Installation on Windows 11-13 Oracle Secure Backup Interfaces 11-14 Integration with Enterprise Manager 11-15 Oracle Secure Backup Administrative Server Page 11-16 Configuring the Administrative Server in EM 11-17 Oracle Secure Backup Web Tool Home Page 11-18 Common obtool Commands 11-19 Configuring Oracle Secure Backup Users 11-20 Adding Oracle Secure Backup Users 11-21 Preauthorizing Access 11-23 Summary 11-24 Practice Overview 11-25 12 Using RMAN and Oracle Secure Backup Objectives 12-2 RMAN and Oracle Secure Backup Basic Process Flow 12-3 RMAN Database Backup to Tape 12-4 Database Backup Storage Selector 12-5 Defining Database Storage Selectors 12-7 Media Families and RMAN 12-8 Oracle Database Disk and Tape Backup Solution 12-9 Backing Up the Flash Recovery Area to Tape 12-10 Defining Retention for RMAN Backups 12-11 Backup Settings 12-12 Scheduling Backups with EM 12-13 Oracle-Suggested Backup to Tape 12-14 r O cl a In e rn te l& a O I A s U O e ly n ix .

RMAN and Oracle Secure Backup Job Execution 12-15 Managing Database Tape Backups 12-16 Performing Database Recovery 12-18 RMAN Automatic Failover to Previous Backup 12-19 Summary 12-20 Practice Overview 12-21 13 Backing Up File-System Files with Oracle Secure Backup Objectives 13-2 Backing Up File-System Files with Oracle Secure Backup 13-3 File-System Backups 13-4 Managing Media Families 13-5 Dataset Script: Examples 13-6 Creating Datasets 13-9 Creating Backup Windows 13-11 Creating Backup Schedules 13-13 Creating Backup Triggers 13-14 Previewing a Backup Trigger 13-16 Creating On-Demand Backup Requests 13-17 Submitting Backup Requests 13-19 Reviewing Jobs 13-20 Summary 13-21 Practice Overview 13-22 14 Restoring File-System Backups with Oracle Secure Backup Objectives 14-2 Browsing the Catalog for File-System Backup Data 14-3 Restoring File-System Data 14-4 Restoring File-System Files with Oracle Secure Backup 14-5 The Restore Page 14-6 Listing All File-System Backups of a Client 14-7 Creating a Catalog-Based Restore Request 14-8 Submitting Restore Requests 14-12 Summary 14-13 Practice Overview 14-14 r O cl a In e rn te l& a O I A s U O e ly n x .

15 Managing Oracle Secure Backup Security Objectives 15-2 Guarding Access and Data 15-3 Managing User Access Control 15-4 Predefined Classes and User Rights 15-5 Defining an Oracle Secure Backup User 15-8 Oracle Secure Backup User: OS Permissions 15-9 Preauthorization 15-11 Assigning Windows Account Information 15-12 Authentication 15-13 Leveraging Oracle Security Technology 15-14 Administrative Server Certificate Authority (CA) 15-16 Oracle Wallets 15-18 Encrypted Backups to Tape 15-20 Creating RMAN Encrypted Backups 15-21 Using Transparent Mode Encryption 15-22 Using Password Mode Encryption 15-24 Using Dual Mode Encryption 15-25 Restoring Encrypted Backups 15-26 Performing Encrypted Recovery 15-27 Summary 15-28 Practice Overview 15-29 16 Managing the Administrative Domain Objectives 16-2 Oracle Secure Backup Processes: Daemons 16-3 Managing Common Daemon Operations 16-5 Managing Policies and Defaults 16-6 Configuring Oracle Secure Backup Policies 16-7 Oracle Secure Backup: Backup Metadata Catalogs 16-8 Oracle Secure Backup: Directory Structure 16-10 Backing Up the Catalog 16-11 Adding Clients 16-12 Adding Media Servers 16-13 NAS Devices 16-15 Adding NDMP Media Servers 16-16 Adding Devices 16-17 Discovering Devices on NDMP Hosts 16-19 Managing Devices 16-20 Tape Library Properties 16-21 Tape Drive Properties 16-22 r O cl a In e rn te l& a O I A s U O e ly n xi .

Managing Volumes 16-23 Oracle Secure Backup Jobs 16-25 Managing Jobs 16-27 Viewing Job Properties and Transcripts 16-29 Suspending and Resuming Job Dispatching 16-31 Job Summaries 16-33 Displaying Log Files and Transcripts 16-34 Summary 16-35 Practice Overview 16-36 Appendix A: Practices Appendix B: Practice Solutions Appendix C: Oracle Secure Backup Additional Installation Topics Topics C-2 Windows Installation: Overview C-3 Stopping Tape Device Drivers C-4 Oracle Secure Backup Setup C-6 Service Startup Dialogs C-8 Service Login Dialog Box C-9 Oracle Secure Backup Installed Files C-10 Installed Files for Host Role: Administrative Server C-14 Installed Files for Host Role: Media Server C-16 Installed Files for Host Role: Client C-17 Specifying Installation Parameters C-18 Client Installation: Example C-20 Media Server Installation: Example C-21 Verifying Your Installation C-22 Uninstalling Oracle Secure Backup C-23 Summary C-25 Appendix D: Glossary r O cl a In e rn te l& a O I A s U O e ly n xii .

Appendix A Practices r O cl a In e rn te l& a O I A s U O e ly n .

.................. 14 Practice 5-2: Set Restore Points and Perform Flashback Table......... 30 Practice 11-3: Register the Administrative Server..... 16 Practice 5-4: Use Flashback Database .................................................................................. 15 Practice 5-3: Use Flashback Query and Flashback Versions Query..................................... 29 Practice 11-2: Configure Devices for Oracle Secure Backup.. 41 Practice 15-2: Recover a Tablespace from an Encrypted Backup....................................................................... 5 Practice 3-1: Use RMAN to Create and Manage Backups ............................................ 23 Practice 9-1: Use SQL to Monitor the Progress of RMAN Backups ................................................................................................................. 21 Practice 8-1: Create the Recovery Catalog and Register the Database ......... 11 Practice 4-4: Delete Obsolete Backups........................ 10 Practice 4-3: Recover Control Files......... 9 Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile ..... 17 Practice 6-1: Create a Duplicate Database.................................... 35 Practice 13-1: Back Up Your File System with Oracle Secure Backup ................................................................................. 19 Practice 7-1: Use Tablespace Point-in-time Recovery .................................................................................... 44 Practice 16-2: Back Up the Oracle Secure Backup Catalog .................. 25 Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs .................................... 34 Practice 12-2: Perform Oracle-Suggested Backup ................................ 37 Practice 14-1: Restore File-System Data with Oracle Secure Backup ............. 26 Practice 11-1: Install Oracle Secure Backup ............................. 7 Practice 4-1: Use RMAN to Recover a Datafile............................................................................................................................ 31 Practice 11-4: Configure Oracle Secure Backup User......................................... 32 Practice 12-1: Create a Database Backup Storage Selector............................................................................ 45 r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-2 ...........................................................................................................................................................Table of Contents Practice 2-1: Configure Your Database .............................................................................. 12 Practice 5-1: Enable Flashback Database ..... 42 Practice 16-1: View Oracle Secure Backup Information...................................................... 39 Practice 15-1: Create an Encrypted Backup ........

Practice for Lesson 1 There are no practices for Lesson 1. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-3 .

Practice for Lesson 2 In this practice. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-4 . you configure your database for recoverability.

Practice 2-1: Configure Your Database 1) Use Enterprise Manager to configure your database in ARCHIVELOG mode. 4) Use Recovery Manager (RMAN) to connect to your target database. 5) Use the RMAN SHOW ALL command to view the configuration settings in your database and then exit from your RMAN session. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-5 . 2) Use Enterprise Manager to verify that the Flash Recovery Area has been configured for your database and increase the Flash Recovery Area size to 3 GB. 3) Set Preferred Credentials in Enterprise Manager. Database Identifier: ____________________________ Make note of the database identifier (DBID) of your database. Make note of the database identifier (DBID) of your database.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-6 . You also configure a backup of your database using the Oracle-Suggested Backup Strategy feature in Enterprise Manager Database Control. you configure automatic backup of the control file.Practice for Lesson 3 In this practice.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-7 . 5) Use RMAN to create a duplexed backup set of the EXAMPLE tablespace. 6) Use Enterprise Manager Database Control to perform a crosscheck of your backups.f for the name of the block change tracking file. 3) Use Enterprise Manager Database Control to create a whole database backup using the Oracle-suggested backup strategy. Specify /u01/app/oracle/oradata/orcl/chg_track. 4) Use Enterprise Manager to view information about your backups. 2) Use Enterprise Manager Database Control to configure backup optimization and enable block change tracking.Practice 3-1: Use RMAN to Create and Manage Backups 1) Use Enterprise Manager Database Control to configure autobackup of the control file and the server parameter file.

you use RMAN to perform recovery.Practice for Lesson 4 In this practice. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-8 .

REGIONS table. 1) Use SQL*Plus to query the HR.JOBS table. This script deletes the EXAMPLE tablespace datafile.sh script to simulate a failure in your database. 2) At the operating system prompt.JOBS table. 3) Use SQL*Plus to query the HR. you use RMAN to recover a lost datafile. Make note of the number of rows in the HR. Notice how you are prompted by Enterprise Manager to recover the lost datafile.Practice 4-1: Use RMAN to Recover a Datafile In this practice.REGIONS table. execute the lab_04_01_02_01. 5) Return to your SQL*Plus session and again attempt to query the HR. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-9 . 4) Use Enterprise Manager to perform database recovery of the EXAMPLE tablespace datafile.

JOBS table. 4) Use the RMAN SWITCH TO COPY command to recover the datafile. 5) Query the HR. 8) Use Enterprise Manager Database Control to verify the file. 7) Make a copy of the datafile in the original location and switch back to it. execute the lab_04_02_02_01. 2) At the operating system prompt.REGIONS table. 6) Using Enterprise Manager Database Control. you recover a lost datafile by using the Flash Recovery Area for fast recovery.REGIONS table.sh script to simulate a failure in your database. This script deletes the EXAMPLE tablespace datafile. 1) Use SQL*Plus to query the HR.Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile In this practice. verify that the datafile being used for the EXAMPLE tablespace is in the Flash Recovery Area.DEPARTMENTS table. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-10 . Make note of the number of rows in the HR. 3) Use SQL*Plus to query the HR.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-11 . Query V$CONTROLFILE.Practice 4-3: Recover Control Files In this practice. Query V$CONTROLFILE_RECORD_SECTION to learn more about the contents of your control file. you recover your control file using an autobackup. 3) You need some more information about your control files. 2) Simulate a failure in your environment by executing the lab_04_03_02_01. 1) Use SQL*Plus to view files information for the control files in your database.sh script to delete all your control files. Use Recovery Manager to recover the control files. 4) You have lost all your control files and will need to recover them from the control file autobackup.

2) Use Enterprise Manager Database Control to delete obsolete backups. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-12 .Practice 4-4: Delete Obsolete Backups 1) Use Recovery Manager to view obsolete backups. 3) You can also use RMAN to verify that your obsolete backups were deleted.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-13 . you use Oracle Flashback features to recover from errors in your database.Practice for Lesson 5 In this practice.

2) Use the ALTER DATABASE command to enable supplemental logging.Practice 5-1: Enable Flashback Database 1) Use Enterprise Manager to enable Flashback Database. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-14 .

3) Use SQL*Plus to query the POSTAL_CODE column in the HR. Use Enterprise Manager to enable row movement for the HR.LOCATIONS again to be sure the correct values have been restored.sql script to query the POSTAL_CODE column in HR.LOCATIONS table again.sql script to update the POSTAL_CODE column in the HR.sql script to query the POSTAL_CODE column in the HR. Set a restore point to remember a significant change so that you can quickly recover to that point in time without having to record an SCN or time. 4) Execute the lab_05_02_04_01.LOCATIONS table so that all postal codes are set to 11111.LOCATIONS table. 5) Execute the lab_05_02_05_01. 1) You must enable row movement to use restore points. 2) Create a normal restore point. Execute the lab_05_02_07_01. 7) Return to your SQL*Plus session. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-15 . 6) Restore the POSTAL_CODE column values using the restore point.Practice 5-2: Set Restore Points and Perform Flashback Table Restore points are a way to “bookmark” database points in time.LOCATIONS table.

simulating user error. 4) Execute the lab_05_03_04_01.LOCATIONS and view the change.Practice 5-3: Use Flashback Query and Flashback Versions Query 1) Execute the lab_05_03_01_01. 5) Use Enterprise Manager to perform Flashback Versions Query to correct the user errors.LOCATIONS table to confirm the Flashback operation. Query the HR.LOCATIONS table.LOCATIONS table for location ID 1400. 3) Execute the lab_05_03_03_01. simulating user error. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-16 .sql script to update the POSTAL_CODE column in the HR.sql script to update the POSTAL_CODE column in the HR.LOCATIONS table. 2) Execute the lab_05_03_02_01. 6) Return to your SQL*Plus session.sql script to query the POSTAL_CODE column in HR.sql script to query the HR.

Record the number of rows: ___________ 4) Execute the lab_05_04_04_01. 7) Return to your SQL*Plus session.JOB_HISTORY table. Execute the lab_05_04_07_02. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-17 .sql script to truncate the HR.JOB_HISTORY table.JOB_HISTORY table. 5) Execute the lab_05_04_05_01.sql script to determine the number of rows in the HR. 3) Execute the lab_05_04_03_01.sql script to determine the number of rows in the HR. 2) Use Enterprise Manager to create a Guaranteed Restore Point.Practice 5-4: Use Flashback Database 1) Use Enterprise Manager to verify that Flashback Database is enabled.JOB_HISTORY table again to be sure the data has been restored.sql script to query the HR.JOB_HISTORY table rows. 6) Use Flashback Database to restore the HR.

you create a duplicate database. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-18 .Practice for Lesson 6 In this practice.

6) Verify that your target database (orcl database) is mounted or open.ora file. 7) Start RMAN with a connection to the target database (orcl) and the auxiliary instance. 9) Use SQL*Plus to log in to your AUX database and execute a query against the HR. 10) Now that you have completed the test recovery by creating a duplicate database.ora file. 3) Create an initialization parameter file for the auxiliary instance. 11) Change your ORACLE_SID to orcl in preparation for later practices. you use RMAN to create a duplicate database on the same host as your database. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-19 .REGIONS table.Practice 6-1: Create a Duplicate Database In this practice. 2) Use Oracle Net Manager to create an entry called AUXDB in the tnsnames. 8) Create the duplicate database by executing the DUPLICATE command. 5) Create a server parameter file (SPFILE). 4) Start the auxiliary instance in NOMOUNT mode using the initAUX. shut down the aux instance. 1) Create an Oracle password file for your auxiliary instance.

Practice for Lesson 7 In this practice. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-20 . you use tablespace point-in-time recovery to recover from unwanted changes to your database.

You will receive error messages because the import excludes the COUNTRIES. 12) Verify that the SALARY columns in HRTEST.sql script to create a new tablespace and a new user in your database. 4) Create a backup of your database using RMAN.EMPLOYEES table and view information about employees in department 60.sh script to populate the new tablespace with a copy of the data from the HR schema. 15) If you wanted to complete the tablespace point-in-time recovery for the HRTEST tablespace now.sql script to determine whether there are any dependencies that will prevent the TSPITR operation. Execute the lab_07_01_14_02. 2) Execute the lab_07_01_02_02. 10) You can use Enterprise Manager Database Control or RMAN command line to perform tablespace point-in-time recovery.sql script to add a constraint to the HRTEST. and LOCATIONS tables.sql script to update the salaries for the employees in department 60 and note the highest salary displayed. 14) Assume you need to perform TSPITR on the HRTEST tablespace again. Note: The import should complete successfully.Practice 7-1: Use Tablespace Point-in-time Recovery 1) Execute the lab_07_01_01_01.DEPARTMENTS table.sql query to determine whether there are any dependencies outside the recovery set. 11) Verify that the HRTEST tablespace is online. Make note of the highest salary that is displayed: ________ 8) Execute the lab_07_01_08_01. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-21 . These messages can be ignored.DEPARTMENTS table or you would need to add the tablespace that contains the HR. 3) Execute the lab_07_01_03_01.LOCATIONS table to your recovery set. REGIONS. Highest salary: _____________ 9) You now want to perform TSPITR for the HRTEST tablespace to return it to the state prior to the updates.sql script to query the HRTEST. Execute the lab_07_01_09_01. what would you need to do? r O Note: You will not perform another tablespace point-in-recovery in this practice. You would need to disable the DEPT_LOC_ID_FK constraint that was added to your HRTEST.EMPLOYEES for the employees in department 60 contain the correct values.sh script to export the HR schema. 5) Record the current SCN: ____________ 6) Record the current time. 7) Execute the lab_07_01_07_01. 13) Execute the lab_07_01_13_02.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-22 .Practice for Lesson 8 In this practice. you create a recovery catalog in your instructor’s database and register your database in the recovery catalog.

1) Connect to the recovery catalog database (instructor’s database) with the appropriate recovery catalog owner name (if you are using PC01. The users are named RCUSER01 – RCUSER12. connect to your target database and the recovery catalog database. Do not execute the whole_backup script at this time. 3) Using RMAN. 6) Use the PRINT command to query the recovery catalog and verify the creation of your whole_backup script. (If you are using PC01. 7) In preparation for later practices.The tablespace for the recovery catalog and the recovery catalog owner have been created in the instructor database. What happens? Why? 4) Register the target database in the recovery catalog. Practice 8-1: Create the Recovery Catalog and Register the Database r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-23 . execute the command to resynchronize the control file and recovery catalog. 5) Create an RMAN script named whole_backup to make a whole database backup. your assigned tablespace is RCTS01.) The service name is RCDB. Create the recovery catalog in your assigned tablespace. The tablespaces are named RCTS01 – RCTS12. use RMAN to unregister your database from the recovery catalog. connect as RCUSER01) using RMAN. You can use RMAN commandline or Enterprise Manager for this step. 2) Using RMAN.

Practice for Lesson 9 In this practice. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-24 . you monitor the progress of your RMAN backup jobs.

sql script to query V$SESSION_LONGOPS. the TIME_REMAINING column should be decreasing. You will use this second session to monitor a database backup. begin a whole database backup. 4) Use your SQL*Plus session to monitor the progress of the whole database backup by querying the V$SESSION_LONGOPS view. If the backup is progressing normally. In your RMAN session. Invoke SQL*Plus and connect as SYSDBA. 3) Return to your first terminal window. Execute the lab_09_01_04_01.Practice 9-1: Use SQL to Monitor the Progress of RMAN Backups 1) Invoke RMAN and delete all obsolete backups. Change to the labs directory. 2) Open a second terminal window. By using this view you can determine whether the backup is progressing normally or hanging. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-25 .

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-26 . 2) Delete obsolete backups. 1) Start Enterprise Manager and log in as SYS/ORACLE as SYSDBA. 3) Start a whole database backup.Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs You can easily monitor RMAN jobs in Enterprise Manager.

Practice for Lesson 10 There are no practices for Lesson 10. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-27 .

THE VIRTUAL TEST DEVICES USED IN THIS LAB ARE FOR TRAINING PURPOSES ONLY. • View information about the configured devices. • Connect to the EM Database Console application using your browser. THEY ARE NOT SUPPORTED FOR PRODUCTION USE. you perform the following tasks: • Create your Oracle Secure Backup home directory. • Register your administrative server with EM. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-28 .Practice for Lesson 11 In this practice. • Define a new Oracle Secure Backup user. • Insert four volumes into the tape library. • Install the Oracle Secure Backup software. • Configure preauthorization for this user. • Configure virtual test devices. • Test connectivity to the tape drive.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-29 . Begin with the setup program. 2) Continue as the root user.Practice 11-1: Install Oracle Secure Backup In this practice. • During installation. Use the following information to install the software: • The Oracle Secure Backup software is staged on your server in the /stage/osb/osb_10_1cdrom directory. Unless specified otherwise during this practice. you perform the following tasks: • Create your Oracle Secure Backup home directory. Change to that directory. 1) Log in as the root user and create /usr/local/oracle/backup as your Oracle Secure Backup home directory. • Your Oracle Secure Backup home directory is /usr/local/oracle/backup. you should log in as the oracle user to your terminal emulator session. • Install the Oracle Secure Backup software. Start the installation of Oracle Secure Backup from the staging directory. you configure only the local machine as an administrative server with no attached devices.

and view the currently configured devices. you perform the following tasks: • Configure a virtual test library and a virtual test drive.sh script.sh script./lab_11_02_01.) 4) View the RMAN-DEFAULT media family. 2) In the /home/oracle/labs directory. to configure the vlib tape library directly attached to your administrative server. 1) In a terminal window. navigate to the /home/oracle/labs directory and execute the . and use the quit command to exit. (Hint: Use the lsdev command.) r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-30 . (Hint: Use the lsmf --long command.Practice 11-2: Configure Devices for Oracle Secure Backup In this practice. . execute the ./lab_11_02_02. to configure the vt tape drive for the library: 3) Start the obtool as the admin user with the oracle password. • View information about the configured devices and the default media family via the obtool interface.

Practice 11-3: Register the Administrative Server r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-31 . you perform the following tasks: • Connect to the EM Database Console application using your browser. On the Devices page. • Test connectivity to the virtual test drive. (An unlabeled tape is synonymous with a blank tape within Oracle Secure Backup. 3) Use Enterprise Manager to insert four volumes into the vlib test library. 2) In Enterprise Manager. register your administrative server. test the virtual tape drive access. • Insert four volumes into the virtual test library. you should log in as the oracle user to your terminal emulator session. • Register your administrative server with EM. Unless specified otherwise. connect to Enterprise Manager Database Control using the IP address or machine name for your host. you want to make sure you can access your tape drives.) 4) Before taking any backups. 1) With your browser. and as SYSDBA to your Database Control console and SQL*Plus sessions.In this practice.

set the value to “yes”. you perform the following tasks: • Define a new Oracle Secure Backup user. Best Practice Tip: Limit pre-authorized access to selected hosts. you can have two windows open. so set the value to “no. Then if you rightclick the “File System Backup and Restore” link (at the bottom of the page) and select the “Open Link in New Window” or “Open Link in New Tab” option. Password: oracle. If you are already in Enterprise Manager.In this practice. UNIX name: oracle. one for Enterprise Manager and the other for the Oracle Secure Backup Web tool. such as clicking the Administrative Server link in the upper-left part of the Devices page. you should log on as the oracle user to your terminal emulator session and as SYSDBA to your EM Database Control Console session. Note: If you have an NDMP server.” 2) Configure the oracle Oracle Secure Backup user as a preauthorized RMAN and command line user with following values: Hosts: all hosts. and Attributes: cmdline and rman. but inside the regular classrooms. you can use shortcuts. OS username: *. UNIX group: dba and NDMP server user: no. Windows domain name: *. User class: oracle. Unless specified otherwise. an NDMP server is not available. • Configure preauthorization for this user. 1) Use the Oracle Secure Backup Web tool to create the oracle Oracle Secure Backup user with the following values: User oracle. Practice 11-4: Configure Oracle Secure Backup User r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-32 .

Practice for Lesson 12 In this practice. you perform the following tasks: • Create a database backup storage selector for your database. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-33 . • Perform a backup of your Oracle database with the Oracle-Suggested Backup strategy.

shut down the database. verify that the database is in ARCHIVELOG mode. you perform the following tasks: • In SQL*Plus. and Incremental 3) Test your tape backup. Auto Backup. and “Save as Preferred Credential” Database Backup Types: Archive log. verify that the database is in ARCHIVELOG mode. create a database backup storage selector for your Oracle database. and then restart the database. Unless specified otherwise. • In Enterprise Manager. If your database is in ARCHIVELOG mode.Practice 12-1: Create a Database Backup Storage Selector In this practice. 1) First. Password: oracle. continue with the next step. create a backup selector for your database with the following specifications: • • • Tape Drives: 1 Host Credentials Username: oracle. If not. • In Enterprise Manager. enable archiving. Full. 2) In Enterprise Manager. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-34 . you should log on as the oracle user to your terminal emulator session. and as SYSDBA to your Database Control Console and SQL*Plus sessions. perform a test backup to verify that the Oracle Secure Backup configuration is correct.

If this is your first scheduled backup. schedule Oracle-Suggested Backup with the following specifications: • • • • Backup destination: both disk and tape Daily backup of archivelogs and incremental backup Tape Drives: 1 Schedule daily backup within 5 minutes of your current date and time 2) Review your backup job. Unless specified otherwise.Practice 12-2: Perform Oracle-Suggested Backup In Enterprise Manager. Review the RMAN command. and as SYSDBA to your Database Control Console and SQL*Plus sessions. you should see a full backup (otherwise an incremental one) first to the Flash Recovery Area. to reinforce this practice topic. as well as the job execution. then to tape. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-35 . 3) Optionally.html viewlet in the /home/oracle/solutions/viewlets directory. 1) In Enterprise Manager. you can view the Oracle_Suggested_Strategy_viewlet_swf. you should log on as the oracle user to your terminal emulator session. perform Oracle-Suggested Backup.

Practice for Lesson 13 In this practice. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-36 . • Schedule a backup of the dataset. you perform the following tasks: • Create a dataset for a file-system backup.

Note: Do not back up the local root directory. The backup should run immediately. Query the Manage: Jobs page for the previously created and executed job. 3) View Oracle Secure Backup job information.html viewlet in the /home/oracle/solutions/viewlets directory. you can view the Scheduling_filesystem_backups_viewlet_swf. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-37 . Both use oracle as password. which can be accessed from Enterprise Manager for the tasks in this practice session.Practice 13-1: Back Up Your File System with Oracle Secure Backup Use the Oracle Secure Backup Web tool. Unless specified otherwise. The dataset should be of the form: include host <hostname> { include path /home/oracle/labs } Make sure that you replace <hostname> with the machine name of your student computer. to reinforce this practice topic. 4) Optionally. 2) Create a backup with your mylabs dataset. access Enterprise Manager as SYDBA and the Oracle Secure Backup Web tool as admin user. 1) Create a new dataset called mylabs that you will use to back up your $HOME/labs directory.

• Verify that the files are recovered.Practice for Lesson 14 In this practice. you perform the following tasks: • Delete the contents of your labs directory. • Restore the missing lab files. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-38 .

log in as admin user (with the oracle password) into the Oracle Secure Backup Web tool. For tasks 2 to 5. 2) Restore your $HOME/labs directory contents by selecting the appropriate backup from the Oracle Secure Backup catalog. remove all the files located in your $HOME/labs directory. Unless specified otherwise. Practice 14-1: Restore File-System Data with Oracle Secure Backup r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-39 . and as SYSDBA to your Database Control Console session. you should log on as the oracle user to your terminal emulator session. 3) Monitor the progress of the restore request. you first delete your lab files and then restore them from the backup created in the previous practice. which can be accessed from Enterprise Manager. 1) From your terminal emulator session. 4) In a terminal window. verify that your lab files are present.In this practice. Use the Browse Host button to locate the desired backup.

you perform the following tasks: • Create an encrypted backup. • Recover a tablespace from an encrypted backup. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-40 .Practice for Lesson 15 In this practice.

html viewlet the /home/oracle/solutions/viewlets directory. Note: Specifying “ONLY” in the command means decryption will require the demo password. The command syntax is: SET ENCRYPTION ON IDENTIFIED BY demo ONLY. to reinforce this practice topic. • After the backup operation completes. and no other encryption keys will exist for this backup. 3) Check the backup job status. • Edit the RMAN script to encrypt the backup using a password. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-41 .Practice 15-1: Create an Encrypted Backup In this practice. Start the backup immediately. 2) Edit the RMAN script and include the command to encrypt the backup. Verify that the RMAN SET ENCRYPTION command is successfully executed. Unless specified otherwise. 5) Optionally. schedule a customized tape backup of the whole database with the following specifications: full online backup with archive logs to tape. you can view the Backup_Encryption_viewlet_swf. verify that the backup was encrypted. specifying demo as the password. you perform the following tasks: • Schedule a customized tape backup of the whole database. 4) Verify the successful completion of your backup. you should log in as SYS user (with the oracle password) and connect as SYSDBA to Enterprise Manager Database Control. 1) In Enterprise Manager.

Restore the files to the default location. 6) View the Perform Recovery: Result page. What do you notice on the Perform Recovery page? 4) Perform an object level recovery of the EXAMPLE tablespace to the current time or a previous point in time. 5) Edit the RMAN script on the “Perform Object Level Recovery: Review” page.Practice 15-2: Recover a Tablespace from an Encrypted Backup In this practice. Unless specified otherwise. Notice the successful execution of your SET DECRYPTION command. • Troubleshoot the recovery process. Restore the files to the default location. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-42 . you perform the following tasks: • Perform a tablespace recovery using the encrypted backup. 1) In Enterprise Manager. • Edit the RMAN script to decrypt the backup. 2) The recovery operation fails. perform an object level recovery of the EXAMPLE tablespace to the current time or a previous point in time. you should log in as SYS user (with the oracle password) and connect as SYSDBA to Enterprise Manager Database Control. Include the command to decrypt the backup. The command syntax is: SET ENCRYPTION ON IDENTIFIED BY demo ONLY. Why? 3) Troubleshoot the recovery process. specifying demo as the password.

you perform the following tasks: • View Oracle Secure Backup information. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-43 .Practice for Lesson 16 In this practice. • Back up the Oracle Secure Backup catalog.

2) View the volumes and their content. 3) View a category of jobs—for example. jobs and job transcripts. Unless specified otherwise. completed ones. you should log in as the SYS user (with the oracle password) and connect as SYSDBA to Enterprise Manager Database Control. volumes and their content. To access the Oracle Secure Backup Web tool. and defaults and policies. Use the Oracle Secure Backup Web tool to browse the Oracle Secure Backup catalog to view what you have backed up so far. you view Oracle Secure Backup information: the catalog.In this practice. Include a review of a job transcript. use admin as username and oracle as password. 1) The administrative server maintains a catalog in which it stores metadata relating to backup and restore operations for the administrative domain. 4) View the configuration of your security policies. What is the value of the “Login token duration” policy? Practice 16-1: View Oracle Secure Backup Information r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-44 .

using the commands listed here: mkds --dir catalog_backup mkds --input catback. (State should show “completed successfully”). and then submit the backup request. 5) Identify the volume that contains the backup. • Identify the volume that contains the backup data. • Submit the backup request to the scheduler.ds When prompted for input. To create the backup request using the following obtool command: What does this command do? backup –l full –p 1 –r vt –g --dataset catback. you used the Oracle Secure Backup Web tool for a file-system backup. • Verify that the backup completed successfully. you perform the following tasks using obtool: • Create a dataset for the <OSB_HOME>/admin directory. Use the following command: mkmf --vidunique --writewindow 7days --retain 28days --noappend OSB_catalogs 2) Create a backup set for the catalog data.ds 4) Use the information from the message returned in the previous step to verify that the backup completed successfully.Practice 16-2: Back Up the Oracle Secure Backup Catalog In this practice. Previously. • Create a backup request. supply the following dataset directives. where <hostname> is the host name of your assigned computer: include include include include host path path path <hostname> { /etc/obconfig /usr/etc/ob/xcr /usr/local/oracle/backup/admin } 3) Create a backup request for this dataset. Now use the obtool utility with admin as username and oracle as password. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery A-45 . 1) Create a media family to be used when backing up the Oracle Secure Backup catalog files.

r O cl a In e rn te l& a O I A s U O e ly n .

Appendix B Practice Solutions r O cl a In e rn te l& a O I A s U O e ly n .

....................................................................................... 112 Solutions for Practice 11-4: Configure Oracle Secure Backup User............................................. 151 Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup ....... 17 Solutions for Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile ............................................................................................................................................................. 52 Solutions for Practice 6-1: Create a Duplicate Database .............................. 60 Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery.............. 99 Solutions for Practice 11-1: Install Oracle Secure Backup................. 123 Solutions for Practice 12-2: Perform Oracle-Suggested Backup..... 129 Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup 138 Solutions for Practice 14-1: Restore File-System Data with Oracle Secure Backup ...... 5 Solutions for Practice 3-1: Use RMAN to Create and Manage Backups ....................................................... 106 Solutions for Practice 11-2: Configure Devices for Oracle Secure Backup.............. 145 Solutions for Practice 15-1: Create an Encrypted Backup..... 33 Solutions for Practice 5-1: Enable Flashback Database .............. 36 Solutions for Practice 5-2: Set Restore Points and Perform Flashback Table... 174 r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-2 ........................................................................... 26 Solutions for Practice 4-4: Delete Obsolete Backups ......................... 46 Solutions for Practice 5-4: Use Flashback Database ........................................... 168 Solutions for Practice 16-2: Back Up the Oracle Secure Backup Catalog ................................ 74 Solutions for Practice 8-1: Create the Recovery Catalog and Register the Database...... 158 Solutions for Practice 16-1: View Oracle Secure Backup Information........................ 96 Solutions for Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs ........................................................................... 89 Solutions for Practice 9-1: Use SQL to Monitor the Progress of RMAN Backups................ 118 Solutions for Practice 12-1: Create a Database Backup Storage Selector ............. 21 Solutions for Practice 4-3: Recover Control Files ... 10 Solutions for Practice 4-1: Use RMAN to Recover a Datafile .................. 38 Solutions for Practice 5-3: Use Flashback Query and Flashback Versions Query...Table of Contents Solutions for Practice 2-1: Configure Your Database ............... 110 Solutions for Practice 11-3: Register the Administrative Server................

Practice Solutions for Lesson 1 There are no practices for Lesson 1. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-3 .

you configure your database for recoverability.Practice Solutions for Lesson 2 In this practice. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-4 .

The Restart Database: Confirmation page is displayed. Click Yes to restart the database instance. 3. 10. 2. In the Database Credentials section. The Restart Database: Activity Information page is displayed. 8. 5. Select Recovery Settings in the Backup/Recovery Settings section. enter SYS in the Username field and oracle in the Password field.” Click OK.Solutions for Practice 2-1: Configure Your Database 1) Use Enterprise Manager to configure your database in ARCHIVELOG mode. enter oracle in the Username and Password fields. In the Host Credentials section. Select SYSDBA in the Connect As menu. Enter SYS in the User Name field and oracle in the Password field. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-5 . Answer: 1. select “ARCHIVELOG Mode” and click Apply. Click Login. In the Media Recovery section. The Confirmation page is displayed. 4. 2. 2) Use Enterprise Manager to verify that the Flash Recovery Area has been configured for your database and increase the Flash Recovery Area size to 3 GB. 9. 6. Wait a few minutes and then click Refresh. Click “I agree” on the Oracle Database 10g Licensing Information page. Start the Web browser and enter http://your host name:1158/em. Click Yes to confirm the restart of the database instance. Select the Maintenance page. Select “Save as Preferred Credential. 7. Select Recovery Settings in the Backup/Recovery Settings section. On the Restart Database: Specify Host and Target Database Credentials page. Select the Maintenance page. Answer: 1.

Open a terminal window and log in as oracle/oracle. Click Test. Select Preferences at the top of the Maintenance page. Select Preferred Credentials on the left side of the page. Click the Set Credentials icon for the database instance. 4) Use Recovery Manager (RMAN) to connect to your target database.Solutions for Practice 2-1: Configure Your Database (continued) 3. Click Apply to save the settings. 2.com” message is displayed. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-6 . r O Database Identifier: ____________________________ Answer: 1. Scroll to the Flash Recovery Area and verify that the Flash Recovery Area is enabled. 3. 4. Enter 3 in the Flash Recovery Area Size field and click Apply. The “Credentials successfully verified for orcl. correct them and click Test again. 7. Click Database to return to the Database home page. Click the Database instance link to return to the Maintenance page. 5. Answer: 1. 6. The Update Message is displayed. Make note of the database identifier (DBID) of your database. Supply the following values: Normal Username: system Normal Password: oracle SYSDBA Username: sys SYSDBA Password: oracle Host Username: oracle Host Password: oracle 5. If you have any errors.oracle. 4. 3) Set Preferred Credentials in Enterprise Manager.

# default CONFIGURE DEFAULT DEVICE TYPE TO DISK. Oracle. # default CONFIGURE ARCHIVELOG DELETION POLICY TO NONE. CONFIGURE MAXSETSIZE TO UNLIMITED. # deft CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET. # default CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1. # default CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10. # default CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1. # default CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'. Start RMAN and connect to the target database by entering the following command at the operating system prompt: rman target / [oracle@edrsr10p1 oracle]$ rman target / Recovery Manager: Release 10.0.1. connected to target database: ORCL (DBID=1090770270) RMAN> Make note of the database identifier (DBID) of your database.Production on Tue Mar 7 12:51:53 2006 Copyright (c) 1982. All rights reserved. # default CONFIGURE DEVICE TYPE SBT_TAPE PARALLELISM 1 BACKUP TYPE TO BACKUPSET. 2005. # default CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%U'. # default CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'. # default CONFIGURE CONTROLFILE AUTOBACKUP OFF.2. Answer: RMAN> show all. 5) Use the RMAN SHOW ALL command to view the configuration settings in your database and then exit from your RMAN session. using target database control file instead of recovery catalog RMAN configuration parameters are: CONFIGURE RETENTION POLICY TO REDUNDANCY 1.Solutions for Practice 2-1: Configure Your Database (continued) 2.0 .2. # default CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1. # default CONFIGURE BACKUP OPTIMIZATION OFF. # default CONFIGURE ENCRYPTION ALGORITHM 'AES128'. # default CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1. # default CONFIGURE ENCRYPTION FOR DATABASE OFF.0/db_1/dbst r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-7 .

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-8 .Solutions for Practice 2-1: Configure Your Database (continued) RMAN> exit Recovery Manager complete.

Practice Solutions for Lesson 3 In this practice. You also configure a backup of your database using the Oracle-Suggested Backup Strategy feature in Enterprise Manager Database Control. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-9 . you configure automatic backup of the control file.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-10 . 2) Use Enterprise Manager Database Control to configure backup optimization and enable block change tracking. Click OK. 4. Select “Enable block change tracking for faster incremental backups” and enter /u01/app/oracle/oradata/orcl/chg_track.Solutions for Practice 3-1: Use RMAN to Create and Manage Backups 1) Use Enterprise Manager Database Control to configure autobackup of the control file and the server parameter file. In the Backup Policy section. 3. In the Backup Policy section. On the Backup Settings page. 2. Select Maintenance > High Availability > Backup/Recovery Settings > Backup Settings. select “Optimize the whole database backup by skipping unchanged files such as read-only and offline datafiles that have been backed up.” Click OK. 3. Select Maintenance > High Availability > Backup/Recovery Settings > Backup Settings. select the Policy tab. On the Backup Settings page. Answer: 1. Specify /u01/app/oracle/oradata/orcl/chg_track. select the Policy tab. You are returned to the Maintenance page. 2. Answer: 1.f for the name of the block change tracking file.f in the Block Change Tracking File field.” 4. select “Automatically backup the control file and server parameter file (SPFILE) with every backup and database structural change.

you can specify the time for your backups. 3) Use Enterprise Manager Database Control to create a whole database backup using the Oracle-suggested backup strategy. Answer: 1. an incremental backup to disk will be performed every day.Solutions for Practice 3-1: Use RMAN to Create and Manage Backups (continued) 5. In the Oracle-Suggested Backup section of the Schedule Backup page. You are returned to the Maintenance page. select Disk. Oracle Database 10g: Backup and Recovery B-11 cl a In e rn te l& a O I A s U O e ly n . 3. click Schedule Oracle-Suggested Backup. On the Schedule Oracle-Suggested Backup: Destination page. r O 4. After that. Note that a full database copy will be performed during the first backup. Set the Time Zone field to correspond to your time zone. Select Maintenance > High Availability > Backup/Recovery > Schedule Backup. Review the information on the Schedule Oracle-Suggested Backup: Setup page. Click Next. 2. On the Schedule Oracle-Suggested Backup: Schedule page. 5. Click Next.

Oracle Database 10g: Backup and Recovery B-12 4) Use Enterprise Manager to view information about your backups. Click the Backup link to view the output log. you can see that RMAN has made a datafile copy backup of each datafile in your database. Answer: 1. Select Maintenance > High Availability > Backup/Recovery > Backup Reports. The Status page is displayed indicating that the job has been submitted. Review the information on the Schedule Oracle-Suggested Backup: Review page.Solutions for Practice 3-1: Use RMAN to Create and Manage Backups (continued) Select a backup time that is five minutes from the current time. Click Submit Job. In the output log. 9. Click the Database tab to return to the Database Home page. 8. Click the Refresh button on your browser to refresh the Execution page. 7. Click Next. cl a In e rn te l& a O I A s U O e ly n . Click View Job to monitor the status of the backup job. r O 10. 6.

2. '/home/oracle/backup2/%U'.Solutions for Practice 3-1: Use RMAN to Create and Manage Backups (continued) 2. Start RMAN and connect to the target database. One copy should be in the /home/oracle/backup1 directory and one copy should be in the /home/oracle/backup2 directory.1.rmn RMAN> backup device type disk 2> copies 2 3> tablespace example 4> format '/home/oracle/backup1/%U'. Click the Database Instance link to return to the Maintenance page.Production on Wed Mar 22 10:38:18 2006 Copyright (c) 1982. Click the link for the backup you took in Question 3 to view detailed information about the backup. 5) Use RMAN to create a duplexed backup set of the EXAMPLE tablespace.0. s U O e ly n Oracle Database 10g: Backup and Recovery B-13 . RMAN> @sol_03_01_05_02. Oracle. Create two backup set copies. Answer: 1. connected to target database: ORCL (DBID=1090770270) 2. [oracle@edrsr10p1 backup1]$ rman target / Recovery Manager: Release 10. 3. 2005. Starting backup at 22-MAR-06 using channel ORA_DISK_1 channel ORA_DISK_1: starting full datafile backupset channel ORA_DISK_1: specifying datafile(s) in backupset r O cl a In e rn te l& a O I A All rights reserved.0 .

Oracle Database 10g: Backup and Recovery B-14 .-. using target database control file instead of recovery catalog List of Backups =============== Key TY LV S Device Type #Copies Compressed Tag ------.dbf channel ORA_DISK_1: starting piece 1 at 22-MAR-06 channel ORA_DISK_1: finished piece 1 at 22-MAR-06 with 2 copies and tag TAG20063 piece handle=/home/oracle/backup1/0ehejks7_1_1 comment=NONE piece handle=/home/oracle/backup2/0ehejks7_1_2 comment=NONE channel ORA_DISK_1: backup set complete.Solutions for Practice 3-1: Use RMAN to Create and Manage Backups (continued) input datafile fno=00005 name=/u01/app/oracle/oradata/orcl/example01.-----21-MAR-06 22-MAR-06 22-MAR-06 22-MAR-06 1 1 1 1 1 1 2 1 r O cl a In e rn te l& a O I A s U O e ly n Recovery Manager complete.-. Exit from RMAN.rmn RMAN> list backup summary. RMAN> @sol_03_01_05_03.--5 B F A DISK NO TAG200600 7 B F A DISK NO TAG200607 8 B F A DISK NO TAG200603 9 B F A DISK NO TAG200608 RMAN> **end-of-file** RMAN> exit Completion Time #Pieces --------------.---------.----------. The #Copies column shows the duplexed backup set copies you made. Use the RMAN LIST BACKUP SUMMARY command to view a listing of the backup sets and pieces..------. elapsed time: 00:00:15 Finished backup at 22-MAR-06 Starting Control File and SPFILE Autobackup at 22-MAR-06 piece handle=/u01/app/oracle/flash_recovery_area/ORCL/autobackup /2006_03_22/o1_E Finished Control File and SPFILE Autobackup at 22-MAR-06 RMAN> **end-of-file** RMAN> 3.

3. After it completes successfully. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-15 . 4. 2. Select Maintenance > High Availability > Backup/Recovery > Manage Current Backups. You can click View Job to monitor the cross-check job. Log out of Enterprise Manager.Solutions for Practice 3-1: Use RMAN to Create and Manage Backups (continued) 6) Use Enterprise Manager Database Control to perform a cross-check of your backups. return to the Database Home page. Click Submit Job. Review the information on the Crosscheck All: Specify Job Parameters page and accept the default values. 5. Click Crosscheck All. You receive the “Job submission succeeded” message. Answer: 1.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-16 . you use RMAN to perform recovery.Practice Solutions for Lesson 4 In this practice.

change to the labs directory and execute the lab_04_01_02_01. Make note of the number of rows in the HR.0 . Answer: 1. Query the HR.0.sh script. All rights reserved. 2. Exit from your SQL*Plus session. Open a terminal window and log in to SQL*Plus and connect as the HR user with HR as the password. execute the lab_04_01_02_01.Solutions for Practice 4-1: Use RMAN to Recover a Datafile In this practice. 2) At the operating system prompt.REGIONS table and record the number of rows.REGIONS table. you use RMAN to recover a lost datafile. 1) Use SQL*Plus to query the HR. Answer: 1.sh script to simulate a failure in your database.2.1. Connected to: Oracle Database 10g Enterprise Edition Release 10. Notice how you are prompted by Enterprise Manager to recover the lost datafile.REGIONS table. REGION_ID ---------1 2 3 4 REGION_NAME ------------------------Europe Americas Asia Middle East and Africa 3./lab_04_01_02_01. Oracle.sh EXAMPLE tablespace file deleted r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-17 . Number of rows: ___________ [oracle@edrsr10p1 oracle]$ sqlplus hr/hr SQL*Plus: Release 10. This script deletes the EXAMPLE tablespace datafile.0 .2.1. At the operating system prompt. 2005.Production With the Partitioning. [oracle@edrsr10p1 labs]$ .Production on Thu Mar 23 12:51:00 2006 Copyright (c) 1982. OLAP and Data Mining options SQL> select * from regions.0.

3.JOBS table. Navigate to the Maintenance page. Log in to SQL*Plus and connect as the HR user with HR as the password.Solutions for Practice 4-1: Use RMAN to Recover a Datafile (continued) 3) Use SQL*Plus to query the HR. Answer: 1. 4. Click the “Datafiles Need Media Recovery” link.JOBS table.dbf' 4) Use Enterprise Manager to perform database recovery of the EXAMPLE tablespace datafile. Query the HR. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-18 . Answer: 1. 2. 2. select * from jobs * ERROR at line 1: ORA-00376: file 5 cannot be read at this time ORA-01110: data file 5: '/u01/app/oracle/oradata/orcl/example01. Start Enterprise Manager and log in as SYS/ORACLE as SYSDBA. Select Perform Recovery on the Maintenance page. SQL> select * from jobs.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-19 . Restore the files to the default location. After the recovery operation completes. click Edit RMAN Script to view the script that will be executed. Select the file and click Next.Solutions for Practice 4-1: Use RMAN to Recover a Datafile (continued) 5. Select “No. On the “Perform Object Level Recovery: Review” page. Click Submit. 7. the Result page is displayed indicating that the recovery operation succeeded. 6.” Click Next. 8. The Processing page is displayed.

Query the HR.JOBS table. JOB_ID MAX_SALARY ------------------AD_PRES 40000 AD_VP 30000 AD_ASST 6000 FI_MGR 16000 … MK_REP 9000 HR_REP 9000 PR_REP 10500 JOB_TITLE ----------------------------------. le c te In Marketing Representative Human Resources Representative Public Relations Representative na r l& O I A s U O e MIN_SALARY ly n 3000 8200 20000 15000 4000 4000 4500 Oracle Database 10g: Backup and Recovery B-20 . 5) Return to your SQL*Plus session and again attempt to query the HR.---------President Administration Vice President Administration Assistant Finance Manager ra O 19 rows selected.Solutions for Practice 4-1: Use RMAN to Recover a Datafile (continued) 9. Answer: 1.JOBS table. SQL> select * from jobs. Click OK to return to the Maintenance page.

sh script to simulate a failure in your database. Exit from SQL*Plus. cl a SQL> select * from departments.sh script. [oracle@edrsr10p1 labs]$ . Log in to SQL*Plus and connect as the HR user with HR as the password. This script deletes the EXAMPLE tablespace datafile.DEPARTMENTS table. Answer: 1. 1) Use SQL*Plus to query the HR. select * from departments * ERROR at line 1: ORA-01116: error in opening database file 5 ORA-01110: data file 5: '/u01/app/oracle/oradata/orcl/example01. Query the HR./lab_04_02_02_01.REGIONS table.REGIONS table. Answer: 2. 2.REGIONS table.dbf' ORA-27041: unable to open file Linux Error: 2: No such file or directory Additional information: 3 In e rn te l& a O I A s U O e ly n 4) Use the RMAN SWITCH TO COPY command to recover the datafile. 3. you recover a lost datafile by using the Flash Recovery Area for fast recovery.sh EXAMPLE tablespace file deleted [oracle@edrsr10p1 labs]$ 3) Use SQL*Plus to query the HR. 1.Solutions for Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile In this practice. Log in to SQL*Plus and connect as the HR user with HR as the password. Exit from your SQL*Plus session. Make note of the number of rows in the HR. execute the lab_04_02_02_01. Make note of the number of the datafile that is unavailable. Datafile number: ____ 4. change to the labs directory and execute the lab_04_02_02_01. At the operating system prompt. r O 3.DEPARTMENTS table. Answer: 1. 2) At the operating system prompt. Oracle Database 10g: Backup and Recovery B-21 . Query the HR.

JOBS table. Log in to SQL*Plus as HR/HR and query the HR.JOBS table.Solutions for Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile (continued) Answer: 1. elapsed time: 00:00:03 Finished recover at 24-MAR-06 5. datafile 5 switched to datafile copy "/u01/app/oracle/flash_recovery_area/ORCL/" 4.---------AD_PRES President 20000 40000 Oracle Database 10g: Backup and Recovery B-22 . RMAN> recover datafile 5. Recover the datafile. Take the datafile offline. Execute the SWITCH TO COPY command for the datafile you noted in step 3. Answer: 1. sql statement: alter database datafile 5 online RMAN> 6.----. Bring the datafile online. RMAN> sql 'alter database datafile 5 online'. 2. (Output has been formatted to fit the code box.) r O cl a In e rn te l& a O I A s U O e ly n SQL> select * from jobs.-----------------------------. 5) Query the HR. Starting recover at 24-MAR-06 allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=132 devtype=DISK allocated channel: ORA_SBT_TAPE_1 channel ORA_SBT_TAPE_1: sid=130 devtype=SBT_TAPE channel ORA_SBT_TAPE_1: Oracle Secure Backup starting media recovery media recovery complete. RMAN> switch datafile 5 to copy. RMAN> SQL 'alter database datafile 5 offline'. Exit from your RMAN session. JOB_ID JOB_TITLE MIN_S MAX_SALARY ---------. sql statement: alter database datafile 5 offline 3. Log in to your target database using RMAN.

Click Return to return to the Tablespaces page. Answer: 1. verify that the datafile being used for the EXAMPLE tablespace is in the Flash Recovery Area. Select the Example tablespace and click View.dbf'. Answer: 7) Make a copy of the datafile in the original location and switch back to it. Select Tablespaces on the Administration page.rmn RMAN> backup as copy datafile 5 2> format '/u01/app/oracle/oradata/orcl/example01.dbf tag=TAG20060324T13447 channel ORA_DISK_1: datafile copy complete. 2. 2. Starting backup at 24-MAR-06 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=129 devtype=DISK channel ORA_DISK_1: starting datafile copy input datafile fno=00005 name=/u01/app/oracle/flash_recovery_area/ORCL/datafilef output filename=/u01/app/oracle/oradata/orcl/example01. elapsed time: 00:00:07 r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-23 . RMAN> @sol_04_02_07_02. Log in to RMAN and connect to your target database. Create an image copy of the datafile in the original location.Solutions for Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile (continued) AD_VP … HR_REP PR_REP Administration Vice President 15000 30000 9000 10500 Human Resources Representative 4000 Public Relations Representative 4500 19 rows selected. 3. 6) Using Enterprise Manager Database Control. 1.

Bring the datafile back online. RMAN> sql 'alter database datafile 5 online'. Exit from RMAN. elapsed time: 00:00:02 Finished recover at 24-MAR-06 6. Switch to the new copy you made. Select Tablespace on the Administration page. Starting recover at 24-MAR-06 using channel ORA_DISK_1 allocated channel: ORA_SBT_TAPE_1 channel ORA_SBT_TAPE_1: sid=154 devtype=SBT_TAPE channel ORA_SBT_TAPE_1: Oracle Secure Backup starting media recovery media recovery complete. RMAN> sql 'alter database datafile 5 offline'. RMAN> switch datafile 5 to copy. sql statement: alter database datafile 5 offline 4.Solutions for Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile (continued) Finished backup at 24-MAR-06 Starting Control File and SPFILE Autobackup at 24-MAR-06 piece handle=/u01/app/oracle/flash_recovery_area/ORCL/autobackup /2006_03_24/o1_E Finished Control File and SPFILE Autobackup at 24-MAR-06 RMAN> **end-of-file** 3. Recover the datafile.dbf" 5. RMAN> recover datafile 5. Answer: 1. datafile 5 switched to datafile copy "/u01/app/oracle/oradata/orcl/example01. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-24 . Take the datafile offline. sql statement: alter database datafile 5 online 8) Use Enterprise Manager Database Control to verify the file.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-25 . Note that the datafile is the one you switched to. Click the Database tab to return to your database home page.Solutions for Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile (continued) 2. 3. Select the EXAMPLE tablespace and click View. 4.

ctl /u01/app/oracle/oradata/orcl/control03. Query the V$CONTROLFILE_RECORD_SECTION view. NAME --------------------------------------------/u01/app/oracle/oradata/orcl/control01. 1) Use SQL*Plus to view files information for the control files in your database.sh script. Log in to SQL*Plus as SYSDBA. SELECT * FROM v$controlfile_record_section * ERROR at line 1: ORA-00210: cannot open the specified control file ORA-00202: control file: '/u01/app/oracle/oradata/orcl/control01.ctl 2) Simulate a failure in your environment by executing the lab_04_03_02_01.ctl' ORA-27041: unable to open file Linux Error: 2: No such file or directory r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-26 . change to the labs directory and execute the lab_04_03_02_01. [oracle@edrsr10p1 oracle]$ cd labs [oracle@edrsr10p1 labs]$ . 2. Query V$CONTROLFILE_RECORD_SECTION to learn more about the contents of your control file. 2. Exit from SQL*Plus. In your terminal window session. Answer: 1. Log in to SQL*Plus as SYSDBA.sh script to delete all your control files. Answer: 1. Query V$CONTROLFILE. you recover your control file by using an autobackup. Query the NAME column in V$CONTROLFILE.ctl /u01/app/oracle/oradata/orcl/control02./lab_04_03_02_01. Answer: 1. SQL> SELECT name FROM v$controlfile.Solutions for Practice 4-3: Recover Control Files In this practice.sh Control files deleted [oracle@edrsr10p1 labs]$ 3) You need some more information about your control files. SQL> SELECT * FROM v$controlfile_record_section.

Production on Tue Mar 28 10:23:17 2006 Copyright (c) 1982. Exit from your SQL*Plus session. All rights reserved.2. RMAN> connect target / connected to target database (not started) RMAN> ra O 3. Restart the instance in NOMOUNT mode. SQL> exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.0 .2.0 . Answer: 1. Use SQL*Plus to shut down your instance.Production on Tue Mar 28 10:20:26 2006 Copyright (c) 1982. Use RMAN to connect to your target database. OLAP and Data Mining options [oracle@edrsr10p1 oracle]$ 2. RMAN> startup nomount Oracle instance started Total System Global Area 285212672 bytes le c te In na r l& O I A s U O e ly n All rights reserved. [oracle@edrsr10p1 oracle]$ rman Recovery Manager: Release 10.0.2. 2005.1.0. Oracle. OLAP and Data Mining options SQL> shutdown abort ORACLE instance shut down.2. 2005. Oracle Database 10g: Backup and Recovery B-27 . Connected to: Oracle Database 10g Enterprise Edition Release 10.1.Production With the Partitioning.0. Oracle.1. Use Recovery Manager to recover the control files.0 .0.0 .Solutions for Practice 4-3: Recover Control Files (continued) Additional information: 3 4) You have lost all your control files and will need to recover them from the control file autobackup. [oracle@edrsr10p1 oracle]$ sqlplus / as sysdba SQL*Plus: Release 10.1.Pn With the Partitioning.

database mounted released channel: ORA_DISK_1 7. RMAN> set dbid 1090770270. r O cl a RMAN> recover database. Starting restore at 28-MAR-06 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=156 devtype=DISK recovery area destination: /u01/app/oracle/flash_recovery_area database name (or database unique name) used for search: ORCL channel ORA_DISK_1: autobackup found in the recovery area channel ORA_DISK_1: autobackup found: /u01/app/oracle/flash_recovery_area/ORCL/p channel ORA_DISK_1: control file restore from autobackup complete output filename=/u01/app/oracle/oradata/orcl/control01. RMAN> restore controlfile from autobackup. Mount the database. Note: Your database identifier will be a different value from that shown in the solution.Solutions for Practice 4-3: Recover Control Files (continued) Fixed Size Variable Size Database Buffers Redo Buffers 1218992 109053520 171966464 2973696 bytes bytes bytes bytes 4. Starting recover at 28-MAR-06 Starting implicit crosscheck backup at 28-MAR-06 allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=156 devtype=DISK Crosschecked 11 objects In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-28 . Set the database identifier. executing command: SET DBID 5. Recover the database by issuing the RECOVER DATABASE command.ctl output filename=/u01/app/oracle/oradata/orcl/control02. Restore the control file from the autobackup.ctl output filename=/u01/app/oracle/oradata/orcl/control03.ctl Finished restore at 28-MAR-06 6. You recorded the database identifier in Practice 2-1. RMAN> alter database mount.

cataloging done List of Cataloged Files ======================= File Name: /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2006_0 3_28/o1_mfc File Name: /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2006_0 3_28/o1_mfc File Name: /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2006_0 3_28/o1_mfc File Name: /u01/app/oracle/flash_recovery_area/ORCL/autobackup/2006_0 3_27/o1_mfp using channel ORA_DISK_1 allocated channel: ORA_SBT_TAPE_1 channel ORA_SBT_TAPE_1: sid=155 devtype=SBT_TAPE channel ORA_SBT_TAPE_1: Oracle Secure Backup r O cl a starting media recovery archive log thread 1 sequence 116 is already on disk as file /u01/app/oracle/flc archive log thread 1 sequence 117 is already on disk as file /u01/app/oracle/flc archive log thread 1 sequence 118 is already on disk as file /u01/app/oracle/flc archive log thread 1 sequence 119 is already on disk as file /u01/app/oracle/org archive log filename=/u01/app/oracle/flash_recovery_area/ORCL/archivel og/2006_06 archive log filename=/u01/app/oracle/flash_recovery_area/ORCL/archivel og/2006_07 archive log filename=/u01/app/oracle/flash_recovery_area/ORCL/archivel og/2006_08 archive log filename=/u01/app/oracle/oradata/orcl/redo01...Solutions for Practice 4-3: Recover Control Files (continued) Finished implicit crosscheck backup at 28-MAR-06 Starting implicit crosscheck copy at 28-MAR-06 using channel ORA_DISK_1 Crosschecked 5 objects Finished implicit crosscheck copy at 28-MAR-06 searching for all files in the recovery area cataloging files. elapsed time: 00:00:02 In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-29 .log thread=1 sequence=9 media recovery complete.

elapsed time: 00:00:26 channel ORA_DISK_1: starting archive log backupset r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-30 . Starting backup at 10-APR-06 current log archived allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=159 devtype=DISK channel ORA_DISK_1: starting archive log backupset channel ORA_DISK_1: specifying archive log(s) in backup set input archive log thread=1 sequence=15 recid=53 stamp=587378250 input archive log thread=1 sequence=16 recid=54 stamp=587379659 input archive log thread=1 sequence=17 recid=55 stamp=587379860 input archive log thread=1 sequence=18 recid=56 stamp=587379970 input archive log thread=1 sequence=19 recid=57 stamp=587380091 input archive log thread=1 sequence=20 recid=58 stamp=587380115 input archive log thread=1 sequence=21 recid=59 stamp=587380409 input archive log thread=1 sequence=22 recid=65 stamp=587386310 input archive log thread=1 sequence=23 recid=66 stamp=587386310 input archive log thread=1 sequence=24 recid=67 stamp=587386311 channel ORA_DISK_1: starting piece 1 at 10-APR-06 channel ORA_DISK_1: finished piece 1 at 10-APR-06 piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/ 2006_04_10/o1_mE channel ORA_DISK_1: backup set complete. Back up the current online redo log file and back up all the archived redo log files. using target database control file instead of recovery catalog sql statement: ALTER SYSTEM ARCHIVE LOG CURRENT RMAN> backup archivelog all. RMAN> SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT'. database opened 9. Open the database with the RESETLOGS option.Solutions for Practice 4-3: Recover Control Files (continued) Finished recover at 28-MAR-06 8. RMAN> alter database open resetlogs.

dbf input datafile fno=00006 name=/u01/app/oracle/oradata/orcl/example02. elapsed time: 00:01:25 Finished backup at 10-APR-06 Starting Control File and SPFILE Autobackup at 10-APR-06 piece handle=/u01/app/oracle/flash_recovery_area/ORCL/autobackup /2006_04_10/o1_E r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-31 . Starting backup at 10-APR-06 released channel: ORA_SBT_TAPE_1 using channel ORA_DISK_1 channel ORA_DISK_1: starting full datafile backupset channel ORA_DISK_1: specifying datafile(s) in backupset input datafile fno=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf input datafile fno=00005 name=/u01/app/oracle/oradata/orcl/example01. elapsed time: 00:00:02 Finished backup at 10-APR-06 Starting Control File and SPFILE Autobackup at 10-APR-06 piece handle=/u01/app/oracle/flash_recovery_area/ORCL/autobackup /2006_04_10/o1_E Finished Control File and SPFILE Autobackup at 10-APR-06 10.dbf input datafile fno=00003 name=/u01/app/oracle/oradata/orcl/sysaux01. RMAN> backup database.dbf input datafile fno=00002 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf channel ORA_DISK_1: starting piece 1 at 10-APR-06 channel ORA_DISK_1: finished piece 1 at 10-APR-06 piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/ 2006_04_10/o1_mE channel ORA_DISK_1: backup set complete.dbf input datafile fno=00004 name=/u01/app/oracle/oradata/orcl/users01.Solutions for Practice 4-3: Recover Control Files (continued) channel ORA_DISK_1: specifying archive log(s) in backup set input archive log thread=1 sequence=1 recid=68 stamp=587391539 input archive log thread=1 sequence=2 recid=69 stamp=587391580 channel ORA_DISK_1: starting piece 1 at 10-APR-06 channel ORA_DISK_1: finished piece 1 at 10-APR-06 piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/ 2006_04_10/o1_mE channel ORA_DISK_1: backup set complete. Create a whole database backup.

Solutions for Practice 4-3: Recover Control Files (continued) Finished Control File and SPFILE Autobackup at 10-APR-06 r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-32 .

RMAN> report obsolete.------------------Archive Log 19 15-MAR-06 /u01/app/oracle/flash_recovery_ac Archive Log 20 16-MAR-06 /u01/app/oracle/flash_recovery_ac Archive Log 21 20-MAR-06 /u01/app/oracle/flash_recovery_ac Archive Log 22 20-MAR-06 /u01/app/oracle/flash_recovery_ac Archive Log 23 20-MAR-06 /u01/app/oracle/flash_recovery_ac Archive Log 24 21-MAR-06 /u01/app/oracle/flash_recovery_ac Datafile Copy 4 21-MAR-06 /u01/app/oracle/flash_recovery_af Backup Set 5 21-MAR-06 Backup Piece 5 21-MAR-06 /u01/app/oracle/flash_recovery_ap Backup Set 7 22-MAR-06 Backup Piece 7 22-MAR-06 /u01/app/oracle/flash_recovery_ap Backup Set 9 22-MAR-06 Backup Piece 10 22-MAR-06 /u01/app/oracle/flash_recovery_ap 2) Use Enterprise Manager Database Control to delete obsolete backups. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-33 . RMAN retention policy will be applied to the command RMAN retention policy is set to redundancy 1 Report of obsolete backups and copies Type Key Completion Time Filename/Handle -------------------.-----------------. Invoke Enterprise Manager and log in as sys/oracle as SYSDBA.Solutions for Practice 4-4: Delete Obsolete Backups 1) Use Recovery Manager to view obsolete backups. issue the REPORT OBSOLETE command to determine whether you have any obsolete backups. Note: Your results may vary from the following output. Select Maintenance > High Availability > Backup/Recovery > Manage Current Backups. Answer: 1.-----. Answer: 1. r O 2. In your RMAN session.

After it completes successfully. In your RMAN session. Review the information on the Delete All Obsolete: Specify Job Parameters page and click Submit Job. Answer: 1.Solutions for Practice 4-4: Delete Obsolete Backups (continued) 3. Access the Manage Current Backups page again to view the backup sets and image copies that were retained. You receive the “Job submission succeeded” message. return to the Database Home page. execute the REPORT OBSOLETE command. RMAN> report obsolete. 4. RMAN retention policy will be applied to the command RMAN retention policy is set to redundancy 1 no obsolete backups found r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-34 . 5. 3) You can also use RMAN to verify that your obsolete backups were deleted. Click Delete All Obsolete to remove obsolete backups. 6. You can click View Job to monitor the job.

you use Oracle Flashback features to recover from errors in your database. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-35 .Practice Solutions for Lesson 5 In this practice.

5. Supply the Host and Operating System credentials if they are not filled in by default.Solutions for Practice 5-1: Enable Flashback Database 1) Use Enterprise Manager to enable Flashback Database. Answer: 1. 3. Select Recovery Settings in the Backup/Recovery Settings section.flashback logging can be used for fast database point-in-time recovery” and click Apply. Select “Enable Flashback Database . Click Yes to restart the database instance. 7. 4. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-36 . Scroll to the Flash Recovery section. 2. Start Enterprise Manager and connect as SYS/ORACLE as SYSDBA. You must restart the database instance to enable Flashback Database. Click the Maintenance tab. Click OK. The Confirmation message is displayed. 6.

Solutions for Practice 5-1: Enable Flashback Database (continued)

8. The “Restart Database: Confirmation” page is displayed. Click Yes. 9. The “Restart Database:Activity Information” page is displayed. Wait a few minutes and click Refresh. 10. Log in to Enterprise Manager as SYS/ORACLE as SYSDBA. 2) Use the ALTER DATABASE command to enable supplemental logging. Answer: 1. In a terminal window, log in to SQL*Plus as SYSDBA.

[oracle@edrsr10p1 oracle]$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on Tue Apr 18 09:10:07 2006 Copyright (c) 1982, 2005, Oracle.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options

2. Execute the ALTER DATABASE command to enable supplemental logging.

ra O

SQL> ALTER DATABASE add supplemental log data; Database altered.

le c

te In

na r

l&

O

I A

s U

O e

ly n

All rights reserved.

Oracle Database 10g: Backup and Recovery B-37

Solutions for Practice 5-2: Set Restore Points and Perform Flashback Table

Restore points are a way to “bookmark” database points in time. Set a restore point to remember a significant change so that you can quickly recover to that point in time without having to record an SCN or time. 1) You must enable row movement to use restore points. Use Enterprise Manager to enable row movement for the HR.LOCATIONS table. Answer: 1. Navigate to the Administration page. Select Tables in the Database Objects section. 2. Enter HR in the Schema field and LOCATIONS in the Object Name field. Click Go. 3. Select the HR.LOCATIONS table and click Edit.

4. Select the Options subtab.

r O

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-38

Solutions for Practice 5-2: Set Restore Points and Perform Flashback Table (continued) 5. Select Yes in the Enable Row Movement menu. Click Apply.

6. The Update Message is displayed indicating that the change has been made to the HR.LOCATIONS table. 7. Click the Database tab to return to the home page. 2) Create a normal restore point. Answer: 1. Select the Maintenance tab. 2. Select Manage Restore Points in the Backup/Recovery section. 3. Click Create on the Manage Restore Points page.

4. Enter Before_LOC_Update in the Restore Point Name field. Ensure that “Normal Restore Point” is selected. Click OK.

r O

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-39

Solutions for Practice 5-2: Set Restore Points and Perform Flashback Table (continued)

5. Your restore point has been created.

3) Use SQL*Plus to query the POSTAL_CODE column in the HR.LOCATIONS table. Answer: 1. Log in to SQL*Plus as SYSDBA.

2. Execute the lab_05_02_03_02.sql script to query the POSTAL_CODE column of the HR.LOCATIONS table.

r O

cl a
SQL> SQL> 2 3

In e

rn te

l& a

O

I A

s U

O e

ly n

@lab_05_02_03_02 SELECT unique (postal_code) FROM hr.locations /

POSTAL_CODE -----------10934 Oracle Database 10g: Backup and Recovery B-40

Solutions for Practice 5-2: Set Restore Points and Perform Flashback Table (continued)
YSW 9T2 2901 26192 M5V 2L7 01307-002 … 1730 3095 99236 80925 23 rows selected.

4) Execute the lab_05_02_04_01.sql script to update the POSTAL_CODE column in the HR.LOCATIONS table so that all postal codes are set to 11111. Answer: 1. Execute the lab_05_02_04_01.sql script.
SQL> SQL> 2 3 @lab_05_02_04_01 UPDATE hr.locations SET postal_code = 11111 /

23 rows updated.

5) Execute the lab_05_02_05_01.sql script to query the POSTAL_CODE column in the HR.LOCATIONS table again. Answer: 1. Execute the lab_05_02_05_01.sql script.
SQL> SQL> 2 3 @lab_05_02_05_01 SELECT unique (postal_code) FROM hr.locations /

r O

6) Restore the POSTAL_CODE column values using the restore point. Answer: 1. Return to your Enterprise Manager session.

cl a

POSTAL_CODE -----------11111

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-41

3. Click Next. Click Perform Recovery. 5. Click “Perform Object Level Recovery. Copy the SCN value in the Creation SCN field to the buffer.” r O 6. select Tables in the Object Type menu. In the “Object Level Recovery” section. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-42 . Select “Flashback to a known SCN” and paste the SCN that you copied in step 2. Click the database instance link to return to the Maintenance page.Solutions for Practice 5-2: Set Restore Points and Perform Flashback Table (continued) 2. 4.

Enter HR in the Schema Name field and LOCATIONS in the Table field.Solutions for Practice 5-2: Set Restore Points and Perform Flashback Table (continued) 7.LOCATIONS table. Click Search. 8. Click Add Tables to add the HR. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-43 .

Solutions for Practice 5-2: Set Restore Points and Perform Flashback Table (continued) 9. Select the HR.LOCATIONS table and click OK.

10. The HR.LOCATIONS table is added to the “Tables to Flashback” field. Click Next.

11. Accept the default of “Cascade: Flashback the selected tables and all dependent tables” on the Dependency Options page. Click Next.

r O

12. On the “Perform Object Level Recovery: Review” page, confirm the information. Click Submit.

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-44

Solutions for Practice 5-2: Set Restore Points and Perform Flashback Table (continued)

13. The Confirmation page is displayed. Click OK to return to the Maintenance page.

7) Return to your SQL*Plus session. Execute the lab_05_02_07_01.sql script to query the POSTAL_CODE column in HR.LOCATIONS again to be sure the correct values have been restored. Answer: 1. Execute the lab_05_02_07_01.sql script.
SQL> SQL> 2 3 @lab_05_02_07_01 SELECT unique (postal_code) FROM hr.locations /

r O

cl a

POSTAL_CODE -----------10934 YSW 9T2 … 99236 80925

In e

rn te

l& a

O

I A

s U

O e

ly n

23 rows selected.

Oracle Database 10g: Backup and Recovery B-45

Solutions for Practice 5-3: Use Flashback Query and Flashback Versions Query
1) Execute the lab_05_03_01_01.sql script to query the HR.LOCATIONS table for location ID 1400. Answer: 1. In SQL*Plus, execute the lab_05_03_01_01.sql script.
SQL> SQL> 2 3 4 @lab_05_03_01_01 SELECT * FROM hr.locations WHERE location_id = 1400 /

LOCATION_ID STREET_ADDRESS POSTAL_CODE ----------- ---------------------------------------- ----------CITY STATE_PROVINCE CO ------------------------------ ------------------------- 1400 2014 Jabberwocky Rd 26192 Southlake Texas US

2) Execute the lab_05_03_02_01.sql script to update the POSTAL_CODE column in the HR.LOCATIONS table, simulating user error. Answer: 1. Invoke SQL*Plus and execute the lab_05_03_02_01.sql script.
SQL> SQL> 2 3 4 @lab_05_03_02_01 UPDATE hr.locations SET postal_code = postal_code + 100 WHERE location_id = 1400 /

1 row updated.

r O

cl a

SQL> commit 2 /

Commit complete.

In e

rn te

l& a

O

I A

s U

O e

ly n

3) Execute the lab_05_03_03_01.sql script to query the POSTAL_CODE column in HR.LOCATIONS and view the change.

Oracle Database 10g: Backup and Recovery B-46

Solutions for Practice 5-3: Use Flashback Query and Flashback Versions Query (continued) Answer: 1. Execute the lab_05_03_03_01.sql script.
SQL> SQL> 2 3 4 @lab_05_03_03_01 SELECT * FROM hr.locations WHERE location_id = 1400 /

LOCATION_ID STREET_ADDRESS POSTAL_CODE ----------- ---------------------------------------- ----------CITY STATE_PROVINCE CO ------------------------------ ------------------------- 1400 2014 Jabberwocky Rd 26292 Southlake Texas US

4) Execute the lab_05_03_04_01.sql script to update the POSTAL_CODE column in the HR.LOCATIONS table, simulating user error. Answer: 1. Execute the lab_05_03_04_01.sql script.
SQL> SQL> 2 3 4 @lab_05_03_04_01 UPDATE hr.locations SET postal_code = postal_code + 100 WHERE location_id = 1400 /

1 row updated. SQL> commit 2 /

Commit complete.

5) Use Enterprise Manager to perform Flashback Versions Query to correct the user errors.

r O

Answer:

1. Navigate to the Administration page. 2. Select Tables in the Database Objects section.

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-47

Solutions for Practice 5-3: Use Flashback Query and Flashback Versions Query (continued) 3. Enter HR in the Schema Name field and LOCATIONS in the Table field. Click Go. 4. Select the HR.LOCATIONS table. Select Flashback Versions Query in the Actions menu. Click Go.

5. Choose all the columns by selecting each in the Available Columns list and clicking Move to move it to the Selected Columns list.

r O

6. Enter “where location_id = 1400” in the “Bind the Row Value” field. Click Next.

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-48

Select the oldest change to the table and click Next.Solutions for Practice 5-3: Use Flashback Query and Flashback Versions Query (continued) 7. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-49 .

LOCATIONS table. SQL> SQL> 2 3 @lab_05_03_06_01 SELECT * FROM hr. Confirm the flashback information.LOCATIONS table to confirm the Flashback operation.sql script to query the HR. 10.locations WHERE location_id = 1400 r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-50 . Click OK. The Confirmation page is displayed. 11. Query the HR. Click Next. Review the information. Click Submit. Execute the lab_05_03_06_01.Solutions for Practice 5-3: Use Flashback Query and Flashback Versions Query (continued) 8. Answer: 1. Accept the default of “Cascade: Flashback the selected tables and all dependent tables.” Click Next. 9. 6) Return to your SQL*Plus session.

Solutions for Practice 5-3: Use Flashback Query and Flashback Versions Query (continued) 4 / LOCATION_ID STREET_ADDRESS POSTAL_CODE ----------.1400 2014 Jabberwocky Rd 26192 Southlake Texas US r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-51 .------------------------.----------CITY STATE_PROVINCE CO -----------------------------.---------------------------------------.

3. Answer: 1. 2) Use Enterprise Manager to create a Guaranteed Restore Point. Click the Database Instance link to return to the Maintenance page. Answer: 1. 2.” Click OK. Verify that Flashback Database is enabled. Select Manage Restore Points in the Backup/Recovery section. Click Create to create a new restore point. Navigate to the Maintenance page.Solutions for Practice 5-4: Use Flashback Database 1) Use Enterprise Manager to verify that Flashback Database is enabled. 3. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-52 . 2. Scroll to the Flash Recovery section. Select “Guaranteed Restore Point. Enter “Before_Truncate” in the Restore Point Name field. Select Recovery Settings in the Backup/Recovery Settings section.

3) Execute the lab_05_04_03_01. r O cl a SQL> SQL> 2 3 In e @lab_05_04_03_01 SELECT count(*) FROM hr.JOB_HISTORY table.sql script to determine the number of rows in the HR.job_history / rn te l& a O I A s U O e ly n COUNT(*) ---------10 Oracle Database 10g: Backup and Recovery B-53 .JOB_HISTORY table. Record the number of rows: ___________ Answer: 1.sql script to determine the number of rows in the HR. Execute the lab_05_04_03_01.Solutions for Practice 5-4: Use Flashback Database (continued) 4. The Restore Point is created.

SQL> @lab_05_04_04_01 SQL> truncate table hr.Solutions for Practice 5-4: Use Flashback Database (continued) 4) Execute the lab_05_04_04_01.job_history / COUNT(*) ---------0 6) Use Flashback Database to restore the HR.sql script to truncate the HR.sql script to determine the number of rows in the HR. 2. 5) Execute the lab_05_04_05_01. Click “Recover Whole Database To. Select Manage Restore Points in the Backup/Recovery section. Return to your Enterprise Manager window. Navigate to the Maintenance page. 3. Answer: 1.JOB_HISTORY table. Answer: 1. Execute the lab_05_04_05_01.sql script. 4. Answer: 1.sql script.job_history 2 / Table truncated.JOB_HISTORY table. SQL> SQL> 2 3 @lab_05_04_05_01 SELECT count(*) FROM hr.” r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-54 .JOB_HISTORY table rows. Select the BEFORE_TRUNCATE restore point. Execute the lab_05_04_04_01.

Click Perform Recovery. Enter the host credential information. Click Continue. Click Login. Click Yes. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-55 . 9. Enter Host Credentials. Enter Database login. 7. The database is shut down. Click Refresh. 8.Solutions for Practice 5-4: Use Flashback Database (continued) 5. 6.

Click “Perform Whole Database Recovery. Select the BEFORE_TRUNCATE restore point.” 11. Click Select.Solutions for Practice 5-4: Use Flashback Database (continued) 10. Select Restore Point and click the Flashlight icon. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-56 .” 12. 13. Select “Recover to a prior point in time.

Solutions for Practice 5-4: Use Flashback Database (continued) 14. The Restore Point field is populated. Select Yes. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-57 . 15. Click Next. Click Next.

17. Click OK. Click Submit. Execute the lab_05_04_07_02. Review the information. The operation is complete.Solutions for Practice 5-4: Use Flashback Database (continued) 16. Execute the lab_05_04_07_02.sql script. Invoke SQL*Plus and log in as SYS/ORACLE as SYSDBA. 19.JOB_HISTORY table again to be sure the data has been restored.job_history 3 / COUNT(*) ---------10 In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-58 . You can scroll through the output to view the details of the operation. Click “Open Database” to open the database. r O cl a SQL> @query_job_hist SQL> SELECT count(*) 2 FROM hr.sql script to query the HR. The “The database has been opened successfully” message is displayed. 7) Return to your SQL*Plus session. The “Processing: Perform Whole Database Recovery” page is displayed. Answer: 1. 2. 18.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-59 . you create a duplicate database.Practice Solutions for Lesson 6 In this practice.

Select Service Naming and click the green plus sign to create a new Net service name.ora file.f initdw. [oracle@edrsr10p1 oracle]$ cd $ORACLE_HOME/dbs [oracle@edrsr10p1 dbs]$ orapwd file=orapwaux password=oracle entries=10 [oracle@edrsr10p1 dbs]$ ls hc_orcl. 1.ora 2) Use Oracle Net Manager to create an entry called AUXDB in the tnsnames.Solutions for Practice 6-1: Create a Duplicate Database 1) Create an Oracle password file for your auxiliary instance. Expand Local and Service Naming. Open a terminal window and enter netmgr at the operating system prompt.ora orapwaux snapcf_orcl. Answer: In this practice. Change to the $ORACLE_HOME/dbs directory and use the orapwd utility to create a password file named orapwaux.dat init. 4. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-60 . [oracle@edrsr10p1 oracle]$ netmgr 2.ora lkORCL orapworcl spfileorcl. The Oracle Net Manager window appears. 3. Answer: 1. Specify a password of oracle and 10 for the number of entries. you use RMAN to create a duplicate database on the same host as your database.

Click Next. Enter the host name of your PC in the Host Name field. Click Next. 7.Solutions for Practice 6-1: Create a Duplicate Database (continued) 5. Select TCP/IP (default) as the protocol. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-61 . Accept the default of 1521 for the port number. 6. Enter auxdb in the Net Service Name field and click Next.

Click Finish. r O 11.oracle. Click File and Exit to exit from Oracle Net Manager.0/db_1/network/admin directory.com in the Service Name field. 9. You can view your updated tnsnames.2. 12.ora file in the /u01/app/oracle/product/10. Click Next. Select File and Save Network Configuration to save the changes you made. Oracle Database 10g: Backup and Recovery B-62 cl a In e rn te l& a O I A s U O e ly n .Solutions for Practice 6-1: Create a Duplicate Database (continued) 8. 10. Enter aux.

c tl'.com) ) 3) Create an initialization parameter file for the auxiliary instance.1.oracle. ‘/u01/app/oracle/oradata/aux’ Remove the lines at the beginning of the file that begin with orcl.1.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = aux.'/u01/app/oracle/oradata/aux/control02.us. ‘/u01/app/oracle/oradata/aux’ LOG_FILE_NAME_CONVERT=‘/u01/app/oracle/oradata/orcl’.ora initialization parameter file to make the following changes for the auxiliary instance: audit_file_dest='/u01/app/oracle/admin/aux/adump' background_dump_dest='/u01/app/oracle/admin/aux/bdump control_files='/u01/app/oracle/oradata/aux/control01.Production With the Partitioning.ora' from spfile. File created. 2005. Answer: 1. Oracle Database 10g: Backup and Recovery B-63 In e rn te l& a O I A s U O e ly n . All rights reserved.2.0. Connected to: Oracle Database 10g Enterprise Edition Release 10.ctl' db_name='aux' user_dump_dest='/u01/app/oracle/admin/aux/udump' r O cl a Add the following parameters: DB_FILE_NAME_CONVERT=‘/u01/app/oracle/oradata/orcl’. OLAP and Data Mining options SQL> create pfile='$HOME/auxinstance/initAUX. [oracle@edrsr10p1 oracle]$ cd $HOME/auxinstance [oracle@edrsr10p1 auxinstance]$ sqlplus / as sysdba SQL*Plus: Release 10. Create a text initialization parameter file named initAUX.Production on Wed Mar 29 10:51:53 2006 Copyright (c) 1982.Solutions for Practice 6-1: Create a Duplicate Database (continued) AUXDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = edrsr10p1.oracle. 2.__.ctl'.2.0.0 .'/u01/ app/oracle/oradata/aux/control03.0 . Oracle. Edit the initAUX.ora from your server parameter file in the $HOME/auxinstance directory.

SQL> create spfile from pfile='$HOME/auxinstance/initAUX.ora' ORACLE instance started. Answer: Oracle Database 10g: Backup and Recovery B-64 .Production on Wed Mar 29 11:38:53 2006 Copyright (c) 1982.0. Total System Global Area Fixed Size Variable Size Database Buffers Redo Buffers 285212672 1218992 92276304 188743680 2973696 bytes bytes bytes bytes bytes 5) Create a server parameter file (SPFILE). Oracle. Start the instance in NOMOUNT mode using the initialization parameter file you created in step 2. [oracle@edrsr10p1 oracle]$ ORACLE_SID=aux [oracle@edrsr10p1 oracle]$ echo $ORACLE_SID aux 2.1.ora file. SQL> startup nomount pfile='$HOME/auxinstance/initAUX. 3. cl a File created. #. Answer: 1.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)' 4) Start the auxiliary instance in NOMOUNT mode using the initAUX. Answer: 1. Set the ORACLE_SID environment variable to aux. to this line: *.0 .ora'.2. Invoke SQL*Plus and connect as SYSDBA. Connected to an idle instance.ora from the text initialization parameter file. Exit from SQL*Plus. All rights reserved.Solutions for Practice 6-1: Create a Duplicate Database (continued) Add the comment character. 2005. [oracle@edrsr10p1 oracle]$ sqlplus / as sysdba SQL*Plus: Release 10. In e rn te l& a O I A s U O e ly n 6) Verify that your target database (orcl database) is mounted or open. Create a server parameter file with the default name of spfileaux. r O 2.

Set your ORACLE_SID to aux. [oracle@edrsr10p1 oracle]$ ORACLE_SID=orcl [oracle@edrsr10p1 oracle]$ echo $ORACLE_SID orcl [oracle@edrsr10p1 oracle]$ 2. Log in to SQL*Plus as SYSDBA. Answer: r O 1. Set your ORACLE_SID to orcl.Production on Thu Mar 30 07:34:06 2006 Copyright (c) 1982.Solutions for Practice 6-1: Create a Duplicate Database (continued) 1. [oracle@edrsr10p1 oracle]$ ORACLE_SID=aux [oracle@edrsr10p1 oracle]$ echo $ORACLE_SID aux [oracle@edrsr10p1 oracle]$ rman Recovery Manager: Release 10. 3. Invoke RMAN and connect as SYSDBA. SQL> select open_mode from v$database. Exit from SQL*Plus. Query V$DATABASE to determine whether your database is open.2. RMAN> run 2> { cl a In e rn te l& a O I A All rights reserved.0 . 2005. s U O e ly n Oracle Database 10g: Backup and Recovery B-65 .0. 7) Start RMAN with a connection to the target database (orcl) and the auxiliary instance. Connect to the target database. RMAN> connect auxiliary sys/oracle connected to auxiliary database: AUX (not mounted) RMAN> connect target sys/oracle@orcl connected to target database: ORCL (DBID=1090770270) 8) Create the duplicate database by executing the DUPLICATE command. OPEN_MODE ---------READ WRITE 4. Answer: 1. Oracle. Create a RUN block to allocate the auxiliary channel and execute the DUPLICATE command.1.

5> } allocated channel: aux1 channel aux1: sid=156 devtype=DISK Starting Duplicate Db at 30-MAR-06 allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: sid=154 devtype=DISK using channel ORA_AUX_SBT_TAPE_1 contents of Memory Script: { set until scn 4236965.dbf". set newname for datafile 2 to "/u01/app/oracle/oradata/aux/undotbs01. set newname for datafile 3 to "/u01/app/oracle/oradata/aux/sysaux01.dbf". restore check readonly clone database .dbf".dbf".Solutions for Practice 6-1: Create a Duplicate Database (continued) 3> allocate auxiliary channel aux1 device type disk. set newname for datafile 1 to "/u01/app/oracle/oradata/aux/system01. set newname for datafile 5 to "/u01/app/oracle/oradata/aux/example01. set newname for datafile 4 to "/u01/app/oracle/oradata/aux/users01. } executing Memory Script executing command: SET until clause executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME Starting restore at 30-MAR-06 using channel ORA_AUX_DISK_1 using channel ORA_AUX_SBT_TAPE_1 channel aux1: restoring datafile 00001 input datafile copy recid=23 stamp=586270526 filename=/u01/app/oracle/flash_recf destination for restore of datafile 00001: /u01/app/oracle/oradata/aux/system01f channel ORA_AUX_DISK_1: restoring datafile 00002 r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-66 . 4> duplicate target database to aux.dbf".

log' ) SIZE 50 M REUSE.dbf channel ORA_AUX_DISK_1: restoring datafile 00005 input datafile copy recid=21 stamp=586270521 filename=/u01/app/oracle/flash_recf destination for restore of datafile 00005: /u01/app/oracle/oradata/aux/example0f channel aux1: copied datafile copy of datafile 00004 output filename=/u01/app/oracle/oradata/aux/users01. GROUP 3 ( '/u01/app/oracle/oradata/aux/redo03.dbf channel ORA_AUX_DISK_1: copied datafile copy of datafile 00005 output filename=/u01/app/oracle/oradata/aux/example01.log' ) SIZE 50 M REUSE DATAFILE '/u01/app/oracle/oradata/aux/system01.dbf channel aux1: restoring datafile 00004 input datafile copy recid=19 stamp=586270517 filename=/u01/app/oracle/flash_recf destination for restore of datafile 00004: /u01/app/oracle/oradata/aux/users01. GROUP 2 ( '/u01/app/oracle/oradata/aux/redo02.f channel ORA_AUX_DISK_1: copied datafile copy of datafile 00003 output filename=/u01/app/oracle/oradata/aux/sysaux01.Solutions for Practice 6-1: Create a Duplicate Database (continued) input datafile copy recid=20 stamp=586270521 filename=/u01/app/oracle/flash_recf destination for restore of datafile 00002: /u01/app/oracle/oradata/aux/undotbs0f channel ORA_AUX_DISK_1: copied datafile copy of datafile 00002 output filename=/u01/app/oracle/oradata/aux/undotbs01.log' ) SIZE 50 M REUSE.dbf Finished restore at 30-MAR-06 sql statement: CREATE CONTROLFILE REUSE SET DATABASE "AUX" RESETLOGS ARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 100 MAXINSTANCES 8 MAXLOGHISTORY 292 LOGFILE GROUP 1 ( '/u01/app/oracle/oradata/aux/redo01.dbf' CHARACTER SET AL32UTF8 r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-67 .dbf channel ORA_AUX_DISK_1: restoring datafile 00003 input datafile copy recid=22 stamp=586270526 filename=/u01/app/oracle/flash_recf destination for restore of datafile 00003: /u01/app/oracle/oradata/aux/sysaux01f channel aux1: copied datafile copy of datafile 00001 output filename=/u01/app/oracle/oradata/aux/system01.

recover clone database delete archivelog . } executing Memory Script released channel: ORA_AUX_DISK_1 released channel: ORA_AUX_SBT_TAPE_1 datafile 2 switched to datafile copy input datafile copy recid=1 stamp=586438014 filename=/u01/app/oracle/oradata/auf datafile 3 switched to datafile copy input datafile copy recid=2 stamp=586438014 filename=/u01/app/oracle/oradata/auf datafile 4 switched to datafile copy input datafile copy recid=3 stamp=586438014 filename=/u01/app/oracle/oradata/auf datafile 5 switched to datafile copy input datafile copy recid=4 stamp=586438014 filename=/u01/app/oracle/oradata/auf contents of Memory Script: { set until scn 4236965.Solutions for Practice 6-1: Create a Duplicate Database (continued) contents of Memory Script: { switch clone datafile all.f destination for restore of datafile 00005: /u01/app/oracle/oradata/aux/example0f channel aux1: reading from backup piece /u01/app/oracle/flash_recovery_area/ORCp channel aux1: restored backup piece 1 In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-68 . } executing Memory Script executing command: SET until clause r O cl a Starting recover at 30-MAR-06 channel aux1: starting incremental datafile backupset restore channel aux1: specifying datafile(s) to restore from backup set destination for restore of datafile 00001: /u01/app/oracle/oradata/aux/system01f destination for restore of datafile 00002: /u01/app/oracle/oradata/aux/undotbs0f destination for restore of datafile 00003: /u01/app/oracle/oradata/aux/sysaux01f destination for restore of datafile 00004: /u01/app/oracle/oradata/aux/users01.

} executing Memory Script database dismounted Oracle instance shut down connected to auxiliary database (not started) Oracle instance started Total System Global Area 285212672 bytes r O cl a Fixed Size 1218992 bytes Variable Size 92276304 bytes Database Buffers 188743680 bytes Redo Buffers 2973696 bytes sql statement: CREATE CONTROLFILE REUSE SET DATABASE "AUX" RESETLOGS ARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 100 MAXINSTANCES 8 MAXLOGHISTORY 292 LOGFILE GROUP 1 ( '/u01/app/oracle/oradata/aux/redo01. GROUP 3 ( '/u01/app/oracle/oradata/aux/redo03.log' ) SIZE 50 M REUSE DATAFILE In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-69 . GROUP 2 ( '/u01/app/oracle/oradata/aux/redo02.log' ) SIZE 50 M REUSE. elapsed time: 00:00:16 starting media recovery archive log thread 1 sequence 1 is already on disk as file /u01/app/oracle/flasc archive log thread 1 sequence 2 is already on disk as file /u01/app/oracle/flasc archive log filename=/u01/app/oracle/flash_recovery_area/ORCL/archivel og/2006_01 archive log filename=/u01/app/oracle/flash_recovery_area/ORCL/archivel og/2006_02 media recovery complete. elapsed time: 00:00:05 Finished recover at 10-APR-06 contents of Memory Script: { shutdown clone. startup clone nomount .log' ) SIZE 50 M REUSE.Solutions for Practice 6-1: Create a Duplicate Database (continued) piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/ 2006_03_28/o1_m4 channel aux1: restore complete.

dbf recid=4 stamp=9 cataloged datafile copy datafile copy filename=/u01/app/oracle/oradata/aux/example02.dbf recid=3 stamp=589 cataloged datafile copy datafile copy filename=/u01/app/oracle/oradata/aux/example01.dbf in control fe cataloged datafile copy datafile copy filename=/u01/app/oracle/oradata/aux/undotbs01.dbf recid=2 stamp=59 cataloged datafile copy datafile copy filename=/u01/app/oracle/oradata/aux/users01. catalog clone datafilecopy "/u01/app/oracle/oradata/aux/users01. catalog clone datafilecopy "/u01/app/oracle/oradata/aux/example01.dbf".dbf recid=5 stamp=9 r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-70 .dbf' CHARACTER SET AL32UTF8 contents of Memory Script: { set newname for tempfile 1 to "/u01/app/oracle/oradata/aux/temp01.dbf".dbf".dbf". catalog clone datafilecopy "/u01/app/oracle/oradata/aux/example02. catalog clone datafilecopy "/u01/app/oracle/oradata/aux/undotbs01. switch clone datafile all. switch clone tempfile all.dbf recid=1 stamp=8 cataloged datafile copy datafile copy filename=/u01/app/oracle/oradata/aux/sysaux01.Solutions for Practice 6-1: Create a Duplicate Database (continued) '/u01/app/oracle/oradata/aux/system01. } executing Memory Script executing command: SET NEWNAME renamed temporary file 1 to /u01/app/oracle/oradata/aux/temp01. catalog clone datafilecopy "/u01/app/oracle/oradata/aux/sysaux01.dbf".dbf".

Connect as SYSDBA and execute the SHUTDOWN IMMEDIATE command. SQL> shutdown immediate Oracle Database 10g: Backup and Recovery B-71 cl a In e REGION_NAME ------------------------Europe Americas Asia Middle East and Africa rn te l& a O I A s U O e ly n . exit from RMAN.regions. 2.Solutions for Practice 6-1: Create a Duplicate Database (continued) datafile 2 switched to datafile copy input datafile copy recid=1 stamp=587391888 filename=/u01/app/oracle/oradata/auf datafile 3 switched to datafile copy input datafile copy recid=2 stamp=587391889 filename=/u01/app/oracle/oradata/auf datafile 4 switched to datafile copy input datafile copy recid=3 stamp=587391889 filename=/u01/app/oracle/oradata/auf datafile 5 switched to datafile copy input datafile copy recid=4 stamp=587391889 filename=/u01/app/oracle/oradata/auf datafile 6 switched to datafile copy input datafile copy recid=5 stamp=587391889 filename=/u01/app/oracle/oradata/auf contents of Memory Script: { Alter clone database open resetlogs. SQL> select * from hr. Answer: 1.REGIONS table. Log in to SQL*Plus as SYSDBA and execute a query against the HR. Answer: 1. } executing Memory Script database opened Finished Duplicate Db at 10-APR-06 2. After the DUPLICATE DATABASE operation completes. REGION_ID ---------1 2 3 4 r O 10) Now that you have completed the test recovery by creating a duplicate database. shut down the aux instance.REGIONS table. 9) Use SQL*Plus to log in to your AUX database and execute a query against the HR. Verify that ORACLE_SID is set to aux.

Database dismounted. At the operating prompt. [oracle@edrsr10p1 oracle]$ ORACLE_SID=orcl [oracle@edrsr10p1 oracle]$ echo $ORACLE_SID orcl r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-72 .Solutions for Practice 6-1: Create a Duplicate Database (continued) Database closed. ORACLE instance shut down. Exit from SQL*Plus. SQL> 2. 11) Change your ORACLE_SID to orcl in preparation for later practices. enter ORACLE_SID=orcl to change your ORACLE_SID. Answer: 1.

you use tablespace point-in-time recovery to recover from unwanted changes to your database.Practice Solutions for Lesson 7 In this practice. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-73 .

Produn With the Partitioning. OLAP and Data Mining options tarting "SYSTEM".0.0 .Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery 1) Execute the lab_07_01_01_01.2."SYS_EXPORT_SCHEMA_01": system/******** dumpfile=hrexp. All rights reserved. . r O cl a Connected to: Oracle Database 10g Enterprise Edition Release 10.sh Export: Release 10. 2006 13:03:27 Copyright (c) 2003.dmp sr Estimate in progress using BLOCKS method.sh script to export the HR schema.sh script to export the HR schema.2. In a terminal window.0 . 12 April.1.1.085 KB 25 rows In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-74 . Answer: 1."COUNTRIES" 6. Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 448 KB Processing object type SCHEMA_EXPORT/USER Processing object type SCHEMA_EXPORT/SYSTEM_GRANT Processing object type SCHEMA_EXPORT/ROLE_GRANT Processing object type SCHEMA_EXPORT/DEFAULT_ROLE Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE Processing object type SCHEMA_EXPORT/TABLE/TABLE Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS Processing object type SCHEMA_EXPORT/TABLE/COMMENT Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE Processing object type SCHEMA_EXPORT/VIEW/VIEW Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT Processing object type SCHEMA_EXPORT/TABLE/TRIGGER Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS .Production on Wednesday.. 2005. [oracle@edrsr10p1 labs]$ .. exported "HR".0. change to the labs directory and execute the lab_07_01_01_01. Oracle./lab_07_01_01_01.

log in to SQL*Plus as SYSDBA.289 KB 4 rows Master table "SYSTEM".2. Answer: 1."REGIONS" 5. Tablespace created. SQL> REM ***** User/schema for the HR import ***** SQL> CREATE USER hrtest 2 PROFILE DEFAULT 3 IDENTIFIED BY hrtest 4 DEFAULT TABLESPACE hrtest 5 TEMPORARY TABLESPACE temp Oracle Database 10g: Backup and Recovery B-75 r O cl a In e rn te l& a O I A s U O e ly n . exported "HR"."JOB_HISTORY" 6. . SQL> REM ***** Tablespace for the HR import ***** SQL> CREATE SMALLFILE TABLESPACE HRTEST 2 DATAFILE '/u01/app/oracle/oradata/orcl/hrtest01.609 KB 19 rows .dbf' SIZE 10M 3 AUTOEXTEND ON NEXT 500K MAXSIZE UNLIMITED LOGGING 4 EXTENT MANAGEMENT LOCAL 5 SEGMENT SPACE MANAGEMENT AUTO. exported "HR". SQL> @lab_07_01_02_02 SQL> SET TERMOUT ON SQL> CONNECT / AS SYSDBA Connected. exported "HR".710 KB 23 rows . Execute the lab_07_01_02_02."DEPARTMENTS" 6. . . exported "HR".sql script to create the HRTEST tablespace and the HRTEST user.585 KB 10 rows ."SYS_EXPORT_SCHEMA_01" successfully completed at 13:03:44 2) Execute the lab_07_01_02_02."EMPLOYEES" 15.Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) . . ."JOBS" 6. In your terminal window. .dmp Job "SYSTEM". exported "HR"."LOCATIONS" 7.0/db_1/rdbms/log/hrexp.SYS_EXPORT_SCHEMA_01 is: /u01/app/oracle/product/10."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded ********************************************************** ******************** Dump file set for SYSTEM.632 KB 27 rows . exported "HR".sql script to create a new tablespace and a new user in your database.76 KB 107 rows . 2.

0 . Answer: 1. Oracle."SYS_IMPORT_FULL_01": system/******** dumpfile=hrexp. r O cl a Connected to: Oracle Database 10g Enterprise Edition Release 10. All rights reserved. OLAP and Data Mining options Master table "SYSTEM".Production on Friday./lab_07_01_03_01. [oracle@edrsr10p1 labs]$ .2.2. You will receive error messages because the import excludes the COUNTRIES. These messages can be ignored. Note: The import should complete successfully. 3) Execute the lab_07_01_03_01.dmp par Processing object type SCHEMA_EXPORT/USER ORA-31684: Object type USER:"HRTEST" already exists Processing object type SCHEMA_EXPORT/SYSTEM_GRANT Processing object type SCHEMA_EXPORT/ROLE_GRANT Processing object type SCHEMA_EXPORT/DEFAULT_ROLE Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE Processing object type SCHEMA_EXPORT/TABLE/TABLE Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA .sh script to populate the new tablespace with a copy of the data from the HR schema."SYS_IMPORT_FULL_01" successfully loaded/unloaded Starting "SYSTEM".1.0.0. . SQL> GRANT connect.sh script. imported "HRTEST". 2006 7:08:42 Copyright (c) 2003.0 .1. execute the lab_07_01_03_01.632 KB 27 rows In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-76 . REGIONS. In your terminal window at the operating system prompt. and LOCATIONS tables. 2005."DEPARTMENTS" 6. 14 April. resource 2 TO hrtest. User created.sh Import: Release 10.Produn With the Partitioning. Grant succeeded.Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) 6 7 8 QUOTA UNLIMITED ON hrtest ACCOUNT UNLOCK .

76 KB 107 rows . . . r O cl a RMAN> backup database."JOBS" 6."JOB_HISTORY" 6. 2.Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) . Invoke RMAN and connect to your target database."EMPLOYEES" 15. imported "HRTEST"."SYS_IMPORT_FULL_01" completed with 3 error(s) at 07:08:54 4) Create a backup of your database using RMAN. Answer: 1. Execute the BACKUP DATABASE command. . imported "HRTEST"."EMP_DETAILS_VIEW" created with compilatios Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT ORA-39083: Object type REF_CONSTRAINT failed to create with error: ORA-00942: table or view does not exist Failing sql is: ALTER TABLE "HRTEST".585 KB 10 rows Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS Processing object type SCHEMA_EXPORT/TABLE/COMMENT Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE Processing object type SCHEMA_EXPORT/VIEW/VIEW ORA-39082: Object type VIEW:"HRTEST".609 KB 19 rows . Starting backup at 14-APR-06 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=127 devtype=DISK channel ORA_DISK_1: starting full datafile backupset In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-77 ."DEPARTMENTS" ADD CONSTRAINT "DEPT_LOC_FK" FOREIGN KEY ("LE Processing object type SCHEMA_EXPORT/TABLE/TRIGGER Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS Job "SYSTEM". imported "HRTEST".

CURRENT_SCN ----------4725352 6) Record the current time.dbf input datafile fno=00004 name=/u01/app/oracle/oradata/orcl/users01. SQL> select current_scn from V$database. Query the CURRENT_SCN column in V$DATABASE and record the current SCN. 2.dbf input datafile fno=00002 name=/u01/app/oracle/oradata/orcl/undotbs01. elapsed time: 00:01:35 Finished backup at 14-APR-06 Starting Control File and SPFILE Autobackup at 14-APR-06 piece handle=/u01/app/oracle/flash_recovery_area/ORCL/autobackup /2006_04_14/o1_E Finished Control File and SPFILE Autobackup at 14-APR-06 5) Record the current SCN: ____________ Answer: 1.dbf input datafile fno=00003 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf input datafile fno=00006 name=/u01/app/oracle/oradata/orcl/example02. [oracle@edrsr10p1 labs]$ date Fri Apr 14 13:07:57 PDT 2006 cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-78 .dbf input datafile fno=00005 name=/u01/app/oracle/oradata/orcl/example01.Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) channel ORA_DISK_1: specifying datafile(s) in backupset input datafile fno=00001 name=/u01/app/oracle/oradata/orcl/system01. Execute the date command at the operating system prompt. r O Answer: 1.dbf input datafile fno=00007 name=/u01/app/oracle/oradata/orcl/hrtest01. Invoke SQL*Plus as SYSDBA.dbf channel ORA_DISK_1: starting piece 1 at 14-APR-06 channel ORA_DISK_1: finished piece 1 at 14-APR-06 piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/ 2006_04_14/o1_mE channel ORA_DISK_1: backup set complete.

SQL> SQL> 2 3 4 @lab_07_01_07_01 select employee_id.---------Hunold 9000 Ernst 6000 Austin 4800 Pataballa 4800 Lorentz 4200 EMPLOYEE_ID ----------103 104 105 106 107 8) Execute the lab_07_01_08_01. Execute the lab_07_01_07_01.sql script. last_name.---------Hunold 11250 Ernst 7500 Austin 6000 Pataballa 6000 Lorentz 5250 rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-79 .sql script.sql script to query the HRTEST. salary from employees where department_id = 60 / LAST_NAME SALARY ------------------------. SQL> SQL> 2 3 4 @lab_07_01_08_01 update hrtest. Highest salary: _____________ Answer: 1.employees 3 where department_id = 60 4 / EMPLOYEE_ID ----------103 104 105 106 107 r O cl a In e LAST_NAME SALARY ------------------------.employees set salary = salary * 1. salary 2 from hrtest.Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) 7) Execute the lab_07_01_07_01. Execute the lab_07_01_08_01.sql script to update the salaries for the employees in department 60 and note the highest salary displayed. Make note of the highest salary that is displayed: ________ Answer: 1. SQL> select employee_id.EMPLOYEES table and view information about employees in department 60. last_name.25 where department_id = 60 / 5 rows updated.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-80 . 3. Select the Maintenance page. so you can proceed with the tablespace point-in-time recovery. obj1_type. obj2_name. 4.TS_PITR_CHECK WHERE (TS1_NAME IN ('HRTEST') AND TS2_NAME NOT IN ('HRTEST')) OR (TS1_NAME NOT IN ('HRTEST') AND TS2_NAME IN ('HRTEST')) / no rows selected “No rows selected” indicates that there are no dependencies to any tablespaces outside of the recovery set. ts1_name. Select Perform Recovery in the Backup/Recovery section. Answer: 1.” Click Perform Object Level Recovery.Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) 9) You now want to perform TSPITR for the HRTEST tablespace to return it to the state prior to the updates. obj2_owner. The page refreshes. Select Tablespaces in the Object Level Recovery section. If you want to use RMAN command line.sql script to determine whether there are any dependencies that will prevent the TSPITR operation. SQL> SQL> 2 3 4 5 6 7 8 9 @lab_07_01_09_01 SELECT obj1_owner.sql script. Execute the lab_07_01_09_01. constraint_name. Execute the lab_07_01_09_01. 10) You can use Enterprise Manager Database Control or RMAN command line to perform tablespace point-in-time recovery. refer to the course notes for detailed information and execute the RECOVER TABLESPACE command as follows: RECOVER TABLESPACE hrtest UNTIL SCN <scn> AUXILIARY DESTINATION ‘/u01/app/oracle/oradata/tspitr’. obj1_name. 1. Invoke Enterprise Manager Database Control and log in as SYS/ORACLE as SYSDBA. obj2_type. Accept the default selection “Recover to current time or a previous point-in-time. reason FROM SYS. ts2_name. 2. Answer: The answer presents the solution using Enterprise Manager Database Control.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-81 . Click Next.Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) 5. Select “Recover to a prior point-in-time” and specify the SCN you recorded earlier.

7. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-82 .Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) 6. Click Add to select the tablespace. Specify the auxiliary instance location of /u01/app/oracle/oradata/tspitr. Click Select. Select the HRTEST tablespace.

Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) 8. Select the HRTEST tablespace and click Next.

9. Accept “No. Restore the files to the default location.” On the Perform Object Level Recovery: Rename page. Click Next.

10. Review the information and click Submit.

r O

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-83

Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued)

11. The “Processing: Perform Object Level Recovery” page is displayed. 12. After the recovery completes, the “Perform Recovery: Result” page is displayed. You can review the TSPITR operation by scrolling through the output window.

13. Click OK.

r O

11) Verify that the HRTEST tablespace is online. Answer: 1. In Enterprise Manager Database Control, navigate to the Administration page.

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-84

Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) 2. Select Tablespaces and view the status of the HRTEST tablespace.

12) Verify that the SALARY columns in HRTEST.EMPLOYEES for the employees in department 60 contain the correct values. Answer: 1. Invoke SQL*Plus and execute the lab_07_01_12_01.sql script.
SQL> SQL> 2 3 4 @lab_07_01_12_01 select employee_id, last_name, salary from hrtest.employees where department_id = 60 / LAST_NAME SALARY ------------------------- ---------Hunold 9000 Ernst 6000 Austin 4800 Pataballa 4800 Lorentz 4200

EMPLOYEE_ID ----------103 104 105 106 107

2. The highest salary value should be back to the original value you recorded in step 7. 13) Execute the lab_07_01_13_02.sql script to add a constraint to the HRTEST.DEPARTMENTS table. Answer: 1. Invoke SQL*Plus and connect as SYSDBA. 2. Execute the lab_07_01_13_02.sql script.

r O

cl a

SQL> @lab_07_01_13_02 SQL> connect / as sysdba Connected. SQL> GRANT references (location_id) on hr.locations to hrtest 2 /

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-85

Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued)
Grant succeeded. SQL> connect hrtest/hrtest Connected. SQL> ALTER TABLE hrtest.departments 2 ADD CONSTRAINT dept_loc_id_fk FOREIGN KEY (location_id) 3 REFERENCES hr.locations (location_id) 4 / Table altered.

14) Assume you need to perform TSPITR on the HRTEST tablespace again. Execute the lab_07_01_14_02.sql query to determine whether there are any dependencies outside the recovery set. Answer: 1. Invoke SQL*Plus and connect as SYSDBA. 2. Execute the lab_07_01_14_02.sql script.
SQL> @lab_07_01_14_02 SQL> set echo on SQL> SELECT obj1_owner, obj1_name, obj1_type, ts1_name, 2 obj2_owner, obj2_name, obj2_type, ts2_name, 3 constraint_name, reason 4 FROM SYS.TS_PITR_CHECK 5 WHERE (TS1_NAME IN ('HRTEST') 6 AND TS2_NAME NOT IN ('HRTEST')) 7 OR (TS1_NAME NOT IN ('HRTEST') 8 AND TS2_NAME IN ('HRTEST')) 9 / OBJ1_OWNER OBJ1_NAME OBJ1_TYPE TS1_NAME --------------------------------------------------------OBJ2_OWNER OBJ2_NAME OBJ2_TYPE TS2_NAME ------------------------------ -------------------------CONSTRAINT_NAME REASON -----------------------------HR LOCATIONS TABLE EXAMPLE HRTEST DEPARTMENTS TABLE HRTEST DEPT_LOC_ID_FK constraint between tables not contained in recovery set

r O

cl a

HR LOCATIONS TABLE EXAMPLE HRTEST DEPARTMENTS TABLE HRTEST DEPT_MGR_FK constraint between tables not contained in recovery set HR HRTEST LOCATIONS TABLE DEPARTMENTS TABLE EXAMPLE HRTEST

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-86

Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued)
DEPT_ID_PK constraint between tables not contained in recovery set HR LOCATIONS TABLE EXAMPLE HRTEST DEPARTMENTS TABLE HRTEST DEPT_NAME_NN constraint between tables not contained in recovery set

15) If you wanted to complete the tablespace point-in-time recovery for the HRTEST tablespace now, what would you need to do? Note: You will not perform another tablespace point-in-recovery in this practice. Answer: You would need to disable the DEPT_LOC_ID_FK constraint that was added to your HRTEST.DEPARTMENTS table or you would need to add the tablespace that contains the HR.LOCATIONS table to your recovery set.

r O

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-87

Practice Solutions for Lesson 8 In this practice. you create a recovery catalog in your instructor’s database and register your database in the recovery catalog. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-88 .

1. Oracle. 2005.Production on Thu Mar 16 14:22:04 2006 Copyright (c) 1982. Solutions for Practice 8-1: Create the Recovery Catalog and Register the Database connected to recovery catalog database RMAN> create catalog recovery catalog created RMAN> exit Recovery Manager complete.0 . All rights reserved.1. (If you are using PC01. Create the recovery catalog in your assigned tablespace. Answer: This example uses RCUSER10 as the username and password.0.2. Answer: [oracle@edrsr10p1 oracle]$ rman target / catalog rcuser10/rcuser10@rcdb Recovery Manager: Release 10. 1) Connect to the recovery catalog database (instructor’s database) with the appropriate recovery catalog owner name (if you are using PC01. your assigned tablespace is RCTS01. r O 3) Using RMAN. Your assigned username and password may differ from this example. [oracle@edrsr10p1 oracle]$ rman catalog rcuser10/rcuser10@rcdb Recovery Manager: Release 10. Oracle.) The service name is RCDB. 2) Using RMAN.2.The tablespace for the recovery catalog and the recovery catalog owner have been created in the instructor database. The users are named RCUSER01 – RCUSER12. The tablespaces are named RCTS01 – RCTS12. connect as RCUSER01) using RMAN. connect to your target database and the recovery catalog database. execute the command to resynchronize the control file and recovery catalog. 2005.0.0 .Production on Thu Mar 16 13:58:52 2006 Copyright (c) 1982. What happens? Why? cl a connected to target database: ORCL (DBID=1090770270) connected to recovery catalog database RMAN> In e rn te l& a O I A s U O e ly n All rights reserved. Oracle Database 10g: Backup and Recovery B-89 .

You can use RMAN commandline or Enterprise Manager for this step.Solutions for Practice 8-1: Create the Recovery Catalog and Register the Database (continued) Answer: The target database is not yet registered in the recovery catalog. so the resync command fails. Using RMAN: RMAN> register database. Using Enterprise Manager: Select Recovery Catalog Settings on the Maintenance Page. Select Add Recovery Catalog on the Recovery Catalog Settings page. RMAN> resync catalog. database registered in recovery catalog starting full resync of recovery catalog full resync complete RMAN> 2. 1. Answer: Use RMAN command-line OR Enterprise Manager Database Control. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-90 . RMAN-00571: ========================================================== = RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: ========================================================== = RMAN-03002: failure of resync command at 03/16/2006 14:28:21 RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target datg 4) Register the target database in the recovery catalog.

In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-91 . you are returned to the Recovery Catalog Settings page. r O cl a Review the information on the Add Recovery Catalog: Review page and click Finish. enter the information requested for the recovery catalog database. Select Use Recovery Catalog and click OK. On this page. Click Next. The Processing: Configure Catalog page is displayed.Solutions for Practice 8-1: Create the Recovery Catalog and Register the Database (continued) The Add Recovery Catalog: Database page is displayed. After processing completes.

Solutions for Practice 8-1: Create the Recovery Catalog and Register the Database (continued) The Processing: Register Database page is displayed. After the processing completes. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-92 . the Recovery Catalog Settings page is displayed indicating that the database was successfully registered with the recovery catalog.

Production on Mon Mar 20 11:59:00 2006 Copyright (c) 1982. Using RMAN. Oracle Database 10g: Backup and Recovery B-93 . ra O RMAN> CREATE SCRIPT whole_backup 2> { 3> BACKUP DATABASE. Create the whole_backup script using the CREATE SCRIPT command. [oracle@edrsr10p1 oracle]$ rman target / catalog rcuser10/rcuser10@rcdb Recovery Manager: Release 10. Do not execute the whole_backup script at this time.Solutions for Practice 8-1: Create the Recovery Catalog and Register the Database (continued) 5) Create an RMAN script named whole_backup to make a whole database backup. 4> } created script whole_backup le c te In rn l& a O I A s U O e ly n All rights reserved. connect to your target database and the recovery catalog.0.2. Answer: 1.1. Oracle. 2005.0 . connected to target database: ORCL (DBID=1090770270) connected to recovery catalog database 2.

Answer: 1. RMAN> unregister database. use RMAN to unregister your database from the recovery catalog. printing stored script: whole_backup {BACKUP DATABASE.Solutions for Practice 8-1: Create the Recovery Catalog and Register the Database (continued) 6) Use the PRINT command to query the recovery catalog and verify the creation of your whole_backup script. 2. database name is "ORCL" and DBID is 1090770270 Do you really want to unregister the database (enter YES or NO)? yes database unregistered from the recovery catalog r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-94 . Execute the UNREGISTER DATABASE command. RMAN> PRINT SCRIPT whole_backup. } RMAN> 7) In preparation for later practices. Connect to your target database and the recovery catalog.

Practice Solutions for Lesson 9 In this practice. you monitor the progress of your RMAN backup jobs. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-95 .

-----------------. using target database control file instead of recovery catalog RMAN retention policy will be applied to the command RMAN retention policy is set to redundancy 1 allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=133 devtype=DISK allocated channel: ORA_SBT_TAPE_1 channel ORA_SBT_TAPE_1: sid=158 devtype=SBT_TAPE channel ORA_SBT_TAPE_1: Oracle Secure Backup Deleting the following obsolete backups and copies: Type Key Completion Time Filename/Handle -------------------.------------------Backup Set 80 14-APR-06 Backup Piece 81 14-APR-06 /u01/app/oracle/flash_recovery_ap Archive Log 76 14-APR-06 /u01/app/oracle/flash_recovery_ac … Backup Set 101 14-APR-06 Backup Piece 102 14-APR-06 /u01/app/oracle/flash_recovery_ap Do you really want to delete the above objects (enter YES or NO)? yes eleted backup piece backup piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/ 2006_04_8 deleted archive log archive log filename=/u01/app/oracle/flash_recovery_area/ORCL/archivel og/2006_08 … Deleted 18 objects r O cl a In e rn te l& a O I A s U O e ly n RMAN> Oracle Database 10g: Backup and Recovery B-96 .-----. Invoke RMAN and connect to your target database. 2. Answer: 1. RMAN> delete obsolete.Solutions for Practice 9-1: Use SQL to Monitor the Progress of RMAN Backups 1) Invoke RMAN and delete all obsolete backups. Execute the DELETE OBSOLETE command.

sql script. In your RMAN session. You will use this second session to monitor a database backup. Answer: 1. Change to the labs directory. time_remaining FROM v$session_longops / SID START_TIM ELAPSED_SECONDS TIME_REMAINING ---------. Execute the lab_09_01_04_01. Execute the RMAN BACKUP DATABASE command.dbf input datafile fno=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf input datafile fno=00003 name=/u01/app/oracle/oradata/orcl/sysaux01.elapsed_seconds. Answer: 1.Solutions for Practice 9-1: Use SQL to Monitor the Progress of RMAN Backups (continued) 2) Open a second terminal window. By using this view you can determine whether the backup is progressing normally or hanging. If the backup is progressing normally.-------------131 17-APR-06 0 cl In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-97 .--------------. begin a whole database backup. RMAN> backup database. the TIME_REMAINING column should be decreasing. Execute the lab_09_01_04_01.sql script to query V$SESSION_LONGOPS.dbf input datafile fno=00007 name=/u01/app/oracle/oradata/orcl/hrtest01. Starting backup at 17-APR-06 released channel: ORA_SBT_TAPE_1 using channel ORA_DISK_1 channel ORA_DISK_1: starting full datafile backupset channel ORA_DISK_1: specifying datafile(s) in backupset input datafile fno=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf channel ORA_DISK_1: starting piece 1 at 17-APR-06 4) Use your SQL*Plus session to monitor the progress of the whole database backup by querying the V$SESSION_LONGOPS view. 3) Return to your first terminal window.dbf input datafile fno=00005 name=/u01/app/oracle/oradata/orcl/example01.--------.dbf input datafile fno=00002 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf input datafile fno=00006 name=/u01/app/oracle/oradata/orcl/example02. Invoke SQL*Plus and connect as SYSDBA. ra O SQL> SQL> 2 3 @lab_09_01_04_01 SELECT sid.start_time.

You should notice that the value in the TIME_REMAINING column is decreasing. SQL> / SID START_TIM ELAPSED_SECONDS TIME_REMAINING ---------. Execute the lab_09_01_04_01.--------------.--------.sql script again.-------------131 17-APR-06 0 133 17-APR-06 17 46 133 17-APR-06 17 r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-98 .Solutions for Practice 9-1: Use SQL to Monitor the Progress of RMAN Backups (continued) 133 17-APR-06 133 17-APR-06 9 9 58 2.

Select Manage Current Backups.Solutions for Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs You can easily monitor RMAN jobs in Enterprise Manager. 5. Click View Job to view the progress of the Delete All Obsolete job. 3. The job is submitted. 4. Answer: 1. 1) Start Enterprise Manager and log in as SYS/ORACLE as SYSDBA. On the Manage Current Backups page. Click Submit Job. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-99 . 2. click Delete All Obsolete. 2) Delete obsolete backups. Navigate to the Maintenance page.

You can view additional information by clicking the links in the Logs section. Select Whole Database in the Customized Backup section. Select Schedule Backup in the Backup/Recovery section. Navigate to the Maintenance page.Solutions for Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs (continued) 6. Answer: 1. 3. 7. Click the Database tab to return to the home page. Click Schedule Customized Backup. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-100 . 3) Start a whole database backup. 2.

Solutions for Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs (continued) 4. Click Next. Click Next. Select Online Backup in the Backup Mode section. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-101 . 5. select Disk. Select Full Backup in the Backup Type section. Deselect “Also back up all archived logs on disk” in the Advanced section. Accept the default values on the “Schedule Customized Backup: Schedule” page. Click Next. 6. On the “Schedule Customized Backup: Settings” page. Select “Delete obsolete backups” in the Advanced section.

Click the links in the Logs section to view additional information. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-102 . 9. 8.Solutions for Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs (continued) 7. Click View Job. Information about the job is displayed. Click Submit Job.

Click the “Job Run” link to return to the Job page. You can view detailed information about each job step.Solutions for Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs (continued) 10. 11. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-103 . Click the Database tab to return to the home page.

Practice Solutions for Lesson 10 There are no practices for Lesson 10. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-104 .

• Define a new Oracle Secure Backup user. • View information about the configured devices. • Install the Oracle Secure Backup software. • Connect to the EM Database Console application using your browser. • Configure preauthorization for this user. THEY ARE NOT SUPPORTED FOR PRODUCTION USE. • Insert four volumes into the tape library. • Test connectivity to the tape drive. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-105 . THE VIRTUAL TEST DEVICES USED IN THIS LAB ARE FOR TRAINING PURPOSES ONLY. you perform the following tasks: • Create your Oracle Secure Backup home directory.Practice Solutions for Lesson 11 In this practice. • Register your administrative server with EM. • Configure virtual test devices.

... SuSE 8.... client 2.. This program loads Oracle Secure Backup software from the CD-ROM to a filesystem directory of your choosing. • During installation. you configure only the local machine as an administrative server with no attached devices.You may load any of the following Oracle Secure Backup packages: 1. • Your Oracle Secure Backup home directory is /usr/local/oracle/backup. Please wait a moment while I learn about this host.. [root@edrsr4p1 backup]# /stage/osb/osb_10_1cdrom/setup Welcome to Oracle's setup program for Oracle Secure Backup.1.060420. Answer: [oracle@edrsr4p1 oracle]$ su Password: oracle <<password not echoed >> [root@edrsr4p1 oracle]# mkdir -p /usr/local/oracle/backup [root@edrsr4p1 oracle]# cd /usr/local/oracle/backup [root@edrsr4p1 backup]# 2) Continue as the root user. RHEL 3. linux32 (RH 2.1. Answer: Note: The output has been slightly formatted to reduce the number of space lines.. Change to that directory..Solutions for Practice 11-1: Install Oracle Secure Backup In this practice... • Install the Oracle Secure Backup software. client In e rn te l& a O I A s U O e ly n - Oracle Database 10g: Backup and Recovery B-106 . Start the installation of Oracle Secure Backup from the staging directory. solaris64 (Solaris 2.. Use the following information to install the software: • The Oracle Secure Backup software is staged on your server in the /stage/osb/osb_10_1cdrom directory. RHEL 4.. you perform the following tasks: • Create your Oracle Secure Backup home directory. Begin with the setup program....8 and later. done.. SuSE 9) administrative server. Unless specified otherwise during this practice. media server. This CD-ROM contains Oracle Secure Backup version 10. r O cl a . media server. SPARC) administrative server. you should log in as the oracle user to your terminal emulator session.. 1) Log in as the root user and create /usr/local/oracle/backup as your Oracle Secure Backup home directory.

..... It installs Oracle Secure Linux.- r O cl a You can choose to install Oracle Secure Backup in one of two ways: (a) interactively.... You may unmount and remove the CD-ROM. Oracle Secure Backup's UNIX installation program. ..... enter 'all' [1]: 1 . Loading linux32 administrative server... Would you like to continue Oracle Secure Backup installation with 'installob' now? (The Oracle Secure Backup Installation Guide contains complete information about installob. (Install Oracle the CD-ROM from which you Backup onto one or more UNIX.....Loading of Oracle Secure Backup software from CD-ROM is complete.. by answering questions asked by this program..(continued) Solutions for Practice 11-1: Install Oracle Secure Backup Enter a space-separated list of packages you'd like to load.. a default answer appears enclosed in square brackets....- - - - - - - Oracle Database 10g: Backup and Recovery B-107 .. open-source systems on your Secure Backup for Windows using loaded this software.... by preparing a network description file In e rn te l& a O I A s U O e ly n customize Oracle Secure Backup [yes]? no ...Loading Oracle Secure Backup installation tools... done.. Press Enter to select this answer. done... To load all packages... or (b) in batch mode.. client.) Please answer 'yes' or 'no' [yes]: yes - Welcome to installob. done. or other supported network..... media server..... Have you already reviewed and install/obparameters for your installation [yes]? no Would you like to do this now .. Please wait a few seconds while I learn about this machine.....) For most questions.

so.21-20. This will take just a minute and will produce several lines of informational output.(continued) Solutions for Practice 11-1: Install Oracle Secure Backup Use interactive mode to install Oracle Secure Backup on a small number of hosts. Oracle suggests you choose a password of at least 8 characters in length.4. You can install this host one of three ways: (a) administrative server (the host will also be able to act as a media server or client) (b) media server (the host will also be able to act as a client) (c) client If you are not sure which way to install. but is not yet configured. containing a mixture of alphabetic and numeric characters. please refer to the Oracle Secure Backup Installation Guide.conf checking Oracle Secure Backup's configuration file (/etc/obconfig) setting Oracle Secure Backup directory to /usr/local/oracle/backup in /etc/obconfig setting local database directory to /usr/etc/ob in /etc/obconfig setting temp directory to /usr/tmp in /etc/obconfig Oracle Database 10g: Backup and Recovery B-108 r O cl a In e rn te l& a O I A s U O e ly n . (a.EL) You must now enter a password for the Oracle Secure Backup 'admin' user. Installing Oracle Secure Backup on edrsr4p1 (Linux version 2. Use batch mode to install Oracle Secure Backup on any number of hosts.b or c) [a]? a Beginning the installation. Please enter the admin password: oracle <<not echoed>> Re-type password for verification: oracle <<not echoed>> generating links for admin installation with Web server updating /etc/ld. Which installation method would you like to use (a or b) [a]? a - Oracle Secure Backup is not yet installed on this machine. Oracle Secure Backup's Web server has been loaded.

d/init.d/init.d/observiced activating observiced via chkconfig initializing the administrative domain creating default oracle user Is edrsr4p1 connected to any tape libraries that you'd like to use with Oracle Secure Backup [no]? no Is edrsr4p1 connected to any tape drives that you'd like to use with Oracle Secure Backup [no]? no - Would you like to install Oracle Secure Backup on any other machine [yes]? no Installation summary: Installation Host Mode Name admin OS Name Driver OS Move Reboot Installed? Required? Required? no no edrsr4p1 Linux no Oracle Secure Backup is now ready for your use.(continued) Solutions for Practice 11-1: Install Oracle Secure Backup setting administrative directory to /usr/local/oracle/backup/admin in /etc/obconfig protecting the Oracle Secure Backup directory removing /etc/rc. [root@edrsr4p1 backup]# exit exit [oracle@edrsr4p1 oracle}$ r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-109 .d/qrserviced creating /etc/rc.

you perform the following tasks: • Configure a virtual test library and a virtual test drive. you do not have to enter username and password. execute the .0 login: admin Password:oracle <<Password not echoed >> ob> lsdev library vlib in service drive 1 vt in service In e rn te l& a O I A s U O e ly n 4) View the RMAN-DEFAULT media family. navigate to the /home/oracle/labs directory and execute the . “Warning: auto-login failed – login token has expired”. ignore it.sh edrsr4p1 ************************************************ Creating a tape drive in the library ************************************************ [oracle@edrsr4p1 labs]$ 3) Start the obtool as the admin user with the oracle password. cl a [oracle@edrsr4p1 labs]$ obtool Oracle Secure Backup 10. It means that you have to enter the login username and password as shown above. and view the currently configured devices. Answer: [oracle@edrsr4p1 oracle]$ cd /home/oracle/labs [oracle@edrsr4p1 labs]$ ./lab_11_02_01. • View information about the configured devices and the default media family via the obtool interface.sh script to configure the vlib tape library directly attached to your administrative server. 1) In a terminal window. (Hint: Use the lsdev command.) Answer: r O Note: If you receive the following./lab_11_02_02./lab_11_02_02.sh edrsr4p1 ************************************************ Creating a library ************************************************ Info: added "mediaserver" role to host edrsr4p1. If you are within the time period of your login token. Oracle Database 10g: Backup and Recovery B-110 .1.sh script to configure the vt tape drive for the library: Answer: [oracle@edrsr4p1 labs]$ ./lab_11_02_01. [oracle@edrsr4p1 labs]$ 2) In the /home/oracle/labs directory.Solutions for Practice 11-2: Configure Devices for Oracle Secure Backup In this practice.

and use the quit command to exit. .Solutions for Practice 11-2: Configure Devices for Oracle Secure Backup (continued) (Hint: Use the lsmf --long command.) Answer: ob> lsmf --long RMAN-DEFAULT: Keep volume set: Appendable: Volume ID used: Comment: ob> quit [oracle@edrsr4p1 oracle]$ content manages reuse yes unique to this media family Default RMAN backup media family r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-111 .

http://<machine name>:1158/em. r O 4. cl a In e rn te l& a O I A s U O e ly n 2) In Enterprise Manager. and as SYSDBA to your Database Control console and SQL*Plus sessions. Solutions for Practice 11-3: Register the Administrative Server 1) With your browser. select SYSDBA from the Connect As drop-down list.In this practice. you perform the following tasks: • Connect to the EM Database Console application using your browser. On the Database Login page. Unless specified otherwise. enter SYS as User Name. • Insert four volumes into the virtual test library. You can retrieve the host name for your computer by calling the <OSB_Home>/bin/hostinfo script. the Oracle Database 10g Licensing Information page is displayed. At the bottom of the page. Answer: 1. click the “I agree” button. connect to Enterprise Manager Database Control using the IP address or machine name for your host. and then click Login. • Register your administrative server with EM. • Test connectivity to the virtual test drive. oracle as Password.us. You can use either the name of your PC or its IP address. register your administrative server. you should log in as the oracle user to your terminal emulator session. Oracle Database 10g: Backup and Recovery B-112 . Open your browser application. Enter the URL. 2.com 3.oracle. Because this is the first time you are connecting to EM Database Control as the SYS user. [oracle@edrsr4p1 labs]$ /usr/local/oracle/backup/bin/hostinfo edrsr4p1.

Select the “Save as Preferred Credential” check box. click the OK button. enter oracle in the Password field.) 4. On the Maintenance tabbed page.) r O Answer: 1. On your Database home page. click the Maintenance tab.Solutions for Practice 11-3: Register the Administrative Server (continued) Answer: 1. click the Manage link corresponding to the Devices field. After clicking OK. and then click the OK button. On the Administrative Server page. (An unlabeled tape is synonymous with a blank tape within Oracle Secure Backup. 3. if the Password Manager offers to remember the password. (Click No. On the Add Administrative Server page. 3) Use Enterprise Manager to insert four volumes into the vlib test library. make sure that admin is set in the Username field. enter oracle for both the Username and Password fields. 2. Then. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-113 . the Administrative Server page is displayed. Then. On the Host Credentials page. click the “Oracle Secure Backup Device and Media” link in the Oracle Secure Backup section. enter /usr/local/oracle/backup in the Oracle Secure Backup Home field.

On the Devices page. click Go. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-114 . 3. and for Destination. the vlib virtual test library should be automatically selected. On the Device Action: insertvol page.Solutions for Practice 11-3: Register the Administrative Server (continued) 2. make sure that the “This is an unlabeled tape” option is selected for Source. In the Actions drop-down list. enter 1-4 in Storage Element. select the “Insert Volume” value. Then.

The Processing page appears for a short period of time. click the plus sign (+) to the left of vlib to see your device. r O 5.Solutions for Practice 11-3: Register the Administrative Server (continued) 4. Scroll down to the bottom of the page and click OK. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-115 . When returned to the Devices page.

An informational message regarding the accessibility of the selected device is displayed.Solutions for Practice 11-3: Register the Administrative Server (continued) 4) Before taking any backups. Select “Verify Connectivity” from the list of Actions. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-116 . test the virtual tape drive access. and click Go. you want to make sure you can access your tape drives. 2. Answer: 1. On the Devices page.

Solutions for Practice 11-3: Register the Administrative Server (continued) r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-117 .

If you are already in Enterprise Manager. you can use shortcuts. you perform the following tasks: • Define a new Oracle Secure Backup user. 1) Use the Oracle Secure Backup Web tool to create the oracle Oracle Secure Backup user with the following values: User oracle. • Configure preauthorization for this user. one for Enterprise Manager and the other for the Oracle Secure Backup Web tool. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-118 . oracle as Password. such as clicking the Administrative Server link in the upper-left part of the Devices page. If you receive the warning “Website Certified by an Unknown Authority”. UNIX name: oracle. 4. You are now redirected to the Oracle Secure Backup Web tool application. UNIX group: dba and NDMP server user: no.In this practice. accept this certificate permanently and click OK in any security pop-up window. you should log on as the oracle user to your terminal emulator session and as SYSDBA to your EM Database Control Console session. click the Maintenance tab. you can have two windows open. set the value to “yes”. so set the value to “no. enter admin as User Name. click the “File System Backup and Restore” link in the Oracle Secure Backup section. User class: oracle.” Answer: 1. Note: If you have an NDMP server. On your Database home page. Then if you rightclick the “File System Backup and Restore” link (at the bottom of the page) and select the “Open Link in New Window” or “Open Link in New Tab” option. and click Login. Solutions for Practice 11-4: Configure Oracle Secure Backup User 3. an NDMP server is not available. Password: oracle. On the Maintenance tabbed page. Unless specified otherwise. but inside the regular classrooms. On the Oracle Secure Backup Login page. 2.

Solutions for Practice 11-4: Configure Oracle Secure Backup User (continued) 5. On the Oracle Secure Backup home page. Click Apply. 6. Password: oracle. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-119 . 8. enter or select the following values: User: oracle. On the Configure page. UNIX group: dba. Click the Add button. click the Configure tab. User class: oracle. On the New Users page. UNIX name: oracle. 7. and NDMP server user: no. click the Users link in the Basic section.

The oracle user is created and the page is in edit mode. View the success message.Solutions for Practice 11-4: Configure Oracle Secure Backup User (continued) 9. OS username: *. r O Answer: 1. Click the Preauthorized Access button. 2) Configure the oracle Oracle Secure Backup user as a preauthorized RMAN and command-line user with the following values: Hosts: all hosts. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-120 . Windows domain name: *. and Attributes: cmdline and rman. Best Practice Tip: Limit preauthorized access to selected hosts.

Solutions for Practice 11-4: Configure Oracle Secure Backup User (continued) 2. Click Add. On the Preauthorized Access page. Windows domain name: *. select or enter the following values: Hosts: all hosts. OS username: *. 3. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-121 . and Attributes: cmdline and rman. View the success message.

• Perform a backup of your Oracle database with the Oracle-Suggested Backup strategy. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-122 .Practice Solutions for Lesson 12 In this practice. you perform the following tasks: • Create a database backup storage selector for your database.

1) First. • In Enterprise Manager. continue with the next step.Production on Wed May 10 13:51:01 2006 Copyright (c) 1982.0. SQL> alter database archivelog. and as SYSDBA to your Database Control Console and SQL*Plus sessions. Database altered. Answer: $ sqlplus /nolog SQL*Plus: Release 10. Oracle Database 10g: Backup and Recovery B-123 . ORACLE instance shut down. enable archiving. Database dismounted. and then restart the database.1.0 .2. Database altered. SQL> startup mount ORACLE instance started. shut down the database. If not. create a database backup storage selector for your Oracle database. SQL> archive log list Database log mode Automatic archival Archive destination Oldest online log sequence Current log sequence SQL> shutdown immediate Database closed. Unless specified otherwise. 2005. you should log on as the oracle user to your terminal emulator session.Solutions for Practice 12-1: Create a Database Backup Storage Selector In this practice. verify that the database is in ARCHIVELOG mode. • In Enterprise Manager. If your database is in ARCHIVELOG mode. In e rn te l& a O I A s U O e ly n bytes bytes bytes bytes bytes SQL> alter database open. All rights reserved. verify that the database is in ARCHIVELOG mode. Oracle. perform a test backup to verify that the Oracle Secure Backup configuration is correct. SQL> connect / as sysdba Connected. No Archive Mode Disabled USE_DB_RECOVERY_FILE_DEST 9 11 r O cl a Total System Global Area 285212672 Fixed Size 1218992 Variable Size 100664912 Database Buffers 180355-72 Redo Buffers 2973696 Database mounted. you perform the following tasks: • In SQL*Plus.

click Backup Settings. click the Maintenance tab. Auto Backup. Full.” and click OK. 4. 2.Solutions for Practice 12-1: Create a Database Backup Storage Selector (continued) SQL> archive log list Database log mode Automatic archival Archive destination Oldest online log sequence Next log sequence to archive Current log sequence SQL> Archive Mode Enabled USE_DB_RECOVERY_FILE_DEST 9 11 11 2) In Enterprise Manager. 3. enter 1 for Tape Drives in the Tape Settings section. Under Backup/Recovery Settings. On the Backup Settings page. and “Save as Preferred Credential” Database Backup Types: Archive log. enter oracle as Username and Password. On your Database home page. Select “Save as Preferred Credential. Password: oracle. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-124 . If these fields are already filled in. Under Host Credentials. and Incremental Answer: 1. create a backup selector for your database with the following specifications: • • • Tape Drives: 1 Host Credentials Username: oracle. make sure the supplied values are correct.

click Add to configure a Backup Storage Selector for your database. make sure that your Administration Server is selected from the list. and Incremental database backup types). Auto Backup.Solutions for Practice 12-1: Create a Database Backup Storage Selector (continued) 5. Then. Enter oracle/oracle for the host username and password. 6. Full. Select “Save as Preferred Credential” and click OK. On the Add Backup Storage Selector page. On the Backup Storage Selectors page. make sure the supplied values are correct. Reenter the Backup Settings page and click Configure in the Oracle Secure Backup section. 7. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-125 . r O 8. If these fields are already filled in.” select all check boxes (for Archive Logs. click OK. On the Administrative Server Login page. under the heading “For These Types of Backups.

Your Backup Storage Selector has been created and is now displayed.Solutions for Practice 12-1: Create a Database Backup Storage Selector (continued) 9. r O cl a In e rn te l& a O I A s U O e ly n You return to the Backup Settings page. Oracle Database 10g: Backup and Recovery B-126 . Click Return.

r O 3. and then click “Test Tape Backup” in the Tape Settings section in the middle of the page. On the Backup Settings page. Answer: 1.Solutions for Practice 12-1: Create a Database Backup Storage Selector (continued) 3) Test your tape backup. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-127 . When your tape drive test is successful. scroll down to see that the administrative server is set. The progress window appears. click the Database Instance link to return to the Maintenance page. Make sure that your Host Credentials are correct. 2.

Solutions for Practice 12-1: Create a Database Backup Storage Selector (continued) r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-128 .

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-129 . you should log on as the oracle user to your terminal emulator session. 3. and as SYSDBA to your Database Control Console and SQL*Plus sessions. 2. make sure your Host Credentials are set correctly. select “Both Disk and Tape” and click Next. On the Maintenance page. 1) In Enterprise Manager. schedule Oracle-Suggested Backup with the following specifications: • • • • Backup destination: both disk and tape Daily backup of archivelogs and incremental backup Tape Drives: 1 Schedule daily backup within 5 minutes of your current date and time Answer: 1. On the Database home page. click the Maintenance link. Unless specified otherwise. perform Oracle-Suggested Backup. click the Schedule Backup link. On the “Schedule Oracle-Suggested Backup: Destination” page. Then click the Schedule Oracle-Suggested Backup button 4. On the Schedule Backup page.Solutions for Practice 12-2: Perform Oracle-Suggested Backup In Enterprise Manager.

enter 1 for Tape Drives and click Next. On the “Schedule Oracle-Suggested Backup: Setup” page. select “Archivelogs and the Incremental Backup”. select the daily backup to run within 5 minutes of your current date and time. and then click Next.Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) 5. Oracle Database 10g: Backup and Recovery B-130 . r O cl a In e rn te l& a O I A s U O e ly n 6. On the “Schedule Oracle-Suggested Backup: Schedule” page.

7.Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) This specification first initiates a disk backup to the Flash Recovery Area. On the “Schedule Oracle-Suggested Backup: Review” page. and then the backup will be written to tape. review both the Settings and RMAN Scripts and click Submit Job. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-131 .

Oracle Database 10g: Backup and Recovery B-132 cl a In e rn te l& a O I A s U O e ly n . as well as the job execution. you should see a full backup (otherwise an incremental one) first to the Flash Recovery Area.Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) 8. and then to tape. If this is your first scheduled backup. Review the RMAN command. r O 2) Review your backup job. You should see that the job has been successfully submitted.

In the Output log. review how the RMAN command allocates the disk and tape devices. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-133 .Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) Answer: 1. 2. click View Job. The Job Execution page is displayed. The content of this screenshot may be different from yours. Click the Backup link under the Logs section. At your specified backup time. due to different timing and previous tasks.

This screenshot shows you the switch from disk to tape. If you are interested only in a summary of the backup activities.Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) 3. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-134 . Scroll down to see the Result area. you can select: EM Maintenance > Backup Reports. r O 4. Scroll down to review the execution of these commands.

html file and view the presentation.” 3) Optionally. but it should show both DISK and SBT_TAPE under “Output Devices. to reinforce this practice topic. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-135 .html viewlet in the /home/oracle/solutions/viewlets directory. you can view the Oracle_Suggested_Strategy_viewlet_swf. r O 3.Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) Your screenshot will look different. Answer: 1. 2. Navigate to the /home/oracle/solutions/viewlets directory. Click the oracle’s Home icon on your desktop. Double-click the Oracle_Suggested_Strategy_viewlet_swf.

close your Web browser window. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-136 . When you have finished viewing the presentation.Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) 4.

• Schedule a backup of the dataset.Practice Solutions for Lesson 13 In this practice. you perform the following tasks: • Create a dataset for a file-system backup. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-137 .

4. 3. On the Maintenance tabbed page. click the Maintenance tab. Answer: 1. and click Login.” accept this certificate permanently and click OK in any security pop-up window. If you receive the warning “Website Certified by an Unknown Authority. click the File System Backup and Restore link in the Oracle Secure Backup section. Unless specified otherwise. which can be accessed from Enterprise Manager for the tasks in this practice session. enter admin as User Name and oracle as Password. On the Oracle Secure Backup Web tool home page. click the Datasets link in the Settings section. You are now redirected to the Oracle Secure Backup Web tool application. Note: Do not back up the local root directory. 7. 1) Create a new dataset called mylabs that you will use to back up your $HOME/labs directory. On the Backup page. 2. The dataset should be of the form: include host <hostname> { include path /home/oracle/labs } Make sure that you replace <hostname> with the machine name of your student computer. 6. click the Backup tab.Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup Use the Oracle Secure Backup Web tool. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-138 . 5. On the Oracle Secure Backup Login page. From your Database home page. On the Datasets page. Both use oracle as password. access Enterprise Manager as SYDBA and the Oracle Secure Backup Web tool as admin user. click Add.

click Save. Oracle Database 10g: Backup and Recovery B-139 . After this is done. On the New Datasets page. or delete these lines. set the Name field to mylabs.Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup (continued) 8. and replace the given template with the following: include host <hostname> { include path /home/oracle/labs } Make sure that you replace <hostname> with the machine name of your student computer. To not back up the local root directory. place comment signs (#) before the relevant lines. r O cl a In e rn te l& a O I A s U O e ly n 9.

On the Datasets page. If there are any errors. On the Dataset Errors page. select mylabs. you see that there were no errors. then click Close. 1. On the Backup: Datasets page. On the Backup Now page. Answer: 2. 3. Verify that the dataset was created successfully.Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup (continued) 10. The backup should run immediately. 2) Create a backup with your mylabs dataset. click Backup Now on the bottom of the page. On the Backup: Backup Now > Options page. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-140 . resolve them. and click Check Dataset. select the mylabs dataset and click OK. click the Add button. 11.

Query the Manage: Jobs page for the previously created and executed job. On the Manage page. Oracle Database 10g: Backup and Recovery B-141 cl a In e rn te l& a O I A s U O e ly n . Answer: 1. Oracle Secure Backup submits the backup request and assigns a job number. r O 3) View Oracle Secure Backup job information. When returned to the Backup Now page. click Jobs. Click the Manage tab.Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup (continued) 4. 5. Review the result. 2. select the mylabs dataset and click Go to submit the job to the scheduler.

In the Types box. 4. Click Apply. On the Jobs page. or Pending jobs by selecting those options. Complete.Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup (continued) 3. Click the Manage link to return to the Manage page. select backup. The updated display now shows the recent dataset backup as well as the previous RMAN backup jobs. then hold the [Ctrl] key and select dataset and Oracle backup. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-142 . restrict the display to only Active.

3. Double-click the Scheduling_filesystem_backups_viewlet_swf. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-143 .Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup (continued) 4) Optionally. Click the oracle’s Home icon on your desktop. When you have finished viewing the presentation. you can view the Scheduling_filesystem_backups_viewlet_swf. 2. to reinforce this practice topic.html viewlet in the /home/oracle/solutions/viewlets directory. close your Web browser window. Answer: 1. Navigate to the /home/oracle/solutions/viewlets directory.html file and view the presentation.

Practice Solutions for Lesson 14
In this practice, you perform the following tasks: • Delete the contents of your labs directory. • Restore the missing lab files. • Verify that the files are recovered.

r O

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-144

In this practice, you first delete your lab files and then restore them from the backup created in the previous practice. Unless specified otherwise, you should log on as the oracle user to your terminal emulator session, and as SYSDBA to your Database Control Console session. For tasks 2 to 5, log in as admin user (with the oracle password) into the Oracle Secure Backup Web tool, which can be accessed from Enterprise Manager. 1) From your terminal emulator session, remove all the files located in your $HOME/labs directory. Answer:
[oracle@edrsr4p1 labs]$ ls /home/oracle/labs
lab_04_01_02_01.sh lab_04_02_02_01.sh lab_04_03_02_01.sh lab_05_02_03_02.sql lab_05_02_04_01.sql lab_05_02_05_01.sql lab_05_02_07_01.sql lab_05_03_01_01.sql lab_05_03_02_01.sql lab_05_03_03_01.sql lab_05_03_04_01.sql lab_05_03_06_01.sql lab_05_04_01_01.sql lab_05_04_03_01.sql lab_05_04_04_01.sql lab_05_04_07_02.sql lab_07_01_01_01.sh lab_07_01_02_02.sql lab_07_01_03_01.sh lab_07_01_07_01.sql lab_07_01_08_01.sql lab_07_01_09_01.sql lab_07_01_12_01.sql lab_07_01_13_02.sql lab_07_01_14_02.sql lab_09_01_04_01.sql lab_11_02_01_in.sh lab_11_02_01_out.sh lab_11_02_01.sh lab_11_02_02_in.sh lab_11_02_02_out.sh lab_11_02_02.sh

Solutions for Practice 14-1: Restore File-System Data with Oracle Secure Backup

[oracle@edrsr4p1 labs]$ mkdir /home/oracle/solutions/labs_save [oracle@edrsr4p1 labs]$ cp /home/oracle/labs/* /home/oracle/solutions/labs_save [oracle@edrsr4p1 labs]$ rm -f /home/oracle/labs/* [oracle@edrsr4p1 labs]$ ls /home/oracle/labs [oracle@edrsr4p1 labs]$

2) Restore your $HOME/labs directory contents by selecting the appropriate backup from the Oracle Secure Backup catalog. Use the Browse Host button to locate the desired backup. Answer: 1. In the Oracle Secure Backup Web tool, click the Restore tab. 2. On the Restore page, click Backup Catalog.

r O

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-145

Solutions for Practice 14-1: Restore File-System Data with Oracle Secure Backup (continued) 3. On the Backup Catalog page, select your <Host Name> and latest, then click Browse Host.

4. On the Browse Host page, click the link labeled home to view its contents.

5. Continue drilling down until you reach the labs directory. Select this directory, and then click Add.

r O

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-146

Solutions for Practice 14-1: Restore File-System Data with Oracle Secure Backup (continued) 6. On the New Restore page, accept the default settings and click OK.

7. On the Backup Catalog page, click “Show restore list and browse options” to view the items to be restored and the selection options for that data.

8. After viewing the information, click Go to submit the restore request to the scheduler.

r O

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

Oracle Database 10g: Backup and Recovery B-147

Solutions for Practice 14-1: Restore File-System Data with Oracle Secure Backup (continued)

9. A message is displayed at the top of the screen to verify that the request was submitted and to show the name of the created restore job.

3) Monitor the progress of the restore request. Answer: 1. Click the Manage tab. 2. On the Manage page, click Jobs.

3. On the Jobs page, select Active, Complete, and Pending for the Viewing options, and then select restore from the Types list. Click Apply.

r O

cl a

In e

rn te

l& a

O

I A

s U

O e

ly n

4. Review the displayed job and verify that your restore job was successful.
Oracle Database 10g: Backup and Recovery B-148

sql lab_05_04_07_02.sql lab_05_03_01_01.sh lab_05_02_03_02.sql [oracle@edrsr4p1 labs]$ r O cl a In e rn te l& a O I A lab_07_01_12_01.sh lab_11_02_02.sh lab_04_03_02_01.sh lab_11_02_02_in.sh s U O e ly n Oracle Database 10g: Backup and Recovery B-149 .sql lab_11_02_01_in.sh lab_11_02_01.sql lab_05_02_07_01.sql lab_05_03_04_01. Answer: [oracle@edrsr4p1 labs]$ ls lab_04_01_02_01.Solutions for Practice 14-1: Restore File-System Data with Oracle Secure Backup (continued) 4) In a terminal window.sql lab_05_03_06_01.sh lab_11_02_01_out.sql lab_07_01_08_01.sql lab_05_03_02_01.sql lab_05_02_05_01. verify that your lab files are present.sql lab_05_04_04_01.sql lab_05_02_04_01.sql lab_05_04_03_01.sh lab_11_02_02_out.sql lab_07_01_09_01.sql lab_09_01_04_01.sql lab_07_01_14_02.sh lab_07_01_07_01.sql lab_05_03_03_01.sql lab_07_01_01_01.sh lab_04_02_02_01.sh lab_07_01_02_02.sql lab_07_01_03_01.sql lab_05_04_01_01.sql lab_07_01_13_02.

you perform the following tasks: • Create an encrypted backup.Practice Solutions for Lesson 15 In this practice. • Recover a tablespace from an encrypted backup. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-150 .

click the “Schedule Backup” link in the Backup/Recovery section. you perform the following tasks: • Schedule a customized tape backup of the whole database. verify that the backup was encrypted. 2. • Edit the RMAN script to encrypt the backup using a password. Answer: 1. On the Maintenance tabbed page. then you see the following information: r O 4. click the Maintenance tab. you should log in as SYS user (with the oracle password) and connect as SYSDBA to Enterprise Manager Database Control. On your Database home page. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-151 . 1) In Enterprise Manager. 3. Start the backup immediately.Solutions for Practice 15-1: Create an Encrypted Backup In this practice. If you completed the task to perform an Oracle Suggested backup. Unless specified otherwise. schedule a customized tape backup of the whole database with the following specifications: full online backup with archive logs to tape. • After the backup operation completes. Accept “Whole Database” under the Customized Backup section and click Schedule Customized Backup.

r O 6. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-152 . Select the Tape setting and click Next.Solutions for Practice 15-1: Create an Encrypted Backup (continued) 5. Retain the default values of the backup options: full. online backup with archive logs and click Next.

2) Edit the RMAN script and include the command to encrypt the backup. r O Answer: 1. click Edit RMAN Script. The command syntax is: SET ENCRYPTION ON IDENTIFIED BY demo ONLY. Make sure the Start Immediately option is selected. Then submit the backup job. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-153 . and then click Next.Solutions for Practice 15-1: Create an Encrypted Backup (continued) 7. specifying demo as the password. On the “Schedule Customized Backup: Review” page.

Click View Job. Verify that the RMAN SET ENCRYPTION command is successfully executed. and no other encryption keys will exist for this backup. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-154 . Enter SET ENCRYPTION ON IDENTIFIED BY demo ONLY. Note: Specifying “ONLY” in the command means decryption will require the demo password. at the top of the RMAN script. 3) Check the backup job status.Solutions for Practice 15-1: Create an Encrypted Backup (continued) 2. Answer: 1. and then click Submit Job.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-155 . Click the Backup link in the Name column of the table under the Logs section.Solutions for Practice 15-1: Create an Encrypted Backup (continued) 2. Notice the successful execution of the RMAN SET ENCRYPTION command. 3.

5) Optionally.html viewlet the /home/oracle/solutions/viewlets directory. you can view the Backup_Encryption_viewlet_swf. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-156 . Navigate to the /home/oracle/solutions/viewlets directory. 2. Answer: r O 1.Solutions for Practice 15-1: Create an Encrypted Backup (continued) 4) Verify the successful completion of your backup. to reinforce this practice topic. Click the oracle’s Home icon on your desktop. Answer: Refresh the browser page until the backup completes.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-157 .html file and view the presentation. Double-click the Backup_Encryption_viewlet_swf. When you have finished viewing the presentation.Solutions for Practice 15-1: Create an Encrypted Backup (continued) 3. close your Web browser window.

On the Maintenance tabbed page. • Troubleshoot the recovery process. click the “Perform Recovery” link in the Backup/Recovery section. 3. Unless specified otherwise. ensure that your Host Credentials are correct. Select Tablespaces from the Object Type list. you perform the following tasks: • Perform a tablespace recovery using the encrypted backup. • Edit the RMAN script to decrypt the backup. Restore the files to the default location. click the Maintenance tab. 2.Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup In this practice. perform an object-level recovery of the EXAMPLE tablespace to the current time or a previous point in time. On your Database home page. Answer: 1. and click Perform Object Level Recovery. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-158 . 1) In Enterprise Manager. you should log in as SYS user (with the oracle password) and connect as SYSDBA to Enterprise Manager Database Control.

r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-159 . Retain the default values for point-in-time recovery and click Next.Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 4. Click Add. 5.

Click Next.Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 6. and click the Select button. Restore the files to the default location” option and click Next. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-160 . 7. Accept the “No. r O 8. Select the EXAMPLE tablespace.

Notice the “ORA-19913: unable to decrypt backup” error. Why? Answer: 1. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-161 .Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 9. Scroll down the output window on the Perform Recovery: Result window. Review your recovery request and click Submit. RMAN could not decrypt the backup because it needs the password. 2) The recovery operation fails.

2. Answer: 1. This is due to the failed tablespace recovery attempt. On the Maintenance tabbed page. 3) Troubleshoot the recovery process. What do you notice on the Perform Recovery page? Answer: 1. What do you notice on the Perform Recovery page? Notice that there is a tablespace offline and its datafile needs media recovery.Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 2. Select Tablespaces from the Object Type list and click Perform Object Level Recovery. Click OK. r O 4) Perform an object-level recovery of the EXAMPLE tablespace to the current time or a previous point in time. Restore the files to the default location. Oracle Database 10g: Backup and Recovery B-162 cl a In e rn te l& a O I A s U O e ly n . click the “Perform Recovery” link in the Backup/Recovery section.

Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 2. On the “Perform Object Level Recovery: Tablespaces” page. Retain the default values for point-in-time recovery and click Next. and click Next. 3. make sure that the EXAMPLE tablespace is displayed. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-163 .

Then submit the backup job. The command syntax is: SET ENCRYPTION ON IDENTIFIED BY demo ONLY. 5) Edit the RMAN script on the “Perform Object Level Recovery: Review” page. Include the command to decrypt the backup.Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 4. Restore the files to the default location” option and click Next. Retain the “No. specifying demo as the password. Answer: r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-164 .

Click Edit RMAN Script. Notice the successful execution of your SET DECRYPTION command. 2. 6) View the Perform Recovery: Result page. Answer: 1. Notice that the SET DECRYPTION command was executed. Enter SET DECRYPTION IDENTIFIED BY demo. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-165 . and then click Submit.Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 1. at the top of the RMAN script.

Notice that the recovery completed successfully and the EXAMPLE tablespace was brought back online. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-166 .Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 2. When you finished reviewing the results. r O 3. click OK.

you perform the following tasks: • View Oracle Secure Backup information. • Back up the Oracle Secure Backup catalog.Practice Solutions for Lesson 16 In this practice. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-167 .

3. you view Oracle Secure Backup information: the catalog. 4. To access the Oracle Secure Backup Web tool. and defaults and policies. Unless specified otherwise. click the Maintenance tab. Answer: 1. r O 6. Click the path link under Browse Host thrice.In this practice. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-168 . use admin as username and oracle as password. On your Database home page. you should log in as the SYS user (with the oracle password) and connect as SYSDBA to Enterprise Manager Database Control. Solutions for Practice 16-1: View Oracle Secure Backup Information 5. Use the Oracle Secure Backup Web tool to browse the Oracle Secure Backup catalog to view what you have backed up so far. volumes and their content. Click Backup Catalog. 2. 1) The administrative server maintains a catalog in which it stores metadata relating to backup and restore operations for the administrative domain. Select your host name and click Browse Host. Click File System Backup and Restore. Click the Restore tab. jobs and job transcripts.

click the Manage tab. which you backed up during a previous practice session. Answer: 1. 2. Click Volumes. 2) View the volumes and their content.Solutions for Practice 16-1: View Oracle Secure Backup Information (continued) 7. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-169 . Note: The content of your /home/oracle/labs directory is different during class. In the Oracle Secure Backup Web tool. Click until you see the files.

Include a review of a job transcript. Review the List Section Properties. In the Oracle Secure Backup Web tool. Then click Close. 4. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-170 . Answer: 1. click the Home tab. The content of your Backup Sections will be different from this screenshot. 3) View a category of jobs—for example.Solutions for Practice 16-1: View Oracle Secure Backup Information (continued) 3. Select one of the volumes and click List Backup Sections. completed ones.

It should be 0%. Click the Completed Jobs link.Solutions for Practice 16-1: View Oracle Secure Backup Information (continued) Most likely. Scroll to the end of the job transcript and view the error rate. you will not have any failed jobs to research. 3. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-171 . Select the archivelog backup job and click Show Transcript. r O 4. so look at completed ones. 2.

What is the value of the “Login token duration” policy? Answer: 1. On the Configure: Defaults and Policies page. Click the Configure tab. click the security Policy. 2. click the Defaults and Policies link in the Advanced section. Click the File System Backup and Restore. On your Database home page. 4) View the configuration of your security policies. 3. r O 5. cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-172 . On the Configure page. Click Close.Solutions for Practice 16-1: View Oracle Secure Backup Information (continued) 5. click the Maintenance tab. 4.

Solutions for Practice 16-1: View Oracle Secure Backup Information (continued) 6. What is the value of the “Login token duration” policy? The default value is 15 minutes. you need to repeat your Oracle Secure Backup login. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-173 . which means after 15 minutes of inactivity.

Apply your changes [yes]? ob> In e rn te l& a O I A s U O e ly n ."). To create the backup request using the following obtool command: backup –l full –p 1 –r vt –g --dataset catback.ds When prompted for input. include host <hostname> { include path /etc/obconfig include path /usr/etc/ob/xcr include path /usr/local/oracle/backup/admin } . you perform the following tasks using obtool: • Create a dataset for the <OSB_HOME>/admin directory. • Create a backup request.Solutions for Practice 16-2: Back Up the Oracle Secure Backup Catalog In this practice. and then submit the backup request. supply the following dataset directives. Use the following command: mkmf --vidunique --writewindow 7days --retain 28days --noappend OSB_catalogs Answer: $ obtool –-user admin –-password oracle ob> mkmf --vidunique --writewindow 7days --retain 28days -noappend OSB_catalogs 2) Create a backup set for the catalog data. you used the Oracle Secure Backup Web tool for a file-system backup. 1) Create a media family to be used when backing up the Oracle Secure Backup catalog files. Previously.ds Oracle Database 10g: Backup and Recovery B-174 cl a ob> mkds --dir catalog_backup ob> mkds --input catback. • Identify the volume that contains the backup data.ds Input the new dataset contents. where <hostname> is the host name of your assigned computer: include include include include host path path path <hostname> { /etc/obconfig /usr/etc/ob/xcr /usr/local/oracle/backup/admin } Answer: r O 3) Create a backup request for this dataset. using the commands listed here: mkds --dir catalog_backup mkds --input catback. • Verify that the backup completed successfully. Terminate with an EOF or a line containing just a dot (". Now use the obtool utility with admin as username and oracle as password. • Submit the backup request to the scheduler.

job id is admin/3.ds Level: full Family: OSB_catalogs Scheduled time: none State: completed successfully at 2006/05/19. lastse 2 In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-175 . content manages reuse * in 3: unlabeled.ds. The backup is restricted to only the vt tape drive. barcode 6a409e76c944102b98500065b9621d0 in dte: volume VOL000001. so the volume that contains the backup can be easily located.Solutions for Practice 16-2: Back Up the Oracle Secure Backup Catalog (continued) What does this command do? Answer: This command performs a full backup (-l full) of the files defined by the dataset description catback. (--dataset). ob> 4) Use the information from the message returned in the previous step to verify that the backup completed successfully. The backup is executed as the privileged root user (-g) and is given the highest priority (-p 1).ds) submitted. ob> backup –l full –p 1 –r vt –g --dataset catback.21:51 Priority: 1 Privileged op: yes Run on host: (administrative server) Attempts: 1 ob> 5) Identify the volume that contains the backup.ds ob> backup --go Info: backup request 1 (dataset catback. barcode 6a2ac70ec944102b98500065b9621d0 * in 4: unlabeled. 3463296 kb remaining. Answer: ob> lsjob --long admin/3 admin/3: Type: dataset catback. 3462496 kb remaining. (State should show “completed successfully”). Answer: ob> lsvol --drive vt r O cl a ob> lsvol --drive vt Inventory of library vlib: * in 1: volume RMAN-DEFAULT-000002. All the files described are backed up regardless of when the last backup was taken or what files have changed. barcode 69ed75c0c944102b985 00065b9621d0. barcode 6a156878c944102b98500065b9621 d0.

Solutions for Practice 16-2: Back Up the Oracle Secure Backup Catalog (continued) *: in use list ob> ob> exit r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery B-176 .

All rights reserved. Oracle. r O cl a In e rn te l& a O I A s U O e ly n .Oracle Secure Backup Additional Installation Topics Copyright © 2006.

should assist you to: • Install Oracle Secure Backup on Windows • Locate and describe the Oracle Secure Backup installed files • Additional installation topics: – Specifying installation parameters – Client Installation: Example – Media Server Installation: Example • Uninstall Oracle Secure Backup Copyright © 2006. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . All rights reserved.2 . together with the relevant lesson.Topics This appendix. Oracle.

During the installation process. To support running an administrative server on Windows.Windows Installation: Overview Stop drivers Run setup. Oracle Secure Backup supports configuring the administrative domain on a host running the Windows operating system. Oracle. All rights reserved. such as: on Windows: disable drivers on Windows-based media servers. see documentation for platform-specific details.3 .exe Answer customer information dialogs Select the type of host from the Oracle Secure Backup Setup screen Install Answer service startup dialogs Answer service login dialogs Copyright © 2006. and how to configure firewalls. the GNU SMTP implementation is replaced with one developed by Oracle. and can additionally be a media server or administrative server installation. the Oracle Secure Backup Setup Wizard copies all Oracle Secure Backup files to the local host and generates Windows Registry entries. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . Note: Every installation of Oracle Secure Backup on Windows is a client installation. Windows Installation: Overview Before beginning your installation.

All rights reserved. Expand the branch for Medium Changers (if any). 6. Repeat steps 5 and 6 for each tape library or tape drive that you intend to use with Oracle Secure Backup. 8. 9. 3. Select Disable to disable the medium changer driver. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . you should stop any currently running drivers that are controlling existing tape drives and libraries that you plan to use with Oracle Secure Backup. A pop-up menu appears. click System. To stop Windows drivers. 7. Right-click the icon that represents your tape library. A pop-up menu appears.Stopping Tape Device Drivers Copyright © 2006. Select Disable to disable the tape drive driver. perform the following steps: 1. Click the Hardware tab. 2. Installed drivers for tape drives appear. This is necessary because Windows does not allow two device drivers to simultaneously claim the same device. Oracle. Expand the branch for Tape Drives. 4. Right-click the icon that represents your tape drive.4 . Click the Device Manager button. From Control Panel. 5. Stopping Tape Device Drivers Before you start an Oracle Secure Backup host installation on your Windows machine. The Device Manager window appears. 10.

the Windows drivers will preempt the Oracle Secure Backup device driver (ob) on the next reboot. Reboot your host. Windows drivers claim devices to be used by Oracle Secure Backup. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . If not disabled.5 . 12.Stopping Tape Device Drivers (continued) 11. Repeat steps 9 and 10 for each tape library or tape drive that you intend to use with Oracle Secure Backup.

Oracle. 4. 8. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . click the pull-down menu of the Media Server icon. Oracle Secure Backup Setup 1.exe program from the directory into which you originally downloaded the software. Enter your name in the User Name box.” option removes the X from the Media Server icon and installs the media server software. 3. To configure the Windows host as a media server. Enter the name of your company in the Organization box. The Readme Information dialog box is displayed.Only for me (user) 7. Click Next to continue. Your choices are: . Run the setup. The options that are displayed are shown in the slide.Anyone who uses this computer (all users) .6 . 5. 6. Click Next to continue. Selecting the “This feature will be installed on local hard drive.Oracle Secure Backup Setup Copyright © 2006. The InstallShield Wizard is displayed. Choose the program features to configure: a. All rights reserved. Click Next to continue. 2. Select a target user for the application. The Customer Information dialog box is displayed.

10. the InstallShield Completed screen is displayed.7 . The “Ready to Install the Program” window is displayed. repeat this process for Create “oracle” user. c. A progress bar appears.Oracle Secure Backup Setup (continued) b. To configure the Windows host as an administrative server. Click Next to continue. 11.” Again. selecting this option removes the X from the Administrative Host icon and installs the administrative server software. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . click the pull-down menu of the Administrative Host icon and select “This feature will be installed on local hard drive. When the files are copied. Click Finish to continue. Click Install to start copying files. Doing so creates an Oracle Secure Backup user called oracle (with the rights and privileges of the oracle class) whose purpose is to facilitate RMAN backup and restores of Oracle databases. 9. If you plan to perform Oracle database backups and restores.

Service Startup Dialogs The Service Startup dialog box is displayed.Manual: The Oracle Secure Backup service must be started manually by a user who is a member of the Administrators group. the only daemon that runs as a Windows service is the Oracle Secure Backup service (observiced). 12. All rights reserved.Automatic: The Oracle Secure Backup service starts automatically when you reboot your host. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . Select a mode in which to start the Oracle Secure Backup service. Your choices are: . Oracle. . Note: On the Windows operating system.8 . .Disabled: The Oracle Secure Backup service is disabled.Service Startup Dialogs Continued: Copyright © 2006. Click Next to continue. 13.

9 .Service Login Dialog Box Continued: Copyright © 2006. All rights reserved. 16. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C .If you plan to run the Oracle Secure Backup service daemon (and associated subordinate daemons) with full privileges. ensure that the account you select has enough backup and restore privileges. Select one of the following options: .If you plan to run the Oracle Secure Backup service daemon (and associated subordinate daemons) with the privilege set associated with an existing Windows user account. If you choose this option. click “This Account” and enter the Windows user account name and password. The required privileges are listed in the Oracle Secure Backup Service Logon dialog box. Click Finish to complete the installation. . Oracle. Service Login Dialog Box The Service Login dialog box appears. click System Account. 14. 15. Repeat this installation process for each Windows host in your administrative domain.

although the contents of the directory vary depending on the roles you assigned to the host. each host on which Oracle Secure Backup is installed contains a configuration file. All rights reserved. However. Oracle. and it is called obconfig in the /etc directory on UNIX and Linux systems. These directories contain the following types of files: • admin: Administrative and configuration data for the administrative domain. The configuration file is called obconfig.10 . The illustration in the slide shows the installed directories that are common to an administrative server on any operating system. an administrative server configured on a Linux host will have additional directories created.txt in the db subdirectory where you install Oracle Secure Backup on Windows. also the backup catalog • apache: Apache Web server files (used by Web tool) • bin: Executables or links to executables • device: Data on the tape drives and libraries that are supported by the Oracle Secure Backup device driver r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C .Oracle Secure Backup Installed Files <OSB_Home> directory admin • • • • config history log state • • • • • apache conf htdocs images logs modules bin device help samples Administrative server Copyright © 2006. In addition to containing the Oracle Secure Backup directory. Configuration file Oracle Secure Backup Installed Files The Oracle Secure Backup home directory is created on every host where you install Oracle Secure Backup.

an Oracle Secure Backup installation also includes the following file objects: • db\xcr\: Transcripts for jobs that ran on this host • temp\: The directory containing observiced and obndmpd log files and temporary files A UNIX or Linux host has the following additional files: • .drv.hostid: Information used for identifying this host • /usr/etc/ob/xcr/: Transcripts for jobs that ran on this host • /usr/tmp/: Log files for observiced and obndmpd and temporary files • .lib. For example.wrapper shell program enable hosts to contain executables for multiple computer architectures. where operating_system is a derivative of the operating system name.etc.<operating_system>/: Maintenance tools • /usr/etc/ob/. On a Windows host.<operating_system>/: Device drivers for operating_system • etc/: Links that point to the <OSB_root>/.solaris. This script is an architecture-specific executable selection tool for Oracle Secure Backup.solaris. For example.<operating_system>/: Executables for operating_system.* or . r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . based on the computer architecture of the host executing the command.Oracle Secure Backup Installed Files (continued) • help: Help files (provides data for the help command in obtool) • samples: Sample tools for writing scripts or programs that interact with Oracle Secure Backup Note: The directory structure under the <OSB_Home> directory is the same for both Windows and UNIX systems.* directory. • .etc.bin.bin.bin.11 . Symbolic links and the architecture-independent . where operating_system is a derivative of the operating system name.wrapper: Shell program that selects an executable from a .<operating_system>/: Shared library for the SBT interface for operating_system.lib. the directory for Sun Solaris is .wrapper script for each Oracle Secure Backup utility. • . the directory for Sun Solaris is . • man/: Man pages for Oracle Secure Backup components • man/man1: Man pages for Oracle Secure Backup executables • man/man8: Man pages for daemons and maintenance tools • tools.<operating_system>/: Daemons and utility programs for operating_ system • install/: Installation scripts • lib/: Link to the architecture-independent shared library for the SBT interface • .

<operating_system>/ man/ /usr/etc/ob/.Oracle Secure Backup Installed Files <OSB_Home> directory /usr/local/oracle/backup .drv.wrapper r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . Oracle.bin. The bin and device subdirectories are created on every machine. regardless of the operating system used.<operating_system>/ . Oracle Secure Backup Installed Files (continued) The slide illustrates the directories created for a media server or client.etc.12 .<operating_system>/ etc/ . The other directories shown in the slide are created for machines that use the Windows operating system. For a UNIX or Linux host. All rights reserved.hostid /usr/etc/ob/xcr/ /usr/tmp/ .drv. the following files and directories are installed in addition to the bin and device subdirectories: • Media server: .<OS> help bin device Media server <OSB_Home> directory /usr/local/oracle/backup help bin Client device Copyright © 2006.

<operating_system>/ etc/ .etc.Oracle Secure Backup Installed Files (continued) • Client: .<operating_system>/ man/ /usr/etc/ob/.wrapper r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C .bin.hostid /usr/etc/ob/xcr/ /usr/tmp/ .13 .

Oracle. Installed Files for Host Role: Administrative Server The Oracle Secure Backup home directory is created on every host where you install Oracle Secure Backup. However. In addition to containing the Oracle Secure Backup directory. although the contents of the directory vary depending on the roles you assigned to the host. also the backup catalog • apache: Apache Web server files (used by Web tool) • bin: Executables or links to executables • device: Data on the tape drives and libraries that are supported by the Oracle Secure Backup device driver r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C .14 . and it is called obconfig in the /etc directory on UNIX and Linux systems. The configuration file is called obconfig. each host on which Oracle Secure Backup is installed contains a configuration file. These directories contain the following types of files: • admin: Administrative and configuration data for the administrative domain.txt in the db subdirectory where you install Oracle Secure Backup on Windows. The illustration in the slide shows the installed directories that are common to an administrative server on any operating system. an administrative server configured on a Linux host will have additional directories created.Installed Files for Host Role: Administrative Server <OSB_Home> directory admin • • • • config history log state • • • • • apache conf htdocs images logs modules bin device help samples Configuration file Copyright © 2006. All rights reserved.

the directory for Sun Solaris is .15 .etc. an Oracle Secure Backup installation also includes the following file objects: • db\xcr\: Transcripts for jobs that ran on this host • temp\: The directory containing observiced and obndmpd log files and temporary files A UNIX or Linux host has the following additional files: • .etc.wrapper: Shell program that selects an executable from a .solaris.bin. This script is an architecture-specific executable selection tool for Oracle Secure Backup. For example. where operating_system is a derivative of the operating system name.bin.wrapper script for each Oracle Secure Backup utility.<operating_system>/: Executables for operating_system.wrapper shell program enable hosts to contain executables for multiple computer architectures.<operating_system>/: Device drivers for operating_system • etc/: Links that point to the <OSB_root>/.solaris. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . the directory for Sun Solaris is .* directory.lib.* or .bin.<operating_system>/: Maintenance tools • /usr/etc/ob/.lib.<operating_system>/: Shared library for the SBT interface for operating_system.<operating_system>/: Daemons and utility programs for operating_ system • install/: Installation scripts • lib/: Link to the architecture-independent shared library for the SBT interface • . • . based on the computer architecture of the host executing the command. • . For example.Installed Files for Host Role: Administrative Server (continued) Oracle Secure Backup Installed Files • help: Help files (provides data for the help command in obtool) • samples: Sample tools for writing scripts or programs that interact with Oracle Secure Backup Note: The directory structure under the <OSB_Home> directory is the same for both Windows and UNIX systems. • man/: Man pages for Oracle Secure Backup components • man/man1: Man pages for Oracle Secure Backup executables • man/man8: Man pages for daemons and maintenance tools • tools.drv. On a Windows host. where operating_system is a derivative of the operating system name.hostid: Information used for identifying this host • /usr/etc/ob/xcr/: Transcripts for jobs that ran on this host • /usr/tmp/: Log files for observiced and obndmpd and temporary files • . Symbolic links and the architecture-independent .

wrapper r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C .drv. regardless of the operating system used. All rights reserved.hostid /usr/etc/ob/xcr/ /usr/tmp/ .etc.drv.<OS> help bin device Copyright © 2006.<operating_system>/ etc/ . Oracle. The bin and device subdirectories are created on every machine.bin.16 . The other directories shown in the slide are created for machines that use the Windows operating system.<operating_system>/ . the following files and directories are installed in addition to the bin and device subdirectories: • Media server: .<operating_system>/ man/ /usr/etc/ob/. For a UNIX or Linux host.Installed Files for Host Role: Media Server <OSB_Home> directory /usr/local/oracle/backup . Installed Files for Host Role: Media Server The slide illustrates the directories created for a media server or client.

bin. Oracle.17 .<operating_system>/ etc/ .Installed Files for Host Role: Client <OSB_Home> directory /usr/local/oracle/backup help bin device Copyright © 2006. regardless of the operating system used. All rights reserved. The bin and device subdirectories are created on every machine.wrapper r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C .<operating_system>/ man/ /usr/etc/ob/. The other directories shown in the slide are created for machines that use the Windows operating system.etc. • Client: .hostid /usr/etc/ob/xcr/ /usr/tmp/ . Installed Files for Host Role: Client The slide illustrates the directories created for a media server or client.

AIX. this option allows you to automatically create an Oracle Secure Backup user "oracle" which belongs to the "oracle" class and is pre-authorized to perform Oracle backup & restore operations. and Solaris64. you can set directories for Solaris. HP-UX. For a Linux installation. The default value is the <OSB_Home> directory. Linux. All rights reserved. Currently.Specifying Installation Parameters # Once you've customized this obparameters file. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . Oracle. create pre-authorized oracle user: yes Copyright © 2006. Specifying Installation Parameters Oracle Secure Backup provides an obparameters file to help users customize their installations. The obparameters file is located in the install subdirectory of your Oracle Secure Backup home directory. you can alter the behavior of Oracle Secure Backup by modifying the following options in this file: • customized obparameters: Indicates you no longer want to be prompted to review this file during installation • start daemons at boot: Indicates whether you want to automatically start Oracle Secure Backup each time you boot the system • identity certificate key size: 1024: Configures the level of security associated with the host identity certificates issued by the administrative service daemon • create pre-authorized oracle user: Instructs Oracle Secure Backup to create the oracle Oracle Secure Backup user and configure it as a preauthorized user • default UNIX user and default UNIX group: Is used to specify the UNIX or Linux groups and usernames to which the oracle Oracle Secure Backup user will be mapped • <OS type> ob dir: Identifies the name of the Oracle Secure Backup directory for each platform type in your network. customized obparameters: yes … # # # # # # # # # # _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ D e f a u l t " o r a c l e " u s e r c r e a t i o n _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ After the installation is successful and the administrative domain has been initialized. change the # following line to 'yes' to make installob less chatty.18 .

/admin . Oracle Secure Backup requires that the temp directory be able to contain lockable files./. and the name of the directory in which to create the “lib” link (for library files).0 root. which eliminates temp directories mounted as SunOS “tmpfs” file systems.19 . A list of the files and directories. • <OS type> links: Indicates whether or not Oracle Secure Backup should create symbolic links. The link text points to the actual libobk. on some systems. Here is a partial listing: root.0 755 700 700 700 755 4755 .Specifying Installation Parameters (continued) • <OS type> db dir: Is used to alter the directory in which Oracle Secure Backup retains host-specific information. it may be more appropriate to place links in /bin instead of /usr/bin. for example). Three link names must be specified: the name of the directory in which to create the “bin” links. For example. Oracle Secure Backup by default creates symbolic links so that users of Oracle Secure Backup do not need to change their search paths. Note: If the obparameters file specifies a lib directory for the operating system type of the current installation. This directory must be private to each machine.0 root. You can select a temp directory on a per-OS basis by modifying the appropriate line./admin/config/* .so file that resides in the operating system–specific lib directory (./.lib.*/* . The default values are: <OS type> links: /usr/bin • /etc /lib • ask about ob dir: Indicates whether or not Oracle Secure Backup should remind the user during installation that a directory other than the recommended one has been chosen for the software default protection: Is used to specify the file and directory permissions to be set after the installation is complete.0 root. The default value is /usr/etc/ob. which is a subdirectory of your <OSB_Home> directory.bin.so link in this directory. By default.*/obtar run obopenssl: Indicates whether or not the Oracle Secure Backup installation tool should prompt you to run obopenssl and create the certificates for the Apache Web server. • <OS type> temp dir: Is used to alter the location of the temp area. the name of the directory in which to create the “etc” link (for daemons)./admin/* .0 root.linux32. or in /usr/etc instead of /etc. along with the default permissions. You can choose not to create these links or to modify the location of the created links. • r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . are listed. The default value is yes./samples/*. it cannot be shared among multiple machines via NFS (or any other remote file system).sh .bin. then the installation software creates a libobk.0 root. Oracle Secure Backup uses the /usr/tmp directory on each host for the storage of transient files during installation. You can specify the behavior for each type of supporting operating system.

...Client Installation: Example Would you like to install Oracle Secure Backup on any other machine [yes]? yes Enter the name of a host onto which you'd like to install Oracle Secure Backup: client_z Just a moment while I learn about client_z. You need to specify the name of the machine and answer some basic questions. This is because the installob script determined that the target machine could not be configured as an administrative or media server. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . a client installation is performed automatically.done. Thus. OK to proceed [yes]? yes Installing Oracle Secure Backup onto client_z (HP-UX version 10. The work area on client_z to be used for temporary install files is /tmp. Oracle. I'm ready to install Oracle Secure Backup on client_z as a client. the complete output is not shown in the slide. as shown. For formatting reasons. no choice is provided regarding the new machine’s role. All rights reserved.. Oracle Secure Backup installed successfully onto client_z Copyright © 2006.” When the installob script gives you the possibility to install Oracle Secure Backup on another machine.. Looking for an acceptable temporary work area on client_z...20) packaging Oracle Secure Backup distribution for copy to client_z copying Oracle Secure Backup distribution to client_z copying Oracle Secure Backup installation tools to client_z completing installation on remote host .20 . Making sure target file system has enough space.. and you now want to install Oracle Secure Backup on a client named “client_z. Client Installation: Example Assume in the example shown in the slide that you have just installed Oracle Secure Backup on the administrative server. you choose yes. Note: In this particular example.

… Does media_x have any SCSI tape libraries that you'd like to use with Oracle Secure Backup [no]? yes How many Oracle Secure Backup tape drives are attached to media_x [1]? Please describe each tape drive by answering the following questions. In addition to obtaining SCSI device information. Note: The procedure for configuring tape libraries or Fibre Channel devices is the same as the process for configuring SCSI tape drives.(c) a client Which would you like (one of a b c. (b) a media server or. the complete output is not shown in the slide. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . /dev/obt1. First. and so on. Before you can configure the tape drive. Oracle. you can use the cat /proc/scsi/scsi command to obtain the necessary information. All rights reserved.Media Server Installation: Example Would you like to install Oracle Secure Backup on any other machine [yes]? Enter the name of a host onto which you'd like to install Oracle Secure Backup: media_x You can install this host one of three ways: (a) an admin server. Logical unit number [0]: # cat /proc/scsi/scsi SCSI bus address [0]: Attached devices: SCSI target ID [4]: 2 Host: scsi0 Channel: 00 SCSI lun 0-7 [0]: Id: 02 Lun: 00 Is the information you entered correct [yes]? Vendor: IBM Model: … : 4772 OK to proceed [yes]? Type: Sequential-Access… Oracle Secure Backup successfully onto media_x Copyright © 2006. you must also assign an Oracle Secure Backup logical unit number. This is a number between 0 and 31 and is used to create unique file names for the devices connected to the media server—for example. you need to obtain some physical SCSI information about the device.21 . /dev/obt0. Note: For formatting reasons. it is assumed that the media server has only one SCSI tape drive attached. q to quit) [c]? b Oracle Secure Backup's Web Server Interface software has been loaded. In the example. For example. on a Linux platform. Media Server Installation: Example This example demonstrates a media server installation. The setup program automatically installs Oracle Secure Backup on the remote host and prompts for information about the devices attached to the new media server. specify the host name of the machine that you want to add as a media server. Then. you specify that you want this new machine to be a media server.

Verifying Your Installation In the slide are some examples of how you can verify your installation. Oracle.1. To start the obtool utility. All rights reserved. execute the following: $ obtool Oracle Secure Backup 10.22 .Verifying Your Installation Some examples: • View Oracle Secure Backup processes in Linux: ps -e | grep ob • Use obtool commands to view Oracle Secure Backup users and default media family: ob> lsuser ob> lsmf --long Copyright © 2006.0 login: admin Password: oracle << Password not echoed >> ob> lsuser admin admin oracle oracle ob> lsmf --long RMAN-DEFAULT: Keep volume set: content manages reuse Appendable: yes Volume ID used: unique to this media family Comment: Default RMAN backup media family ob> quit r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C .

Uninstalling Oracle Secure Backup • Have all users log out of Oracle Secure Backup applications. the uninstallob script removes the Oracle Secure Backup home directory when the script completes.23 . All rights reserved. • Use the uninstallob script. – Call script from the parent directory of the Oracle Secure Backup home directory. For this reason. You must be logged in as the root user on UNIX or Linux systems to uninstall Oracle Secure Backup completely. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . Oracle Secure Backup–related processes such as the HTTP processes for Oracle Secure Backup Web tool should be shut down before beginning the uninstallation process. you should call the uninstallob script from the parent directory of the Oracle Secure Backup home directory. you are given the option of retaining the administrative directory and its contents. you may not have the privileges needed to delete files and shut down the Oracle Secure Backup daemons. Oracle. • Close all sessions of Web tool. This enables you to safely uninstall and reinstall the product without deleting your administrative server data. If you are not logged in as root when you uninstall the software. you can use the following command: # /bin/ps -ef |grep ob You can then use kill -9 <pid> commands to kill each process in the list associated with Oracle Secure Backup. – You must be logged in as the root user. Uninstalling Oracle Secure Backup You can uninstall Oracle Secure Backup from a client or the administrative server. If you uninstall Oracle Secure Backup from the local machine. To identify processes for Oracle Secure Backup. If you uninstall Oracle Secure Backup from an administrative server. • Choose whether you want to save or remove the: – Oracle Secure Backup directory – Administrative directory Copyright © 2006.

Uninstalling Oracle Secure Backup (continued) If you encounter errors when uninstalling the Oracle Secure Backup software. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . or if the uninstallob script fails to completely remove all the files for Oracle Secure Backup (assuming you did not choose to save any files). then run the uninstallob script again until you see the following message: Oracle Secure Backup has been successfully removed from <host>.24 . correct the problem causing the error if possible.

Oracle.Summary This appendix provided assistance with the following topics: • Install Oracle Secure Backup on Windows • Locate and describe the Oracle Secure Backup installed files • Additional installation topics: – Specify installation parameters – Install Client: Example – Install Media Server: Example • Verify your UNIX installation • Uninstall Oracle Secure Backup Copyright © 2006. r O cl a In e rn te l& a O I A s U O e ly n Oracle Database 10g: Backup and Recovery C . All rights reserved.25 .

r O cl a In e rn te l& a O I A s U O e ly n .

________ D Glossary ________ r O cl a In e rn te l& a O I A s U O e ly n .

Advanced Intelligent Tape. A host where you install Oracle Secure Backup. There must be one and only one administrative server for each administrative domain at your site. or an NAS device name. Defines the way in which Oracle Secure Backup authenticates itself to the NDMP server. Typically. a Windows device name. One administrative server can service all clients on your network. a magnetic tape and drive system used for computer data storage and archiving Important indicator of the performance of the disk and drive that corresponds to the number of magnetic bits per unit area A public-domain Web server used by the Oracle Secure Backup Web interface tool. application programming interface An attachment describes a data path between a host and a storage device. This host stores configuration information and the catalog files for client hosts. Most often. Your choices are: • Default • None • Negotiated • Text • Md5 O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-2 . A device must have at least one attachment. you should use the negotiated default setting.Term administrative domain administrative server AIT Areal Density Apache Web server API attachment authentication type r O cl a In e rn te l& a Definition A group of machines on your network that you manage as a common unit to perform backup and restore operations. one for each host that can directly access it. which starts and monitors backups within the administrative domain. an attachment comprises the identity of a host plus a UNIX device special file name. and often has multiple attachments. The administrative server runs the scheduling daemon.

A backup image can contain one or more media families and volume sets. a level 2 backup operation backs up all data changed since the previous level 1 or level 2 backup. An integer identifier that uniquely identifies a backup image section The product of an Oracle Secure Backup backup operation. All addressable data storage that is not currently in the computer’s main storage or memory. A backup operation that is scheduled to run at a specific time. It contains the backup image’s file and section numbers and owner. A text file you create that is used with command-line interface backup operations.Auxiliary Storage/ External Storage/ Bit backup description file backup ID backup image backup image label backup image section backup job backup level backup operation backup piece r O backup piece expiration time cl a In e rn te l& a Secondary Storage. A portion of a backup image file that exists on a single tape. One backup image can contain multiple sections. It lists host names and directories that you want to back up. The time the job is scheduled to run can be either immediately or some time in the future. For example. O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-3 . The smallest amount of information in a binary digital system that can be used to represent two states of information such as YES or NO. The first block of a backup image. A process by which data is copied from primary media to secondary media. Basically it is the list of files that are backed up in one operation. The level that defines the comprehensiveness of the backup operation. This expiration date is determined when the backup piece is created. A binary file written in a proprietary format by RMAN for storing backup data. Each backup section is uniquely identified by a backup ID. and corresponds to its creation time plus its expire duration. One or more backup pieces make up a backup set.

A collection of Oracle Database data backed up by RMAN. Specifies how many 512-byte blocks to include in each block of data written to each tape drive. Certificate Authority A hierarchical collection of files that contains all the information used to define your Oracle Secure Backup administrative domain configuration O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-4 . Some tape libraries have an automated means to read barcodes. See Database Backup Storage Selector. or a combination of letters and numbers as in ASCII code. See backup image section. Because higher blocking factors usually result in better performance.backup schedule backup sections backup set Backup Storage Selectors backup trigger backup window barcode BDF blocking factor BSP bus byte r O CA catalog cl a In e rn te l& a A description of when and how often Oracle Secure Backup is to back up one or more datasets. See backup description file. numbers. By default. A calendar-based time at which a particular scheduled backup becomes eligible to run Defines a time range within which Oracle Secure Backup executes scheduled backup jobs A symbol code that is physically applied to volumes for identification purposes. which Oracle Secure Backup supports. Oracle Secure Backup fails with an error. If you pick a value larger than is supported by the operating system of the server. The backup schedule contains the names of each such dataset and the name of the media family to use. Backup Solutions Program A collection of wires through which data is transmitted from one part of a computer to another Eight bits of information that can represent 256 different states—for example. processor instructions. you can try a blocking factor larger than obtar’s default. Oracle Secure Backup writes 64 K blocks to tape (blocking factor 128). Also referred to as archive sections.

a type of 4-mm tape An operating system process that writes the data to tape These objects are configured to represent backup and restore parameters that describe an Oracle database. which manages the underlying media. and the Oracle Secure Backup software. each DTE is sequentially numbered. Some daemons run continually (for example. those parts of a wide-area network in which the mass storage devices are connected locally Digital audio tape. a new file access protocol designed to take advantage of standard memory-to-memory interconnect technologies See Direct Access Recovery. Direct Access File System. O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-5 . command descriptor block See Common Internet File System. Secondary storage device within a tape library usually referred to by a number. A process on UNIX and Linux that runs in the background and performs an OSB task for an application. obrobtd). Defines a set of rights that are granted to an Oracle Backup user command-line interface Any machine to be backed up by Oracle Secure Backup.catalog CDB CIFS class CLI client Common Internet File System daemon DAFS DAR data transfer element (DTE) dataset description file DAS DAT Data Mover daemon Database Backup Storage Selector r O cl a In e rn te l& a An index of the contents of a tape. observided) and others are started and stopped as required (for example. In libraries that contain multiple drives. Direct Attached Storage. including administrative servers and media servers. also referred to as a host CIFS is a protocol. used by Windows clients to access data on this Network Appliance filer. This is equivalent to a service on a Windows host. A file that contains the names of the hosts and paths that you want Oracle Secure Backup to back up. starting with 1. which accesses the database. They act as a glue layer between RMAN.

O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-6 . which is a symbolic name used to reference a particular system.dataset DDS defaults and policies device device driver Direct Access Recovery (DAR) direct-attached DLT DMA DNS hostname r O cl a In e rn te l& a A textual description employing a lightweight language that tells Oracle Secure Backup what files to back up Digital data storage. a type of 4-mm tape A set of configuration data that explains how Oracle Secure Backup runs in an administrative domain A tape drive or library identified by a userdefined device name A routine or set of routines that implements the device-specific aspects of generic I/O operations. whether it is connected to a network or not. Any system attached to the Internet or any large network conforms to a more rigorous naming convention as part of the Domain Name System (DNS). or keyboard. The DNS host name is the host name of the computer (does not include the domain). disk drive. whether it is a printer. every host name is composed of a host name and domain name. Most devices have their drivers installed when the device or product that uses it is installed. In DNS. DAR relies on file history information generated at the NAS device during a backup operation. Located on the same host or server. must have a driver program. The operating system handles the device-independent aspects of the I/O operation but calls routines provided by the driver for the device in question to implement the device-specific functions. a form of magnetic tape and drive system used for computer data storage and archiving data management agent Every UNIX system (also known as a host) has a host name. also referred to as local Digital Linear Tape technology. Every device. An optional capability of NDMP that addresses the need to quickly restore a single file from a stream of backup data that might contain millions of individual files.

an interface standard for connecting computers to mass storage devices such as disk drives and tape libraries fiber distributed data interface A set of ANSI protocols for sending digital data over fiber optic cable. Within the Internet. A high performance interface designed to bring speed and flexibility to multiple diskdrive storage systems. FDDI networks are typically used as backbones for wide-area networks. domains are defined by the IP address.024 x 1.domain EOD EOV exabyte expiration date expiration policy expire duration FC FDDI Fiber Distributed Data Interface Fibre Channel r O cl a In e rn te l& a A group of machines and devices on a network that are administered as a unit with common rules and procedures. All devices sharing a common part of the IP address are said to be in the same domain. The backplane allows O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-7 . (an external enclosure that houses a printed circuit board (PCB) and multiple drive receptacles) and a Fibre Channel host bus adapter (HBA).024 x gigabytes or just over 1 billion gigabytes The time the volume set is first written + the write window duration + the retention duration A media family configuration setting that determines when volumes are eligible to be overwritten The amount of time after a backup piece is created during which Oracle Secure Backup cannot overwrite the data Fibre Channel. and support data rates of up to 100 Mbps (100 million bits per second). FDDI networks are token-passing networks. A Fibre Channel configuration consists of a backplane. This label contains the volume ID of the next volume in the set A unit of storage equal to 1. End-of data (EOD) label used to mark the end of Oracle Secure Backup operations on tape End-of-volume (EOV) label used to mark the end of a volume within a backup image.024 x 1.

A collection of files backed up by Oracle Secure Backup An appliance attached to a computer network that is used for data storage A system designed to prevent unauthorized access to or from a private network An operation that backs up all the files selected on a client. an interface module which converts the light stream from a fibre channel cable into electronic signals for use by a network interface card A unit of storage. a media server. Fibre Channel. supplies power to the drives. or a client. You can have an administrative server. video. equal to 1. a one and two gigabit interconnect technology. and controls the input and output of data on all drives within the system. Hypertext Transfer Protocol (HTTP).024 megabytes A term describing various technologies for implementing Ethernet networking at a nominal speed of one gigabit per second graphical user interface Host bus adapter. allows concurrent communications among workstations. data storage systems. abbreviated as G or GB.file system dataset filer firewall full backup GBIC gigabyte Gigabit Ethernet (GbE) GUI HBA host host role HTTP r O cl a In e rn te l& a direct connection to the drives (no cable). the set of rules for exchanging files (text. sound. and other multimedia files) on the World Wide Web O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-8 . GigaBit Interface Converter. graphic images. Files are backed up whether or not they have changed since the last backup. IP and a wide range of other protocols to meet the needs of the data center. an interface card that plugs into the computer’s bus and connects it to the network An addressable machine in a computer network A class of actions performed by a host. servers. mainframes. and other peripherals using SCSI.

” an acronym for Small Computer System Interface protocol over IP network instead of a direct SCSI compatible cable. Pronounced “eye-scuzzy. Just a Bunch of Disks. iSCSI enables data blocks to be read from or sent at high speed to a storage device such as a disk or tape drive. A process that captures data that was changed since the level N backup operation. a term used for a storage enclosure that is supplied with preintegrated disk drives A text file report produced by Oracle Secure Backup that describes the status of selected file system backup and restore jobs A file that contains the standard output from a particular backup job O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-9 . Used in tape libraries to move volumes into and out of the library without opening the door. but some require manual action by the operator to open the door and remove a tape from a slot in the library. HTTPS is HTTP using a Secure Socket Layer (SSL). and is physically present only on certain libraries. Not all libraries have a discrete import-export element. ISAM provides direct access to specific records through an index. Some libraries do have a media access port. where N is the level of comprehensiveness of the backup operation The Indexed Sequential Access Method (ISAM) is a method for managing how a computer accesses records and files stored on a hard disk.” ISAM is implemented as a C function library.HTTPS import-export element (IEE) incremental backup ISAM iSCSI JBOD job summary r O job transcript cl a In e rn te l& a Hypertext Transfer Protocol Secure (HTTPS) is a communications protocol designed to transfer encrypted information between computers over the World Wide Web. While storing data sequentially in a data file. It is sometimes called a mail slot. The combination of the data file and its associated index file is called a “database.

A media family can contain one or more volume sets and volumes. overwrite. which means that users will have multiple sources of product and media See logical unit number. Each media family identifies the amount of time that data can be written to a tape. LUNs make it possible for a number of devices to share a single SCSI ID.024 x 1. and not-mounted. Valid values are read-only. and the amount of time the tape can remain in storage before it can be overwritten. A machine with one or more attached tape drives or tape libraries. write/append. Moves a volume from a storage element to another element within a tape library A unit of storage abbreviated as M or MB.048.kilobyte label LAN library lights out backup logical unit number LTO LUN magazine media family media server medium transport element (MTE) megabyte MMV mount mode r O NAS multi-hosted tape library cl a In e rn te l& a A unit of storage.576 bytes media management vendor The mode indicates the way in which the scheduling system can use a volume physically loaded into a tape drive. an “open format” technology. Backup data is sent to and restored from volumes loaded in these devices. equal to 1.024 or 1. A library with multiple media servers connected to it See Network Attached Storage. Linear Tape-Open technology. and Seagate. developed jointly by HP. A collection of tapes or volumes A classification of backup media that share the same volume identification sequence. IBM.024 bytes Data that Oracle Secure Backup uses to identify a volume or a backup image local area network See tape library. equal to 1. An automated backup that does not require user interaction and typically is performed outside of normal working hours An internal mapping identifier used by Oracle Secure Backup for a specific device. abbreviated as K or KB. O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-10 .

for example) on the appliance. The server exposes the file systems to its clients through one or more standard protocols. Wintel platforms. NFS provides access to shared files through an interface called the Virtual File System (VFS) that runs on top of TCP/IP. Users can manipulate shared files as if they were O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-11 . The data service interfaces with the primary storage device (such as a NAS device) and interacts with the volume or file system that is being either backed up or restored. A text file that describes your network configuration and is used to push software across the network to designated machines during installation A hard disk physically attached to a server and accessible over a network A client/server application that enables all network users to access shared files stored on computers of different types. The NAS appliance communicates with the backup software using NDMP.NDMP NDMP backup type NDMP Data Service Network Attached Storage network description file network drive Network File System r O cl a In e rn te l& a The Network Data Management Protocol (NDMP) is a network applications protocol facilitating data backup and restore. The protocol provides a uniform means to back up and restore data within and between diverse kinds of storage servers. network messages. NDMP defines a set of related service models. and finite state automations that implement them. and closed operating system appliances. One of three types of NDMP services. The name of a backup method supported by the NDMP Data Service running on a host. Layered atop TCP and the Berkeley socket model. most commonly NFS and CIFS. A computer on your network that hosts file systems. open systems. Backup types are defined by each Data Service provider. NDMP is commonly used by NAS devices (also known as filers) to facilitate backup and restore operations without having to install the backup agent (Oracle Backup.

class. and policy objects that hold attributes and names. such as transaction logs to help restore from disk failures. such as mounting a different volume during a backup A daemon that automatically starts backup jobs on the specified day and time O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-12 . A data storage type used to store Oracle Secure Backup catalog data. A person who runs backup operations. external names are user assigned. The NFS standards are publicly available and widely used.NFS nibble NT File System NTFS object OCFS offsite backup operator operator assistance request Oracle Secure Backup scheduler r O cl a In e rn te l& a stored locally on the user’s own hard disk. and as servers while providing remote users access to local shared files. computers connected to a network operate as clients while accessing remote files. and checks for any errors A request from Oracle Secure Backup that asks for the operator to perform a task. See NT File System. swaps tapes. Internal names are named with a UUID. NTFS has features to improve reliability. With NFS. There are user. See Network File System. manages schedules. This is useful when you want to create a backup image for offsite storage without disturbing your schedule of incremental backups. A unit of information equal to 4 bits (or half a byte) One of the file systems for the Windows operating system. Oracle Cluster File System A backup that is equivalent to a full (level 0) backup except that Oracle Secure Backup keeps a record of this backup in such a manner that it does not affect the full or incremental backup schedule.

so the author can move between HTML and PHP instead of using large amounts of code. or just over a million gigabytes Hypertext Preprocessor (PHP) is an open source. A utility to determine whether a specific IP address is accessible. A backup piece that exists in the Oracle Secure Backup catalog but not in the RMAN catalog Operating system file privileges that allow different users to read. you can specify. the viewer cannot see the code. See Preferred Network Interface. For example. Using PNI. server-side HTML scripting language used to create dynamic Web pages. distinct from the name spaces of existing UNIX. a network can have both Ethernet and FDDI connections between a pair of hosts. It works by sending a packet to the specified address and waiting for a reply.024 terabytes. on a client-by-client basis. write. A network can have multiple physical connections between a client and the server performing a backup or restore on behalf of that client. which allows Oracle Secure Backup to maintain a consistent user identity across the various hosts. It also allows Oracle Secure Backup to express a finer granularity of user rights than are possible with existing user definitions. PHP is embedded within tags. PHP can perform the same tasks as a CGI program and is compatible with many different kinds of databases. Because PHP is executed on the server. Real Application Clusters O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-13 .Oracle Secure Backup user orphan permissions petabyte PHP ping PNI Preferred Network Interface r O RAC cl a In e rn te l& a A user definition. which of the server’s network interfaces should be used to transmit data to be backed up or restored. You can use ping hosts to troubleshoot network connections. Stands for Packet Internet Grouper. or execute files A unit of storage equal to 1. and Windows users. Linux.

This allows for the use of Oracle Secure Backup without going through the normal Oracle Secure Backup login requirements. See expiration policy. a Small Form Factor ½″ tape cartridge See Storage Area Network. System backup to tape. This list is defined in the obconfig file on the administrative server. Linux has a four- O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-14 . The acronym has evolved to mean Redundant Array of Independent Disks emphasizing the technique’s potential data availability advantages over conventional disk storage systems.RAID recycling policies recycling volumes restore operation restore operator list retention duration RMAN RMAN preauthorization SAIT SAN SBT schedule SCSI r O cl a In e rn te l& a Originally. See expiration policy. such as backup or restore. Overwriting data on volumes generated by Oracle Secure Backup Copies files from the tapes in a backup device to the file system on a designated host A list of operators to whom restore data requests are e-mailed. Recovery Manager Used to determine the Oracle Secure Backup user under which a specific RMAN operation. an acronym for Redundant Array of Inexpensive Disks to reflect the data accessibility and cost advantages that properly implemented arrays could provide. is performed. Connection to the SCSI bus is achieved through a host adapter and a peripheral controller. RMAN communicates with Oracle Secure Backup through the SBT interface. Super Advanced Intelligent Tape. A parallel I/O bus and protocol that permits the connection of a variety of peripherals to host computers with independence within a class of devices (such as disk drives and backup devices). A user-defined time period for executing backup operations Pronounced “scuzzy.” an acronym for Small Computer System Interface. interface between RMAN and storage media.

SCSI target IDs range from 0 to 7 for 8-bit. 8-bit SCSI can have up to eight IDs. Each SCSI device can contain multiple Logical Unit Numbers (LUNs). A number that is recorded in the volume label to indicate the order of volumes in a volume set O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-15 . Shamir. there may be up to eight logical units for each SCSI device address. In SCSI parlance. which are commonly known as SCSI devices. the host bus adapter is called the “initiator” and takes up one SCSI target ID number (typically 7). There must be a minimum of one target and one initiator on the bus. 0 to 15 for 16-bit and 0 to 31 for 32 bit systems. SSL uses the public-and-private key encryption system from RSA (a public key algorithm. and Adleman). The initiator talks to targets. named after its inventors: Rivest. 16-bit up to sixteen IDs. The value used to identify a logical unit of a SCSI device. The unique address of a SCSI device. which also includes the use of a digital certificate. These logical units are numbered from 0 through 7. Super Digital Linear Tape technology.SCSI lun number SCSI target ID SDLT/SuperDLT section number Secure Sockets Layer (SSL) r O sequence number cl a In e rn te l& a level hierarchical addressing scheme for SCSI devices: • SCSI adapter number [host] • Channel number [bus] • ID number [target] • Logical unit number [lun] Each SCSI bus can have multiple SCSI devices connected to it. and 32-bit up to 32 IDs. In the SCSI-2 specification. a variant of DLT technology that makes it possible to store upwards of 100 GB on a single cartridge and can transfer data at speeds of up to 10 megabytes per second A number that is recorded in the volume label to indicate the order of the parts of a backup image that spans multiple volumes An application layer protocol created by Netscape for managing the security of message transmissions in a network.

and for its portability. A high-speed subnetwork of shared storage devices. a non-profit trade organization. Tapes are also referred to as removable media. Some services run continually and others are started and stopped as required. or secondary storage. A tape library with only one media server directly attached to it Storage Networking Industry Association. incorporated in December 1997 whose members are dedicated to “ensuring that storage networks become complete and trusted solutions across the IT community” The concept of centralizing and sharing storage resources among many application servers See Secure Sockets Layer (SSL). The observiced daemon. or machines that contains disks for storing data. commonly used for backup and archiving. A physical location within a tape library where a volume can be stored and retrieved by a tape library’s robotic mechanism See Database Backup Storage Selector. A data storage medium consisting of a magnetizable oxide coating on a thin plastic strip. A SAN is designed to assign data backup and restore functions to a secondary network where they can perform their tasks without interfering with the functions and capabilities of the server.service services daemon single-hosted tape library SNIA storage consolidation SSL Storage Area Network storage element (se) storage selector tape tape file mark r O cl a In e rn te l& a A process on Windows that runs in the background and performs a task for an application. Popular for its ability to store large amounts of data. A marker written to tape by Oracle Secure Backup that signals the end of a backup image O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-16 . It ensures that tape resources are available and reserves them for the backup job.

autochanger.tape library terabyte TCP/IP trigger URL UUID virtualization volume volume expiration time r O cl a In e rn te l& a An automated tape-handling hardware device that invariably house two or more drives and from 10s to 100s of tapes. The date and time on which a volume expires. if any. A user-defined period in time or sets of times that causes a scheduled backup to run The Uniform Resource Locator. or medium changer. then adding the volume retention period. unattended operation and allow simultaneous reading and writing to multiple drives. O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-17 . equal to 1. or the address of a resource available on the Internet Universal Unique Identifier. and an I/O Port for importing and exporting individual tapes under application control. abbreviated as T or TB. It is the suite of protocols used to connect hosts for transmitting data over networks. Tape libraries also offer key features such as barcode readers to scan labels on cartridges.024 gigabytes Transmission Control Protocol/Internet Protocol. A single unit of media such as an 8-mm tape. to the time at which it wrote backup image file number 1 to a volume. Tape libraries are designed for continuous. It is also referred to as a robotic tape device. Oracle Secure Backup computes this by adding the write window duration. A volume can contain one or more backup images. A library accepts SCSI commands to move media between storage locations and drives. used for tagging objects across a network The pooling of physical storage from multiple network storage devices into what appears to be a single storage device that is managed from a central console. A unit of storage.

a WAN consists of two or more local-area networks (LANs). Typically. and date and time for the volume creation. Each Oracle Secure Backup volume has an associated field called a volume tag. if any. Wide-area network. For example. or a computer network that spans a relatively large geographical area. The first block of the first backup image on a volume. Computers connected to a wide-area network are often connected through public networks. They can also be connected through leased lines or satellites. It is another name for the barcode that can be found in the volume label. O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-18 . The largest WAN in existence is the Internet. A file that contains a unique volume ID to assign when labeling a volume The volumes that comprise a backup image The date and time on which a volume set expires. if the backup image is contained on a multivolume set. Oracle Secure Backup begins each backup image with a label that uniquely identifies the backup image. to the time at which the first backup image file was written to the volume set. such as the telephone system. then adding the volume set retention period A field that is commonly used to hold the barcode identifier for the volume.volume ID volume label volume sequence file volume set volume set expiration time volume tag WAN r O cl a In e rn te l& a A label that uniquely identifies the volume and includes the backup image’s file number and additional information. It contains the volume ID. owner name. Volume IDs appear in volume labels and backup image labels. computed by adding the write window duration. VOL000001 appears in the volume sequence file.

edit them. Write Once Read Many times. during which updates to the volume are allowed To mark a file or media so that its contents cannot be modified or deleted. The period of time for which a volume set remains open for updates. starting from the volume’s first data write operation. and closes after this specified period has elapsed. or until it is relabeled. O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-19 . The write window opens at the time the volume set is created. reused. you cannot write to them. a class of optical recording systems that allow recording and adding data but not altering recorded data Defines the period of time.World Wide Names (WWNs) WORM write date write-protect write window r O cl a In e rn te l& a A unique identifier for devices on a storage area network (SAN). or forcibly overwritten. or delete them. These are written with colon characters separating each pair. usually by appending additional backup images. similar to a media access control (MAC) address for devices connected via Ethernet. Oracle Secure Backup does not allow any further updates to the volume set until it expires. It is also referred to as a WWPN (Worldwide Port Name) or WWNN (Worldwide Node Name). unlabeled. Writeprotected files and media can only be read. append data to them. WWNs consist of 16 hexadecimal digits grouped as 8 pairs. The format of the WWN is defined by the Institute of Electrical and Electronics Engineers (IEEE). After the write window closes.

r O cl a In e rn te l& a O I A s U O e ly n .

Sign up to vote on this title
UsefulNot useful