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 .

.............................................. 19 Practice 7-1: Use Tablespace Point-in-time Recovery .......... 17 Practice 6-1: Create a Duplicate Database....................................................... 10 Practice 4-3: Recover Control Files................................................................................... 26 Practice 11-1: Install Oracle Secure Backup ............... 21 Practice 8-1: Create the Recovery Catalog and Register the Database ............... 41 Practice 15-2: Recover a Tablespace from an Encrypted Backup.......................................................................... 34 Practice 12-2: Perform Oracle-Suggested Backup ......................................................................................................................................... 7 Practice 4-1: Use RMAN to Recover a Datafile.... 23 Practice 9-1: Use SQL to Monitor the Progress of RMAN Backups ........................................................... 37 Practice 14-1: Restore File-System Data with Oracle Secure Backup .................... 29 Practice 11-2: Configure Devices for Oracle Secure Backup............................................. 35 Practice 13-1: Back Up Your File System with Oracle Secure Backup ....................................................... 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 ............................... 42 Practice 16-1: View Oracle Secure Backup Information........... 15 Practice 5-3: Use Flashback Query and Flashback Versions Query.............................................. 25 Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs .................................................. 12 Practice 5-1: Enable Flashback Database ................. 30 Practice 11-3: Register the Administrative Server.......................................................................................... 44 Practice 16-2: Back Up the Oracle Secure Backup Catalog ........ 5 Practice 3-1: Use RMAN to Create and Manage Backups .... 11 Practice 4-4: Delete Obsolete Backups....................................................................................................................................................................... 16 Practice 5-4: Use Flashback Database .................................. 31 Practice 11-4: Configure Oracle Secure Backup User............................ 14 Practice 5-2: Set Restore Points and Perform Flashback Table.....Table of Contents Practice 2-1: Configure Your Database ................ 9 Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile ................................ 32 Practice 12-1: Create a Database Backup Storage Selector..... 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. you configure your database for recoverability. 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 .

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. 4) Use Recovery Manager (RMAN) to connect to your target 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-5 . Database Identifier: ____________________________ Make note of the database identifier (DBID) of your database. Make note of the database identifier (DBID) of your database.Practice 2-1: Configure Your Database 1) Use Enterprise Manager to configure your database in ARCHIVELOG mode. 3) Set Preferred Credentials in Enterprise Manager. 5) Use the RMAN SHOW ALL command to view the configuration settings in your database and then exit from your RMAN session.

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. 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 .Practice for Lesson 3 In this practice.

4) Use Enterprise Manager to view information about your 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-7 . 5) Use RMAN to create a duplexed backup set of the EXAMPLE tablespace. Specify /u01/app/oracle/oradata/orcl/chg_track.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. 3) Use Enterprise Manager Database Control to create a whole database backup using the Oracle-suggested backup strategy. 6) Use Enterprise Manager Database Control to perform a crosscheck of your backups. 2) Use Enterprise Manager Database Control to configure backup optimization and enable block change tracking.f for the name of the block change tracking 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 .

This script deletes the EXAMPLE tablespace datafile. 3) Use SQL*Plus to query the HR. 4) Use Enterprise Manager to perform database recovery of the EXAMPLE tablespace datafile.sh script to simulate a failure in your database.JOBS table. Notice how you are prompted by Enterprise Manager to recover the lost datafile. 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 . 2) At the operating system prompt. you use RMAN to recover a lost datafile.REGIONS table.REGIONS table. Make note of the number of rows in the HR. 5) Return to your SQL*Plus session and again attempt to query the HR.JOBS table.Practice 4-1: Use RMAN to Recover a Datafile In this practice. execute the lab_04_01_02_01. 1) Use SQL*Plus to query the HR.

4) Use the RMAN SWITCH TO COPY command to recover the datafile. This script deletes the EXAMPLE tablespace datafile. Make note of the number of rows in the HR. 1) Use SQL*Plus to query the HR.DEPARTMENTS table. 3) Use SQL*Plus to query the HR. 5) Query the HR.sh script to simulate a failure in your database. you recover a lost datafile by using the Flash Recovery Area for fast recovery. 7) Make a copy of the datafile in the original location and switch back to it.REGIONS 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 . 2) At the operating system prompt. execute the lab_04_02_02_01. verify that the datafile being used for the EXAMPLE tablespace is in the Flash Recovery Area.JOBS table. 6) Using Enterprise Manager Database Control.REGIONS table.Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile In this practice. 8) Use Enterprise Manager Database Control to verify the file.

Practice 4-3: Recover Control Files In this practice. 1) Use SQL*Plus to view files information for the control files in your database. you recover your control file using an autobackup. 2) Simulate a failure in your environment by executing the lab_04_03_02_01. Use Recovery Manager to recover the control files. 3) You need some more information about your control files. 4) You have lost all your control files and will need to recover them from the control file autobackup. 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_RECORD_SECTION to learn more about the contents of your control file. Query V$CONTROLFILE.sh script to delete all your control 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-12 . 3) You can also use RMAN to verify that your obsolete backups were deleted. 2) Use Enterprise Manager Database Control to delete obsolete backups.Practice 4-4: Delete Obsolete Backups 1) Use Recovery Manager to view 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-13 . you use Oracle Flashback features to recover from errors in your database.Practice for Lesson 5 In this practice.

Practice 5-1: Enable Flashback Database 1) Use Enterprise Manager to enable Flashback Database. 2) Use the ALTER DATABASE command to enable supplemental logging. 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 .

LOCATIONS table so that all postal codes are set to 11111. 3) Use SQL*Plus to query the POSTAL_CODE column in the HR.sql script to query the POSTAL_CODE column in the HR.Practice 5-2: Set Restore Points and Perform Flashback Table Restore points are a way to “bookmark” database points in time. 1) You must enable row movement to use restore points. 2) Create a normal restore point.LOCATIONS table. 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.LOCATIONS table again. 4) Execute the lab_05_02_04_01. 5) Execute the lab_05_02_05_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 .sql script to update 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.LOCATIONS table. Execute the lab_05_02_07_01.sql script to query the POSTAL_CODE column in HR. 6) Restore the POSTAL_CODE column values using the restore point.

sql script to update the POSTAL_CODE column in the HR.sql script to query the POSTAL_CODE column in HR. 4) Execute the lab_05_03_04_01. 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 . Query the HR. 5) Use Enterprise Manager to perform Flashback Versions Query to correct the user errors.LOCATIONS and view the change.LOCATIONS table.LOCATIONS table for location ID 1400. 6) Return to your SQL*Plus session.LOCATIONS table to confirm the Flashback operation. 3) Execute the lab_05_03_03_01.sql script to update the POSTAL_CODE column in the HR.LOCATIONS table.sql script to query the HR. simulating user error. 2) Execute the lab_05_03_02_01.Practice 5-3: Use Flashback Query and Flashback Versions Query 1) Execute the lab_05_03_01_01. simulating user error.

Record the number of rows: ___________ 4) Execute the lab_05_04_04_01.JOB_HISTORY table rows.JOB_HISTORY table. 6) Use Flashback Database to restore the HR.sql script to determine the number of rows in the HR. 3) Execute the lab_05_04_03_01.JOB_HISTORY table again to be sure the data has been restored.sql script 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-17 . 2) Use Enterprise Manager to create a Guaranteed Restore Point.JOB_HISTORY table. 5) Execute the lab_05_04_05_01.sql script to determine the number of rows in the HR. 7) Return to your SQL*Plus session.sql script to truncate the HR. Execute the lab_05_04_07_02.JOB_HISTORY table.Practice 5-4: Use Flashback Database 1) Use Enterprise Manager to verify that Flashback Database is enabled.

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. you create a duplicate database.

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

Practice for Lesson 7 In this practice. you use tablespace point-in-time recovery to recover from unwanted changes to 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-20 .

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

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. 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 .

The users are named RCUSER01 – RCUSER12. 7) In preparation for later practices. connect to your target database and the recovery catalog database. 3) Using RMAN.The tablespace for the recovery catalog and the recovery catalog owner have been created in the instructor database. your assigned tablespace is RCTS01. connect as RCUSER01) using RMAN. Create the recovery catalog in your assigned tablespace. The tablespaces are named RCTS01 – RCTS12. What happens? Why? 4) Register the target database in the recovery catalog. execute the command to resynchronize the control file and recovery catalog. (If you are using PC01. Do not execute the whole_backup script at this time. You can use RMAN commandline or Enterprise Manager for this step.) The service name is RCDB. 5) Create an RMAN script named whole_backup to make a whole database backup. 6) Use the PRINT command to query the recovery catalog and verify the creation of your whole_backup script. 1) Connect to the recovery catalog database (instructor’s database) with the appropriate recovery catalog owner name (if you are using PC01. use RMAN to unregister your database from the recovery catalog. 2) Using RMAN. 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 .

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 .Practice 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 A-25 . the TIME_REMAINING column should be decreasing. 3) Return to your first terminal window. You will use this second session to monitor a database backup. In your RMAN session. 2) Open a second terminal window. Invoke SQL*Plus and connect as SYSDBA. 4) Use your SQL*Plus session to monitor the progress of the whole database backup by querying the V$SESSION_LONGOPS view.Practice 9-1: Use SQL to Monitor the Progress of RMAN Backups 1) Invoke RMAN and delete all obsolete backups. Execute the lab_09_01_04_01. By using this view you can determine whether the backup is progressing normally or hanging. If the backup is progressing normally. Change to the labs directory.sql script to query V$SESSION_LONGOPS. begin a whole database backup.

1) Start Enterprise Manager and log in as SYS/ORACLE as SYSDBA. 3) Start a whole database 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-26 . 2) Delete obsolete backups.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 .

• Test connectivity to the tape drive. • Insert four volumes into the tape library. THE VIRTUAL TEST DEVICES USED IN THIS LAB ARE FOR TRAINING PURPOSES ONLY. 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 . THEY ARE NOT SUPPORTED FOR PRODUCTION USE. • Configure virtual test devices. • View information about the configured devices. • Configure preauthorization for this user. • Install the Oracle Secure Backup software. • Connect to the EM Database Console application using your browser. • Register your administrative server with EM.Practice for Lesson 11 In this practice. • Define a new Oracle Secure Backup user. you perform the following tasks: • Create your Oracle Secure Backup home directory.

• During installation. Change to that directory. you perform the following tasks: • Create your Oracle Secure Backup home directory. you configure only the local machine as an administrative server with no attached 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 A-29 . Begin with the setup program. you should log in as the oracle user to your terminal emulator session.Practice 11-1: Install Oracle Secure Backup In this practice. 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. • Install the Oracle Secure Backup software. Start the installation of Oracle Secure Backup from the staging directory. Unless specified otherwise during this practice. 1) Log in as the root user and create /usr/local/oracle/backup as your Oracle Secure Backup home directory. 2) Continue as the root user. • Your Oracle Secure Backup home directory is /usr/local/oracle/backup.

• View information about the configured devices and the default media family via the obtool interface. to configure the vt tape drive for the library: 3) Start the obtool as the admin user with the oracle password./lab_11_02_02.sh script. 2) In the /home/oracle/labs directory.) 4) View the RMAN-DEFAULT media family. 1) In a terminal window./lab_11_02_01.) 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. . to configure the vlib tape library directly attached to your administrative server.sh script. and use the quit command to exit. navigate to the /home/oracle/labs directory and execute the . you perform the following tasks: • Configure a virtual test library and a virtual test drive. (Hint: Use the lsdev command.Practice 11-2: Configure Devices for Oracle Secure Backup In this practice. and view the currently configured devices. execute the .

On the Devices page. you perform the following tasks: • Connect to the EM Database Console application using your browser. connect to Enterprise Manager Database Control using the IP address or machine name for your host. • Test connectivity to the virtual test drive. 2) In Enterprise Manager. you want to make sure you can access your tape drives. 3) Use Enterprise Manager to insert four volumes into the vlib test library. you should log in as the oracle user to your terminal emulator session. • Register your administrative server with EM. register your administrative server. and as SYSDBA to your Database Control console and SQL*Plus sessions. test the virtual tape drive access. (An unlabeled tape is synonymous with a blank tape within Oracle Secure Backup.) 4) Before taking any backups.In this practice. 1) With your browser. 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 . Unless specified otherwise. • Insert four volumes into the virtual test library.

and Attributes: cmdline and rman. Best Practice Tip: Limit pre-authorized access to selected hosts. you can have two windows open. one for Enterprise Manager and the other for the Oracle Secure Backup Web tool. If you are already in Enterprise Manager. Unless specified otherwise. set the value to “yes”. Windows domain name: *. such as clicking the Administrative Server link in the upper-left part of the Devices page. 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 .” 2) Configure the oracle Oracle Secure Backup user as a preauthorized RMAN and command line user with following values: Hosts: all hosts. an NDMP server is not available. 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. User class: oracle. OS username: *. • Configure preauthorization for this user.In this practice. Password: oracle. UNIX name: oracle. UNIX group: dba and NDMP server user: no. 1) Use the Oracle Secure Backup Web tool to create the oracle Oracle Secure Backup user with the following values: User oracle. 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. you can use shortcuts. but inside the regular classrooms. you perform the following tasks: • Define a new Oracle Secure Backup user. so set the value to “no.

Practice for Lesson 12 In this practice. • 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 A-33 . you perform the following tasks: • Create a database backup storage selector for your database.

