Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "7 Copyright © 2004, Oracle. All rights reserved. Recovering from Noncritical Losses."— Presentation transcript:

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

2 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

3 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

4 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

5 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

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

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

8 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

9 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;

10 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

11 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

12 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

13 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?

14 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

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

16 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

17 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

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


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

Similar presentations


Ads by Google