RMAN backup error in R&D Server
friends,
OS: RHEL 4.8
DB: 10gR2
i am doing some R&D in my 10g test db....
i deleted the last archive log file...then i tried to do rman backup plus archivelog all;
but i am getting an error...then i copy the deleted file in the same location...then the backup is working fine...
suppose if this situation comes in production db what should i do....am i have to wait for the next archive log generation or i have to alter system switch log file;
thanks
Hi,
RMAN>change archivelog all crosscheck;
If below error commes then Your options are either to restore the missing file(s), or to perform a crosscheck. To perform a crosscheck,
run the above command from within RMAN
It is advisable to perform a full backup of the database at this point.
When an archive log crosscheck is performed, RMAN checks each archive log in turn to make sure that it exists on disk (or tape).
Those that are missing are marked as unavailable. If you have got missing logs, this won't bring them back. It will allow you to get
past this error and back-up the database though.
Regards
Similar Messages
-
RMAN Backup error with Symantec Backup Tool
Hi
My Environment
OS Windows server 2003 R2
Oracle 10G R2 10.2.03 2 node RAC
When i am taking backup maually in the command prompt with RMAN, it is successful, but when we are trying from Symantec Backup tool we are getting errors like
RMAN 03002 failur of Backup lus archivelog is problem,
RMAN 10015 error compiling PL/SQL programme
RMAN 10033 error during compilation of job step2
Ora 00603 Oracle server session terminate by fatal error.
Ora 004030 out of process memory when trying to allocate 4120 bytes(pl/sql) MPCODE,BAMMA, BAM Buffer)
So please tell me why its giving the error with Symatntec and why when i am doing manually it is successfull.
What could be the solution, please we are taking daily and weekly backups with Symantec on HP tape library. Please suggest me to the needful.
Immediate reply highly apperciated
Thanks
Edited by: 873393 on Apr 17, 2012 10:09 AMHello,
Ora 00603 Oracle server session terminate by fatal error.
Ora 004030 out of process memory when trying to allocate 4120 bytes(pl/sql) MPCODE,BAMMA, BAM Buffer) The ORA-04030 error message is interesting. It means that the OS doesn't have enough memory for Oracle.
So you may monitore the Memory usage of the Server during the Symantec Backup, and check for any activity. May be the Symantec Backup runs when other Batch Jobs use already a lot of memory . You may also have to extend the RAM of the Server.
Also, check for the RMAN script used by Symantec and compare with the "manual" script. May be, some options are used with Symantec and consume more resources on the Server.
Hope this help.
Best regards,
Jean-Valentin -
Restore spfile from rman backup ---- error.
Hi,
I am trying to execute recovery on new machine ...
I have done the following steps..
I have one database as ora10g2 as peroduction database on one machine as hosta
I have created a catalog on another machine cora10g2 (hostb)
I have taken a full backup from hosta as per following ...
the following command execute from hosta machine.
$ rman target sys/<passwd>@ora10g2 catalog rman/rman@cora10g2 ...
Backup completed ...
Now I am trying to restore this backup on hostb machine where i have already rman catlog database ..
I have done the following setting ...on host b
set oracle_sid=DUP
and execute following command ...
rman target / catalog rman/rman@cora10g2
RMAN> set dbid 2760732370
executing command: SET DBID
database name is "BAAN10G2" and DBID is 2760732370
RMAN>
RMAN>
RMAN> startup force nomount ;
startup failed: ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/oracle/dbs/baan10g2/dbs/initbaan10g2.ora'
starting Oracle instance without parameter file for retrival of spfile
Oracle instance started
Total System Global Area 159383552 bytes
Fixed Size 1977112 bytes
Variable Size 67114216 bytes
Database Buffers 83886080 bytes
Redo Buffers 6406144 bytes
RMAN>
RMAN>
RMAN>
RMAN> show all ;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rman/backup/control/cntrl_%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;
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 '/baanora3/rman/ora10g2/bkup_db_%d_s%s_P%p_t%t' MAXPIECESIZE 1024;
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
RMAN>
RMAN>
RMAN> list backup of spfile ;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
2420 Full 7.33M DISK 00:00:01 14-JUN-07
BP Key: 2426 Status: AVAILABLE Compressed: NO Tag: TAG20070614T182935
Piece Name: /rman/backup/control/cntrl_c-2760732370-20070614-00
SPFILE Included: Modification time: 14-JUN-07
BS Key Type LV Size Device Type Elapsed Time Completion Time
2509 Full 7.33M DISK 00:00:01 15-JUN-07
BP Key: 2515 Status: AVAILABLE Compressed: NO Tag: TAG20070615T130416
Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-00
SPFILE Included: Modification time: 15-JUN-07
BS Key Type LV Size Device Type Elapsed Time Completion Time
2694 Full 7.33M DISK 00:00:01 15-JUN-07
BP Key: 2739 Status: AVAILABLE Compressed: NO Tag: TAG20070615T131703
Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-01
SPFILE Included: Modification time: 15-JUN-07
BS Key Type LV Size Device Type Elapsed Time Completion Time
2760 Full 80.00K DISK 00:00:01 15-JUN-07
BP Key: 2763 Status: AVAILABLE Compressed: NO Tag: TAG20070615T163437
Piece Name: /rman/spfile/spfile.ora
SPFILE Included: Modification time: 15-JUN-07
BS Key Type LV Size Device Type Elapsed Time Completion Time
2769 Full 7.33M DISK 00:00:02 15-JUN-07
BP Key: 2771 Status: AVAILABLE Compressed: NO Tag: TAG20070615T163441
Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-02
SPFILE Included: Modification time: 15-JUN-07
RMAN>
RMAN>
RMAN> restore spfile from autobackup ;
Starting restore at 19-JUN-07
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=36 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=35 devtype=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: sid=34 devtype=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: sid=33 devtype=DISK
channel ORA_DISK_1: looking for autobackup on day: 20070619
channel ORA_DISK_1: looking for autobackup on day: 20070618
channel ORA_DISK_1: looking for autobackup on day: 20070617
channel ORA_DISK_1: looking for autobackup on day: 20070616
channel ORA_DISK_1: looking for autobackup on day: 20070615
channel ORA_DISK_1: looking for autobackup on day: 20070614
channel ORA_DISK_1: looking for autobackup on day: 20070613
channel ORA_DISK_1: no autobackup in 7 days found
channel ORA_DISK_2: looking for autobackup on day: 20070619
channel ORA_DISK_2: looking for autobackup on day: 20070618
channel ORA_DISK_2: looking for autobackup on day: 20070617
channel ORA_DISK_2: looking for autobackup on day: 20070616
channel ORA_DISK_2: looking for autobackup on day: 20070615
channel ORA_DISK_2: looking for autobackup on day: 20070614
channel ORA_DISK_2: looking for autobackup on day: 20070613
channel ORA_DISK_2: no autobackup in 7 days found
channel ORA_DISK_3: looking for autobackup on day: 20070619
channel ORA_DISK_3: looking for autobackup on day: 20070618
channel ORA_DISK_3: looking for autobackup on day: 20070617
channel ORA_DISK_3: looking for autobackup on day: 20070616
channel ORA_DISK_3: looking for autobackup on day: 20070615
channel ORA_DISK_3: looking for autobackup on day: 20070614
channel ORA_DISK_3: looking for autobackup on day: 20070613
channel ORA_DISK_3: no autobackup in 7 days found
channel ORA_DISK_4: looking for autobackup on day: 20070619
channel ORA_DISK_4: looking for autobackup on day: 20070618
channel ORA_DISK_4: looking for autobackup on day: 20070617
channel ORA_DISK_4: looking for autobackup on day: 20070616
channel ORA_DISK_4: looking for autobackup on day: 20070615
channel ORA_DISK_4: looking for autobackup on day: 20070614
channel ORA_DISK_4: looking for autobackup on day: 20070613
channel ORA_DISK_4: no autobackup in 7 days found
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 06/19/2007 18:00:13
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
RMAN>
I am not able to restore spfile from rman backup ;;;Hi,
I would like to know few things
1. How are you setting the db_name ? you can set db_id at RMAN, how are you setting the db_name ?
2. Do you have any default init file at default location ? if yes, is the db_name parameter set correctly in that file ?
Since spfile is yet to be restored, you must set the db_name parameter correctly before you start spfile restore.This can be done with init file at default location which can even contain just one paremeter i.e db_name. -
RMAN Backup error:ORA-04030: out of process memory
Hi,
Our RMAN backup is failing with below error:
===========================
RMAN-03002: failure of backup plus archivelog command at 05/22/2010 05:31:33
ORA-04030: out of process memory when trying to allocate 82444 bytes (pga heap,control file i/o buffer)
=============================
Please suggest
Thanks and RegardsWe upgrade our catalog database(Linux) to 10.2.0.4 and our target database is 10.2.0.3(Windows),
we executed upgrade catalog twice and then when we again tried to execute the below command
rman sys/syspwd@targetdb catalog rman/rman@rmancat
Recovery Manager: Release 10.2.0.4.0 - Production on Sat May 22 15:10:36 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
PL/SQL package SYS.DBMS_BACKUP_RESTORE version 10.02.00.03 in TARGET database is not current
PL/SQL package SYS.DBMS_RCVMAN version 10.02.00.03 in TARGET database is not current
connected to target database: WEBCT (DBID=3699379059)
connected to recovery catalog database
RMAN>
=======================
Still we are getting this error
and our backup falied with below errors:
======================
PL/SQL package SYS.DBMS_BACKUP_RESTORE version 10.02.00.03 in TARGET database is not current PL/SQL package SYS.DBMS_RCVMAN version 10.02.00.03 in TARGET database is not current connected to target database: WEBCT (DBID=3699379059) connected to recovery catalog database
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 05/22/2010 15:09:44
ORA-06550: line 1, column 14:
PLS-00306: wrong number or types of arguments in call to 'VALIDATEARCHIVEDLOG'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
==========================
Please suggest -
Rman backup errors..
hi guru's
please tell me the answeres..for this
what will happen if we re run the Rman backup due to the job failure...will take a new backup from the begining? or will start from the first backup end where it left ?
i am deleting some archieved logs on the archieved destination before takeing the RMAN backup, and then running rman backup ...then any error will raised for the missing files during Rman archive log backup for missing files? i have the files like 1 to 10 ...in that 5 and 6 logs are deleted before takeing the Rman backup..how to resolve this?user13014926 wrote:
hi guru's
please tell me the answeres..for this
what will happen if we re run the Rman backup due to the job failure...will take a new backup from the begining? or will start from the first backup end where it left ?
You can continue backup from which files not backed up and this is call restartable backup.Please refer below link
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconc1.htm#i1008543
>
i am deleting some archieved logs on the archieved destination before takeing the RMAN backup, and then running rman backup ...then any error will raised for the missing files during Rman archive log backup for missing files? i have the files like 1 to 10 ...in that 5 and 6 logs are deleted before takeing the Rman backup..how to resolve this?If you manually delete archivelogs then you will get an error so before executing this backup command you have to execute CROSSCHECK ARCHIVELOG ALL and DELETE EXPIRED ARCHIVELOG ALL then your problem will solve. -
Hi,
I am taking the rman backup i got below error please give me the solution.
Starting backup at 13-DEC-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=33 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=50 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/u01/oracle/oradata/dev/system01.dbf
input datafile fno=00002 name=/u01/oracle/oradata/dev/undotbs01.dbf
channel ORA_DISK_1: starting piece 1 at 13-DEC-12
channel ORA_DISK_2: starting full datafile backupset
channel ORA_DISK_2: specifying datafile(s) in backupset
input datafile fno=00003 name=/u01/oracle/oradata/dev/sysaux01.dbf
channel ORA_DISK_2: starting piece 1 at 13-DEC-12
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 12/13/2012 12:05:14
ORA-19504: failed to create file "/u03/rmbackp/1gnsomrp_1_1"
ORA-27040: file create error, unable to create file
Linux Error: 2: No such file or directory
channel ORA_DISK_1 disabled, job failed on it will be run on another channel
my mount point has 777 oracle:dba /u03/rmbackup . Below is the my rman configuration parameters.
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u03/rmbackup/%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT'/u03/rmbackp/%U';
CONFIGURE MAXSETSIZE TO UNLIMITED;
CONFIGURE ENCRYPTION FOR DATABASE OFF;
CONFIGURE ENCRYPTION ALGORITHM 'AES128';
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO'/u03/rmbackup/snapcf_dev.f';
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u03/rmbackup/%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT'/u03/rmbackp/%U';
CONFIGURE MAXSETSIZE TO UNLIMITED;
CONFIGURE ENCRYPTION FOR DATABASE OFF;
CONFIGURE ENCRYPTION ALGORITHM 'AES128';
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO'/u03/rmbackup/snapcf_dev.f';Did you see error :
ORA-19504: failed to create file "/u03/rmbackp/1gnsomrp_1_1"
ORA-27040: file create error, unable to create file
Linux Error: 2: No such file or directoryThere haven't directory : /u03/rmbackp and Channel 1 device type disk format is showed : /u03/rmbackp/%U
Error there.
Mahir -
hi,
I am backup 10g rac with rman,but there is some error when backup:
input datafile fno=00006 name=+DG1/orcl/datafile/undotbs3.265.623622323
channel c3: starting piece 1 at 13-JUN-07
RMAN-03009: failure of backup command on c1 channel at 06/13/2007 08:40:50
ORA-19504: failed to create file "/oracle/rman/db_ORCL_20070613_0fik5ji0_1_1_L0"
ORA-27040: file create error, unable to create file
Linux Error: 2: No such file or directory
channel c1 disabled, job failed on it will be run on another channel
RMAN-03009: failure of backup command on c3 channel at 06/13/2007 08:40:51
ORA-19504: failed to create file "/oracle/rman/db_ORCL_20070613_0hik5jna_1_1_L0"
ORA-27040: file create error, unable to create file
Linux Error: 2: No such file or directory
channel c3 disabled, job failed on it will be run on another channel
released channel: c1
released channel: c2
released channel: c3
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of release command at 06/13/2007 08:49:22
RMAN-06012: channel: c1 not allocatedHi all I have the same problem. We have a 2 node rac with ASM. The archives goes to ASM. I would like to backup the archives from ASM to a filesystem. But i was given a filesystem that is only mounted on one node and it is not accessbile to the other node. When i run the following rman command i get the error on one of the channel that connect to node 2.
My question:
Can i use on channel that is connecting to node1 to backup all the archivelogs generated by node1 and node2 aswell since both the nodes have access to archive logs.
Please assist.
connect target /
connect catalog rmanrep/[email protected]
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/opt/oracle/archive/orcl/rman/cf_%d_%T_%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 2;
CONFIGURE CHANNEL 1 DEVICE TYPE DISK CONNECT 'SYS/oass@orcl1;
CONFIGURE CHANNEL 2 DEVICE TYPE DISK CONNECT 'SYS/oass@orcl2';
BACKUP CURRENT CONTROLFILE;
backup archivelog all format '/opt/oracle/archive/orcl/arch_bkup/%d_AL_%T_%u_s%s_p%p' delete input;
EXIT;
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 03/17/2009 21:00:25
ORA-19504: failed to create file "/opt/oracle/archive/orcl/arch_bkup/SPTDEV_AL_20090317_2kka60j6_s84_p1"
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory
channel ORA_DISK_2 disabled, job failed on it will be run on another channel
Thanks
Kart -
RMAN backup restoration on a different server under ASM .
Hello Experts,
This is regarding new installation of Oracle RAC 11gR2 on AIX 6.1 . Its a two node cluster setup , using ASM . As i am newbie for RMAN , I would like to know how i can restore my rman backup to another uat server which has standby database again cofigured under asm .
Thanks for your kind help .Hi ,
Thanks for reply
1) I performed the full database backup on source .
2) Source (prod) and target remote database (uat) are in ASM and have same DG for datafiles .
3) I have transfered the backup from production to UAT . I have already running uat database
do i need to drop it before i start the restoration ? My final purpose is just to refresh target with production backup . Kindly advice the steps from here to proceed with .
Thank you -
Dear Friends,
I am taking a RMAN BACKUP of ORACLE 9i with AIX4.3 with TAPE DRIVE
When i execute the script
RMAN> RUN{
allocate channel c1 type 'SBT_TAPE';
backup tablespace users;
It gets struckup for more than two hours it didn't prompt any errors.
allocated channel: c1
channel c1: sid=13 devtype=SBT_TAPE
channel c1: MMS Version 2.2.0.1
Starting backup at 11-APR-02
channel c1: starting full datafile backupset
channel c1: specifying datafile(s) in backupset
input datafile fno=00007 name=/gloqm/oradata/ORA9011/users01.dbf
channel c1: starting piece 1 at 11-APR-02
LSM was intalled, Is it right to mention the tape is 'SBT_TAPE' or i will have to mention something different.
Could any one help
Thanks in Advance
gandhiFor RMAN topics, please use: {forum:id=74}.
-
Rman backup error: ORA-19502
I am running a rman backup script with incremental 1 level as
backup as backupset incremental level 1 cumulative device type disk tag 'Baan_bkup$LEVEL_0' database;
recover copy of database;
backup device type disk tag 'Baan_bkup$LEVEL_0' archivelog all not backed up;
backup archivelog until time 'sysdate-6' delete all input;
delete noprompt obsolete device type disk;
It has run almost two weeks and last night it showed this error and failed
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/08/2006 03:02:14
ORA-19502: write error on file "/dbrecovery/flashback/goi1rkdm_1_1", blockno 164865 (blocksize=8192)
ORA-27072: File I/O error
Additional information: 4
Additional information: 164865
Additional information: 782336
Linux Error: 2: No such file or directory
I checked the df -k and I still have about 6% space in my /dbrecovery disk, a separated space, and I did not find the file indicated either. So was still possible the space is full? or others reason?
I used the "delete obsolete"command in rman but nothing can be deleted.It seems your filesystem cannot handle large files (> 2G). Use 'maxpiecesize' option of 'allocate channel' command to limit the filesize.
Werner -
Rman backup error in oracle grid control
Hi,
I am able to find rman failure and status is Failed so where we can find the error messages in oracle enterprise manager 10g grid control to make sure that it should not happen in future.
Appreciated for your inputs.
Thanks
PrakashHi,
I am able to find rman failure and status is Failed so where we can find the error messages in oracle enterprise manager 10g grid control to make sure that it should not happen in future.Refer Link below:
http://www.oracle.com/technology/pub/articles/havewala-rman-grid.html
Check from point 15
Regards,
X A H E E R -
Restoring RMAN backup on a different server
Hi oracle gurus
i have following scenario
i have a compressed backup set of a database
i want to restore that rman backup on to a different server.
both the server have same version of oracle.and both the server are of 32 bit.
please reply if any more info is required.RESTORE AND RECOVERY PROCEDURE OF PRODUCTION DATABASE BACKUP ON TEST SERVERS
As part of disaster recovery exercise or to test the validity of a RMAN backup, a full restore and recovery of databases can be performed on scratch or test servers utilising the production RMAN backups which have been restored from the tape backups on these test or scratch servers.
This note will illustrate the above procedure by detailing the steps required to restore the backup of a production database (prod1) on a test server linux01 .
The following assumptions are made in this note:
The RMAN backups have been restored from tape backups to the same backup location on the test server as the production server where the backup was originally taken
The identical directory structure as is present on production has been created on the test server. This will apply to not only the location of the database files (data, control files, redo log files), but also to the bdump,cdump, udump and adump locations.
Controlfile autobackup has been enabled. This is important.
Overview
Restore the spfile from the autobackup
Restore the controlfile from the autobackup
Restore the data files
Recover by applying archived redo log files
Open the database with resetlogs
Restore the SPFILE
[oracle@linux01 prod1]$ rman target /
connected to target database (not started)
RMAN> set dbid=4266928631
executing command: SET DBID
RMAN> startup force nomount;
startup failed: ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0/dbs/initprod1.ora'
starting Oracle instance without parameter file for retrival of spfile
Oracle instance started
Total System Global Area 159383552 bytes
Fixed Size 2039056 bytes
Variable Size 67109616 bytes
Database Buffers 83886080 bytes
Redo Buffers 6348800 bytes
RMAN> run
2> {SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u02/backup/prod1/%F';
3> restore spfile from autobackup;
4> }
RMAN> shutdown immediate;
Restore the Control File
In this case, the instance is now being started with the restored spfile. We can create a pfile as well from this spfile is so required.
RMAN> startup nomount
connected to target database (not started)
Oracle instance started
RMAN> set dbid=4266928631
executing command: SET DBID
RMAN> run
2> {SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u02/backup/prod1/%F';
3> restore controlfile from autobackup;
4> }
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
Restore the database
RMAN> restore database;
Recover the database
The recovery will fail at a point where it cannot restore any more archived redo log files.
In this case the last archived log file which has been backed up is sequence 613.
This information can be obtained by issuing a LIST BACKUP OF ARCHIVELOG ALL command.
So RMAN will fail when it tries to apply sequence 614 ….
RMAN> recover database
[oracle@linux01 PROD1]$ rman target /
connected to target database: PROD1 (DBID=4266928631, not open)
RMAN> sql 'alter database open resetlogs';
RMAN>
reference: http://gavinsoorma.com/recovery-scenarios/ -
RMAN Restore Error - media recovery requesting unknown log: thread 1 seq 7
Im using RMAN to copy a database to another server. The new server is IDENTICAL to the old one. By identical I mean it has the same sever name, ip address, operating system, Oracle version and directory structure.
The new server already has the instance created, (same name as the old server instance, paths etc)
The backup files have been manually restored to the new server, same locations as they were on the old one. ( RMAN did an automatic controlfile backup and also the archivelogs on the old server ).
Ive restored the control file on the new server from the RMAN backup pieces.
Ive catalogued the RMAN backup pieces on the new server.
I know the last sequence available in the archivelogs backup by running on the new server :
list backup of archivelog all;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
5 14.43M DISK 00:00:03 11-MAY-11
BP Key: 9 Status: AVAILABLE Compressed: NO Tag: TAG20110511T163502
Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\
011_05_11\O1_MF_ANNNN_TAG20110511T163502_6WOC5833_.BKP
List of Archived Logs in backup set 5
Thrd Seq Low SCN Low Time Next SCN Next Time
1 2 550217 10-MAY-11 556559 11-MAY-11
1 3 556559 11-MAY-11 559776 11-MAY-11
1 4 559776 11-MAY-11 560093 11-MAY-11
1 5 560093 11-MAY-11 560794 11-MAY-11
BS Key Size Device Type Elapsed Time Completion Time
7 15.50K DISK 00:00:01 11-MAY-11
BP Key: 10 Status: AVAILABLE Compressed: NO Tag: TAG20110511T163653
Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\
011_05_11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_.BKP
List of Archived Logs in backup set 7
Thrd Seq Low SCN Low Time Next SCN Next Time
1 6 560794 11-MAY-11 560851 11-MAY-11
So far its all going swimmingly well.
Now I want to restore the datafiles and recover. So I ran :
RMAN run { restore database; recover database; alter database open resetlogs; }
This gave me the output below which goes great but I get a final error, I think the error is because its looking for an archive log thats not in the backup set, but it should be. However, I think SCN 560851 is for a log that hadnt been created yet on the old server when the backup was ran ?
How do I address resolving the error ? Its worth pointing out log, "archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
\2011_05_11\O1_MF_1_6_6WOK1X4W_.ARC recid=10 stamp=750881741" isnt on the old server either which is why its not in the backup set.
I can do a alter database open reset logs but Id prefer to know why its failing.
Any help would be much appreciated.
RMAN> run { restore database; recover database; alter database open resetlogs; }
Starting restore at 11-MAY-11
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\SYSTEM01.DBF
restoring datafile 00002 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\UNDOTBS01.DBF
restoring datafile 00003 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\SYSAUX01.DBF
restoring datafile 00004 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\USERS01.DBF
channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\FLASH_REC
OVERY_AREA\SAT\BACKUPSET\2011_05_11\O1_MF_NNNDF_TAG20110511T163507_6WOC5CM7_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\2011_05_
11\O1_MF_NNNDF_TAG20110511T163507_6WOC5CM7_.BKP tag=TAG20110511T163507
channel ORA_DISK_1: restore complete, elapsed time: 00:00:55
Finished restore at 11-MAY-11
Starting recover at 11-MAY-11
using channel ORA_DISK_1
starting media recovery
channel ORA_DISK_1: starting archive log restore to default destination
channel ORA_DISK_1: restoring archive log
archive log thread=1 sequence=6
channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\FLASH_REC
OVERY_AREA\SAT\BACKUPSET\2011_05_11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\2011_05_
11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_.BKP tag=TAG20110511T163653
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
\2011_05_11\O1_MF_1_6_6WOK1X4W_.ARC thread=1 sequence=6
channel default: deleting archive log(s)
archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
\2011_05_11\O1_MF_1_6_6WOK1X4W_.ARC recid=10 stamp=750881741
unable to find archive log
archive log thread=1 sequence=7
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 05/11/2011 18:15:42
RMAN-06054: media recovery requesting unknown log: thread 1 seq 7 lowscn 560851
RMAN>
Edited by: user12173666 on 11-May-2011 10:28You need to do incomplete recovery i.e. to ask RMAN to restore/recover to some specific point in time. This is usually done with some UNTIL clause or SET UNTIL statement. Example in your case:
SET UNTIL SEQUENCE 7;See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta065.htm#RCMRF160. -
10.1.0.2.0 Database Control Backup error.
Has anybody found this error when running an "gui" Database Control error?
I can successfully run a command line RMAN backup (script) on our production server, however I get the following error when attempting to schedule an backup through the GUI.
STATUS: failed initialization, Param username not provided.
When I go through setting up the backup I ensure to "test backup to disk" which is successful.
It should work if the test is successful, and I am able to run the scripted RMAN backup to the same directory on the disk with no issues.
Any thoughts?
Kindest regards,
ShawnIs this window box , if this is the case then you
need to set the local security policy before running
backup job.Yes, make sure your username (i.e. the one running the job) has log on as batch job privilege. -
Hi all,
i got a scenerion where i need to check whether rman back is valid or not.
i have y server where production db resides and storage team kept the 7 days old rman backup in the same production server and my resposibility is to reatore the rman backup with new database name in the same server and to query the new db to cross verify that rman backup is valid or not.
oracle version : 9.2.0.4.0
os : windows
appreciated the inputs.
Thanks
PrakashCan you solve your problem?
Now I explain this for you.Consider we have database which name is "w".We want craete new database (w1) using backup of w in same machine.Also backup of database have located in D:\oracle\product\10.2.0\flash_recovery_area\W.
First we have to create service and some directories for new W1,aslo restore spfile and controlfile as
C:\Documents and Settings\chinar>set ORACLE_SID=W1
C:\Documents and Settings\chinar>rman target sys/sm
Recovery Manager: Release 10.2.0.2.0 - Production on Fri May 14 11:00:51 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-12560: TNS:protocol adapter error
C:\Documents and Settings\chinar>oradim -new -sid W1 -intpwd sm
Instance created.
C:\Documents and Settings\chinar>rman target sys/sm
Recovery Manager: Release 10.2.0.2.0 - Production on Fri May 14 11:01:21 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database (not started)
RMAN> startup nomount;
startup failed: ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file 'D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE
\INITW1.ORA'
starting Oracle instance without parameter file for retrival of spfile
Oracle instance started
Total System Global Area 159383552 bytes
Fixed Size 1288292 bytes
Variable Size 58722204 bytes
Database Buffers 92274688 bytes
Redo Buffers 7098368 bytes
RMAN> restore spfile to pfile 'D:\oracle\product\10.2.0\admin\W1\pfile\initw1.or
a' from 'D:\oracle\product\10.2.0\flash_recovery_area\W\AUTOBACKUP\2010_05_14\O1
_MF_S_718973315_5YSS1O7W_.BKP';
Starting restore at 14-MAY-10
using channel ORA_DISK_1
channel ORA_DISK_1: autobackup found: D:\oracle\product\10.2.0\flash_recovery_ar
ea\W\AUTOBACKUP\2010_05_14\O1_MF_S_718973315_5YSS1O7W_.BKP
channel ORA_DISK_1: SPFILE restore from autobackup complete
Finished restore at 14-MAY-10
RMAN>
RMAN> restore controlfile to 'D:\oracle\product\10.2.0\oradata\W1\control01.ctl'
from 'D:\oracle\product\10.2.0\flash_recovery_area\W\AUTOBACKUP\2010_05_14\O1_M
F_S_718973315_5YSS1O7W_.BKP';
Starting restore at 14-MAY-10
using channel ORA_DISK_1
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:02
Finished restore at 14-MAY-10
RMAN>
then change initw1. pfile accourding to W!(all w change to W1) and create additional two copy of controlfile from
D:\oracle\product\10.2.0\oradata\W1\CONTROL01.CTL. then
C:\Documents and Settings\chinar>rman target sys/sm
Recovery Manager: Release 10.2.0.2.0 - Production on Fri May 14 11:14:34 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: DUMMY (not mounted)
RMAN> shutdoen immediate;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "allocate, alter
, backup, beginline, blockrecover, catalog, change, connect, copy, convert, crea
te, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flas
hback, host, {, library, list, mount, open, print, quit, recover, register, rele
ase, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, s
et, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport
, upgrade, unregister, validate"
RMAN-01008: the bad identifier was: shutdoen
RMAN-01007: at line 1 column 1 file: standard input
RMAN> shutdown immediate;
using target database control file instead of recovery catalog
Oracle instance shut down
RMAN> startup mount pfile='D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA';
connected to target database (not started)
Oracle instance started
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 05/14/2010 11:15:28
ORA-01103: database name 'W' in control file is not 'W1' -- return still db_name to w and restart
RMAN> shutdown immediate;
Oracle instance shut down
RMAN> startup mount pfile='D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA';
connected to target database (not started)
Oracle instance started
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 05/14/2010 11:16:17
ORA-01102: cannot mount database in EXCLUSIVE mode -- add pfile *.db_unique_name=w1
RMAN> shutdown immediate;
Oracle instance shut down
RMAN> startup mount pfile='D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA';
connected to target database (not started)
Oracle instance started
database mounted
Total System Global Area 125829120 bytes
Fixed Size 1288100 bytes
Variable Size 62916700 bytes
Database Buffers 54525952 bytes
Redo Buffers 7098368 bytes
RMAN> catalog start with 'D:\oracle\product\10.2.0\flash_recovery_area\W';
Starting implicit crosscheck backup at 14-MAY-10
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=157 devtype=DISK
Crosschecked 1 objects
Finished implicit crosscheck backup at 14-MAY-10
Starting implicit crosscheck copy at 14-MAY-10
using channel ORA_DISK_1
Crosschecked 2 objects
Finished implicit crosscheck copy at 14-MAY-10
searching for all files in the recovery area
cataloging files...
no files cataloged
searching for all files that match the pattern D:\oracle\product\10.2.0\flash_re
covery_area\W
List of Files Unknown to the Database
=====================================
File Name: D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\AUTOBACKUP\2010_05_14\
O1_MF_S_718973315_5YSS1O7W_.BKP
Do you really want to catalog the above files (enter YES or NO)? y
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\AUTOBACKUP\2010_05_14\
O1_MF_S_718973315_5YSS1O7W_.BKP
RMAN>
RMAN> run
2> {
3> set newname for datafile 1 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.D
BF';
4> set newname for datafile 2 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\UNDOTBS01.
DBF';
5> set newname for datafile 3 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSAUX01.D
BF';
6> set newname for datafile 4 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\USERS01.DB
F';
7> set newname for datafile 5 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\EXAMPLE01.
DBF';
8> set newname for datafile 6 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\USERS02.DB
F';
9> restore database;
10> }
executing command: SET NEWNAME
using target database control file instead of recovery catalog
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 14-MAY-10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=157 devtype=DISK
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.DBF
restoring datafile 00002 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\UNDOTBS01.DBF
restoring datafile 00003 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSAUX01.DBF
restoring datafile 00004 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\USERS01.DBF
restoring datafile 00005 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\EXAMPLE01.DBF
restoring datafile 00006 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\USERS02.DBF
channel ORA_DISK_1: reading from backup piece D:\ORACLE\PRODUCT\10.2.0\FLASH_REC
OVERY_AREA\W\BACKUPSET\2010_05_14\O1_MF_NNNDF_TAG20100514T104649_5YSRYBV3_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\BACKUPSET\2010_05_14
\O1_MF_NNNDF_TAG20100514T104649_5YSRYBV3_.BKP tag=TAG20100514T104649
channel ORA_DISK_1: restore complete, elapsed time: 00:01:25
Finished restore at 14-MAY-10
RMAN>
then backup controlfile to trace as:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\chinar>set ORACLE_SID=W1
C:\Documents and Settings\chinar>sqlplus "sys/sm as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Fri May 14 11:26:42 2010
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> alter database backup controlfile to trace as 'D:\oracle\product\10.2.0\ora
data\W1\ctrl.sql';
Database altered.
SQL>
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL>
Now edit ctrl.sql for chhange database name to new W1 also change in pfile db_name from W to W1.And delete
all controlfile from D:\oracle\product\10.2.0\oradata\W1. Then
SQL> startup mount pfile=D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA;
ORACLE instance started.
Total System Global Area 125829120 bytes
Fixed Size 1288100 bytes
Variable Size 62916700 bytes
Database Buffers 54525952 bytes
Redo Buffers 7098368 bytes
Database mounted.
SQL>
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.DBF'
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 1419839 generated at 05/13/2010 12:36:09 needed for thread 1
ORA-00289: suggestion :
D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W1\ARCHIVELOG\2010_05_14\O1_MF_1_25
_%U_.ARC
ORA-00280: change 1419839 for thread 1 is in sequence #25
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.DBF'
ORA-01112: media recovery not started
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.DBF'
SQL>
add pfile *._allow_resetlogs_corruption=true
again
SQL> startup mount pfile=D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA;
ORACLE instance started.
Total System Global Area 125829120 bytes
Fixed Size 1288100 bytes
Variable Size 62916700 bytes
Database Buffers 54525952 bytes
Redo Buffers 7098368 bytes
Database mounted.
SQL> recover;
Media recovery complete.
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
then remove _allow_resetlogs_corruption=true parameter from pfile and
SQL> startup mount pfile=D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA;
ORACLE instance started.
Total System Global Area 125829120 bytes
Fixed Size 1288100 bytes
Variable Size 62916700 bytes
Database Buffers 54525952 bytes
Redo Buffers 7098368 bytes
Database mounted.
SQL> alter database open;
Database altered.
SQL>
Maybe you are looking for
-
HP6700 Printer: can't connect to D-Link DI-514 Wireless Router when Router Broadcast SSID is set to NO. My MAC LapTop and HP LapTop both work with the SSID set to NO. If I change the Wireless Router to Broadcast SSID is YES, then the HP6700 Printer
-
How to link documents in SD following tables?
Hi All, I am new to SD and I am a technical person not a business person. But now I have to find out how to link a billing document of type Credit Memo (tcode VF03) with the invoice that originated it. I can see in the document flow of the credit mem
-
Ipod Not Popping Up On iTunes.
Okay, so I plugged my Ipod into my USB port, and opened up iTunes, but my iPod didn't show up where it is suppose to be. I've had this iPod for a year now, and this never happened. I can't sync my iPod or do anything with it. Can anyone tell me how t
-
Collect IDocs to Single Request message without BPM
Hi Experts, My scenario is IDoc to SOAP. PI receives multiple IDoc with same message type. ECC pushed bundled IDOcs to PI via HTTP port. Ex: <CLFMAS> <IDOC1> <IDOC2> <IDOC3> The receiver is SOAP channel. I would like
-
XI: Combine File - add filenames at bottom
When combining files (e.g. jpg) to 1 PDF I would like to add the source filename + date (EU format) at the bottom of the each page. It would roughtly be as follows: the combine files steps as usual then a sequ that adds the original filename+date at