You are on page 1of 22

Oracle 9i Backup and Recovery

In case of a restore from hot backup, please ensure you have taken care of all temporary
files. It has been observed in the past that all data files were restored but temporary files
were ignored.
Scenario 1 -- loss of INA!I"# online $edo %og &roup
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
ORA/)).*.0 open -ailed -or members o- lo1 1roup * o- t2read *
ORA/)).*20 online lo1 * t2read *0 3C04ORACLASS4ORA+ATA45).4LOG)*A.R+O3
ORA/)).*20 online lo1 * t2read *0 3C04ORACLASS4ORA+ATA45)!4LOG)*,.R+O3
N'!#( Assumption is that there is least ) redo log group in order to do the following.
SQL> alter database drop lo1-ile 1roup *6
+atabase altered.
SQL> alter database open6
+atabase altered.
SQL> select 1roup78 t2read78bytes8 members -rom 9:lo16
GRO5;7 T<REA+7 ,=TES >E>,ERS
////////// ////////// ////////// //////////
2 * *)!%'6) 2
. * *)!%'6) 2
SQL> select member -rom 9:lo1-ile6
>E>,ER
///////////////////////////////////
C04ORACLASS4ORA+ATA45).4LOG)2A.R+O
C04ORACLASS4ORA+ATA45)!4LOG)2,.R+O
C04ORACLASS4ORA+ATA45).4LOG).A.R+O
C04ORACLASS4ORA+ATA45)!4LOG).,.R+O
SQL> alter database add lo1-ile 1roup *
2 ?3c04oraclass4oradata4u).4lo1)*a.rdo38 3c04oraclass4oradata4u)!4lo1)*b.rdo3@ si$e *)!%'6)6
+atabase altered.
*
Oracle 9i Backup and Recovery
2
Oracle 9i Backup and Recovery
Scenario * -- loss of +$$#N! online $edo %og &roup
If you created your logfile groups with duplicate online log files -- that is two or more
logfiles per group, then you can copy the good ,remaining- log file to the missing log file
and you will be able to open the db fine. !his is our standard.
heck from select . from v/logfile0
If you created only one log file per group then you have two choices. 1ou can open a !A$
with oracle support for help in forcing the database open when you have lost your active
log file. 'r, 2udging by the low se3uence numbers of your log files, you may be able to
recreate the database from scratch and reapply any transactions. !his is shown below(
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
ORA/)).*.0 open -ailed -or members o- lo1 1roup * o- t2read *
ORA/)).*20 online lo1 * t2read *0 3C04ORACLASS4ORA+ATA45).4LOG)*A.R+O3
SQL> alter database drop lo1-ile 1roup *6
alter database drop lo1-ile 1roup *
A
ERROR at line *0
ORA/)*62.0 lo1 * is current lo1 -or t2read * / cannot drop
ORA/)).*20 online lo1 * t2read *0 3C04ORACLASS4ORA+ATA45).4LOG)*A.R+O3
SQL> select 1roup78 status8 seBuence7 -rom 9:lo16
GRO5;7 STAT5S SEQ5ECCE7
////////// //////////////// /////////
* C5RRECT 6&
2 DCACTD(E 6
. DCACTD(E 6'
log group 41 is the current logfile.
SQL> s2utdoEn immediate6
+atabase dismounted.
ORACLE instance s2ut doEn.
$estore all 5atafile ,listed in "/5A!A6I%#-
SQL> startup
.
Oracle 9i Backup and Recovery
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
!
Oracle 9i Backup and Recovery
Scenario * -- loss of +$$#N! online $edo %og &roup ,continue-
SQL> reco9er automatic database until cancel6
ORA/))2'&0 c2an1e *&.'. 1enerated at **F*F2))2 *20.*0). needed -or t2read *
ORA/))2&0 su11estion 0 C04ORACLE4ORA&24R+,>S4ARC)))6&.))*
ORA/))2)0 c2an1e *&.'. -or t2read * is in seBuence 76&
ORA/))2'0 lo1 -ile 3C04ORACLE4ORA&24R+,>S4ARC)))6&.))*3 no lon1er needed -or
t2is reco9ery
ORA/)).)0 cannot open arc2i9ed lo1 3C04ORACLE4ORA&24R+,>S4ARC)))6&.))*3
ORA/2')!*0 unable to open -ile
OS+/)!))20 unable to open -ile
OFS/Error0 ?OS 2@ T2e system cannot -ind t2e -ile speci-ied.
Speci-y lo10 GHRET>Isu11ested J -ilename J A5TO J CACCELK
cancel
>edia reco9ery cancelled.
SQL> alter database open resetlo1s6
+atabase altered.
SQL> arc2i9e lo1 list
+atabase lo1 mode Arc2i9e >ode
Automatic arc2i9al Enabled
Arc2i9e destination C04oracle4ora&24R+,>S
Oldest online lo1 seBuence *
Ce#t lo1 seBuence to arc2i9e *
Current lo1 seBuence *
SQL> s2utdoEn immediate
+atabase closed.
+atabase dismounted.
ORACLE instance s2ut doEn.
5o a full database backup
%
Oracle 9i Backup and Recovery
Scenario ) -- loss of ontrol 6iles
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
ORA/))2)%0 error in identi-yin1 control-ile8 c2ecL alert lo1 -or more in-o
SQL> s2utdoEn
ORA/)*%)'0 database not mounted
ORACLE instance s2ut doEn.
At this point I refer to the backup done in the past of the controlfile done
via the following command(
SQL> alter database bacLup control-ile to trace6
+atabase altered.

6ind the file created in the directory listed below and edit the file removing
all the lines above the S!A$!+7 N'8'+N!, and also change the
4 to -- ,comments-. N'!#( there are two S!A$!+7 8'+N!9s in the file.
SQL> s2oE parameter user
CA>E T=;E (AL5E
///////////////////////// /////////// ///////////////////////////
userMdumpMdest strin1 c04oraclass4A+>DC45+5>;
SQL> Ncontrol-ile
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
Control -ile created.
ORA/))2.0 reco9ery session canceled due to errors
ORA/))26!0 no reco9ery reBuired
ALTER S=STE> ARC<D(E LOG ALL
A
ERROR at line *0
ORA/))2'*0 t2ere are no lo1s t2at need arc2i9in1
+atabase altered.
+atabase altered.
Tablespace altered.
Tablespace altered.
6
Oracle 9i Backup and Recovery
Scenario : ; %oss of 8edia
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
ORA/)**%'0 cannot identi-yFlocL data -ile % / see +,OR trace -ile
ORA/)***)0 data -ile %0 3C04ORACLASS4ORA+ATA45)24SA>;LE)*.+,"3
SQL> select -ile78 error -rom 9:reco9erM-ile6
"DLE7 ERROR
////////// /////////////////////////////////////////////////////////
2 "DLE COT "O5C+
% "DLE COT "O5C+
SQL> select -ile78name -rom 9:data-ile6
"DLE7 CA>E
////////// ////////////////////////////////////////
* C04ORACLASS4ORA+ATA45)*4S=STE>)*.+,"
2 C04ORACLASS4ORA+ATA45)245C+OT,S.+,"
. C04ORACLASS4ORA+ATA45).45SERS)*.+,"
! C04ORACLASS4ORA+ATA45).4DC+P)*.+,"
% C04ORACLASS4ORA+ATA45)24SA>;LE)*.+,"
6 C04ORACLASS4ORA+ATA45)*4Q5ER=+ATA)*.+,"
6 roEs selected.
%ooking at the 'S you find that the mount point has been lost and all of files on it.
!his one also has the +N5' tablespace, So a closed recovery is re3uired.
I restore all lost files.
NNNNN alter statementsQQQ
SQL> reco9er automatic database6
>edia reco9ery complete.
SQL> alter database open6
+atabase altered.
'
Oracle 9i Backup and Recovery
Scenario < -- loss of an 'nline +N5' Segment !ablespace 5atafile
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
ORA/)**%'0 cannot identi-yFlocL data -ile 2 / see +,OR trace -ile
ORA/)***)0 data -ile 20 3C04ORACLASS4ORA+ATA45)245C+OT,S.+,"3
A closed recover in my only option, so I restore the backup of the
+N5' segment tablespace file.
SQL> reco9er automatic database6
>edia reco9ery complete.
SQL> alter database open6
+atabase altered.

