RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
Below is the example given for your ref.
1. RMAN Backup details on source :
RMAN> backup current controlfile format '/RMAN_TEST/control_%U';
Starting backup at 05-JAN-17
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=38 device type=DISK
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
channel ORA_DISK_1: starting piece 1 at 05-JAN-17
channel ORA_DISK_1: finished piece 1 at 05-JAN-17
piece handle=/RMAN_TEST/control_0frp8ndk_1_1 tag=TAG20170105T112955 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
Finished backup at 05-JAN-17
Starting Control File and SPFILE Autobackup at 05-JAN-17
piece handle=/u01/app/oracle/recovery_area/CDB1/autobackup/2017_01_05/o1_mf_s_932470203_d6wckw0y_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 05-JAN-17
RMAN>
2. Restoration on target
[oracle@Server RMAN_TEST]$
[oracle@Server RMAN_TEST]$ sqlplus "/ as
sysdba"
SQL*Plus: Release 12.1.0.1.0 Production on Thu Jan 5
11:31:31 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup nomount
pfile='/RMAN_TEST/initMYTEST.ora';
ORACLE instance started.
Total System Global Area
217157632 bytes
Fixed Size 2286656 bytes
Variable Size 159386560 bytes
Database Buffers 50331648 bytes
Redo Buffers 5152768 bytes
SQL>
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition
Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real
Application Testing options
[oracle@Server RMAN_TEST]$
[oracle@Server RMAN_TEST]$
[oracle@Server RMAN_TEST]$
[oracle@Server RMAN_TEST]$ cd /
[oracle@Server /]$
[oracle@Server /]$
[oracle@Server /]$ rman target /
Recovery Manager: Release 12.1.0.1.0 - Production on Thu
Jan 5 11:32:13 2017
Copyright (c) 1982, 2013, Oracle and/or its
affiliates. All rights reserved.
connected to target database: MYTEST (not mounted)
RMAN> restore controlfile from 'control_0frp8ndk_1_1';
Starting restore at 05-JAN-17
using target database control file instead of recovery
catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=20 device type=DISK
RMAN-00571:
===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS
===============
RMAN-00571:
===========================================================
RMAN-03002: failure of restore command at 01/05/2017
11:33:04
RMAN-06172: no AUTOBACKUP found or specified handle is
not a valid copy or piece
RMAN>
RMAN>
RMAN> restore controlfile from
'/RMAN_TEST/control_0frp8ndk_1_1';
Starting restore at 05-JAN-17
using channel ORA_DISK_1
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time:
00:00:01
output file name=/RMAN_TEST/control_01.ctl
Finished restore at 05-JAN-17
RMAN>
Now you can mount the database and carry forward your restoration task.
Thank you!
No comments:
Post a Comment