Wednesday, March 18, 2015

RMAN-06024 no backup of control file and odd default settings for RMAN



Summary


I have now got a working example of the very cool new oracle 12 feature i.e. "PITR Background Recovery for Specific Tables"  :  http://dba-amsterdam.blogspot.nl/2015/03/RMAN-PITR-Background-Table-Recovery-12c.html

However when I tried with my 12c Container/Pluggable Database, my first attempt failed in a very frustrating manner as the standard RMAN backups have the CONTROLFILE AUTOBACKUP OFF … what is a mystery to me,  is why isn't the control file auto backup on by default?

Details


Here is my RMAN operation and my first attempt of PITR

RMAN> connect target "c##bkp_user/qwe123 as sysbackup";

connected to target database: CDBORCL (DBID=2859091572)

RMAN> RECOVER TABLE dave.test_table OF PLUGGABLE DATABASE pdb3 until scn 2792233 AUXILIARY DESTINATION '/u01/aux' REMAP TABLE 'DAVE'.'TEST_TABLE':'TEST_TABLE_RECOVERED';

Starting recover at 16-MAR-15
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=80 device type=DISK
RMAN-05026: WARNING: presuming following set of tablespaces applies to specified Point-in-Time

List of tablespaces expected to have UNDO segments
Tablespace SYSTEM
Tablespace UNDOTBS1

Creating automatic instance, with SID='hmFo'

initialization parameters used for automatic instance:
db_name=CDBORCL
db_unique_name=hmFo_pitr_pdb3_CDBORCL
compatible=12.1.0.0.0
db_block_size=8192
db_files=200
sga_target=1G
processes=80
diagnostic_dest=/u01
db_create_file_dest=/u01/aux
log_archive_dest_1='location=/u01/aux'
enable_pluggable_database=true
_clone_one_pdb_recovery=true
#No auxiliary parameter file used


starting up automatic instance CDBORCL

Oracle instance started

Total System Global Area    1068937216 bytes

Fixed Size                     2296576 bytes
Variable Size                281019648 bytes
Database Buffers             780140544 bytes
Redo Buffers                   5480448 bytes
Automatic instance created

contents of Memory Script:
{
# set requested point in time
set until  scn 2792233;
# restore the controlfile
restore clone controlfile;
# mount the controlfile
sql clone 'alter database mount clone database';
# archive current online log
sql 'alter system archive log current';
}
executing Memory Script

executing command: SET until clause

Starting restore at 16-MAR-15
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=7 device type=DISK


Removing automatic instance
shutting down automatic instance
Oracle instance shut down
Automatic instance removed
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 03/16/2015 21:08:42
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06024: no backup or copy of the control file found to restore



Here are the default settings for RMAN in Oracle 12.1.0.1:

RMAN> show all;

using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name ORCL12C are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # 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 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 '/u01/product/12.1.0/db_1/dbs/snapcf_orcl12c.f'; # default

the mystery for me is why isn't the control file auto backup ON by default?

No comments:

Post a Comment