7 Copyright © 2004, Oracle. All rights reserved. Recovering from Noncritical Losses.

Slides:



Advertisements
Similar presentations
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
Advertisements

5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
17 Copyright © 2005, Oracle. All rights reserved. Performing Flashback.
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
Basic Storage Concepts and Settings
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
Database Backup and Recovery
RMAN Restore and Recovery
Backup and Recovery (2) Oracle 10g CAP364 1 Hebah ElGibreen.
Configuring Recovery Manager
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
7 Maintaining Redo Log Files. 7-2 Objectives Explaining the use of online redo log files Obtaining log and archive information Controlling log switches.
Using RMAN to Perform Recovery
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
20 Copyright © 2004, Oracle. All rights reserved. Database Recovery.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
CHAPTER 2 Implementing a Database. Introduction to Creating Databases After you’ve installed the Oracle software, the next logical step is to create a.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
9 Copyright © 2005, Oracle. All rights reserved. Administering User Security.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
4 Copyright © 2006, Oracle. All rights reserved. Recovering from Noncritical Losses.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
7 Copyright © 2004, Oracle. All rights reserved. Administering Users.
16 Copyright © Oracle Corporation, All rights reserved. Managing Privileges.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
16 Copyright © 2004, Oracle. All rights reserved. Undo Management.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
17 Copyright © Oracle Corporation, All rights reserved. Managing Roles.
6 Copyright © 2006, Oracle. All rights reserved. Flashback.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
IT Database Administration SECTION 01. Starting Up and Shutting Down the Database Database Administration Facilities – A number of tools are available.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
Oracle 10g Database Administrator: Implementation and Administration Chapter 3 Creating an Oracle Instance.
Database Storage Structures
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © 2007, Oracle. All rights reserved. Managing Database Storage Structures.
Week 2 Lecture 1 Creating an Oracle Instance. Learning Objectives  Learn the steps for creating a database  Understand the prerequisites for creating.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
G Copyright © 2006, Oracle. All rights reserved. Miscellaneous Topics.
3 Copyright © 2005, Oracle. All rights reserved. Creating an Oracle Database.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
16 Copyright © 2005, Oracle. All rights reserved. Performing Database Recovery.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
1 Copyright © 2006, Oracle. All rights reserved. Introduction.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
8 Copyright © Oracle Corporation, All rights reserved. Managing Tablespaces and Data files.
23 Copyright © 2004, Oracle. All rights reserved. Preferring the Past: Flashback.
Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace.
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
9 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Recovering from Noncritical Losses
Performing Database Recovery
ISYS366, Oracle Disk Internals
Presentation transcript:

7 Copyright © 2004, Oracle. All rights reserved. Recovering from Noncritical Losses

7-2 Copyright © 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to: Recover temporary tablespaces Recover a redo log group member Recover index tablespaces Recover read-only tablespaces Re-create the password file

7-3 Copyright © 2004, Oracle. All rights reserved. Recovery of Noncritical Files Create a new file Rebuild the file Recover the lost or damaged files

7-4 Copyright © 2004, Oracle. All rights reserved. Creating New Temporary Tablespace SQL> CREATE TEMPORARY TABLESPACE temp2 2> TEMPFILE '/oradata/temp2_01.tmp' 3> SIZE 25M; Password File Parameter File SYSTEM SYSAUX UNDO USERS INDEX Redo log file 1B Redo log file 1A Redo log file 2B Redo log file 2A Control files TEMP

7-5 Copyright © 2004, Oracle. All rights reserved. Re-creating Redo Log Files SQL> ALTER DATABASE DROP LOGFILE MEMBER 2> '/oradata/redo01b.log'; SQL> !rm /oradata/redo01b.log SQL> ALTER DATABASE ADD LOGFILE MEMBER 2> '/oradata/redo01b.log' 3> TO GROUP 1; Password File Parameter File SYSTEM SYSAUX UNDO USERS INDEX Redo log file 1A Redo log file 2B Redo log file 2A Control files TEMP Redo log file 1B

7-6 Copyright © 2004, Oracle. All rights reserved.

7-7 Copyright © 2004, Oracle. All rights reserved. Re-creating Redo Log Files

7-8 Copyright © 2004, Oracle. All rights reserved. Recovering an Index Tablespace Password File Parameter File SYSTEM SYSAUX UNDO USERS Redo log file 1A Redo log file 2B Redo log file 2A Control files TEMP Redo log file 1B INDEX

7-9 Copyright © 2004, Oracle. All rights reserved. Re-creating Indexes Use options to reduce the time it takes to create the index: PARALLEL NOLOGGING SQL> CREATE INDEX rname_idx 2 ON hr.regions (region_name) 3 PARALLEL 4;

7-10 Copyright © 2004, Oracle. All rights reserved. Read-only Tablespace Recovery Backup 2 Recovery Case 1 Case 2 Case 3 Backup 1 Read-only Read/write Read-only Read/write

7-11 Copyright © 2004, Oracle. All rights reserved. Read-only Tablespace Recovery Issues Special considerations must be taken for read-only tablespaces when: Re-creating a control file Renaming data files Using a backup control file

7-12 Copyright © 2004, Oracle. All rights reserved. Read-Only Tablespace Recovery Issues Special considerations must be taken for read-only tablespaces when: Re-creating a control file Renaming data files Using a backup control file

7-13 Copyright © 2004, Oracle. All rights reserved. Remote database administration Local database administration Yes No Do you have a secure connection? Use OS authentication Use a password file Authentication Methods for Database Administrators Do you want to use OS authentication?

7-14 Copyright © 2004, Oracle. All rights reserved. Loss of Password Authentication File 1.Log in to the database using OS authentication. 2.Set the REMOTE_LOGIN_PASSWORDFILE parameter to NONE and restart the database. 3.Re-create the password file using orapwd. 4.Set REMOTE_LOGIN_PASSWORDFILE to EXCLUSIVE. 5.Add users to the password file and assign appropriate privileges to each user. 6.Restart the instance. $ orapwd file=$ORACLE_HOME/dbs/orapwORCL password=admin entries=5

7-15 Copyright © 2004, Oracle. All rights reserved.

7-16 Copyright © 2004, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Recover temporary tablespaces Recover a redo log group member Recover index tablespaces Recover read-only tablespaces Re-create the password file

7-17 Copyright © 2004, Oracle. All rights reserved. Practice 7 Overview: Re-creating a Temporary Tablespace This practice covers the following topics: Starting the database with a missing temp file Creating a new temporary tablespace Altering the default temporary tablespace for a database

7-18 Copyright © 2004, Oracle. All rights reserved. Practice 7: Re-creating the Temp Tablespace