Restore database from backup without control files
If you have just had to restore from backup and do not have any control files, how would you go about bringing up this database? I know how to back up the control file but I want to know how to restore.

    Requires Free Membership to View

    By submitting your registration information to SearchOracle.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchOracle.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

If you do not have a control file, you can create one from scratch in SQL*Plus as follows:
  1. sqlplus /nolog
  2. CONNECT / AS SYSDBA
  3. STARTUP NOMOUNT
  4.    CREATE CONTROLFILE DATABASE orcl NORESETLOGS NOARCHIVE
       MAXLOGFILES 32 
       LOGFILE GROUP 1 '/oradata1/orcl/redo01.log' SIZE 500M
               GROUP 2 '/oradata1/orcl/redo02.log' SIZE 500M
       DATAFILE
          '/oradata1/orcl/system01.dbf',
          '/oradata1/orcl/undotbs01.dbf'
       CHARACTER SET us7ascii;
    
  5. ALTER DATABASE MOUNT;
  6. RECOVER DATABASE USING BACKUP CONTROLFILE;
  7. ALTER DATABASE OPEN;
As you can see in step 4, you have to supply all of the information the control file needs. This can be a daunting task which is why backups of your control file are essential. Go here for a complete list of options for the CREATE CONTROLFILE command.

This was first published in August 2007

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.