Oracle 9i Backup and Recovery


Scenario = -- loss of S1S!#8 !ablespace 5atafile
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
ORA/)**%'0 cannot identi-yFlocL data -ile * / see +,OR trace -ile
ORA/)***)0 data -ile *0 3C04ORACLASS4ORA+ATA45)*4S=STE>)*.+,"3
A closed recover in my only option, so I restore the backup of the
S1S!#8 tablespace file.
SQL> reco9er automatic database6
>edia reco9ery complete.
SQL> alter database open6
+atabase altered.
&
Oracle 9i Backup and Recovery
Scenario > -- %oss of a Non-System, Non-$ollback Segment 5atafile
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
ORA/)**%'0 cannot identi-yFlocL data -ile . / see +,OR trace -ile
ORA/)***)0 data -ile .0 3C04ORACLASS4ORA+ATA45).45SERS)*.+,"3
SQL> alter database data-ile . o--line6
+atabase altered.
SQL> alter database open6
+atabase altered.
At this point I restore the +S#$S?1.5@6 file from the backup.
SQL> reco9er automatic data-ile .6
>edia reco9ery complete.
SQL> alter database data-ile . online6
+atabase altered.
*)
Oracle 9i Backup and Recovery
Scenario A ; !ime @ased $ecovery
E#ample table created
*)0)*0*) SQL> create table sales as select A -rom s2.sales6
Table created.
*)0)20%) SQL> select count?A@ -rom sales6
CO5CT?A@
//////////////
*)*62'*
*.0)!0% SQL> drop table sales6
Table dropped.
!his assumes that you have discovered the problem and have restored all the datafiles.
SQL> startup mount
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
*.02)0.. SQL> reco9er automatic database until time 32))2/**/*0*.0).0))R
+atabase altered.
*.0*'02) SQL> select count?A@ -rom sales6
CO5CT?A@
//////////
*)*62'*
**
Oracle 9i Backup and Recovery
Scenario B -- 6ailure 5uring Cot @ackup
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
ORA/)***.0 -ile % needs media reco9ery
ORA/)***)0 data -ile %0 3C04ORACLASS4ORA+ATA45)24SA>;LE)*.+,"3
SQL> select A -rom 9:bacLup6
"DLE7 STAT5S C<ACGE7 TD>E
////////// ////////////////// ////////// /////////
* COT ACTD(E )
2 COT ACTD(E )
. COT ACTD(E )
! COT ACTD(E )
% ACTD(E '2!! *%/CO(/)2
6 COT ACTD(E )
6 roEs selected.
SQL> alter database end bacLup6
+atabase altered.
SQL> alter database open6
+atabase altered.
*2
Oracle 9i Backup and Recovery
Scenario 11 ; Non-#ssential datafile with no backup and no archivelog on
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
ORA/)**%'0 cannot identi-yFlocL data -ile / see +,OR trace -ile
ORA/)***)0 data -ile 0 3C04ORACLASS4ORA+ATA45)%4S5CT)*.+,"3
SQL> alter database data-ile o--line drop6
+atabase altered.
SQL> alter database open6
+atabase altered.
SQL> select d.name8t.name tblspace -rom
2 9:data-ile d8 9:tablespace t
. E2ere d.ts7 I t.ts76