shut down the database. and “Save as Preferred Credential” Database Backup Types: Archive log. continue with the next step. you perform the following tasks: • In SQL*Plus. 1) First. 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 . and as SYSDBA to your Database Control Console and SQL*Plus sessions. • In Enterprise Manager. you should log on as the oracle user to your terminal emulator session.Practice 12-1: Create a Database Backup Storage Selector In this practice. • In Enterprise Manager. and then restart the database. If not. enable archiving. and Incremental 3) Test your tape backup. If your database is in ARCHIVELOG mode. verify that the database is in ARCHIVELOG mode. verify that the database is in ARCHIVELOG mode. perform a test backup to verify that the Oracle Secure Backup configuration is correct. 2) In Enterprise Manager. create a database backup storage selector for your Oracle database. create a backup selector for your database with the following specifications: • • • Tape Drives: 1 Host Credentials Username: oracle. Unless specified otherwise. Full. Password: oracle. Auto Backup.

perform Oracle-Suggested Backup.html viewlet in the /home/oracle/solutions/viewlets directory. you should log on as the oracle user to your terminal emulator session. to reinforce this practice topic. 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 . 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 2) Review your backup job. 3) Optionally. If this is your first scheduled backup. as well as the job execution. then to tape. Review the RMAN command. Unless specified otherwise. and as SYSDBA to your Database Control Console and SQL*Plus sessions.Practice 12-2: Perform Oracle-Suggested Backup In Enterprise Manager. you can view the Oracle_Suggested_Strategy_viewlet_swf. you should see a full backup (otherwise an incremental one) first to the Flash Recovery Area.

• Schedule a backup of the dataset. 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 A-36 .Practice for Lesson 13 In this practice.

Both use oracle as password. 3) View Oracle Secure Backup job information. Query the Manage: Jobs page for the previously created and executed job. 4) Optionally. access Enterprise Manager as SYDBA and the Oracle Secure Backup Web tool as admin user. Note: Do not back up the local root directory. to reinforce this practice topic. which can be accessed from Enterprise Manager for the tasks in this practice session. 1) Create a new dataset called mylabs that you will use to back up your $HOME/labs directory. 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. you can view the Scheduling_filesystem_backups_viewlet_swf.Practice 13-1: Back Up Your File System with Oracle Secure Backup Use the Oracle Secure Backup Web tool. The backup should run immediately. 2) Create a backup with your mylabs dataset. 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 . Unless specified otherwise.html viewlet in the /home/oracle/solutions/viewlets directory.

Practice for Lesson 14 In this practice. • 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 A-38 . you perform the following tasks: • Delete the contents of your labs directory.

remove all the files located in your $HOME/labs directory. 1) From your terminal emulator session. 2) Restore your $HOME/labs directory contents by selecting the appropriate backup from the Oracle Secure Backup catalog. For tasks 2 to 5. which can be accessed from Enterprise Manager. Use the Browse Host button to locate the desired backup. you first delete your lab files and then restore them from the backup created in the previous practice. and as SYSDBA to your Database Control Console session.In this practice. 3) Monitor the progress of the restore request. log in as admin user (with the oracle password) into the Oracle Secure Backup Web tool. 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 . Unless specified otherwise. you should log on as the oracle user to your terminal emulator session. verify that your lab files are present. 4) In a terminal 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 A-40 .Practice for Lesson 15 In this practice. you perform the following tasks: • Create an encrypted backup. • Recover a tablespace from an encrypted backup.

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

Restore the files to the default location.Practice 15-2: Recover a Tablespace from an Encrypted Backup In this practice. 1) In Enterprise Manager. 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. Why? 3) Troubleshoot the recovery process. Notice the successful execution of your SET DECRYPTION command. Unless specified otherwise. 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 . 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. 6) View the Perform Recovery: Result page. specifying demo as the password. The command syntax is: SET ENCRYPTION ON IDENTIFIED BY demo ONLY. 5) Edit the RMAN script on the “Perform Object Level Recovery: Review” page. Restore the files to the default location. • Troubleshoot the recovery process. Include the command to decrypt the backup. 2) The recovery operation fails. you perform the following tasks: • Perform a tablespace recovery using the encrypted backup. • Edit the RMAN script to decrypt the 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-43 .Practice for Lesson 16 In this practice. you perform the following tasks: • View Oracle Secure Backup information. • Back up the Oracle Secure Backup catalog.

Use the Oracle Secure Backup Web tool to browse the Oracle Secure Backup catalog to view what you have backed up so far. completed ones. 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 . you view Oracle Secure Backup information: the catalog. 1) The administrative server maintains a catalog in which it stores metadata relating to backup and restore operations for the administrative domain. Include a review of a job transcript. and defaults and policies. 2) View the volumes and their content. volumes and their content. use admin as username and oracle as password. jobs and job transcripts. you should log in as the SYS user (with the oracle password) and connect as SYSDBA to Enterprise Manager Database Control. 4) View the configuration of your security policies.In this practice. Unless specified otherwise. 3) View a category of jobs—for example. To access the Oracle Secure Backup Web tool.

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. and then submit the backup request. 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 . Use the following command: mkmf --vidunique --writewindow 7days --retain 28days --noappend OSB_catalogs 2) Create a backup set for the catalog data. • Identify the volume that contains the backup data. (State should show “completed successfully”). • Create a backup request. 5) Identify the volume that contains the backup. 1) Create a media family to be used when backing up the Oracle Secure Backup catalog files. Now use the obtool utility with admin as username and oracle as password. using the commands listed here: mkds --dir catalog_backup mkds --input catback. 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.Practice 16-2: Back Up the Oracle Secure Backup Catalog In this practice. • Submit the backup request to the scheduler. Previously.ds When prompted for input. you perform the following tasks using obtool: • Create a dataset for the <OSB_HOME>/admin directory. you used the Oracle Secure Backup Web tool for a file-system backup. supply the following dataset directives.ds 4) Use the information from the message returned in the previous step to verify that the backup completed successfully. • Verify that the backup completed successfully.

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 .

............... 151 Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup ............................................................. 60 Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery... 46 Solutions for Practice 5-4: Use Flashback Database ...........Table of Contents Solutions for Practice 2-1: Configure Your Database ... 168 Solutions for Practice 16-2: Back Up the Oracle Secure Backup Catalog ............................ 89 Solutions for Practice 9-1: Use SQL to Monitor the Progress of RMAN Backups.................................. 52 Solutions for Practice 6-1: Create a Duplicate Database .............................................. 158 Solutions for Practice 16-1: View Oracle Secure Backup Information.......................................................... 106 Solutions for Practice 11-2: Configure Devices for Oracle Secure Backup..... 96 Solutions for Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs ... 118 Solutions for Practice 12-1: Create a Database Backup Storage Selector ...................... 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 ....................................................................... 38 Solutions for Practice 5-3: Use Flashback Query and Flashback Versions Query.......................... 33 Solutions for Practice 5-1: Enable Flashback Database .... 17 Solutions for Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile .................. 112 Solutions for Practice 11-4: Configure Oracle Secure Backup User..................................................... 110 Solutions for Practice 11-3: Register the Administrative Server.. 26 Solutions for Practice 4-4: Delete Obsolete Backups .................... 10 Solutions for Practice 4-1: Use RMAN to Recover a Datafile .................................................... 5 Solutions for Practice 3-1: Use RMAN to Create and Manage Backups ............ 145 Solutions for Practice 15-1: Create an Encrypted Backup............................... 123 Solutions for Practice 12-2: Perform Oracle-Suggested Backup........ 21 Solutions for Practice 4-3: Recover Control Files .............................. 74 Solutions for Practice 8-1: Create the Recovery Catalog and Register the Database.................................................................................................................... 36 Solutions for Practice 5-2: Set Restore Points and Perform Flashback Table.................................. 99 Solutions for Practice 11-1: Install Oracle Secure Backup................... 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 ......................................

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 .

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 . you configure your database for recoverability.Practice Solutions for Lesson 2 In this practice.

Click Login. Answer: 1.” Click OK. Click Yes to confirm the restart of the database instance. Enter SYS in the User Name field and oracle in the Password field. In the Host Credentials section. Select Recovery Settings in the Backup/Recovery Settings section. The Confirmation page is displayed. Select SYSDBA in the Connect As menu. enter SYS in the Username field and oracle in the Password field. Select Recovery Settings in the Backup/Recovery Settings section. 3. Click “I agree” on the Oracle Database 10g Licensing Information page. On the Restart Database: Specify Host and Target Database Credentials page. 10. enter oracle in the Username and Password fields. 9. The Restart Database: Confirmation page is displayed. 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. 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 . In the Media Recovery section. In the Database Credentials section. Select the Maintenance page. 5. 2. Answer: 1. Start the Web browser and enter http://your host name:1158/em. select “ARCHIVELOG Mode” and click Apply. Select “Save as Preferred Credential.Solutions for Practice 2-1: Configure Your Database 1) Use Enterprise Manager to configure your database in ARCHIVELOG mode. 8. Click Yes to restart the database instance. 6. The Restart Database: Activity Information page is displayed. Wait a few minutes and then click Refresh. 7. 4. Select the Maintenance page.

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

# default CONFIGURE ENCRYPTION FOR DATABASE OFF. Oracle. CONFIGURE MAXSETSIZE TO UNLIMITED.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 . # default CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10. # default CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1.2. # default CONFIGURE ENCRYPTION ALGORITHM 'AES128'. 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.Solutions for Practice 2-1: Configure Your Database (continued) 2. # default CONFIGURE BACKUP OPTIMIZATION OFF. # default CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'.0.1. # default CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1.Production on Tue Mar 7 12:51:53 2006 Copyright (c) 1982. using target database control file instead of recovery catalog RMAN configuration parameters are: CONFIGURE RETENTION POLICY TO REDUNDANCY 1. # default CONFIGURE DEFAULT DEVICE TYPE TO DISK. 2005. # default CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%U'. # default CONFIGURE ARCHIVELOG DELETION POLICY TO NONE. All rights reserved.2. # default CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'. Answer: RMAN> show all. # default CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1. 5) Use the RMAN SHOW ALL command to view the configuration settings in your database and then exit from your RMAN session. # default CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1. # default CONFIGURE DEVICE TYPE SBT_TAPE PARALLELISM 1 BACKUP TYPE TO BACKUPSET. connected to target database: ORCL (DBID=1090770270) RMAN> Make note of the database identifier (DBID) of your database.0 . # deft CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET. # default CONFIGURE CONTROLFILE AUTOBACKUP OFF.

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.

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-9 . You also configure a backup of your database using the Oracle-Suggested Backup Strategy feature in Enterprise Manager Database Control.Practice Solutions for Lesson 3 In this practice.

In the Backup Policy section. select the Policy tab.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. 4. Specify /u01/app/oracle/oradata/orcl/chg_track. 2. 2. select the Policy tab. 3. 2) Use Enterprise Manager Database Control to configure backup optimization and enable block change tracking.f in the Block Change Tracking File field. 3.” Click OK. Click OK. select “Automatically backup the control file and server parameter file (SPFILE) with every backup and database structural change.f for the name of the block change tracking file. Select “Enable block change tracking for faster incremental backups” and enter /u01/app/oracle/oradata/orcl/chg_track. You are returned to the Maintenance page.” 4. Answer: 1. Select Maintenance > High Availability > Backup/Recovery Settings > Backup Settings. On the Backup Settings page. In the Backup Policy 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-10 . select “Optimize the whole database backup by skipping unchanged files such as read-only and offline datafiles that have been backed up. On the Backup Settings page. Answer: 1. Select Maintenance > High Availability > Backup/Recovery Settings > Backup Settings.

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

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

2. Click the link for the backup you took in Question 3 to view detailed information about the backup.rmn RMAN> backup device type disk 2> copies 2 3> tablespace example 4> format '/home/oracle/backup1/%U'.1. Answer: 1. Start RMAN and connect to the target database. Click the Database Instance link to return to the Maintenance page. 2005. One copy should be in the /home/oracle/backup1 directory and one copy should be in the /home/oracle/backup2 directory.Production on Wed Mar 22 10:38:18 2006 Copyright (c) 1982. '/home/oracle/backup2/%U'. RMAN> @sol_03_01_05_02.0 .0.Solutions for Practice 3-1: Use RMAN to Create and Manage Backups (continued) 2. 3. Oracle. connected to target database: ORCL (DBID=1090770270) 2. 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. 5) Use RMAN to create a duplexed backup set of the EXAMPLE tablespace. [oracle@edrsr10p1 backup1]$ rman target / Recovery Manager: Release 10. s U O e ly n Oracle Database 10g: Backup and Recovery B-13 . Create two backup set copies.

-----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.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.--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 --------------.------.rmn RMAN> list backup summary. Use the RMAN LIST BACKUP SUMMARY command to view a listing of the backup sets and pieces.----------.Solutions for Practice 3-1: Use RMAN to Create and Manage Backups (continued) input datafile fno=00005 name=/u01/app/oracle/oradata/orcl/example01. using target database control file instead of recovery catalog List of Backups =============== Key TY LV S Device Type #Copies Compressed Tag ------. Oracle Database 10g: Backup and Recovery B-14 . RMAN> @sol_03_01_05_03.-.-. Exit from RMAN. 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. The #Copies column shows the duplexed backup set copies you made.---------..

3. You can click View Job to monitor the cross-check job. Review the information on the Crosscheck All: Specify Job Parameters page and accept the default values. 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 . You receive the “Job submission succeeded” message.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. After it completes successfully. Log out of Enterprise Manager. Click Submit Job. 5. 4. Answer: 1. 2. Click Crosscheck All. Select Maintenance > High Availability > Backup/Recovery > Manage Current Backups. return to the Database Home page.

Practice Solutions for Lesson 4 In this practice. you use RMAN to perform 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-16 .

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

Query the HR. Start Enterprise Manager and log in as SYS/ORACLE as SYSDBA.Solutions for Practice 4-1: Use RMAN to Recover a Datafile (continued) 3) Use SQL*Plus to query the HR. SQL> select * from jobs. Navigate to the Maintenance page.JOBS table. Select Perform Recovery on the Maintenance 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-18 . 2. 4. Answer: 1.JOBS table. Answer: 1. 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. Log in to SQL*Plus and connect as the HR user with HR as the password. 2.dbf' 4) Use Enterprise Manager to perform database recovery of the EXAMPLE tablespace datafile. 3. Click the “Datafiles Need Media Recovery” link.

