This error may occur when you use RMAN to restore SPFILE from AUTOBACKUP. Here is a brief summary. When RMAN recovers SPFILE, the following error may occur: RM
This error may occur when you use RMAN to restore SPFILE from AUTOBACKUP. Here is a brief summary. When RMAN recovers SPFILE, the following error may occur: RM
This error may occur when you use RMAN to restore SPFILE from
This error may occur when you use RMAN to restore SPFILE from AUTOBACKUP. Here is a brief summary.
When RMAN recovers SPFILE, the following error may occur:
RMAN> restore spfile from autobackup;
Start the restore on March 10-11Use channel ORA_DISK_1
Channel ORA_DISK_1: Find AUTOBACKUP for the following date: 20111007Channel ORA_DISK_1: Find
17. You configure autobackup to on an RMAN session. When will RMAN back up the control file?(Choose all that apply .)
A. When you run an RMAN backup command
B. When you run an RMAN allocate command
C. When you add or drop a table in the system tablespace
D. When you change the physical structure of the database, such as dropping a tablespace
E. When you specify the including controlfile clause
Original answer: A is obviously incorrect!
Correct answe
Problem Description:
Restore SPFile always reports Rman-06172:no autobackup found or specified handle is not a valid copy or piece when the database is restored to the same machine through Rman
rman> restore SPFile from '/tmp/bak/db_14_1_928703445 ';
Starting restore at 24-nov-16
using target database control file instead of recovery catalog allocated Channel:or
A_disk_1
Channel ora_disk_1:sid=18 device Type=disk RMAN-00571
: =====================
RMAN backup and recovery-parameter file Restoration
In RMAN, "restoration" and "restoration" have different meanings. "restoration" refers to accessing the previously generated backup set to obtain one or more objects, then restore these objects at a location on the disk. Detached from restoration. Recovery is an actual operation that allows a database to be opened at a given time point.
If all parameter files (spfile and pfile) are lost and automatic backup of control files is enabled (RMAN> co
Oracle
Oracle9i new features: the use of SPFile
--how to backup and restore SPFile and controlfile using autobackup option
Last Updated:wednesday, 2004-10-27 0:40 eygle
This article is published in the Itpub Technology series "Oracle Database DBA Special Technology Essence", without permission, is prohibited reproduced this article.
Original source:
Http://www.eygle.com/faq/Oracle9i.New.Feature.Spfile.04.htm
Six. Backup and recovery of SPFi
spfile to '/u02/rman/spfile. ora' from autobackup;
Starting restore at 08-DEC-11Using channel ORA_DISK_1
Channel ORA_DISK_1: looking for autobackup on day: 20111208Channel ORA_DISK_1: autobackup found:/u02/rman/ctl_c-4046377924-20111208-00Channel ORA_DISK_1: SPFILE restore from autobackup completeFinished restore at 0
;
Oracle instance started
Total System Global Area 580395008 bytes
Fixed Size 2255392 bytesVariable Size 402654688 bytesDatabase Buffers 171966464 bytesRedo Buffers 3518464 bytes
RMAN> restore controlfile from autobackup;
Starting restore at 06--14 14Using target database control file instead of recovery catalogAllocated channel: ORA_DISK_1Channel ORA_DISK_1: SID = 19 device type = DISK
Recovery area destination:/u01/fast_recovery_areaDatabase name (o
files and parameter filesRman>configure Controlfile autobackup on;
Do an Rman full backupRman>backup database format '/u01/rback/rm_22 _%u ' plus archivelog delete input;
Toggle log FileSql>alter system switch logfile;
Close Databasesql> shutdown immediate;
***********"Simulate missing all Files"Delete all FilesCd/u01/oracle/oradata/orcl$RM-F *
Delete all parameter filesCD $ORACLE _home/dbs$ rm-f Spfileorcl.ora$RM-F Pfileorcl.oraDelete password
1. Recover control files from automatic backup using Rman (without Fra)
ORACLE will default to create server parameter files and control files in the $oracle_home/dbs or $ORACLE _home/database directory.
Assuming that the instance parameter file has been restored and the instance is started, the general process of restoring the control file is to set up Oracle_sid and log on Rman first, and then set up dbid to let RMAN know which database control file to look for.
If you use the default locat
RMAN-06172 Troubleshooting, rman-06172
The error "RMAN-06172: no autobackup found or specified handle is not a valid copy or piece" was encountered during the RMAN restoration test today, as shown below:
RMAN> restore spfile to pfile "/u01/app/oracle/product/10.2.0/db_1/dbs/initSCM2.ora"
From "/u04/backup/backupsets/ora_cfc-4095319980-20180327-00 ";
Starting restore at 28-MAR-18
Using channel ORA_DISK_1
RMAN-00571: =======================
). If Oracle cannot use online redo to ensure database consistency, it stops the startup process and notifies the report that it needs to perform a media restore operation.
Two Actions before RMAN restore and restore
When starting a database recovery, we must first restore the server parameter file and then recover the control file.
Supplemental Knowledge: First review the knowledge of control files and SPFile backups:
When we modify the automatic backup, the control files and initialization
disk; # defaconfigconfigure controlfile autobackup on; configure controlfile autobackup format for device type disk to 'f: \ rmanbackup \ controlfile \ % F'; configure device type disk parallelism 1 backup type to backupset; # defaultCONFIGURE datafile backup copies for device type disk to 1; # defaultCONFIGURE archivelog backup copies for device type disk to 1; # defaultCONFIGURE channel device type disk
>
3. Basic settings:Rman> Configure default device type to disk; (Set the default backup device to disk)Rman> Configure device type disk parallelism 2; (Set the parallel level of backup, number of channels)Rman> Configure Channel 1 device type disk fromat '/backup1/backup_%u '; (Set the file format for backup, only for disk devices)Rman> Configure Channel 2 device type disk Fromat '/backup2/backup_%u '; (Set the file format for backup, only for disk devices)Rman> Configu
Size 478151192 bytes database Buffers 159383552 Bytesredo buffers 7491584 bytes 4. Restore Control filesRMAN> RESTOREControlfile fromAutobackup;--The control file is restored to the initialization parameter: Control_files the specified path. StartRestoreIn +-December- -Use the target database control file instead of the channel for recovering directory allocations: Ora_disk_1 Channel Ora_disk_1:sid=TenDevice type=DISKRecovery Zone target: D:\app\Administrator\flash_recovery_area the da
redundancy 1; # default Note: You need TO retain several backup files when configuring redundancy, the default value is 1. It can also be changed to other non-zero positive integer values. Configure backup optimization off; # defaultNote: The device backup is optimized and enabled. If the tablespace is read-only, it will be backed up for the first time and will not be backed up later. There are two options: off and on TO enable configure default device type to disk; # default note: the DEFAULT
ALTER DATABASE Archivelog; modified to archive mode6 ALTER DATABASE open;7 Archive Log list production to see if it starts successfullyThe following are displayed after successful startupsql> archive log list;Database Log Mode Archive modeAutomatic Archival EnabledArchive Destination Use_db_recovery_file_destOldest online log sequence 25Next Log sequence to archive 27Current log Sequence 272 Modifying Rman parametersLanding RmanRman Target Rman/rmanConfiguration in Oracle 9iUse Rman>show all;Th
Recover 1.1. Loss of SPFile Recovery
Prerequisite: Automatic backup of database control files has been configured and reliable backups have been made:
Rman> CONFIGURE controlfile autobackup on;
New RMAN configuration parameters:
CONFIGURE Controlfile autobackup on;
A new RMAN configuration parameter was successfully stored
Starting resync for full recovery directory
Complete all Resync
Rman>
r
autobackup off; # defaultConfigure controlfile autobackup format for device type disk to '% F'; # defaultConfigure device type disk parallelism 1 Backup Type to backupset; # defaultConfigure datafile backup copies for device type disk to 1; # defaultConfigure archivelog backup copies for device type disk to 1; # defaultConfigure maxsetsize to unlimited; # defaultConfigure encryption for database off; # def
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.