CA>E T,LS;ACE
//////////////////////////////////////// ////////////////////
C04ORACLASS4ORA+ATA45)*4S=STE>)*.+," S=STE>
C04ORACLASS4ORA+ATA45)245C+OT,S)*.+," 5C+OT,S
C04ORACLASS4ORA+ATA45).45SERS)*.+," 5SERS
C04ORACLASS4ORA+ATA45).4DC+P)*.+," DC+P
C04ORACLASS4ORA+ATA45)24SA>;LE)*.+," SA>;LE
C04ORACLASS4ORA+ATA45)*4Q5ER=+ATA)*.+," Q5ER=M+ATA
C04ORACLASS4ORA+ATA45)24EPA>;LE)*.+," EPA>;LE
C04ORACLASS4ORA+ATA45)%4S5CT)*.+," S5CT
roEs selected.
SQL> drop tablespace UunL includin1 contents6
Tablespace dropped.
*.
Oracle 9i Backup and Recovery
Scenario 1* ; %oss of a datafile and missing archivelog file
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
ORA/)**%'0 cannot identi-yFlocL data -ile . / see +,OR trace -ile
ORA/)***)0 data -ile .0 3C04ORACLASS4ORA+ATA45).45SERS)*.+,"3
$estore missing 5atafile
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
SQL> reco9er automatic database6
ORA/))2'&0 c2an1e 2*'&&) 1enerated at **F*&F2))2 *)0*.0%' needed -or t2read *
ORA/))2&0 su11estion 0 C04ORACLASS4ORA+ATA4ARC<D(E*4ARC))))2.))*
ORA/))2)0 c2an1e 2*'&&) -or t2read * is in seBuence 72
ORA/))2'0 lo1 -ile 3C04ORACLASS4ORA+ATA4ARC<D(E*4ARC))))2.))*3 no lon1er
needed -or t2is reco9ery
ORA/)).)0 cannot open arc2i9ed lo1
3C04ORACLASS4ORA+ATA4ARC<D(E*4ARC))))2.))*3
ORA/2')!*0 unable to open -ile
OS+/)!))20 unable to open -ile
OFS/Error0 ?OS 2@ T2e system cannot -ind t2e -ile speci-ied.
Speci-y lo10 GHRET>Isu11ested J -ilename J A5TO J CACCELK
cancel
>edia reco9ery cancelled.
SQL> s2utdoEn
ORA/)**)&0 database not open
+atabase dismounted.
ORACLE instance s2ut doEn.
*!
Oracle 9i Backup and Recovery
Scenario 1* ; %oss of a datafile and missing archivelog file ,continue-
Incomplete $ecover is re3uired at this point
$estore all 5atafile ,listed in "/5A!A6I%#-
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
ORA/)***.0 -ile * needs media reco9ery
ORA/)***)0 data -ile *0 3C04ORACLASS4ORA+ATA45)*4S=STE>)*.+,"3
SQL> reco9er automatic until cancel6
ORA/))2'&0 c2an1e 2*'&&) 1enerated at **F*&F2))2 *)0*.0%' needed -or t2read *
ORA/))2&0 su11estion 0 C04ORACLASS4ORA+ATA4ARC<D(E*4ARC))))2.))*
ORA/))2)0 c2an1e 2*'&&) -or t2read * is in seBuence 72
ORA/))2'0 lo1 -ile 3C04ORACLASS4ORA+ATA4ARC<D(E*4ARC))))2.))*3 no lon1er
needed -or t2is reco9ery
ORA/)).)0 cannot open arc2i9ed lo1
3C04ORACLASS4ORA+ATA4ARC<D(E*4ARC))))2.))*3
ORA/2')!*0 unable to open -ile
OS+/)!))20 unable to open -ile
OFS/Error0 ?OS 2@ T2e system cannot -ind t2e -ile speci-ied.
Speci-y lo10 GHRET>Isu11ested J -ilename J A5TO J CACCELK
cancel
>edia reco9ery cancelled.
SQL> alter database open resetlo1s6
+atabase altered.
SQL> s2utdoEn immediate6
+atabase closed.
+atabase dismounted.
ORACLE instance s2ut doEn.
5o a full database backup
*%
Oracle 9i Backup and Recovery
Scenario 1) -- $ecover a lost 5atafile with No @ackup
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
ORA/)**%'0 cannot identi-yFlocL data -ile ' / see +,OR trace -ile
ORA/)***)0 data -ile '0 3C04ORACLASS4ORA+ATA45)!4CEO)*.+,"3
A tablespace and table were created in the past with the following commands(
SQL> create tablespace neEMsample data-ile
2 3c04oraclass4oradata4u)!4neE)*.db-3 si$e *m6
Tablespace created.
SQL> create table neEMtables ?col* number 8col2 number@
2 tablespace neEMsample6
Table created.
SQL> alter database data-ile ' o--line6
+atabase altered.
SQL> alter database open6
+atabase altered.
SQL> alter database create data-ile 3c04oraclass4oradata4u)!4neE)*.db-36
+atabase altered.
SQL> reco9er automatic data-ile '6
>edia reco9ery complete.
SQL> alter database data-ile ' online6
+atabase altered.
SQL> select A -rom neEMtables6
no roEs selected
*6
Oracle 9i Backup and Recovery
Scenario 1: -- 8issing 8irrored 'nline $edo %og 6iles
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
+atabase opened.
SQL> select 1roup78 status8 member -rom 9:lo1-ile6
GRO5;7 STAT5S >E>,ER
////////// /////// ////////////////////////////////////////
. C04ORACLASS4ORA+ATA45).4LOG).A.R+O
. DC(ALD+ C04ORACLASS4ORA+ATA45)!4LOG).,.R+O
2 C04ORACLASS4ORA+ATA45).4LOG)2A.R+O
2 DC(ALD+ C04ORACLASS4ORA+ATA45)!4LOG)2,.R+O
* C04ORACLASS4ORA+ATA45).4LOG)*A.R+O
* DC(ALD+ C04ORACLASS4ORA+ATA45)!4LOG)*,.R+O
SQL> select 1roup78 seBuence78 arc2i9ed8 status -rom 9:lo16
GRO5;7 SEQ5ECCE7 ARC STAT5S
////////// ////////// /// ////////////////
* *' =ES DCACTD(E
2 * =ES DCACTD(E
. *& CO C5RRECT
SQL> alter database drop lo1-ile member
2 3C04ORACLASS4ORA+ATA45)!4LOG)*,.R+O36
+atabase altered.
SQL> alter database drop lo1-ile member
2 3C04ORACLASS4ORA+ATA45)!4LOG)2,.R+O36
+atabase altered.
SQL> alter database drop lo1-ile member
2 3C04ORACLASS4ORA+ATA45)!4LOG).,.R+O36
alter database drop lo1-ile member 3C04ORACLASS4ORA+ATA45)!4LOG).,.R+O3
A
ERROR at line *0
ORA/)*6)&0 lo1 . is t2e current lo1 -or t2read * / cannot drop members
ORA/)).*20 online lo1 . t2read *0 3C04ORACLASS4ORA+ATA45).4LOG).A.R+O3
ORA/)).*20 online lo1 . t2read *0 3C04ORACLASS4ORA+ATA45)!4LOG).,.R+O3
*'
Oracle 9i Backup and Recovery
Scenario 1: -- 8issing 8irrored 'nline $edo %og 6iles ,ontinued-
SQL> alter system sEitc2 lo1-ile6
System altered.
SQL> alter database drop lo1-ile member
2 3C04ORACLASS4ORA+ATA45)!4LOG).,.R+O36
+atabase altered.
SQL> alter database add lo1-ile member
2 3C04ORACLASS4ORA+ATA45)!4LOG)*,.R+O3 to 1roup *6
+atabase altered.
SQL> alter database add lo1-ile member
2 3C04ORACLASS4ORA+ATA45)!4LOG)2,.R+O3 to 1roup 26
+atabase altered.
SQL> alter database add lo1-ile member
2 3C04ORACLASS4ORA+ATA45)!4LOG).,.R+O3 to 1roup .6
+atabase altered.
SQL> select 1roup78 status8 member -rom 9:lo1-ile6
GRO5;7 STAT5S >E>,ER
////////// /////// ////////////////////////////////////////
. C04ORACLASS4ORA+ATA45).4LOG).A.R+O
. DC(ALD+ C04ORACLASS4ORA+ATA45)!4LOG).,.R+O
2 C04ORACLASS4ORA+ATA45).4LOG)2A.R+O
2 DC(ALD+ C04ORACLASS4ORA+ATA45)!4LOG)2,.R+O
* C04ORACLASS4ORA+ATA45).4LOG)*A.R+O
* DC(ALD+ C04ORACLASS4ORA+ATA45)!4LOG)*,.R+O
SQL> alter system sEitc2 lo1-ile6
System altered.
SQL> alter system sEitc2 lo1-ile6
System altered.
SQL> alter system sEitc2 lo1-ile6
System altered.
SQL> select 1roup78 status8 member -rom 9:lo1-ile6
GRO5;7 STAT5S >E>,ER
////////// /////// ////////////////////////////////////////
. C04ORACLASS4ORA+ATA45).4LOG).A.R+O
. C04ORACLASS4ORA+ATA45)!4LOG).,.R+O
2 C04ORACLASS4ORA+ATA45).4LOG)2A.R+O
2 C04ORACLASS4ORA+ATA45)!4LOG)2,.R+O
* C04ORACLASS4ORA+ATA45).4LOG)*A.R+O
* C04ORACLASS4ORA+ATA45)!4LOG)*,.R+O
*
Oracle 9i Backup and Recovery
Scenario 1< ; 8issing ontrolfile and $ead 'nly 5atafile
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
ORA/))2)%0 error in identi-yin1 control-ile8 c2ecL alert lo1 -or more in-o
SQL> Nc04oraclass4bacLup4ctl
Control -ile created.
ORA/))2.0 reco9ery session canceled due to errors
ORA/))26!0 no reco9ery reBuired
System altered.
+atabase altered.
ALTER +ATA,ASE RECA>E "DLE 3>DSSDCG))))63
A
ERROR at line *0
ORA/)*%**0 error in renamin1 lo1Fdata -iles
ORA/)**!*0 error renamin1 data -ile 6 / neE -ile
3C04ORACLASS4ORA+ATA45)*4Q5ER=+ATA)*.+,"3 not -ound
ORA/)****0 name -or data -ile 6 is unLnoEn / rename to correct -ile
ORA/)***)0 data -ile 60 3C04ORACLE4ORA&24+ATA,ASE4>DSSDCG))))63
ORA/2')!*0 unable to open -ile
OS+/)!))20 unable to open -ile
OFS/Error0 ?OS 2@ T2e system cannot -ind t2e -ile speci-ied.
ALTER TA,LES;ACE VQ5ER=M+ATAV OCLDCE
A
ERROR at line *0
ORA/)**%'0 cannot identi-yFlocL data -ile 6 / see +,OR trace -ile
ORA/)****0 name -or data -ile 6 is unLnoEn / rename to correct -ile
ORA/)***)0 data -ile 60 3C04ORACLE4ORA&24+ATA,ASE4>DSSDCG))))63
Tablespace altered.
SQL> s2utdoEn immediate6
+atabase closed.
+atabase dismounted.
ORACLE instance s2ut doEn.
*&
Oracle 9i Backup and Recovery
Scenario 1< ; 8issing ontrolfile and $ead 'nly 5atafile ,continue-
Copy t2e bacLup o- t2e Q5ER=+ATA)*.+," data-ile
SQL> Nc04oraclass4bacLup4ctl
ORACLE instance started.
Total System Global Area **).'2! bytes
"i#ed Si$e !%.!*2 bytes
(ariable Si$e **.2!62) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers *!..6) bytes
Control -ile created.
ORA/))2.0 reco9ery session canceled due to errors
ORA/))26!0 no reco9ery reBuired
System altered.
+atabase altered.
+atabase altered.
Tablespace altered.
Tablespace altered.
2)
Oracle 9i Backup and Recovery
Scenario 1= -- %ost of 5atafile used as 5efault !emporary !ablespace
SQL> startup
ORACLE instance started.
Total System Global Area 2626!!! bytes
"i#ed Si$e !%2&'2 bytes
(ariable Si$e 2)&'*%2) bytes
+atabase ,u--ers !*&!.)! bytes
Redo ,u--ers 66'6! bytes
+atabase mounted.
+atabase opened.
SQL> select A -rom dbaMtabMcolumns order by *828.8!6
ERROR0
ORA/)**%'0 cannot identi-yFlocL data -ile 2)* / see +,OR trace -ile
ORA/)***)0 data -ile 2)*0 3C04ORACLASS4ORA+ATA45)24TE>;)*.+,"3
no roEs selected
SQL> create temporary tablespace temp2 temp-ile 3c04oraclass4oradata4u)24temp)2.ora3 si$e 2m6
Tablespace created.
SQL> alter database de-ault temporary tablespace temp26
+atabase altered.
SQL> drop tablespace temp includin1 contents and data-iles6
Tablespace dropped.
SQL> create temporary tablespace temp temp-ile 3c04oraclass4oradata4u)24tem)*p.ora3 si$e 2)m6
Tablespace created.
SQL> alter database de-ault temporary tablespace temp6
+atabase altered.
SQL> drop tablespace temp2 includin1 contents and data-iles6
Tablespace dropped.
2*
Oracle 9i Backup and Recovery
hanges to the S76I%# that are valid
SQL> alter system set p1aMa11re1ateMtar1etI%m scopeIsp-ile6
System altered.
SQL> s2utdoEn immediate6
+atabase closed.
+atabase dismounted.
ORACLE instance s2ut doEn.
SQL> startup
ORA/)))&.0 p1aMa11re1ateMtar1et must be betEeen *)> and !)&6G/*
!he only way I could the fiD the problem was to delete the spfile and create an
init.ora file from the non-default parameters from the alert log file.
22

You might also like