After the recovery operation completes. Select “No.” Click Next. On the “Perform Object Level Recovery: Review” 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-19 . click Edit RMAN Script to view the script that will be executed. The Processing page is displayed. 7. Restore the files to the default location. 6. the Result page is displayed indicating that the recovery operation succeeded. 8. Select the file and click Next. Click Submit.Solutions for Practice 4-1: Use RMAN to Recover a Datafile (continued) 5.

---------President Administration Vice President Administration Assistant Finance Manager ra O 19 rows selected. Answer: 1. 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 .JOBS table.JOBS table. 5) Return to your SQL*Plus session and again attempt to query the HR. 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 ----------------------------------. Query the HR. SQL> select * from jobs. Click OK to return to the Maintenance page.Solutions for Practice 4-1: Use RMAN to Recover a Datafile (continued) 9.

sh script to simulate a failure in your database. Oracle Database 10g: Backup and Recovery B-21 . 3.DEPARTMENTS table. Log in to SQL*Plus and connect as the HR user with HR as the password./lab_04_02_02_01. Query the HR. cl a SQL> select * from departments.REGIONS table. Exit from your SQL*Plus session. 1) Use SQL*Plus to query the HR. 1. Datafile number: ____ 4. 2) At the operating system prompt.DEPARTMENTS table. change to the labs directory and execute the lab_04_02_02_01.Solutions for Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile In this practice. Answer: 1. 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.sh EXAMPLE tablespace file deleted [oracle@edrsr10p1 labs]$ 3) Use SQL*Plus to query the HR. Answer: 2. [oracle@edrsr10p1 labs]$ . 2. Answer: 1. Make note of the number of rows in the HR.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. r O 3. Query the HR.sh script. Exit from SQL*Plus.REGIONS table. At the operating system prompt. you recover a lost datafile by using the Flash Recovery Area for fast recovery. Make note of the number of the datafile that is unavailable. Log in to SQL*Plus and connect as the HR user with HR as the password.REGIONS table. This script deletes the EXAMPLE tablespace datafile. execute the lab_04_02_02_01.

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

Click Return to return to the Tablespaces page. Create an image copy of the datafile in the original location. Answer: 7) Make a copy of the datafile in the original location and switch back to it. Answer: 1. 1. 3.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.dbf'. 6) Using Enterprise Manager Database Control.rmn RMAN> backup as copy datafile 5 2> format '/u01/app/oracle/oradata/orcl/example01. Select Tablespaces on the Administration page. Select the Example tablespace and click View. RMAN> @sol_04_02_07_02. verify that the datafile being used for the EXAMPLE tablespace is in the Flash Recovery Area.dbf tag=TAG20060324T13447 channel ORA_DISK_1: datafile copy complete. 2. Log in to RMAN and connect to your target database. 2. 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 . 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.

Exit from RMAN. sql statement: alter database datafile 5 online 8) Use Enterprise Manager Database Control to verify the file. Recover the datafile.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. RMAN> switch datafile 5 to copy. RMAN> sql 'alter database datafile 5 offline'. Bring the datafile back online. 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. datafile 5 switched to datafile copy "/u01/app/oracle/oradata/orcl/example01. 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> recover datafile 5. sql statement: alter database datafile 5 offline 4. Answer: 1. RMAN> sql 'alter database datafile 5 online'.dbf" 5. Switch to the new copy you made. elapsed time: 00:00:02 Finished recover at 24-MAR-06 6.

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 .Solutions for Practice 4-2: Use the Flash Recovery Area to Quickly Recover a Datafile (continued) 2. 4. Note that the datafile is the one you switched to. 3. Click the Database tab to return to your database home page. Select the EXAMPLE tablespace and click View.

2. NAME --------------------------------------------/u01/app/oracle/oradata/orcl/control01.sh script to delete all your control files. SQL> SELECT * FROM v$controlfile_record_section. SQL> SELECT name FROM v$controlfile. [oracle@edrsr10p1 oracle]$ cd labs [oracle@edrsr10p1 labs]$ . In your terminal window session.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. 2. you recover your control file by using an autobackup.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 . Log in to SQL*Plus as SYSDBA. Answer: 1. Answer: 1./lab_04_03_02_01. Answer: 1.ctl /u01/app/oracle/oradata/orcl/control02. Query the NAME column in V$CONTROLFILE. Query V$CONTROLFILE_RECORD_SECTION to learn more about the contents of your control file.ctl /u01/app/oracle/oradata/orcl/control03.ctl 2) Simulate a failure in your environment by executing the lab_04_03_02_01. Query the V$CONTROLFILE_RECORD_SECTION view. 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. Log in to SQL*Plus as SYSDBA. Query V$CONTROLFILE.sh script. change to the labs directory and execute the lab_04_03_02_01. Exit from SQL*Plus. 1) Use SQL*Plus to view files information for the control files in your database.

SQL> exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.Production on Tue Mar 28 10:23:17 2006 Copyright (c) 1982.2. Oracle. 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.1.Production With the Partitioning. 2005. Answer: 1.2.0. Exit from your SQL*Plus session. 2005.0 . Restart the instance in NOMOUNT mode. Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10. OLAP and Data Mining options [oracle@edrsr10p1 oracle]$ 2.1. [oracle@edrsr10p1 oracle]$ sqlplus / as sysdba SQL*Plus: Release 10. RMAN> connect target / connected to target database (not started) RMAN> ra O 3.2.0.Pn With the Partitioning. OLAP and Data Mining options SQL> shutdown abort ORACLE instance shut down. Use RMAN to connect to your target database.1.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.2.0. [oracle@edrsr10p1 oracle]$ rman Recovery Manager: Release 10.0.0 . Use Recovery Manager to recover the control files. Use SQL*Plus to shut down your instance.Production on Tue Mar 28 10:20:26 2006 Copyright (c) 1982. Oracle Database 10g: Backup and Recovery B-27 .1.0 .

RMAN> restore controlfile from autobackup. Recover the database by issuing the RECOVER DATABASE command. 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. executing command: SET DBID 5.ctl output filename=/u01/app/oracle/oradata/orcl/control02. Note: Your database identifier will be a different value from that shown in the solution.ctl Finished restore at 28-MAR-06 6. r O cl a RMAN> recover database. database mounted released channel: ORA_DISK_1 7.ctl output filename=/u01/app/oracle/oradata/orcl/control03. Mount the database. Set the database identifier. RMAN> set dbid 1090770270.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. You recorded the database identifier in Practice 2-1. RMAN> alter database mount. Restore the control file from the autobackup. 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 .

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 . 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...log thread=1 sequence=9 media recovery complete.

Back up the current online redo log file and back up all the archived redo log files. RMAN> SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT'. Open the database with the RESETLOGS option.Solutions for Practice 4-3: Recover Control Files (continued) Finished recover at 28-MAR-06 8. database opened 9. RMAN> alter database open resetlogs. 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. 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 . using target database control file instead of recovery catalog sql statement: ALTER SYSTEM ARCHIVE LOG CURRENT RMAN> backup archivelog all.

dbf input datafile fno=00002 name=/u01/app/oracle/oradata/orcl/undotbs01. Create a whole database backup.dbf input datafile fno=00003 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf input datafile fno=00006 name=/u01/app/oracle/oradata/orcl/example02. 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 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. 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.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. RMAN> backup database.dbf input datafile fno=00004 name=/u01/app/oracle/oradata/orcl/users01. 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 .dbf input datafile fno=00005 name=/u01/app/oracle/oradata/orcl/example01.

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 .

Invoke Enterprise Manager and log in as sys/oracle as SYSDBA. In your RMAN session. Note: Your results may vary from the following output.Solutions for Practice 4-4: Delete Obsolete Backups 1) Use Recovery Manager to view obsolete backups.------------------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. issue the REPORT OBSOLETE command to determine whether you have any obsolete backups.-----. 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 -------------------. r O 2.-----------------. Select Maintenance > High Availability > Backup/Recovery > Manage Current Backups. Answer: 1. Answer: 1. 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> report obsolete.

You can click View Job to monitor the job. 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 . Answer: 1. Click Delete All Obsolete to remove obsolete backups. In your RMAN session. After it completes successfully. 4. 3) You can also use RMAN to verify that your obsolete backups were deleted.Solutions for Practice 4-4: Delete Obsolete Backups (continued) 3. Review the information on the Delete All Obsolete: Specify Job Parameters page and click Submit Job. RMAN> report obsolete. 6. Access the Manage Current Backups page again to view the backup sets and image copies that were retained. 5. execute the REPORT OBSOLETE command. return to the Database Home page. You receive the “Job submission succeeded” message.

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.

Start Enterprise Manager and connect as SYS/ORACLE as SYSDBA. Supply the Host and Operating System credentials if they are not filled in by default. 5. 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 . 2.Solutions for Practice 5-1: Enable Flashback Database 1) Use Enterprise Manager to enable Flashback Database. 4. 7. Scroll to the Flash Recovery section. Select Recovery Settings in the Backup/Recovery Settings section. You must restart the database instance to enable Flashback Database. Click Yes to restart the database instance.flashback logging can be used for fast database point-in-time recovery” and click Apply. Answer: 1. Select “Enable Flashback Database . 6. Click the Maintenance tab. Click OK. 3. The Confirmation message is displayed.

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

” r O 6. Click the database instance link to return to the Maintenance page. Click Perform Recovery.Solutions for Practice 5-2: Set Restore Points and Perform Flashback Table (continued) 2. 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 . Click Next. Select “Flashback to a known SCN” and paste the SCN that you copied in step 2. Click “Perform Object Level Recovery. 5. 4. In the “Object Level Recovery” section. Copy the SCN value in the Creation SCN field to the buffer. select Tables in the Object Type menu. 3.

Click Search. 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 B-43 . Enter HR in the Schema Name field and LOCATIONS in the Table field.LOCATIONS table.Solutions for Practice 5-2: Set Restore Points and Perform Flashback Table (continued) 7. Click Add Tables to add the HR.

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

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 . Select the oldest change to the table and click Next.

” Click Next. 6) Return to your SQL*Plus session. Click Submit. Accept the default of “Cascade: Flashback the selected tables and all dependent tables.sql script to query the HR. Answer: 1.Solutions for Practice 5-3: Use Flashback Query and Flashback Versions Query (continued) 8. Confirm the flashback information. Execute the lab_05_03_06_01. 11. The Confirmation page is displayed. Click Next. 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 . 9.LOCATIONS table to confirm the Flashback operation. Query the HR. Review the information. Click OK.LOCATIONS table. SQL> SQL> 2 3 @lab_05_03_06_01 SELECT * FROM hr.

---------------------------------------.------------------------.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. 2) Use Enterprise Manager to create a Guaranteed Restore Point. Select Manage Restore Points in the Backup/Recovery section. Click the Database Instance link to return to the Maintenance page.” 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-52 . Answer: 1. 3. Select Recovery Settings in the Backup/Recovery Settings section. Answer: 1. 2. Click Create to create a new restore point. Select “Guaranteed Restore Point. Scroll to the Flash Recovery section. 2. Navigate to the Maintenance page. Enter “Before_Truncate” in the Restore Point Name field. Verify that Flashback Database is enabled.Solutions for Practice 5-4: Use Flashback Database 1) Use Enterprise Manager to verify that Flashback Database is enabled.

JOB_HISTORY table. The Restore Point is created.JOB_HISTORY table. Execute the lab_05_04_03_01.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 . r O cl a SQL> SQL> 2 3 In e @lab_05_04_03_01 SELECT count(*) FROM hr. 3) Execute the lab_05_04_03_01.Solutions for Practice 5-4: Use Flashback Database (continued) 4.sql script to determine the number of rows in the HR. Record the number of rows: ___________ Answer: 1.

Solutions for Practice 5-4: Use Flashback Database (continued) 4) Execute the lab_05_04_04_01.JOB_HISTORY table. 3. Execute the lab_05_04_05_01. Answer: 1.sql script.job_history 2 / Table truncated. SQL> SQL> 2 3 @lab_05_04_05_01 SELECT count(*) FROM hr. Answer: 1.JOB_HISTORY table. Execute the lab_05_04_04_01. 5) Execute the lab_05_04_05_01. 2.sql script to truncate the HR. Return to your Enterprise Manager window.JOB_HISTORY table rows. 4.job_history / COUNT(*) ---------0 6) Use Flashback Database to restore 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-54 .sql script to determine the number of rows in the HR.sql script. Select the BEFORE_TRUNCATE restore point. Click “Recover Whole Database To. SQL> @lab_05_04_04_01 SQL> truncate table hr. Select Manage Restore Points in the Backup/Recovery section. Answer: 1. Navigate to the Maintenance page.

Enter the host credential information. Enter Database login. Click Yes. Click Refresh. 6. Click 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-55 . Click Perform Recovery. 7. 8. Click Continue. Enter Host Credentials. The database is shut down. 9.Solutions for Practice 5-4: Use Flashback Database (continued) 5.

” 11. Click “Perform Whole Database Recovery. Click Select. Select “Recover to a prior point in time. Select the BEFORE_TRUNCATE restore point.” 12.Solutions for Practice 5-4: Use Flashback Database (continued) 10. 13. 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 . Select Restore Point and click the Flashlight icon.

The Restore Point field is populated. 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. Select Yes. Click Next. Click Next.Solutions for Practice 5-4: Use Flashback Database (continued) 14.

