Objective: Practice recovering a lost Oracle control file and bringing the database back online.
This exercise uses a series of images to simulate the procedure. Examples use Windows paths; use equivalent commands on Linux/Unix.
A media failure destroyed the control file copies. You previously created a physical backup control file with:
ALTER DATABASE BACKUP CONTROLFILE TO 'C:\ORANT\DATABASEx\BACKUPORCL\CTL1ORCL_f.ora';
Your task: restore that backup, mount, recover, open the database, and re-establish multiplexed control files. Assume ARCHIVELOG mode.
Complete the steps below. This page contains no solutions; the result page shows a model walkthrough after submission.
SET ORACLE_SID=ORCL
sqlplus / as sysdba
STARTUP MOUNT;
RECOVER DATABASE;
ALTER DATABASE OPEN RESETLOGS;
ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
C:\> SET ORACLE_SID=ORCL C:\> COPY C:\ORANT\DATABASEx\BACKUPORCL\CTL1ORCL_f.ORA C:\ORANT\DATABASE\CTL1ORCL.ORA 1 file(s) copied.
C:\> sqlplus / as sysdba SQL> STARTUP MOUNT;
SQL> RECOVER DATABASE;
SQL> ALTER DATABASE OPEN RESETLOGS;
-- Example; adjust for your paths and spfile usage SQL> ALTER SYSTEM SET control_files= 'C:/ORANT/DATABASE/CTL1ORCL.ORA','D:/ORANT/DATABASE/CTL2ORCL.ORA' SCOPE=SPFILE;
SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
SQL> SELECT name FROM v$controlfile ORDER BY name; SQL> SELECT open_mode, log_mode FROM v$database;