Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Lost of all Control Files
<SPAN
class=288532620-15082001>Ramon:
<SPAN
class=288532620-15082001>
<SPAN
class=288532620-15082001>Here's a copy of the script generated by the 'alter
database
<SPAN
class=288532620-15082001>backup controlfile to trace' command on my sandbox
machine.
<SPAN
class=288532620-15082001>Basically, you trim off everything above the 'STARTUP
MOUNT'
<SPAN
class=288532620-15082001>command, start svrmgrl, and execute the
script.
<SPAN
class=288532620-15082001>
<SPAN
class=288532620-15082001>Remember, you need to put in your own database name,
path names,
<SPAN
class=288532620-15082001>and file names. If you don't know your database's
file locations
<SPAN
class=288532620-15082001>you'll have to go hunting. This is for an 8.1.6
database - I forget
<SPAN
class=288532620-15082001>what version you're using. The only significant
difference will be
<SPAN
class=288532620-15082001>the 'ADD TEMPFILE' command at the end - that is for
8iR2 and higher.
<SPAN
class=288532620-15082001>
<SPAN
class=288532620-15082001>I recommend that since you're <FONT color=#0000ff face="Courier New" size=2><SPAN class=288532620-15082001>unfamiliar with this technique,that
HP-UXNode name: rhc117Release: B.11.00Version: AMachine: 9000/777Instance
'/ofa/u01/oradata/oralog2a/DBA2/redo04a.log', '/ofa/u01/oradata/oralog2b/DBA2/redo04b.log' ) SIZE 5MDATAFILE '/ofa/u01/oradata/DBA2/system01.dbf', '/ofa/u01/oradata/DBA2/rbs01.dbf', '/ofa/u02/oradata/DBA2/users01.dbf'CHARACTER SET US7ASCII;# Recoveryis required if any of the datafiles are restored backups,# or if the last shutdown was not normal or immediate.RECOVER DATABASE# All logs need archiving and a log switch is needed.ALTER SYSTEM ARCHIVE LOG ALL;# Database can now be opened normally.ALTER DATABASE OPEN;# Commands to add tempfiles to temporary tablespaces.# Online tempfiles have complete space information.# Other tempfiles may require adjustment.ALTER TABLESPACE TEMP ADD TEMPFILE '/ofa/u01/oradata/DBA2/temp01.dbf' REUSE;# End of tempfile additions.#rhc117:oracle8>
---Received on Wed Aug 15 2001 - 15:45:58 CDT
<FONT color=#0000ff face="Courier New"
size=2>=========================================================================== Michael P. Vergara Oracle DBA Guidant Corporation (909) 914-2304
![]() |
![]() |