The “The database has been opened successfully” message is displayed.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 . 7) Return to your SQL*Plus session. The operation is complete. Click Submit. Execute the lab_05_04_07_02. 17. The “Processing: Perform Whole Database Recovery” page is displayed.Solutions for Practice 5-4: Use Flashback Database (continued) 16. 2. r O cl a SQL> @query_job_hist SQL> SELECT count(*) 2 FROM hr. Answer: 1. Execute the lab_05_04_07_02.sql script. Invoke SQL*Plus and log in as SYS/ORACLE as SYSDBA. You can scroll through the output to view the details of the operation. 19. Click OK. 18.sql script to query the HR.JOB_HISTORY table again to be sure the data has been restored. Click “Open Database” to open the database. Review the information.

you create a duplicate database.Practice Solutions for Lesson 6 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-59 .

1. [oracle@edrsr10p1 oracle]$ cd $ORACLE_HOME/dbs [oracle@edrsr10p1 dbs]$ orapwd file=orapwaux password=oracle entries=10 [oracle@edrsr10p1 dbs]$ ls hc_orcl.ora lkORCL orapworcl spfileorcl.ora 2) Use Oracle Net Manager to create an entry called AUXDB in the tnsnames.ora file. Specify a password of oracle and 10 for the number of entries. Answer: 1. The Oracle Net Manager window appears. Select Service Naming and click the green plus sign to create a new Net service name. 3. you use RMAN to create a duplicate database on the same host as your database.ora orapwaux snapcf_orcl. Change to the $ORACLE_HOME/dbs directory and use the orapwd utility to create a password file named orapwaux. Expand Local and Service Naming.Solutions for Practice 6-1: Create a Duplicate Database 1) Create an Oracle password file for your auxiliary instance. 4. Answer: 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-60 . [oracle@edrsr10p1 oracle]$ netmgr 2.dat init. Open a terminal window and enter netmgr at the operating system prompt.f initdw.

Enter the host name of your PC in the Host Name field.Solutions for Practice 6-1: Create a Duplicate Database (continued) 5. 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 . Select TCP/IP (default) as the protocol. Click Next. Accept the default of 1521 for the port number. 7. 6. Enter auxdb in the Net Service Name field and click Next. Click Next.

You can view your updated tnsnames. 12.com in the Service Name field. Click Finish. r O 11. 9. Click File and Exit to exit from Oracle Net Manager.oracle. 10.Solutions for Practice 6-1: Create a Duplicate Database (continued) 8.ora file in the /u01/app/oracle/product/10. Enter aux. Select File and Save Network Configuration to save the changes you made. Click Next.2. 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 .0/db_1/network/admin directory.

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

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. Oracle. 3.Solutions for Practice 6-1: Create a Duplicate Database (continued) Add the comment character.Production on Wed Mar 29 11:38:53 2006 Copyright (c) 1982. Set the ORACLE_SID environment variable to aux. Connected to an idle instance. r O 2. 2005. to this line: *. 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). SQL> create spfile from pfile='$HOME/auxinstance/initAUX. All rights reserved. [oracle@edrsr10p1 oracle]$ sqlplus / as sysdba SQL*Plus: Release 10.1. Invoke SQL*Plus and connect as SYSDBA. [oracle@edrsr10p1 oracle]$ ORACLE_SID=aux [oracle@edrsr10p1 oracle]$ echo $ORACLE_SID aux 2. cl a File created. Answer: 1.ora file.2. Start the instance in NOMOUNT mode using the initialization parameter file you created in step 2.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)' 4) Start the auxiliary instance in NOMOUNT mode using the initAUX. Answer: Oracle Database 10g: Backup and Recovery B-64 . Answer: 1.ora from the text initialization parameter file.ora'. SQL> startup nomount pfile='$HOME/auxinstance/initAUX. Exit from SQL*Plus.ora' ORACLE instance started.0 . #.0. Create a server parameter file with the default name of spfileaux.

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

dbf". restore check readonly clone database . set newname for datafile 2 to "/u01/app/oracle/oradata/aux/undotbs01. set newname for datafile 5 to "/u01/app/oracle/oradata/aux/example01.Solutions for Practice 6-1: Create a Duplicate Database (continued) 3> allocate auxiliary channel aux1 device type disk. set newname for datafile 4 to "/u01/app/oracle/oradata/aux/users01.dbf". } 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 . 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".dbf".dbf". set newname for datafile 3 to "/u01/app/oracle/oradata/aux/sysaux01. 4> duplicate target database to aux. set newname for datafile 1 to "/u01/app/oracle/oradata/aux/system01.

log' ) SIZE 50 M REUSE.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: copied datafile copy of datafile 00005 output filename=/u01/app/oracle/oradata/aux/example01. GROUP 3 ( '/u01/app/oracle/oradata/aux/redo03.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. 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.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.log' ) SIZE 50 M REUSE.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.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 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.

Solutions for Practice 6-1: Create a Duplicate Database (continued) contents of Memory Script: { switch clone datafile all. } 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 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. recover clone database delete archivelog .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 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. 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.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 .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.log' ) SIZE 50 M REUSE. GROUP 2 ( '/u01/app/oracle/oradata/aux/redo02. startup clone nomount . elapsed time: 00:00:05 Finished recover at 10-APR-06 contents of Memory Script: { shutdown clone.

catalog clone datafilecopy "/u01/app/oracle/oradata/aux/example01. catalog clone datafilecopy "/u01/app/oracle/oradata/aux/undotbs01.dbf recid=4 stamp=9 cataloged datafile copy datafile copy filename=/u01/app/oracle/oradata/aux/example02.dbf".Solutions for Practice 6-1: Create a Duplicate Database (continued) '/u01/app/oracle/oradata/aux/system01.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 . switch clone tempfile all. switch clone datafile all.dbf recid=3 stamp=589 cataloged datafile copy datafile copy filename=/u01/app/oracle/oradata/aux/example01. } 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 recid=2 stamp=59 cataloged datafile copy datafile copy filename=/u01/app/oracle/oradata/aux/users01.dbf' CHARACTER SET AL32UTF8 contents of Memory Script: { set newname for tempfile 1 to "/u01/app/oracle/oradata/aux/temp01.dbf". catalog clone datafilecopy "/u01/app/oracle/oradata/aux/users01.dbf".dbf in control fe cataloged datafile copy datafile copy filename=/u01/app/oracle/oradata/aux/undotbs01. catalog clone datafilecopy "/u01/app/oracle/oradata/aux/example02.dbf recid=1 stamp=8 cataloged datafile copy datafile copy filename=/u01/app/oracle/oradata/aux/sysaux01.dbf".dbf".

Answer: 1. exit from RMAN. SQL> select * from hr. 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 . 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.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. shut down the aux instance.REGIONS table. REGION_ID ---------1 2 3 4 r O 10) Now that you have completed the test recovery by creating a duplicate database. } executing Memory Script database opened Finished Duplicate Db at 10-APR-06 2. 2.REGIONS table. Log in to SQL*Plus as SYSDBA and execute a query against the HR. After the DUPLICATE DATABASE operation completes. Answer: 1.regions. Connect as SYSDBA and execute the SHUTDOWN IMMEDIATE command.

