Q
Problem solve Get help with specific problems with your technologies, process and projects.

Restore database from backup without control files

If you just had to restore from backup and do not have any control files, how would you go about bringing up this database?

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.
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.

Dig Deeper on Oracle database backup and recovery

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close