This was tested on Oracle 11.2. The Oracle rman user guide says: If a database runs in ARCHIVELOG mode, then you can back up the database while it is open. This suggests that if your database is running in NOARCHIVELOG
mode, you cannot back it up while it is open. I decided to try
this out. First I checked that the database was still in NOARCHIVELOG mode:
SQL> select log_mode, open_mode from v$database;
LOG_MODE OPEN_MODE
------------ --------------------
NOARCHIVELOG READ WRITE
SQL>
Then I tried to back it up with rman:
RMAN> backup database;
Starting backup at 23-AUG-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=586 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/23/2012 18:42:22
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
channel ORA_DISK_1: starting piece 1 at 23-AUG-12
channel ORA_DISK_1: finished piece 1 at 23-AUG-12
piece
handle=/database/Andrew/ANDREW01/backupset/2012_08_23/o1_mf_ncnnf_TAG20120823T184221_83dtw1pb_.bkp
tag=TAG20120823T184221 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/23/2012 18:42:22
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
RMAN>
It
failed, as you might expect, so, if you see these messages yourself,
you should know what to do. I will pick this up in future examples.
No comments:
Post a Comment