SQL> 2. Answer: 1. ORACLE instance shut down. enter ORACLE_SID=orcl to change your ORACLE_SID. At the operating prompt. Exit from SQL*Plus.Solutions for Practice 6-1: Create a Duplicate Database (continued) Database closed. 11) Change your ORACLE_SID to orcl in preparation for later practices. [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 . Database dismounted.

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 . you use tablespace point-in-time recovery to recover from unwanted changes to your database.

change to the labs directory and execute the lab_07_01_01_01.1.Production on Wednesday. Answer: 1.sh Export: Release 10.2.. All rights reserved. .2.dmp sr Estimate in progress using BLOCKS method.0."COUNTRIES" 6.0 .sh script to export the HR schema. 12 April. exported "HR".sh script to export the HR schema.1.. Oracle."SYS_EXPORT_SCHEMA_01": system/******** dumpfile=hrexp.Produn With the Partitioning.Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery 1) Execute the lab_07_01_01_01.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 . 2005.0. r O cl a Connected to: Oracle Database 10g Enterprise Edition Release 10. 2006 13:03:27 Copyright (c) 2003.0 . OLAP and Data Mining options tarting "SYSTEM"./lab_07_01_01_01. In a terminal window. [oracle@edrsr10p1 labs]$ . 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 .

"REGIONS" 5. Answer: 1.dmp Job "SYSTEM"."DEPARTMENTS" 6.2."EMPLOYEES" 15. SQL> REM ***** Tablespace for the HR import ***** SQL> CREATE SMALLFILE TABLESPACE HRTEST 2 DATAFILE '/u01/app/oracle/oradata/orcl/hrtest01. SQL> @lab_07_01_02_02 SQL> SET TERMOUT ON SQL> CONNECT / AS SYSDBA Connected."LOCATIONS" 7. exported "HR". .632 KB 27 rows ."SYS_EXPORT_SCHEMA_01" successfully completed at 13:03:44 2) Execute the lab_07_01_02_02.SYS_EXPORT_SCHEMA_01 is: /u01/app/oracle/product/10."JOBS" 6.76 KB 107 rows .289 KB 4 rows Master table "SYSTEM".710 KB 23 rows .585 KB 10 rows . Tablespace created. Execute the lab_07_01_02_02. exported "HR"."JOB_HISTORY" 6. exported "HR"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded ********************************************************** ******************** Dump file set for SYSTEM. exported "HR". log in to SQL*Plus as SYSDBA. .609 KB 19 rows .sql script to create a new tablespace and a new user in your database. .dbf' SIZE 10M 3 AUTOEXTEND ON NEXT 500K MAXSIZE UNLIMITED LOGGING 4 EXTENT MANAGEMENT LOCAL 5 SEGMENT SPACE MANAGEMENT AUTO.0/db_1/rdbms/log/hrexp. . exported "HR". exported "HR".sql script to create the HRTEST tablespace and the HRTEST user. . 2. . 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 . In your terminal window.Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) .

0 . OLAP and Data Mining options Master table "SYSTEM".1.0. 3) Execute the lab_07_01_03_01. You will receive error messages because the import excludes the COUNTRIES. 2005. In your terminal window at the operating system prompt."SYS_IMPORT_FULL_01": system/******** dumpfile=hrexp.sh script to populate the new tablespace with a copy of the data from the HR schema.0 . User created./lab_07_01_03_01. 2006 7:08:42 Copyright (c) 2003.2."DEPARTMENTS" 6. SQL> GRANT connect.Production on Friday. resource 2 TO hrtest. .2.sh script. Note: The import should complete successfully.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 .1. execute the lab_07_01_03_01. Answer: 1. 14 April. REGIONS. [oracle@edrsr10p1 labs]$ . imported "HRTEST"."SYS_IMPORT_FULL_01" successfully loaded/unloaded Starting "SYSTEM".Produn With the Partitioning. and LOCATIONS tables.0.Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) 6 7 8 QUOTA UNLIMITED ON hrtest ACCOUNT UNLOCK . r O cl a Connected to: Oracle Database 10g Enterprise Edition Release 10. These messages can be ignored. Oracle. Grant succeeded. All rights reserved.sh Import: Release 10.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 .

. imported "HRTEST".Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) . Invoke RMAN and connect to your target database."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". 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 ."JOB_HISTORY" 6."EMPLOYEES" 15."SYS_IMPORT_FULL_01" completed with 3 error(s) at 07:08:54 4) Create a backup of your database using RMAN.609 KB 19 rows . r O cl a RMAN> backup database. . .76 KB 107 rows . 2. imported "HRTEST". Answer: 1. Execute the BACKUP DATABASE command. imported "HRTEST"."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"."JOBS" 6.

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. Invoke SQL*Plus as SYSDBA. CURRENT_SCN ----------4725352 6) Record the current time. Query the CURRENT_SCN column in V$DATABASE and record the current SCN.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.dbf input datafile fno=00005 name=/u01/app/oracle/oradata/orcl/example01.dbf input datafile fno=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf input datafile fno=00003 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf input datafile fno=00006 name=/u01/app/oracle/oradata/orcl/example02. 2. [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 . Execute the date command at the operating system prompt. SQL> select current_scn from V$database.dbf input datafile fno=00002 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf input datafile fno=00007 name=/u01/app/oracle/oradata/orcl/hrtest01. r O Answer: 1.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.

sql script. Make note of the highest salary that is displayed: ________ Answer: 1.employees set salary = salary * 1.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_07_01.sql script. last_name.EMPLOYEES table and view information about employees in department 60. Execute the lab_07_01_08_01. salary from employees where department_id = 60 / LAST_NAME SALARY ------------------------. SQL> SQL> 2 3 4 @lab_07_01_08_01 update hrtest.---------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. Highest salary: _____________ Answer: 1. SQL> select employee_id. salary 2 from hrtest.sql script to query the HRTEST.employees 3 where department_id = 60 4 / EMPLOYEE_ID ----------103 104 105 106 107 r O cl a In e LAST_NAME SALARY ------------------------. last_name. SQL> SQL> 2 3 4 @lab_07_01_07_01 select employee_id.sql script to update the salaries for the employees in department 60 and note the highest salary displayed.---------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 .25 where department_id = 60 / 5 rows updated.

2. constraint_name. Select Tablespaces in the Object Level Recovery section. Execute the lab_07_01_09_01. ts2_name. SQL> SQL> 2 3 4 5 6 7 8 9 @lab_07_01_09_01 SELECT obj1_owner. Accept the default selection “Recover to current time or a previous point-in-time. 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 . Select the Maintenance page. obj2_type.sql script to determine whether there are any dependencies that will prevent the TSPITR operation. reason FROM SYS. 10) You can use Enterprise Manager Database Control or RMAN command line to perform tablespace point-in-time recovery. so you can proceed with the tablespace point-in-time recovery. ts1_name.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. obj1_type. obj1_name. obj2_owner.sql script. Answer: 1. Select Perform Recovery in the Backup/Recovery section.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. 1. obj2_name. The page refreshes. 4. If you want to use RMAN command line.” Click Perform Object Level 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’. Answer: The answer presents the solution using Enterprise Manager Database Control. 3. Execute the lab_07_01_09_01. Invoke Enterprise Manager Database Control and log in as SYS/ORACLE as SYSDBA.

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 .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. Click Next.

Click Add to select the tablespace. 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 . 7.Solutions for Practice 7-1: Use Tablespace Point-in-time Recovery (continued) 6. Specify the auxiliary instance location of /u01/app/oracle/oradata/tspitr. Select the HRTEST tablespace. Click Select.

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

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 .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.

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. The users are named RCUSER01 – RCUSER12.) The service name is RCDB.2.2.0 . r O 3) Using RMAN. (If you are using PC01. 1) Connect to the recovery catalog database (instructor’s database) with the appropriate recovery catalog owner name (if you are using PC01. Answer: This example uses RCUSER10 as the username and password. execute the command to resynchronize the control file and recovery catalog. Oracle.The tablespace for the recovery catalog and the recovery catalog owner have been created in the instructor database. 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. Answer: [oracle@edrsr10p1 oracle]$ rman target / catalog rcuser10/rcuser10@rcdb Recovery Manager: Release 10.0. The tablespaces are named RCTS01 – RCTS12.1. 2) Using RMAN. your assigned tablespace is RCTS01.0 . All rights reserved.1. Oracle Database 10g: Backup and Recovery B-89 . [oracle@edrsr10p1 oracle]$ rman catalog rcuser10/rcuser10@rcdb Recovery Manager: Release 10. connect to your target database and the recovery catalog database. 2005. Create the recovery catalog in your assigned tablespace.0. connect as RCUSER01) using RMAN.Production on Thu Mar 16 14:22:04 2006 Copyright (c) 1982. Your assigned username and password may differ from this example.Production on Thu Mar 16 13:58:52 2006 Copyright (c) 1982. 2005.

Using RMAN: RMAN> register database. so the resync command fails. Answer: Use RMAN command-line OR Enterprise Manager Database Control. RMAN> resync catalog. 1. Using Enterprise Manager: Select Recovery Catalog Settings on the Maintenance Page. Select Add Recovery Catalog on the Recovery Catalog Settings 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-90 . database registered in recovery catalog starting full resync of recovery catalog full resync complete RMAN> 2. 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. 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.

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

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

Answer: 1. use RMAN to unregister your database from the recovery catalog. RMAN> PRINT SCRIPT whole_backup.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. Connect to your target database and the recovery catalog. RMAN> unregister database. 2. } RMAN> 7) In preparation for later practices. printing stored script: whole_backup {BACKUP DATABASE. Execute the UNREGISTER DATABASE command. 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 .

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 .Practice Solutions for Lesson 9 In this practice.

2.------------------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 . Answer: 1. RMAN> delete obsolete.-----------------. Execute the DELETE OBSOLETE command.Solutions for Practice 9-1: Use SQL to Monitor the Progress of RMAN Backups 1) Invoke RMAN and delete all obsolete backups. 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 -------------------.-----. Invoke RMAN and connect to your target database.

dbf input datafile fno=00003 name=/u01/app/oracle/oradata/orcl/sysaux01.--------------. 3) Return to your first terminal window.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. By using this view you can determine whether the backup is progressing normally or hanging. the TIME_REMAINING column should be decreasing. RMAN> backup database. ra O SQL> SQL> 2 3 @lab_09_01_04_01 SELECT sid. Invoke SQL*Plus and connect as SYSDBA.Solutions for Practice 9-1: Use SQL to Monitor the Progress of RMAN Backups (continued) 2) Open a second terminal window. Execute the RMAN BACKUP DATABASE command. 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 input datafile fno=00005 name=/u01/app/oracle/oradata/orcl/example01.-------------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 . Execute the lab_09_01_04_01.sql script to query V$SESSION_LONGOPS. You will use this second session to monitor a database backup. Answer: 1. Execute the lab_09_01_04_01. If the backup is progressing normally.start_time.--------.sql script.dbf input datafile fno=00002 name=/u01/app/oracle/oradata/orcl/undotbs01. Change to the labs directory. begin a whole database backup.elapsed_seconds. In your RMAN session.dbf input datafile fno=00007 name=/u01/app/oracle/oradata/orcl/hrtest01. Answer: 1. time_remaining FROM v$session_longops / SID START_TIM ELAPSED_SECONDS TIME_REMAINING ---------.dbf input datafile fno=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf input datafile fno=00006 name=/u01/app/oracle/oradata/orcl/example02.

You should notice that the value in the TIME_REMAINING column is decreasing.-------------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 . Execute the lab_09_01_04_01.--------------.sql script again. SQL> / SID START_TIM ELAPSED_SECONDS TIME_REMAINING ---------.--------.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.

3. The job is submitted. click Delete All Obsolete. 5. 2) 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 B-99 . 2. 1) Start Enterprise Manager and log in as SYS/ORACLE as SYSDBA. 4. Click View Job to view the progress of the Delete All Obsolete job. On the Manage Current Backups page.Solutions for Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs You can easily monitor RMAN jobs in Enterprise Manager. Answer: 1. Click Submit Job. Select Manage Current Backups. Navigate to the Maintenance page.

3) Start a whole database backup. 2. 7. Select Schedule Backup in the Backup/Recovery section. Click Schedule Customized Backup. Select Whole Database in the Customized Backup section. 3.Solutions for Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs (continued) 6. Answer: 1. You can view additional information by clicking the links in the Logs 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-100 . Click the Database tab to return to the home page. Navigate to the Maintenance page.

Deselect “Also back up all archived logs on disk” in the Advanced section. Select Online Backup in the Backup Mode section. Click Next.Solutions for Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs (continued) 4. 6. select Disk. On the “Schedule Customized Backup: Settings” page. 5. Click Next. 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 . Select “Delete obsolete backups” in the Advanced section. Accept the default values on the “Schedule Customized Backup: Schedule” page. Click Next. Select Full Backup in the Backup Type 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 . Click View Job. Information about the job is displayed. 8. Click Submit Job. 9.Solutions for Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs (continued) 7.

You can view detailed information about each job step. 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 .Solutions for Practice 9-2: Use Enterprise Manager to Monitor RMAN Jobs (continued) 10. Click the “Job Run” link to return to the Job page. 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 .

• Configure preauthorization for this user. • Install the Oracle Secure Backup software. • Test connectivity to the tape drive. THE VIRTUAL TEST DEVICES USED IN THIS LAB ARE FOR TRAINING PURPOSES ONLY. • Connect to the EM Database Console application using your browser. you perform the following tasks: • Create your Oracle Secure Backup home directory. • Register your administrative server with EM. • Configure virtual test devices.Practice Solutions for Lesson 11 In this practice. • View information about the configured devices. • Define a new Oracle Secure Backup user. • Insert four volumes into the tape library. 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 . THEY ARE NOT SUPPORTED FOR PRODUCTION USE.

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

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

Oracle Secure Backup's Web server has been loaded. Use batch mode to install Oracle Secure Backup on any number of hosts. 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. (a.4. please refer to the Oracle Secure Backup Installation Guide.EL) You must now enter a password for the Oracle Secure Backup 'admin' user.(continued) Solutions for Practice 11-1: Install Oracle Secure Backup Use interactive mode to install Oracle Secure Backup on a small number of hosts.so. Installing Oracle Secure Backup on edrsr4p1 (Linux version 2.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.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 . but is not yet configured. Which installation method would you like to use (a or b) [a]? a - Oracle Secure Backup is not yet installed on this machine.21-20. containing a mixture of alphabetic and numeric characters. Oracle suggests you choose a password of at least 8 characters in length. This will take just a minute and will produce several lines of informational output.

d/init. [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/init.(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.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.d/qrserviced creating /etc/rc.

you do not have to enter username and password./lab_11_02_01.sh edrsr4p1 ************************************************ Creating a tape drive in the library ************************************************ [oracle@edrsr4p1 labs]$ 3) Start the obtool as the admin user with the oracle password. [oracle@edrsr4p1 labs]$ 2) In the /home/oracle/labs directory. and view the currently configured devices. 1) In a terminal window. navigate to the /home/oracle/labs directory and execute the ./lab_11_02_01. you perform the following tasks: • Configure a virtual test library and a virtual test drive. It means that you have to enter the login username and password as shown above. (Hint: Use the lsdev command. Oracle Database 10g: Backup and Recovery B-110 . Answer: [oracle@edrsr4p1 oracle]$ cd /home/oracle/labs [oracle@edrsr4p1 labs]$ ./lab_11_02_02. cl a [oracle@edrsr4p1 labs]$ obtool Oracle Secure Backup 10.Solutions for Practice 11-2: Configure Devices for Oracle Secure Backup In this practice. execute the .sh script to configure the vt tape drive for the library: Answer: [oracle@edrsr4p1 labs]$ . If you are within the time period of your login token.1. ignore it. “Warning: auto-login failed – login token has expired”.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. • 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.) Answer: r O Note: If you receive the following.sh edrsr4p1 ************************************************ Creating a library ************************************************ Info: added "mediaserver" role to host edrsr4p1./lab_11_02_02.

) 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 . 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.

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

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

Solutions for Practice 11-3: Register the Administrative Server (continued) 2. On the Devices page. enter 1-4 in Storage Element. click Go. make sure that the “This is an unlabeled tape” option is selected for Source. and for Destination. On the Device Action: insertvol page. Then. select the “Insert Volume” value. 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-114 . the vlib virtual test library should be automatically selected. In the Actions drop-down list.

The Processing page appears for a short period of time. When returned to the Devices page.Solutions for Practice 11-3: Register the Administrative Server (continued) 4. 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 . Scroll down to the bottom of the page and click OK. click the plus sign (+) to the left of vlib to see your device. r O 5.

Select “Verify Connectivity” from the list of Actions. test the virtual tape drive access.Solutions for Practice 11-3: Register the Administrative Server (continued) 4) Before taking any backups. 2. On the Devices page. you want to make sure you can access your tape drives. Answer: 1. and click Go. An informational message regarding the accessibility of the selected device 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-116 .

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 .

you can use shortcuts. On the Maintenance tabbed page. 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. such as clicking the Administrative Server link in the upper-left part of the Devices page. UNIX group: dba and NDMP server user: no. you can have two windows open. set the value to “yes”. If you receive the warning “Website Certified by an Unknown Authority”. On the Oracle Secure Backup Login page. oracle as Password. 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. 4. but inside the regular classrooms. • Configure preauthorization for this user.In this practice. enter admin as User Name. an NDMP server is not available. and click Login. click the “File System Backup and Restore” link in the Oracle Secure Backup section. UNIX name: oracle. Password: oracle. Unless specified otherwise. click the Maintenance tab.” Answer: 1. Solutions for Practice 11-4: Configure Oracle Secure Backup User 3. accept this certificate permanently and click OK in any security pop-up window. If you are already in Enterprise Manager. User class: 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-118 . Note: If you have an NDMP server. On your Database home page. one for Enterprise Manager and the other for the Oracle Secure Backup Web tool. 2. you should log on as the oracle user to your terminal emulator session and as SYSDBA to your EM Database Control Console session. You are now redirected to the Oracle Secure Backup Web tool application.

On the Oracle Secure Backup home 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-119 . UNIX name: oracle.Solutions for Practice 11-4: Configure Oracle Secure Backup User (continued) 5. and NDMP server user: no. enter or select the following values: User: oracle. 6. 7. UNIX group: dba. click the Users link in the Basic section. 8. Click the Add button. click the Configure tab. Password: oracle. On the Configure page. Click Apply. On the New Users page. User class: oracle.

Windows domain name: *. r O Answer: 1. 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 . and Attributes: cmdline and rman. OS username: *.Solutions for Practice 11-4: Configure Oracle Secure Backup User (continued) 9. 2) Configure the oracle Oracle Secure Backup user as a preauthorized RMAN and command-line user with the following values: Hosts: all hosts. View the success message. Best Practice Tip: Limit preauthorized access to selected hosts. Click the Preauthorized Access button. The oracle user is created and the page is in edit mode.

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. OS username: *. Click Add. Windows domain name: *. On the Preauthorized Access page. View the success message.Solutions for Practice 11-4: Configure Oracle Secure Backup User (continued) 2. select or enter the following values: Hosts: all hosts. 3.

Practice Solutions for Lesson 12 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-122 . • Perform a backup of your Oracle database with the Oracle-Suggested Backup strategy. you perform the following tasks: • Create a database backup storage selector for your database.

enable archiving.Solutions for Practice 12-1: Create a Database Backup Storage Selector In this practice. If your database is in ARCHIVELOG mode. shut down the database. • In Enterprise Manager.0. perform a test backup to verify that the Oracle Secure Backup configuration is correct. • In Enterprise Manager. SQL> alter database archivelog. ORACLE instance shut down. verify that the database is in ARCHIVELOG mode. 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. 1) First.2. continue with the next step.1. Database dismounted.0 . SQL> connect / as sysdba Connected. Database altered. and as SYSDBA to your Database Control Console and SQL*Plus sessions. If not.Production on Wed May 10 13:51:01 2006 Copyright (c) 1982. 2005. verify that the database is in ARCHIVELOG mode. Oracle. Unless specified otherwise. you should log on as the oracle user to your terminal emulator session. Answer: $ sqlplus /nolog SQL*Plus: Release 10. In e rn te l& a O I A s U O e ly n bytes bytes bytes bytes bytes SQL> alter database open. and then restart the database. 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. All rights reserved. Database altered. Oracle Database 10g: Backup and Recovery B-123 . you perform the following tasks: • In SQL*Plus. SQL> startup mount ORACLE instance started.

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. and “Save as Preferred Credential” Database Backup Types: Archive log. create a backup selector for your database with the following specifications: • • • Tape Drives: 1 Host Credentials Username: oracle. Under Backup/Recovery Settings. enter oracle as Username and Password. If these fields are already filled in. 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-124 . Auto Backup. 2. click Backup Settings. Full. and Incremental Answer: 1. Under Host Credentials. On the Backup Settings page. Select “Save as Preferred Credential. 4. enter 1 for Tape Drives in the Tape Settings section. click the Maintenance tab. Password: oracle. On your Database home page.” and click OK. make sure the supplied values are correct.

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

Click Return. Oracle Database 10g: Backup and Recovery B-126 . 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.Solutions for Practice 12-1: Create a Database Backup Storage Selector (continued) 9. Your Backup Storage Selector has been created and is now displayed.

2. Make sure that your Host Credentials are correct. 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. r O 3. On the Backup Settings page. scroll down to see that the administrative server is set.Solutions for Practice 12-1: Create a Database Backup Storage Selector (continued) 3) Test your tape backup. and then click “Test Tape Backup” in the Tape Settings section in the middle of the page. click the Database Instance link to return to the Maintenance page. Answer: 1. The progress window appears.

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 .

select “Both Disk and Tape” and click Next. Unless specified otherwise. click the Schedule Backup link. and as SYSDBA to your Database Control Console and SQL*Plus sessions.Solutions for Practice 12-2: Perform Oracle-Suggested Backup In Enterprise Manager. perform Oracle-Suggested Backup. 1) In Enterprise Manager. make sure your Host Credentials are set correctly. you should log on as the oracle user to your terminal emulator session. On the Schedule Backup page. On the Database home page. On the “Schedule Oracle-Suggested Backup: Destination” page. 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. Then click the Schedule Oracle-Suggested Backup button 4. 2. 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 . 3. On the Maintenance page. click the Maintenance link.

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

7. On the “Schedule Oracle-Suggested Backup: Review” page.Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) This specification first initiates a disk backup to the Flash Recovery Area. 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 . and then the backup will be written to tape. review both the Settings and RMAN Scripts and click Submit Job.

If this is your first scheduled backup.Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) 8. and then to tape. r O 2) Review your backup job. 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 . you should see a full backup (otherwise an incremental one) first to the Flash Recovery Area. as well as the job execution. You should see that the job has been successfully submitted. Review the RMAN command.

Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) Answer: 1. The content of this screenshot may be different from yours. The Job Execution page is displayed. In the Output log. 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 . 2. review how the RMAN command allocates the disk and tape devices. Click the Backup link under the Logs section. At your specified backup time. due to different timing and previous tasks. click View Job.

Scroll down to review the execution of these commands.Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) 3. This screenshot shows you the switch from disk to tape. r O 4. 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. If you are interested only in a summary of the backup activities.

Answer: 1.” 3) Optionally. Navigate to the /home/oracle/solutions/viewlets directory. 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 . 2. to reinforce this practice topic.html viewlet in the /home/oracle/solutions/viewlets directory.html file and view the presentation.Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) Your screenshot will look different. r O 3. you can view the Oracle_Suggested_Strategy_viewlet_swf. Double-click the Oracle_Suggested_Strategy_viewlet_swf. Click the oracle’s Home icon on your desktop. but it should show both DISK and SBT_TAPE under “Output Devices.

When you have finished viewing the presentation. 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 . close your Web browser window.Solutions for Practice 12-2: Perform Oracle-Suggested Backup (continued) 4.

you perform the following tasks: • Create a dataset for a file-system backup.Practice Solutions 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 B-137 . • Schedule a backup of the dataset.

Both use oracle as password. click Add. and click Login. 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 Datasets link in the Settings section. 3. click the Maintenance tab. On the Maintenance tabbed page. click the File System Backup and Restore link in the Oracle Secure Backup section. Unless specified otherwise. 1) Create a new dataset called mylabs that you will use to back up your $HOME/labs 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-138 . 4. access Enterprise Manager as SYDBA and the Oracle Secure Backup Web tool as admin user. enter admin as User Name and oracle as Password. On the Backup page.” accept this certificate permanently and click OK in any security pop-up window. On the Oracle Secure Backup Login page. 5.Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup Use the Oracle Secure Backup Web tool. Answer: 1. 2. You are now redirected to the Oracle Secure Backup Web tool application. From your Database home page. If you receive the warning “Website Certified by an Unknown Authority. On the Datasets page. Note: Do not back up the local root directory. click the Backup tab. On the Oracle Secure Backup Web tool home page. 7. which can be accessed from Enterprise Manager for the tasks in this practice session.

set the Name field to mylabs. To not back up the local root directory. or delete these lines. 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. place comment signs (#) before the relevant lines. click Save. Oracle Database 10g: Backup and Recovery B-139 . After this is done. On the New Datasets page.Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup (continued) 8. r O cl a In e rn te l& a O I A s U O e ly n 9.

On the Backup: Backup Now > Options page. On the Datasets page. On the Dataset Errors page. and click Check Dataset. 11. resolve them. 2) Create a backup with your mylabs dataset. Verify that the dataset was created successfully. you see that there were no errors. The backup should run immediately. select mylabs. select the mylabs dataset and click OK. If there are any errors. 1.Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup (continued) 10. Answer: 2. then click Close. On the Backup: Datasets 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 . On the Backup Now page. click Backup Now on the bottom of the page. 3. click the Add button.

click Jobs. 5. On the Manage page. Oracle Secure Backup submits the backup request and assigns a job number. Answer: 1. r O 3) View Oracle Secure Backup job information. When returned to the Backup Now page.Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup (continued) 4. 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 . Click the Manage tab. Review the result. 2. select the mylabs dataset and click Go to submit the job to the scheduler. Query the Manage: Jobs page for the previously created and executed job.

Click Apply. or Pending jobs by selecting those options. 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-142 . Complete. On the Jobs page. select backup. then hold the [Ctrl] key and select dataset and Oracle backup. restrict the display to only Active. Click the Manage link to return to the Manage page. The updated display now shows the recent dataset backup as well as the previous RMAN backup jobs. In the Types box.Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup (continued) 3.

to reinforce this practice topic. 2. Answer: 1. 3. When you have finished viewing the presentation. 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 B-143 .html viewlet in the /home/oracle/solutions/viewlets directory. close your Web browser window. Click the oracle’s Home icon on your desktop.Solutions for Practice 13-1: Back Up Your File System with Oracle Secure Backup (continued) 4) Optionally.html file and view the presentation. Double-click the Scheduling_filesystem_backups_viewlet_swf. Navigate to the /home/oracle/solutions/viewlets directory.

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

sh lab_11_02_02_in.sql lab_07_01_01_01.sh lab_11_02_01_out.sh s U O e ly n Oracle Database 10g: Backup and Recovery B-149 .sql lab_05_04_01_01.sql lab_05_02_04_01.sql lab_07_01_09_01.sql lab_07_01_08_01.sql [oracle@edrsr4p1 labs]$ r O cl a In e rn te l& a O I A lab_07_01_12_01.sql lab_05_04_03_01.sh lab_04_02_02_01.sql lab_05_04_04_01.sql lab_11_02_01_in.sql lab_09_01_04_01.sh lab_04_03_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.sql lab_07_01_13_02.sql lab_05_03_04_01.sql lab_05_03_01_01.sql lab_05_03_03_01.sql lab_07_01_03_01.sh lab_11_02_02_out.sh lab_11_02_01.sql lab_05_04_07_02.sql lab_05_03_02_01.sql lab_07_01_14_02.sql lab_05_02_05_01. verify that your lab files are present. Answer: [oracle@edrsr4p1 labs]$ ls lab_04_01_02_01.sh lab_07_01_02_02.sh lab_11_02_02.sql lab_05_02_07_01.sh lab_05_02_03_02.sh lab_07_01_07_01.

• Recover a tablespace from an encrypted backup. you perform the following tasks: • Create an encrypted backup.Practice Solutions for Lesson 15 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-150 .

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

Solutions for Practice 15-1: Create an Encrypted Backup (continued) 5. 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 . online backup with archive logs and click Next. Select the Tape setting and click Next. Retain the default values of the backup options: full.

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 . r O Answer: 1.Solutions for Practice 15-1: Create an Encrypted Backup (continued) 7. The command syntax is: SET ENCRYPTION ON IDENTIFIED BY demo ONLY. 2) Edit the RMAN script and include the command to encrypt the backup. On the “Schedule Customized Backup: Review” page. click Edit RMAN Script. specifying demo as the password. Make sure the Start Immediately option is selected. and then click Next. Then submit the backup job.

and then click Submit Job.Solutions for Practice 15-1: Create an Encrypted Backup (continued) 2. Answer: 1. Verify that the RMAN SET ENCRYPTION command is successfully executed. 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 . 3) Check the backup job status. Enter SET ENCRYPTION ON IDENTIFIED BY demo ONLY. Click View Job. at the top of the RMAN script. and no other encryption keys will exist for this backup. Note: Specifying “ONLY” in the command means decryption will require the demo password.

Solutions for Practice 15-1: Create an Encrypted Backup (continued) 2. 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-155 . Notice the successful execution of the RMAN SET ENCRYPTION command. Click the Backup link in the Name column of the table under the Logs section.

to reinforce this practice topic.html viewlet the /home/oracle/solutions/viewlets directory. Click the oracle’s Home icon on your desktop. 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. you can view the Backup_Encryption_viewlet_swf. Answer: r O 1.Solutions for Practice 15-1: Create an Encrypted Backup (continued) 4) Verify the successful completion of your backup. 5) Optionally. 2. Answer: Refresh the browser page until the backup completes.

close your Web browser window. Double-click the Backup_Encryption_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-157 .html file and view the presentation.Solutions for Practice 15-1: Create an Encrypted Backup (continued) 3. When you have finished viewing the presentation.

Unless specified otherwise. 2. you perform the following tasks: • Perform a tablespace recovery using the encrypted backup. perform an object-level recovery of the EXAMPLE tablespace to the current time or a previous point in time. and click Perform Object Level Recovery. click the “Perform Recovery” link in the Backup/Recovery section. click the Maintenance tab.Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup In this practice. On your Database home page. you should log in as SYS user (with the oracle password) and connect as SYSDBA to Enterprise Manager Database Control. 3. On the Maintenance tabbed page. Select Tablespaces from the Object Type list. • Troubleshoot the recovery process. 1) In Enterprise Manager. • Edit the RMAN script to decrypt the backup. 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 B-158 . Answer: 1. ensure that your Host Credentials are correct.

Click Add. 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. 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 . 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-160 .Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 6. r O 8. Accept the “No. and click the Select button. Restore the files to the default location” option and click Next. Click Next. 7. Select the EXAMPLE tablespace.

2) The recovery operation fails.Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 9. Review your recovery request 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-161 . Scroll down the output window on the Perform Recovery: Result window. Notice the “ORA-19913: unable to decrypt backup” error. Why? Answer: 1. RMAN could not decrypt the backup because it needs the password.

click the “Perform Recovery” link in the Backup/Recovery section. On the Maintenance tabbed page. 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. This is due to the failed tablespace recovery attempt. Click OK. Answer: 1. 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 . 2. Restore the files to the default location. Select Tablespaces from the Object Type list and click Perform Object Level Recovery. What do you notice on the Perform Recovery page? Answer: 1. 3) Troubleshoot the recovery process. r O 4) Perform an object-level recovery of the EXAMPLE tablespace to the current time or a previous point in time.

and click Next.Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 2. 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 . On the “Perform Object Level Recovery: Tablespaces” page. Retain the default values for point-in-time recovery and click Next. 3. make sure that the EXAMPLE tablespace is displayed.

Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 4. The command syntax is: SET ENCRYPTION ON IDENTIFIED BY demo ONLY. 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 . 5) Edit the RMAN script on the “Perform Object Level Recovery: Review” page. specifying demo as the password. Restore the files to the default location” option and click Next. Retain the “No. Then submit the backup job. Include the command to decrypt the backup.

Notice that the SET DECRYPTION command was executed. 6) View the Perform Recovery: Result page. and then click Submit. 2. Click Edit RMAN Script. 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-165 .Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 1. Enter SET DECRYPTION IDENTIFIED BY demo. Notice the successful execution of your SET DECRYPTION command. at the top of the RMAN script.

click OK. r O 3. 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 . When you finished reviewing the results.Solutions for Practice 15-2: Recover a Tablespace from an Encrypted Backup (continued) 2.

• Back up the Oracle Secure Backup catalog. 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 B-167 .Practice Solutions for Lesson 16 In this practice.

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

In the Oracle Secure Backup Web tool. 2) View the volumes and their content. Click Volumes.Solutions for Practice 16-1: View Oracle Secure Backup Information (continued) 7. click the Manage tab. 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 . 2. Note: The content of your /home/oracle/labs directory is different during class. which you backed up during a previous practice session. Click until you see the files. 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-170 . The content of your Backup Sections will be different from this screenshot. completed ones. Then click Close.Solutions for Practice 16-1: View Oracle Secure Backup Information (continued) 3. Review the List Section Properties. In the Oracle Secure Backup Web tool. 4. Include a review of a job transcript. click the Home tab. Select one of the volumes and click List Backup Sections. 3) View a category of jobs—for example. Answer: 1.

It should be 0%. you will not have any failed jobs to research. 3. r O 4.Solutions for Practice 16-1: View Oracle Secure Backup Information (continued) Most likely. Select the archivelog backup job and click Show Transcript. Scroll to the end of the job transcript and view the error rate. Click the Completed Jobs link. 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 . so look at completed ones. 2.

click the Defaults and Policies link in the Advanced 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-172 . On your Database home page. Click the Configure tab. 4. Click Close. 2. What is the value of the “Login token duration” policy? Answer: 1. click the Maintenance tab. click the security Policy. 4) View the configuration of your security policies. Click the File System Backup and Restore. On the Configure page.Solutions for Practice 16-1: View Oracle Secure Backup Information (continued) 5. 3. r O 5. On the Configure: Defaults and Policies 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-173 . What is the value of the “Login token duration” policy? The default value is 15 minutes. which means after 15 minutes of inactivity.Solutions for Practice 16-1: View Oracle Secure Backup Information (continued) 6. you need to repeat your Oracle Secure Backup login.

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

21:51 Priority: 1 Privileged op: yes Run on host: (administrative server) Attempts: 1 ob> 5) Identify the volume that contains the backup. barcode 6a409e76c944102b98500065b9621d0 in dte: volume VOL000001. so the volume that contains the backup can be easily located. (--dataset).ds. barcode 6a156878c944102b98500065b9621 d0. All the files described are backed up regardless of when the last backup was taken or what files have changed. 3462496 kb remaining. barcode 6a2ac70ec944102b98500065b9621d0 * in 4: unlabeled. Answer: ob> lsjob --long admin/3 admin/3: Type: dataset catback. 3463296 kb remaining. ob> 4) Use the information from the message returned in the previous step to verify that the backup completed successfully. (State should show “completed successfully”). job id is admin/3. The backup is restricted to only the vt tape drive.ds Level: full Family: OSB_catalogs Scheduled time: none State: completed successfully at 2006/05/19.ds ob> backup --go Info: backup request 1 (dataset catback. content manages reuse * in 3: unlabeled. 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 . barcode 69ed75c0c944102b985 00065b9621d0. ob> backup –l full –p 1 –r vt –g --dataset catback. The backup is executed as the privileged root user (-g) and is given the highest priority (-p 1).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. Answer: ob> lsvol --drive vt r O cl a ob> lsvol --drive vt Inventory of library vlib: * in 1: volume RMAN-DEFAULT-000002.ds) submitted.

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 Secure Backup Additional Installation Topics Copyright © 2006. Oracle. r O cl a In e rn te l& a O I A s U O e ly n .

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.2 . 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 . together with the relevant lesson.Topics This appendix. All rights reserved. Oracle.

All rights reserved. the Oracle Secure Backup Setup Wizard copies all Oracle Secure Backup files to the local host and generates Windows Registry entries. and can additionally be a media server or administrative server installation. 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 . During the installation process.Windows Installation: Overview Stop drivers Run setup. such as: on Windows: disable drivers on Windows-based media servers.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. see documentation for platform-specific details. Windows Installation: Overview Before beginning your installation. and how to configure firewalls. the GNU SMTP implementation is replaced with one developed by Oracle.3 . Note: Every installation of Oracle Secure Backup on Windows is a client installation. Oracle Secure Backup supports configuring the administrative domain on a host running the Windows operating system. Oracle. To support running an administrative server on Windows.

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

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 .Stopping Tape Device Drivers (continued) 11. the Windows drivers will preempt the Oracle Secure Backup device driver (ob) on the next reboot. Windows drivers claim devices to be used by Oracle Secure Backup. If not disabled.5 . Reboot your host. Repeat steps 9 and 10 for each tape library or tape drive that you intend to use with Oracle Secure Backup. 12.

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

9.Oracle Secure Backup Setup (continued) b. When the files are copied. If you plan to perform Oracle database backups and restores. Click Finish to continue. click the pull-down menu of the Administrative Host icon and select “This feature will be installed on local hard drive. 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 C . repeat this process for Create “oracle” user. A progress bar appears. Click Install to start copying files. c.7 . Click Next to continue. 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. The “Ready to Install the Program” window is displayed. To configure the Windows host as an administrative server. the InstallShield Completed screen is displayed.” Again. selecting this option removes the X from the Administrative Host icon and installs the administrative server software. 10.

. Click Next to continue. 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: On the Windows operating system.Automatic: The Oracle Secure Backup service starts automatically when you reboot your host. the only daemon that runs as a Windows service is the Oracle Secure Backup service (observiced). 12. Service Startup Dialogs The Service Startup dialog box is displayed. . Oracle.Disabled: The Oracle Secure Backup service is disabled. All rights reserved.Manual: The Oracle Secure Backup service must be started manually by a user who is a member of the Administrators group. 13. Select a mode in which to start the Oracle Secure Backup service.Service Startup Dialogs Continued: Copyright © 2006.8 . Your choices are: .

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 plan to run the Oracle Secure Backup service daemon (and associated subordinate daemons) with full privileges.9 .Service Login Dialog Box Continued: Copyright © 2006. 15. 14. All rights reserved. The required privileges are listed in the Oracle Secure Backup Service Logon dialog box. Select one of the following options: . click “This Account” and enter the Windows user account name and password. click System Account. If you choose this option. ensure that the account you select has enough backup and restore privileges. Oracle. . Click Finish to complete the installation. Repeat this installation process for each Windows host in your administrative domain. 16. Service Login Dialog Box The Service Login dialog box appears. 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 configuration file is called obconfig. 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. The illustration in the slide shows the installed directories that are common to an administrative server on any operating system. and it is called obconfig in the /etc directory on UNIX and Linux systems. Oracle.10 . 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. These directories contain the following types of files: • admin: Administrative and configuration data for the administrative domain. each host on which Oracle Secure Backup is installed contains a configuration file. although the contents of the directory vary depending on the roles you assigned to the host. an administrative server configured on a Linux host will have additional directories created. All rights reserved. However.txt in the db subdirectory where you install Oracle Secure Backup on Windows.

drv.* directory.<operating_system>/: Executables for operating_system.wrapper script for each Oracle Secure Backup utility. based on the computer architecture of the host executing the command.lib.bin. This script is an architecture-specific executable selection tool for Oracle Secure Backup.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 • . 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: • . Symbolic links and the architecture-independent .solaris.<operating_system>/: Maintenance tools • /usr/etc/ob/.bin.lib. On a Windows host. the directory for Sun Solaris is . the directory for Sun Solaris is .* or . where operating_system is a derivative of the operating system name. 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 (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. where operating_system is a derivative of the operating system name.wrapper shell program enable hosts to contain executables for multiple computer architectures.<operating_system>/: Shared library for the SBT interface for operating_system. For example.<operating_system>/: Device drivers for operating_system • etc/: Links that point to the <OSB_root>/.solaris.etc.<operating_system>/: Daemons and utility programs for operating_ system • install/: Installation scripts • lib/: Link to the architecture-independent shared library for the SBT interface • . • .11 .wrapper: Shell program that selects an executable from a . For example.etc. • 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.bin. • .

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 .etc. Oracle.drv.drv.<operating_system>/ . The bin and device subdirectories are created on every machine.12 . Oracle Secure Backup Installed Files (continued) The slide illustrates the directories created for a media server or client.Oracle Secure Backup Installed Files <OSB_Home> directory /usr/local/oracle/backup . the following files and directories are installed in addition to the bin and device subdirectories: • Media server: .bin.<OS> help bin device Media server <OSB_Home> directory /usr/local/oracle/backup help bin Client device Copyright © 2006.<operating_system>/ etc/ .hostid /usr/etc/ob/xcr/ /usr/tmp/ . The other directories shown in the slide are created for machines that use the Windows operating system. For a UNIX or Linux host.<operating_system>/ man/ /usr/etc/ob/. All rights reserved. regardless of the operating system used.

<operating_system>/ etc/ .etc.Oracle Secure Backup Installed Files (continued) • Client: .bin.13 .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 .hostid /usr/etc/ob/xcr/ /usr/tmp/ .<operating_system>/ man/ /usr/etc/ob/.

All rights reserved.txt in the db subdirectory where you install Oracle Secure Backup on Windows.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. In addition to containing the Oracle Secure Backup directory. an administrative server configured on a Linux host will have additional directories created. The configuration file is called obconfig.14 . Oracle. and it is called obconfig in the /etc directory on UNIX and Linux systems. each host on which Oracle Secure Backup is installed contains a configuration file. although the contents of the directory vary depending on the roles you assigned to the host. The illustration in the slide shows the installed directories that are common to an administrative server on any operating system. 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 . Installed Files for Host Role: Administrative Server The Oracle Secure Backup home directory is created on every host where you install Oracle Secure Backup. These directories contain the following types of files: • admin: Administrative and configuration data for the administrative domain. However.

bin.etc. On a Windows host. This script is an architecture-specific executable selection tool for Oracle Secure Backup.bin.<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.<operating_system>/: Device drivers for operating_system • etc/: Links that point to the <OSB_root>/.bin.etc. Symbolic links and the architecture-independent .* or . • . where operating_system is a derivative of the operating system name.<operating_system>/: Executables for operating_system. where operating_system is a derivative of the operating system name.wrapper: Shell program that selects an executable from a .15 . the directory for Sun Solaris is .drv.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.wrapper shell program enable hosts to contain executables for multiple computer architectures.<operating_system>/: Maintenance tools • /usr/etc/ob/.lib. For example. the directory for Sun Solaris is .lib.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 • . 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 . • .solaris.solaris.* directory. • 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. 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: • .<operating_system>/: Shared library for the SBT interface for operating_system. For example.wrapper script for each Oracle Secure Backup utility.

drv.<OS> help bin device Copyright © 2006. For a UNIX or Linux host.<operating_system>/ . the following files and directories are installed in addition to the bin and device subdirectories: • Media server: .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 .hostid /usr/etc/ob/xcr/ /usr/tmp/ . Installed Files for Host Role: Media Server The slide illustrates the directories created for a media server or client. Oracle.etc.<operating_system>/ etc/ .Installed Files for Host Role: Media Server <OSB_Home> directory /usr/local/oracle/backup . The bin and device subdirectories are created on every machine. regardless of the operating system used. The other directories shown in the slide are created for machines that use the Windows operating system.drv.16 .bin. All rights reserved.<operating_system>/ man/ /usr/etc/ob/.

Installed Files for Host Role: Client <OSB_Home> directory /usr/local/oracle/backup help bin device Copyright © 2006. All rights reserved.<operating_system>/ etc/ . regardless of the operating system used. Installed Files for Host Role: Client The slide illustrates the directories created for a media server or client.17 .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 . The other directories shown in the slide are created for machines that use the Windows operating system.etc.bin. The bin and device subdirectories are created on every machine.hostid /usr/etc/ob/xcr/ /usr/tmp/ . • Client: . Oracle.<operating_system>/ man/ /usr/etc/ob/.

Specifying Installation Parameters Oracle Secure Backup provides an obparameters file to help users customize their installations. 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. The obparameters file is located in the install subdirectory of your Oracle Secure Backup home 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 C .18 .Specifying Installation Parameters # Once you've customized this obparameters file. For a Linux installation. Oracle. 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. create pre-authorized oracle user: yes Copyright © 2006. 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. All rights reserved. AIX. you can set directories for Solaris. The default value is the <OSB_Home> directory. HP-UX. and Solaris64. Linux. change the # following line to 'yes' to make installob less chatty. Currently.

By default. The default value is /usr/etc/ob.0 root.lib.0 root. which eliminates temp directories mounted as SunOS “tmpfs” file systems. The default value is yes. A list of the files and directories. • <OS type> links: Indicates whether or not Oracle Secure Backup should create symbolic links. then the installation software creates a libobk. or in /usr/etc instead of /etc.*/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.linux32. Oracle Secure Backup by default creates symbolic links so that users of Oracle Secure Backup do not need to change their search paths./admin . and the name of the directory in which to create the “lib” link (for library files).0 root. it cannot be shared among multiple machines via NFS (or any other remote file system). The link text points to the actual libobk. are listed.0 root.so link in this directory.0 root.bin. You can choose not to create these links or to modify the location of the created links.Specifying Installation Parameters (continued) • <OS type> db dir: Is used to alter the directory in which Oracle Secure Backup retains host-specific information.bin. Three link names must be specified: the name of the directory in which to create the “bin” links. You can select a temp directory on a per-OS basis by modifying the appropriate line. for example). which is a subdirectory of your <OSB_Home> directory.19 . • <OS type> temp dir: Is used to alter the location of the temp area./samples/*././admin/config/* . the name of the directory in which to create the “etc” link (for daemons)./admin/* .so file that resides in the operating system–specific lib directory (. Here is a partial listing: root. Oracle Secure Backup uses the /usr/tmp directory on each host for the storage of transient files during installation. This directory must be private to each machine. on some systems./. For example. along with the default permissions. it may be more appropriate to place links in /bin instead of /usr/bin.0 755 700 700 700 755 4755 .sh . • 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: If the obparameters file specifies a lib directory for the operating system type of the current installation.*/* . 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. Oracle Secure Backup requires that the temp directory be able to contain lockable files. You can specify the behavior for each type of supporting operating system.

