You are on page 1of 3

SCENARIO LOSS OF ALL CONTROLFILES (NO CATALOG)

SQL> insert into myobjects select * from myobjects;


919664 rows created.
SQL> commit;
Commit complete.
SQL> select cont!*" from myobjects;
C#$%&!*"
''''''''''
1839328 >>>> need to c(ec) t(is record cont after reco*ery
SQL> arc(i*e lo+ list
,atabase lo+ mode -rc(i*e .ode
-tomatic arc(i*al /nabled
-rc(i*e destination $S/0,102/C#3/24056L/0,/S&
#ldest online lo+ se7ence 8
%e9t lo+ se7ence to arc(i*e :
Crrent lo+ se7ence :
%ote ' crrent lo+ se7ence is : ' not arc(i*ed bt contains t(e last committed
c(an+es t(at we made
%ote ' arc(i*e lo+s will not be fond in ;-2C3 area< bt in t(e flas(bac)
location
Simulate a failure
SQL> select name from *;controlfile;
%-./
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
=>1=#2-CL/=testdb=control>1.ctl
=>1=#2-CL/=testdb=control>?.ctl
=>1=#2-CL/=testdb=control>@.ctl
SQL> Arm =>1=#2-CL/=testdb=*.ctl
SQL> alter tablespace sers online;
alter tablespace sers online
*
/22#2 at line 1B
#2-'>>6>@B #2-CL/ ser*er session terminated by fatal error
SQL> s(tdown abort
#2-CL/ instance s(t down.
SQL> startp nomont;
#2-CL/ instance started.
&otal System Clobal -rea D9@@D6:8? bytes
5i9ed SiEe ?>:6D16 bytes
3ariable SiEe 4@?>1:?64 bytes
,atabase 1ffers 48?9D4D@? bytes
2edo 1ffers 6@>:D4> bytes
Sine !e are n"t u#in$ a R%AN atal"$ !e nee& t" #et t'e ()I(
2.-%> set dbidF?418849446;
e9ectin+ commandB S/& ,16,
Re#t"re t'e "ntr"lfile
2.-%> rn G
?> restore controlfile from atobac)p;
@> H
Startin+ restore at 1D'S/I'>:
sin+ tar+et database control file instead of reco*ery catalo+
allocated c(annelB #2-0,6SJ01
c(annel #2-0,6SJ01B sidF186 de*typeF,6SJ
reco*ery area destinationB =>1=#2-CL/=flas(0reco*ery0area
database name !or database ni7e name" sed for searc(B &/S&,1
c(annel #2-0,6SJ01B atobac)p fond in t(e reco*ery area
c(annel #2-0,6SJ01B atobac)p fondB
=>1=#2-CL/=flas(0reco*ery0area=&/S&,1=atobac)p=?>>:0>901D=o10mf0s06@@6>1>940@
+ynd:4+0.b)p
c(annel #2-0,6SJ01B control file restore from atobac)p complete
otpt filenameF=>1=#2-CL/=testdb=control>1.ctl
otpt filenameF=>1=#2-CL/=testdb=control>?.ctl
otpt filenameF=>1=#2-CL/=testdb=control>@.ctl
5inis(ed restore at 1D'S/I'>:
%"unt an& re"*er t'e &ata+a#e
2.-%> alter database mont;
database monted
released c(annelB #2-0,6SJ01
2.-%> reco*er database;
Startin+ reco*er at 1D'S/I'>:
Startin+ implicit crossc(ec) bac)p at 1D'S/I'>:
allocated c(annelB #2-0,6SJ01
c(annel #2-0,6SJ01B sidF186 de*typeF,6SJ
Crossc(ec)ed 1 objects
5inis(ed implicit crossc(ec) bac)p at 1D'S/I'>:
Startin+ implicit crossc(ec) copy at 1D'S/I'>:
sin+ c(annel #2-0,6SJ01
5inis(ed implicit crossc(ec) copy at 1D'S/I'>:
searc(in+ for all files in t(e reco*ery area
catalo+in+ files...
catalo+in+ done
List of Catalo+ed 5iles
FFFFFFFFFFFFFFFFFFFFFFF
5ile %ameB
=>1=#2-CL/=flas(0reco*ery0area=&/S&,1=atobac)p=?>>:0>901D=o10mf0s06@@6>1>940@
+ynd:4+0.b)p
sin+ c(annel #2-0,6SJ01
allocated c(annelB #2-0S1&0&-I/01
c(annel #2-0S1&0&-I/01B sidF188 de*typeFS1&0&-I/
c(annel #2-0S1&0&-I/01B ,ata Irotection for #racleB *ersion 8.?.4.>
datafile 4 not processed becase file is offline
startin+ media reco*ery
arc(i*e lo+ t(read 1 se7ence 6 is already on dis) as file
=>1=#2-CL/=flas(0reco*ery0area=&/S&,1=arc(i*elo+=?>>:0>901D=o10mf01060@+yn:*n)0
.arc
arc(i*e lo+ t(read 1 se7ence : is already on dis) as file
=>1=#2-CL/=testdb=redo>@.lo+
arc(i*e lo+
filenameF=>1=#2-CL/=flas(0reco*ery0area=&/S&,1=arc(i*elo+=?>>:0>901D=o10mf01060
@+yn:*n)0.arc t(readF1 se7enceF6
ar'i*e l"$ filename,-u.1-ORACLE-te#t&+-re&".3/l"$ t'rea&,1 #e0uene,1 2222
urrent re&" l"$ !it' "mmitte& +ut unar'i*e& 'an$e# a33lie&
media reco*ery complete< elapsed timeB >>B>>B>9
5inis(ed reco*er at 1D'S/I'>:
SQL> alter database open resetlo+s;
,atabase altered.
conn scott=ti+er
Connected.
SQL> select cont!*" from myobjects;
C#$%&!*"
''''''''''
1839328

You might also like