ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode

Viewed 15835

We are working with Oracle 11g database on Windows 8 and 10 OS environments. We need to dump (backup) database and then restore that dumped file into another oracle database, so we are trying Recovery Manager (RMAN) for it. We issues following commands :

C:\Users\Admin>rman
Recovery Manager: Release 11.2.0.1.0 - Production on Tue Mar 8 17:24:43 2016
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
RMAN> connect target /
connected to target database: MYEMP (DBID=42934358)
RMAN> backup database;

Starting backup at 08-MAR-16
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=133 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 03/08/2016 17:25:00
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
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 08-MAR-16
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 03/08/2016 17:25:02
ORA-19504: failed to create file "C:\USERS\ADMIN\DESKTOPTEST\DATABASEBACKUP"
ORA-27038: created file already exists
OSD-04010: <create> option specified, file already exists

I have tried these to resolve the issue :

RMAN> run {
shutdown immediate;
startup mount;
backup database;
alter database open;
}

But nothing happen, we are getting error. How can I backup Oracle database using RMAN ? OR anything (script) that can help me to generate big database on my oracle server ?

6 Answers

The command you're trying to utilize for backup seem to be correct, though the log messages state that a file already exists:

RMAN-03009: failure of backup command on ORA_DISK_1 channel at 03/08/2016 17:25:02 ORA-19504: failed to create file "C:\USERS\ADMIN\DESKTOPTEST\DATABASEBACKUP" ORA-27038: created file already exists

In order to proceed, it should be fixed. Try to clean up the target backup directory, and try again, running the following command in rman:

run { 
    shutdown immediate;
    startup mount; 
    backup database; 
}

Once the backup process is finished you might want to startup the database.

Exit rman and establish a connection to your database via sqlplus, the command would look like the following one:

sqlplus / as sysdba

and start it:

startup;

I had shutdown using shutdown abort since this cause instance failure so we have to shutdown immediate and then mount the database. I also tried to enable archiving but that failed too because the instance was failed due to the shutdown abort.

What error code you get ?

in noarchivelog mode , you cannot take hot database backups, only cold.

When you activate archivelog mode ( in mount state), you can track old transaction during the backup time, and can forward the database to time in point recovery.

Related