and you now want to install Oracle Secure Backup on a client named “client_z.20 .. no choice is provided regarding the new machine’s role. The work area on client_z to be used for temporary install files is /tmp.. Oracle Secure Backup installed successfully onto client_z Copyright © 2006. Thus. This is because the installob script determined that the target machine could not be configured as an administrative or media server. a client installation is performed automatically.done. you choose yes. Client Installation: Example Assume in the example shown in the slide that you have just installed Oracle Secure Backup on the administrative server.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 .. I'm ready to install Oracle Secure Backup on client_z as a client. All rights reserved.. the complete output is not shown in the slide.. For formatting reasons. You need to specify the name of the machine and answer some basic questions...” 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. Making sure target file system has enough space. Note: In this particular example.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. Oracle. OK to proceed [yes]? yes Installing Oracle Secure Backup onto client_z (HP-UX version 10.. as shown. 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/obt0. on a Linux platform. you need to obtain some physical SCSI information about the device. Note: The procedure for configuring tape libraries or Fibre Channel devices is the same as the process for configuring SCSI tape drives. Oracle. In addition to obtaining SCSI device information. Note: For formatting reasons. For 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. Before you can configure the tape drive. specify the host name of the machine that you want to add as a media server. 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. q to quit) [c]? b Oracle Secure Backup's Web Server Interface software has been loaded. Media Server Installation: Example This example demonstrates a media server installation. 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.21 . 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. 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. it is assumed that the media server has only one SCSI tape drive attached. the complete output is not shown in the slide. First. you can use the cat /proc/scsi/scsi command to obtain the necessary information.(c) a client Which would you like (one of a b c. you specify that you want this new machine to be a media server. Then. (b) a media server or. All rights reserved. and so on.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. In the example.

Oracle.1. To start the obtool utility. Verifying Your Installation In the slide are some examples of how you can verify your installation.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 . All rights reserved. execute the following: $ obtool Oracle Secure Backup 10.22 .

To identify processes for Oracle Secure Backup.Uninstalling Oracle Secure Backup • Have all users log out of Oracle Secure Backup applications. you are given the option of retaining the administrative directory and its contents. the uninstallob script removes the Oracle Secure Backup home directory when the script completes. Uninstalling Oracle Secure Backup You can uninstall Oracle Secure Backup from a client or the administrative server. Oracle. All rights reserved. If you are not logged in as root when you uninstall the software. • Use the uninstallob script. • Choose whether you want to save or remove the: – Oracle Secure Backup directory – Administrative directory 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 . 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. For this reason. you may not have the privileges needed to delete files and shut down the Oracle Secure Backup daemons. If you uninstall Oracle Secure Backup from an administrative server.23 . – You must be logged in as the root user. you should call the uninstallob script from the parent directory of the Oracle Secure Backup home directory. You must be logged in as the root user on UNIX or Linux systems to uninstall Oracle Secure Backup completely. If you uninstall Oracle Secure Backup from the local machine. – Call script from the parent directory of the Oracle Secure Backup home directory. 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. This enables you to safely uninstall and reinstall the product without deleting your administrative server data. • Close all sessions of Web tool.

then run the uninstallob script again until you see the following message: Oracle Secure Backup has been successfully removed from <host>.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).24 . correct the problem causing the error if possible.

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 .25 .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. All rights reserved. Oracle.

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 .

