Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ?

like image 213
Neelam Sharma Avatar asked Mar 08 '16 12:03

Neelam Sharma


2 Answers

I know that this is an older post, but i came across it today as i had the same issue, and found that the provided answers failed to provide a resolution for one thing that the original post attempted to do which is to set the state of the database to open once the backup completes.

According to Oracle

To change the state of a target database that is in NOMOUNT or MOUNT state, you must either use SQL*Plus or use the RMAN SQL command to issue a SQL statement, as shown in these examples:

RMAN> SQL 'ALTER DATABASE OPEN';

https://docs.oracle.com/cd/B19306_01/backup.102/b14192/setup002.htm

So you should be able to do something like

RMAN> run 
2> {
3> shutdown immediate
4> startup mount
5> backup database;
6> SQL 'ALTER DATABASE OPEN';
7>}
like image 162
John-Rock Bilodeau Avatar answered Sep 23 '22 01:09

John-Rock Bilodeau


I would like to say that as one of the error is like that

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

Mostly this error comes when we shall to create a cold backup of the database running in noarchivelog mode using RMAN, the database should be mounted but not opened. If the database is backed up in the open state, the following error will appear:

RMAN> backup database;
<....... output trimmed .......> 
<....... output trimmed .......> 
RMAN-00571: ===========================================================
RMAN-00569: =============== error message stack follows =============== 
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at
08/03/2017 11:01:14

The following script shuts down the database and start it in mount mode, and then creates a backup of the database:

RMAN> run 
2> {
3> shutdown immediate
4> startup mount
5> backup database;
6> }

For your further ref Here

like image 26
Md Haidar Ali Khan Avatar answered Sep 24 '22 01:09

Md Haidar Ali Khan