You are on page 1of 3

Backing Up and Restore a Database in NOARCHIVELOG Mode

If a database runs in NOARCHIVELOG mode, then the only valid database backup is a
consistent backup. For the backup to be consistent, the database must be mounted after a
consistent shutdown. No recovery is required after restoring the backup.

To make a consistent database backup:

STEP 1 Start RMAN and connect to a target database.

STEP 2 Shut down the database consistently and then mount it.

For example, enter the following commands to guarantee that the database is in a consistent
state for a backup:

RMAN> SHUTDOWN IMMEDIATE;

RMAN> STARTUP FORCE DBA;

RMAN> SHUTDOWN IMMEDIATE;

RMAN> STARTUP MOUNT;

STEP 3 Run the BACKUP DATABASE command.

For example, enter the following command at the RMAN prompt to back up the database to
the default backup device:

RMAN> backup database format '/u02/%d_%t_%s_%p'


tag='FULL_NO_ARCHIVELOG';

RMAN> BACKUP AS COPY DATABASE;

STEP 4 RMAN> list backup;

Delete all database files and try to open database

SQL> startup;
ORACLE instance started.
Total System Global Area 826753024 bytes
Fixed Size 2257760 bytes
Variable Size 520096928 bytes
Database Buffers 301989888 bytes
Redo Buffers 2408448 bytes
ORA-00205: error in identifying control file, check alert log for more info
Restore an RMAN cold backup

STEP 1 : startup nomount

RMAN> STARTUP NOMOUNT;

STEP 3 : RESTORE CONTROL FILES


RMAN> restore controlfile from '/u02/DB11G_1002478666_4_1';

STEP 4 : mount the database


RMAN> sql "alter database mount";

STEP 5 : verification of backup


RMAN> list backup summary;

STEP 6 : restore the backup


RMAN> restore database from TAG='FULL_NO_ARCHIVELOG';

STEP 7 : open database with resetlogs

RMAN> sql "alter database open";

sql statement: alter database open


RMAN-00571:
===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS
===============
RMAN-00571:
===========================================================
RMAN-03009: failure of sql command on default channel at 03/09/2019 18:51:03
RMAN-11003: failure during parse/execution of SQL statement: alter database open
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open

RMAN> sql "alter database open resetlogs";

sql statement: alter database open resetlogs

You might also like