The administrative server runs the scheduling daemon. 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. a Windows device name. one for each host that can directly access it.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. Defines the way in which Oracle Secure Backup authenticates itself to the NDMP server. you should use the negotiated default setting. A device must have at least one attachment. A host where you install Oracle Secure Backup. Advanced Intelligent Tape. or an NAS device name. There must be one and only one administrative server for each administrative domain at your site. application programming interface An attachment describes a data path between a host and a storage device. an attachment comprises the identity of a host plus a UNIX device special file name. This host stores configuration information and the catalog files for client hosts. and often has multiple attachments. One administrative server can service all clients on your network. which starts and monitors backups within the administrative domain. Most often. Typically. 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 backup operation that is scheduled to run at a specific time. and corresponds to its creation time plus its expire duration. A binary file written in a proprietary format by RMAN for storing backup data. Each backup section is uniquely identified by a backup ID. A portion of a backup image file that exists on a single tape. It lists host names and directories that you want to back up. An integer identifier that uniquely identifies a backup image section The product of an Oracle Secure Backup backup operation. O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-3 . The level that defines the comprehensiveness of the backup operation. The time the job is scheduled to run can be either immediately or some time in the future. 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. All addressable data storage that is not currently in the computer’s main storage or memory. One backup image can contain multiple sections. a level 2 backup operation backs up all data changed since the previous level 1 or level 2 backup. The first block of a backup image. A text file you create that is used with command-line interface backup operations. 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. A backup image can contain one or more media families and volume sets.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. It contains the backup image’s file and section numbers and owner. This expiration date is determined when the backup piece is created. One or more backup pieces make up a backup set. For example.

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. See Database Backup Storage Selector. you can try a blocking factor larger than obtar’s default. See backup description file. A collection of Oracle Database data backed up by RMAN. See backup image section. Also referred to as archive sections. 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. Oracle Secure Backup fails with an error. 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 . If you pick a value larger than is supported by the operating system of the server. By default. Some tape libraries have an automated means to read barcodes. 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. Specifies how many 512-byte blocks to include in each block of data written to each tape drive. Oracle Secure Backup writes 64 K blocks to tape (blocking factor 128). or a combination of letters and numbers as in ASCII code. processor instructions. numbers. which Oracle Secure Backup supports.

