By
Published: 06 Aug 2007
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:
sqlplus /nolog
CONNECT / AS SYSDBA
STARTUP NOMOUNT
-
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;
ALTER DATABASE MOUNT;
RECOVER DATABASE USING BACKUP CONTROLFILE;
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 administration
In this expert answer, Brian Peasland explains how to call a stored procedure inside user-defined functions in Oracle Database.
Continue Reading
One reader asks how he can make a copy of his Oracle Database but not have any data in it, for test purposes.
Continue Reading
Learn how to add disk to ASM diskgroup with two-way mirroring and how to specify a failgroup in this tip from Oracle expert Brian Peasland.
Continue Reading