RMAN-06149: cannot BACKUP DATABASE in NOARCHIVELOG mode
Running a database in noarchivelog mode disables the possibility of database recovery as we will not have any archived redo logs to apply to the restored data files and only way of recovery is reverting database to the last full backup and in the same process be ready to loose all changes made after the full backup. This is why oracle does not recommend running database in NOARCHIVELOG mode and does not allow full database backups when database is on noarchivelog mode.
Here we will discuss how to workaround the “RMAN-06149: cannot BACKUP DATABASE in NOARCHIVELOG mode” error while taking RMAN database backups while running the DB on NOARCHIVELOG mode.
Error Seen while backing whole database via RMAN:
C:\Users\techpaste>rman target sys/Welcome1 Recovery Manager: Release 12.1.0.2.0 - Production on Mon Oct 17 23:37:15 2016 Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved. connected to target database: DB12C (DBID=1350220093) RMAN> backup database; Starting backup at 17-OCT-16 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=884 device type=DISK RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of backup command at 10/17/2016 23:37:27 RMAN-06149: cannot BACKUP DATABASE in NOARCHIVELOG mode
To overcome “RMAN-06149: cannot BACKUP DATABASE in NOARCHIVELOG mode” issue we have to take cold backup of database by following below steps:
1. Shutdown database
2. Startup database in mount mode
3. Execute backup database command.
4. Check backup taken successfully.
5. Start database open.
Example:
Connect to RMAN:
C:\Users\techpaste>rman target sys/Welcome1 Recovery Manager: Release 12.1.0.2.0 - Production on Mon Oct 17 23:37:15 2016 Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved. connected to target database: DB12C (DBID=1350220093)
Shutdown database:
RMAN> shutdown immediate; using target database control file instead of recovery catalog database closed database dismounted Oracle instance shut down
Startup database in mount mode:
RMAN> startup mount; connected to target database (not started) Oracle instance started database mounted Total System Global Area 10301210624 bytes Fixed Size 3842760 bytes Variable Size 1778388280 bytes Database Buffers 8489271296 bytes Redo Buffers 29708288 bytes
Set the RMAN backup destination folder:
RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'D:\Projects\Backups\full_%u_%s_%p'; old RMAN configuration parameters: CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'D:\Projects\Backups\full_%u_%s_%p'; new RMAN configuration parameters: CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'D:\Projects\Backups\full_%u_%s_%p'; new RMAN configuration parameters are successfully stored released channel: ORA_DISK_1
Check all configurations are correct or not:
RMAN> show all; using target database control file instead of recovery catalog RMAN configuration parameters for database with db_unique_name DB12C are: CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default CONFIGURE BACKUP OPTIMIZATION OFF; # default CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default CONFIGURE CONTROLFILE AUTOBACKUP ON; # default CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'D:\Projects\Backups\full_%u_%s_%p'; CONFIGURE MAXSETSIZE TO UNLIMITED; # default CONFIGURE ENCRYPTION FOR DATABASE OFF; # default CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default CONFIGURE RMAN OUTPUT TO KEEP FOR 7 DAYS; # default CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'F:\ORACLE12C\PRODUCT\12.1.0\DBHOME_1\DATABASE\SNCFDB12C.ORA'; # default
Start RMAN backup database:
RMAN> backup database; Starting backup at 17-OCT-16 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=122 device type=DISK channel ORA_DISK_1: starting full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00025 name=F:\ORACLE12C\ORADATA\DB12C\PDB12C\TECHAPP_T01_A1.DBF input datafile file number=00010 name=F:\ORACLE12C\ORADATA\DB12C\PDB12C\EXAMPLE01.DBF input datafile file number=00021 name=F:\ORACLE12C\ORADATA\DB12C\PDB12C\TECHPASTE_DATA.DBF input datafile file number=00022 name=F:\ORACLE12C\ORADATA\DB12C\PDB12C\TECHPASTE_IDX.DBF input datafile file number=00023 name=F:\ORACLE12C\ORADATA\DB12C\PDB12C\TECHPASTE2_DATA.DBF input datafile file number=00024 name=F:\ORACLE12C\ORADATA\DB12C\PDB12C\TECHPASTE2_IDX.DBF input datafile file number=00026 name=F:\ORACLE12C\ORADATA\DB12C\PDB12C\TECHAPP_X01_A1.DBF input datafile file number=00007 name=F:\ORACLE12C\ORADATA\DB12C\PDB12C\SYSTEM01.DBF input datafile file number=00008 name=F:\ORACLE12C\ORADATA\DB12C\PDB12C\SYSAUX01.DBF input datafile file number=00009 name=F:\ORACLE12C\ORADATA\DB12C\PDB12C\SAMPLE_SCHEMA_USERS01.DBF channel ORA_DISK_1: starting piece 1 at 17-OCT-16 channel ORA_DISK_1: finished piece 1 at 17-OCT-16 piece handle=D:\PROJECTS\BACKUPS\FULL_02RIKGEP_2_1 tag=TAG20161017T235049 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15 channel ORA_DISK_1: starting full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00003 name=F:\ORACLE12C\ORADATA\DB12C\SYSAUX01.DBF input datafile file number=00005 name=F:\ORACLE12C\ORADATA\DB12C\UNDOTBS01.DBF input datafile file number=00001 name=F:\ORACLE12C\ORADATA\DB12C\SYSTEM01.DBF input datafile file number=00006 name=F:\ORACLE12C\ORADATA\DB12C\USERS01.DBF channel ORA_DISK_1: starting piece 1 at 17-OCT-16 channel ORA_DISK_1: finished piece 1 at 17-OCT-16 piece handle=D:\PROJECTS\BACKUPS\FULL_03RIKGF9_3_1 tag=TAG20161017T235049 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15 channel ORA_DISK_1: starting full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00004 name=F:\ORACLE12C\ORADATA\DB12C\PDBSEED\SYSAUX01.DBF input datafile file number=00002 name=F:\ORACLE12C\ORADATA\DB12C\PDBSEED\SYSTEM01.DBF channel ORA_DISK_1: starting piece 1 at 17-OCT-16 channel ORA_DISK_1: finished piece 1 at 17-OCT-16 piece handle=D:\PROJECTS\BACKUPS\FULL_04RIKGFO_4_1 tag=TAG20161017T235049 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15 Finished backup at 17-OCT-16 Starting Control File and SPFILE Autobackup at 17-OCT-16 piece handle=F:\ORACLE12C\PRODUCT\12.1.0\DBHOME_1\DATABASE\C-1350220093-20161017-00 comment=NONE Finished Control File and SPFILE Autobackup at 17-OCT-16
Check RMAN backup is successfully taken or not:
RMAN> list backup; List of Backup Sets =================== BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ --------------- 1 Full 1.37G DISK 00:00:14 17-OCT-16 BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20161017T235049 Piece Name: D:\PROJECTS\BACKUPS\FULL_02RIKGEP_2_1 List of Datafiles in backup set 1 Container ID: 3, PDB Name: PDB12C File LV Type Ckp SCN Ckp Time Name ---- -- ---- ---------- --------- ---- 7 Full 6281176 19-DEC-15 F:\ORACLE12C\ORADATA\DB12C\PDB12C\SYSTEM01.DBF 8 Full 6281176 19-DEC-15 F:\ORACLE12C\ORADATA\DB12C\PDB12C\SYSAUX01.DBF 9 Full 6281176 19-DEC-15 F:\ORACLE12C\ORADATA\DB12C\PDB12C\SAMPLE_SCHEMA_USERS01.DBF 10 Full 6281176 19-DEC-15 F:\ORACLE12C\ORADATA\DB12C\PDB12C\EXAMPLE01.DBF 21 Full 6281176 19-DEC-15 F:\ORACLE12C\ORADATA\DB12C\PDB12C\TECHPASTE_DATA.DBF 22 Full 6281176 19-DEC-15 F:\ORACLE12C\ORADATA\DB12C\PDB12C\TECHPASTE_IDX.DBF 23 Full 6281176 19-DEC-15 F:\ORACLE12C\ORADATA\DB12C\PDB12C\TECHPASTE2_DATA.DBF 24 Full 6281176 19-DEC-15 F:\ORACLE12C\ORADATA\DB12C\PDB12C\TECHPASTE2_IDX.DBF 25 Full 6281176 19-DEC-15 F:\ORACLE12C\ORADATA\DB12C\PDB12C\TECHAPP_T01_A1.DBF 26 Full 6281176 19-DEC-15 F:\ORACLE12C\ORADATA\DB12C\PDB12C\TECHAPP_X01_A1.DBF BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ --------------- 2 Full 1.51G DISK 00:00:13 17-OCT-16 BP Key: 2 Status: AVAILABLE Compressed: NO Tag: TAG20161017T235049 Piece Name: D:\PROJECTS\BACKUPS\FULL_03RIKGF9_3_1 List of Datafiles in backup set 2 File LV Type Ckp SCN Ckp Time Name ---- -- ---- ---------- --------- ---- 1 Full 17671536 17-OCT-16 F:\ORACLE12C\ORADATA\DB12C\SYSTEM01.DBF 3 Full 17671536 17-OCT-16 F:\ORACLE12C\ORADATA\DB12C\SYSAUX01.DBF 5 Full 17671536 17-OCT-16 F:\ORACLE12C\ORADATA\DB12C\UNDOTBS01.DBF 6 Full 17671536 17-OCT-16 F:\ORACLE12C\ORADATA\DB12C\USERS01.DBF BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ --------------- 3 Full 658.45M DISK 00:00:08 17-OCT-16 BP Key: 3 Status: AVAILABLE Compressed: NO Tag: TAG20161017T235049 Piece Name: D:\PROJECTS\BACKUPS\FULL_04RIKGFO_4_1 List of Datafiles in backup set 3 Container ID: 2, PDB Name: PDB$SEED File LV Type Ckp SCN Ckp Time Name ---- -- ---- ---------- --------- ---- 2 Full 2449451 19-NOV-15 F:\ORACLE12C\ORADATA\DB12C\PDBSEED\SYSTEM01.DBF 4 Full 2449451 19-NOV-15 F:\ORACLE12C\ORADATA\DB12C\PDBSEED\SYSAUX01.DBF BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ --------------- 4 Full 17.20M DISK 00:00:01 17-OCT-16 BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20161017T235135 Piece Name: F:\ORACLE12C\PRODUCT\12.1.0\DBHOME_1\DATABASE\C-1350220093-20161017-00 SPFILE Included: Modification time: 17-OCT-16 SPFILE db_unique_name: DB12C Control File Included: Ckp SCN: 17671536 Ckp time: 17-OCT-16
Start database open:
RMAN> startup; database is already started database opened RMAN> exit; Recovery Manager complete.
This completes the cold backup of oracle database running in noarchivelog mode via RMAN.
In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.