including administrative servers and media servers.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. Some daemons run continually (for example. observided) and others are started and stopped as required (for example. Direct Attached Storage. In libraries that contain multiple drives. command descriptor block See Common Internet File System. Secondary storage device within a tape library usually referred to by a number. and the Oracle Secure Backup software. which manages the underlying media. which accesses the database. They act as a glue layer between RMAN. A file that contains the names of the hosts and paths that you want Oracle Secure Backup to back up. a new file access protocol designed to take advantage of standard memory-to-memory interconnect technologies See Direct Access Recovery. A process on UNIX and Linux that runs in the background and performs an OSB task for an application. starting with 1. Direct Access File System. obrobtd). those parts of a wide-area network in which the mass storage devices are connected locally Digital audio tape. each DTE is sequentially numbered. used by Windows clients to access data on this Network Appliance filer. also referred to as a host CIFS is a protocol. This is equivalent to a service on a Windows host. 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. O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-5 . 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.

disk drive. Located on the same host or server. 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. must have a driver program. O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-6 . 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. 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. 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 a printer. every host name is composed of a host name and domain name. 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). which is a symbolic name used to reference a particular system. The DNS host name is the host name of the computer (does not include the domain). or keyboard. also referred to as local Digital Linear Tape technology. In DNS. Every device. whether it is connected to a network or not. DAR relies on file history information generated at the NAS device during a backup operation. Most devices have their drivers installed when the device or product that uses it is installed.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.

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. Within the Internet. 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. (an external enclosure that houses a printed circuit board (PCB) and multiple drive receptacles) and a Fibre Channel host bus adapter (HBA). A high performance interface designed to bring speed and flexibility to multiple diskdrive storage systems. A Fibre Channel configuration consists of a backplane. FDDI networks are token-passing networks. FDDI networks are typically used as backbones for wide-area networks. This label contains the volume ID of the next volume in the set A unit of storage equal to 1. The backplane allows O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-7 .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). domains are defined by the IP address.024 x 1. All devices sharing a common part of the IP address are said to be in the same domain. 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.024 x 1.

and controls the input and output of data on all drives within the system. data storage systems. video. 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. Files are backed up whether or not they have changed since the last backup. 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 . mainframes. GigaBit Interface Converter. servers. allows concurrent communications among workstations. abbreviated as G or GB. IP and a wide range of other protocols to meet the needs of the data center. the set of rules for exchanging files (text. 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. equal to 1.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). 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. graphic images. supplies power to the drives. a one and two gigabit interconnect technology. You can have an administrative server. or a client. sound. Fibre Channel. and other peripherals using SCSI. 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.

Just a Bunch of Disks. Used in tape libraries to move volumes into and out of the library without opening the door. Some libraries do have a media access port. The combination of the data file and its associated index file is called a “database. Not all libraries have a discrete import-export element.” an acronym for Small Computer System Interface protocol over IP network instead of a direct SCSI compatible cable. HTTPS is HTTP using a Secure Socket Layer (SSL). It is sometimes called a mail slot. iSCSI enables data blocks to be read from or sent at high speed to a storage device such as a disk or tape drive.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. Pronounced “eye-scuzzy. While storing data sequentially in a data file. but some require manual action by the operator to open the door and remove a tape from a slot in the library. and is physically present only on certain libraries. ISAM provides direct access to specific records through an index. 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 .” ISAM is implemented as a C function library. 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. A process that captures data that was changed since the level N backup operation.

024 x 1. A collection of tapes or volumes A classification of backup media that share the same volume identification sequence. equal to 1.024 bytes Data that Oracle Secure Backup uses to identify a volume or a backup image local area network See tape library.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. and Seagate. an “open format” technology. write/append. equal to 1. Valid values are read-only. LUNs make it possible for a number of devices to share a single SCSI ID. IBM. developed jointly by HP. and not-mounted. O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-10 . which means that users will have multiple sources of product and media See logical unit number. and the amount of time the tape can remain in storage before it can be overwritten. abbreviated as K or KB.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.048. overwrite. Linear Tape-Open technology. A media family can contain one or more volume sets and volumes.024 or 1. A library with multiple media servers connected to it See Network Attached Storage. A machine with one or more attached tape drives or tape libraries. Backup data is sent to and restored from volumes loaded in these devices. Each media family identifies the amount of time that data can be written to a tape. Moves a volume from a storage element to another element within a tape library A unit of storage abbreviated as M or MB. 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.

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. The name of a backup method supported by the NDMP Data Service running on a host. 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 . and finite state automations that implement them. A computer on your network that hosts file systems. Backup types are defined by each Data Service provider. for example) on the appliance. One of three types of NDMP services. open systems. The protocol provides a uniform means to back up and restore data within and between diverse kinds of storage servers. The server exposes the file systems to its clients through one or more standard protocols. and closed operating system appliances.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. most commonly NFS and CIFS. NFS provides access to shared files through an interface called the Virtual File System (VFS) that runs on top of TCP/IP. 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. NDMP defines a set of related service models. The NAS appliance communicates with the backup software using NDMP. network messages. 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. Wintel platforms. Layered atop TCP and the Berkeley socket model.

This is useful when you want to create a backup image for offsite storage without disturbing your schedule of incremental backups. With NFS. 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 . See NT File System. swaps tapes. and as servers while providing remote users access to local shared files. external names are user assigned. A unit of information equal to 4 bits (or half a byte) One of the file systems for the Windows operating system. Internal names are named with a UUID. such as transaction logs to help restore from disk failures. See Network File System. The NFS standards are publicly available and widely used. A data storage type used to store Oracle Secure Backup catalog data. 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. and checks for any errors A request from Oracle Secure Backup that asks for the operator to perform a task. There are user. manages schedules. class. NTFS has features to improve reliability. A person who runs backup operations.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 policy objects that hold attributes and names. computers connected to a network operate as clients while accessing remote files.

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

This list is defined in the obconfig file on the administrative server. This allows for the use of Oracle Secure Backup without going through the normal Oracle Secure Backup login requirements. 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). Connection to the SCSI bus is achieved through a host adapter and a peripheral controller. interface between RMAN and storage media. System backup to tape. See expiration policy. The acronym has evolved to mean Redundant Array of Independent Disks emphasizing the technique’s potential data availability advantages over conventional disk storage systems. Recovery Manager Used to determine the Oracle Secure Backup user under which a specific RMAN operation.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. Linux has a four- O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-14 . such as backup or restore. an acronym for Redundant Array of Inexpensive Disks to reflect the data accessibility and cost advantages that properly implemented arrays could provide. a Small Form Factor ½″ tape cartridge See Storage Area Network. 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. is performed. A user-defined time period for executing backup operations Pronounced “scuzzy. RMAN communicates with Oracle Secure Backup through the SBT interface.” an acronym for Small Computer System Interface.

Each SCSI device can contain multiple Logical Unit Numbers (LUNs). and 32-bit up to 32 IDs. The initiator talks to targets. These logical units are numbered from 0 through 7. which are commonly known as SCSI devices. SCSI target IDs range from 0 to 7 for 8-bit. In the SCSI-2 specification. 16-bit up to sixteen IDs. There must be a minimum of one target and one initiator on the bus. 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 . which also includes the use of a digital certificate. 0 to 15 for 16-bit and 0 to 31 for 32 bit systems.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. named after its inventors: Rivest. The unique address of a SCSI device. Super Digital Linear Tape technology. 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. SSL uses the public-and-private key encryption system from RSA (a public key algorithm. Shamir. 8-bit SCSI can have up to eight IDs. and Adleman). there may be up to eight logical units for each SCSI device address. The value used to identify a logical unit of a SCSI device. In SCSI parlance. the host bus adapter is called the “initiator” and takes up one SCSI target ID number (typically 7).

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. 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 .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. Tapes are also referred to as removable media. and for its portability. It ensures that tape resources are available and reserves them for the backup job. The observiced daemon. or machines that contains disks for storing data. 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). commonly used for backup and archiving. Popular for its ability to store large amounts of data. a non-profit trade organization. Some services run continually and others are started and stopped as required. A data storage medium consisting of a magnetizable oxide coating on a thin plastic strip. 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 high-speed subnetwork of shared storage devices. A tape library with only one media server directly attached to it Storage Networking Industry Association. or secondary storage.

The date and time on which a volume expires.024 gigabytes Transmission Control Protocol/Internet Protocol. It is also referred to as a robotic tape device. abbreviated as T or TB. A unit of storage. A volume can contain one or more backup images. Tape libraries also offer key features such as barcode readers to scan labels on cartridges. 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. It is the suite of protocols used to connect hosts for transmitting data over networks. O I A s U O e ly n Oracle Database 10g: Backup and Recovery D-17 . Oracle Secure Backup computes this by adding the write window duration. or the address of a resource available on the Internet Universal Unique Identifier. autochanger. A library accepts SCSI commands to move media between storage locations and drives. Tape libraries are designed for continuous. and an I/O Port for importing and exporting individual tapes under application control. then adding the volume retention period. A single unit of media such as an 8-mm tape.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. to the time at which it wrote backup image file number 1 to a volume. unattended operation and allow simultaneous reading and writing to multiple drives. A user-defined period in time or sets of times that causes a scheduled backup to run The Uniform Resource Locator. if any. or medium changer. equal to 1.

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

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

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