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 ?
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>}