Professional Documents
Culture Documents
Recovering From Noncritical Losses
Recovering From Noncritical Losses
Objectives
After completing this lesson, you should be able to: Recover temporary tablespaces Recover a redo log group member Recover from a lost index Re-create the pass ord file
4-2
4-3
'ou fix the problem by ta(ing one of these actions: !reate a ne file& Rebuild the file& Recover the lost or damaged file&
4-4
Losing a TEMPFILE
)*L statements that re+uire TEMP space to execute fail if one of the tempfiles is missing&
SQL> select * from big_table order by 1,2, ,!,",#,$,%,&,1',11,12,1 ( select * from big_table order by 1,2, ,!,",#,$,%,&,1',11,12,1 * E))*) at li+e 1, *)-.'1"#", error i+ ide+tifyi+g file /01'10a220oracle0oradata0orcl0tem2'13dbf/ *)-.2$' $, 1+able to obtai+ file stat1s Li+14 Error, 2, 5o s1c6 file or directory
4-5
)')-.$
#).R)
Redo log Redo log file 2A file 23 Redo log Redo log file 4A file 43 !ontrol files
)')A#/
1N0./
#N0O
-.$,
4-6
A redo log group has a status of one of the follo ing values at any given time: 78))E5T: -he L56R process is currently riting redo data to it& -7TI9E: 1t is no longer being ritten to, but it is still re+uired for instance recovery& I5-7TI9E: 1t is no longer being ritten to, and it is no longer re+uired for instance recovery&
4-
Errors i+ file 01'10a220oracle0admi+0orcl0bd1m20orcl_arc1_2"$ &3trc, *)-.'' 1 , o2e+ failed for members of log gro12 2 of t6read 1 *)-.'' 12, o+li+e log 2 t6read 1, /01'10a220oracle0oradata0orcl0redo'2b3log/ *)-.2$' $, 1+able to obtai+ file stat1s Li+14 Error, 2, 5o s1c6 file or directory
4-8
)')-.$
#).R)
)')A#/
1N0./
#N0O
-.$,
-LTE) :-T-;-SE :)*P L*<FILE MEM;E) /01'10a220oracle0oradata0orcl0redo'2b3log/( =rm 01'10a220oracle0oradata0orcl0redo'2b3log -LTE) :-T-;-SE -:: L*<FILE MEM;E) /01'10a220oracle0oradata0orcl0redo'2b3log/ T* <)*8P 2(
Copyright 2008, Oracle. All rights reserved.
4 - "0
4 - ""
4 - "2
Re-creating 1ndexes
#se options to reduce the time it ta(es to create the index: P-)-LLEL 5*L*<<I5<
SQL> 7)E-TE I5:E> r+ame_id4 2 *5 6r3regio+s ?regio+_+ame@ P-)-LLEL !(
4 - "3
4 - "4
'es
'es
#se O) authentication&
N o
No
4 - "5
;& )et )EM*TE_L*<I5_P-SSA*):FILE to E>7L8SI9E& <& Add users to the pass ord file and assign appropriate privileges to each user& =& Restart the instance&
4 - "6
4-"
)ummary
1n this lesson, you should have learned ho Recover temporary tablespaces Recover a redo log group member Recover from a lost index Re-create the pass ord file to:
4 - "8
,ractice Overvie : Recovering from Lost TEMPFILE and Redo Log "ile
-his practice covers the follo ing topics: )tarting the database ith a missing tempfile !reating a ne temp file Altering the default temporary tablespace for a database Recovering from a lost online redo log member
4 - "!
4 - 20