Restoring of rman backup

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
Prakash

Can 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>

Similar Messages

  • Restoring a RMAN backup to a new database instance

    Hi Mates,
    I have an issue with restoring a RMAN backup that i have with me to a new database instance. What i have with me are:
    1. Backup of SPFile. (O1_MF_NCNNF_CTLFILE_BU_92DVGYO2_.BKP)
    2. Backup of Control file (O1_MF_NNSNF_SPFILE_BU_92DVGW9H_.BKP)
    3. Full database backup (O1_MF_NNSNF_FULLPROD_BU_92DVGW9H_.BKP)
    I have received these files from a customer environment and I need to restore these to a new database instance in a local machine. I have given a attempt as follows (in Oracle 10g):
    1, Created a new database instance (Test75) using Oracle Database Configuration Assistant
    2. SET ORACLE_SID = Test75
    3. Connected to this instance using RMAN
    4. Tried to restore the SPFILE from the received BKP file.
    I am getting errors and cannot proceed. I am not sure whether I am executing the correct steps. Please help me out by telling me how should I achieve this.
    Thank you.

    1. Backup of SPFile. (O1_MF_NCNNF_CTLFILE_BU_92DVGYO2_.BKP)
    2. Backup of Control file (O1_MF_NNSNF_SPFILE_BU_92DVGW9H_.BKP)
    The first backuppiece looks like a ControlFile and the second one looks like an SPFILE'
    >I am getting errors and cannot proceed
    What is the error ?  (I assume that you tried to restore the SPFILE from O1_MF_NNSNF_SPFILE_BU_92DVGW9H_.BKP
    Note that you also have to SET DBID before you restore the controlfile 
    Hemant K Chitale

  • How to restore a Rman backup from Tape

    Hi,
    We need to restore the database backup taken through RMAN on 24-JUNE-2013 from tape as this backup is not currently available on disk.
    Can you please help me on the following,
    1) how i can check if the same backup on 24-JUNE-2013 is available on Tape.
    2) If yes how i can restore to Disk.
    Because we need to create a new Clone instance from the backup taken on 24-JUNE-2013.
    We are having 12.1.3 Application on Exalogic and 11.2.0.3 Database on Exadata machine.
    Our support is highly appreciated.
    Thanks

    user11969666 wrote:
    Hi,
    We need to restore the database backup taken through RMAN on 24-JUNE-2013 from tape as this backup is not currently available on disk.
    Can you please help me on the following,
    1) how i can check if the same backup on 24-JUNE-2013 is available on Tape.
    2) If yes how i can restore to Disk.
    Because we need to create a new Clone instance from the backup taken on 24-JUNE-2013.
    We are having 12.1.3 Application on Exalogic and 11.2.0.3 Database on Exadata machine.
    Our support is highly appreciated.
    Thanks
    Your questions are answered in the Backup and Recovery User's Guide -- Contents
    Thanks,
    Hussein

  • Restore old rman backup after changing dbid?

    Hi,
    I backed up database using rman. then i changed dbid for that databases. can i restore backup what i backed up before changing DBID?

    No.
    When you change the DBID for a database, it becomes a different database. All the datafiles are stamped with the new DBID.
    And you cannot select a DBID value either, so you cannot choose to change the DBID back to the previous value.
    A RESTORE verifies that it is restoring to the same database -- it uses the DBID to verify. Since the DBIDs for the Backup and the now-present database do not match, a RESTORE cannot be attempted.
    You can remove the database with the changed DBID and do a complete RESTORE from the backup.
    Hemant K Chitale

  • Restoring 9i Rman backup in 10g

    Hi,
    Is it possible to clone a 10g database with the Rman backup of 9i database ? if yes what will be the steps for that ?

    Hi;
    Please see:
    RMAN Compatibility Matrix [ID 73431.1]
    Answers To FAQ For Restoring Or Duplicating Between Different Versions And Platforms [ID 369644.1]
    Regard
    Helios

  • Restore an RMAN backup to a new db instance name.

    I have a old copy of an RMAN backup of a production database from 2 months ago. I want to restore it to a new instance name. The backup no longer shows in the RMAN backup listing from the control file of the current production system.
    The backup I have does have the control file as well as the other backup pieces, Is there a procedure to restore this to a new instance since the backup is no longer in the current production control file?
    I have used the duplicate command of RMAN and have successfully restored databases to a new instance name by using the newname option.
    But the backups were always in the control file.
    Can this be done? If so, how?

    You need to restore the controlfile first and copy it into all locations where init.ora specify them. then startup mount, and 'rman / target' will give you access to the old contents of the controlfile at that time.. If the rest of the back is on tape, you need to restore the rman backupset first to disk on same location specified in the backupsets paths. same for the archivelogs.
    Then you can decide to go for a duplicate database to target <newname> or a restore DB (must have the same name). but was the DB a cold backup ? then remember than Rman does not takes the redo logs, so that your shutdown before must be clean (shutdown immediate at most). If it is an hot you may need need to dump the arc and possible do a recover manual (case you forgot to put the arcchives or the archives names is not the same in the init.ora than original for you include the db name in it).
    In that case the archive logs may be renamed to what ever is in the init.ora. and there are many others possbilities. you did not specified enough data on the backup

  • Restoring for RMAN backup

    hi,
    I have my prod database in oracle RAC two node. And i create a similar test setup for doing the testing.
    Now i need to backup(hot) the data from prod and want to restore in test environment.
    Even the test node is the two node RAC and with same directory structure.
    The only difference is the DB name and instance names.
    so anyone please help me which method i have to go for restoring the backup from prod.
    Recover catalog is there.

    The documentation has irrefragable answers on your questions:
    http://download-uk.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb001.htm#i1008888
    Regards,
    Andrey

  • Error , ORA-19809 & ORA-19804 While restoring RMAN backup .

    Hi Experts,
    I am restoring production RMAN backup to UAT . Using below steps
    1)rman target=/
    2)RMAN> startup nomount;
    3) RMAN> restore controlfile from '/orabkdump/Rman_Bak/ACME/bkup_CTLFL_2206101206.ctl';
    Starting restore at 05-AUG-10
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=3 device type=DISK
    channel ORA_DISK_1: copied control file copy
    output file name=+DATA_ACME/acme/controlfile/current.256.724845209
    output file name=+DATA_ACME/acme/controlfile/current.257.724845209
    Finished restore at 05-AUG-10
    4) RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    5) RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/orabkdump/Rman_Bak/ACME/%F';
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/orabkdump/Rman_Bak/ACME1/current/%F';
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/orabkdump/Rman_Bak/ACME/%F';
    new RMAN configuration parameters are successfully stored
    6) RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/orabkdump/Rman_Bak/ACME/%U';
    old RMAN configuration parameters:
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/orabkdump/Rman_Bak/ACME/%U';
    new RMAN configuration parameters:
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/orabkdump/Rman_Bak/ACME/%U';
    new RMAN configuration parameters are successfully stored
    released channel: ORA_DISK_1
    7) RMAN> CATALOG START WITH '/orabkdump/Rman_Bak/ACME';
    searching for all files that match the pattern /orabkdump/Rman_Bak/ACME
    List of Files Unknown to the Database
    =====================================
    File Name: /orabkdump/Rman_Bak/ACME/ACME_DB_722347594_1_1
    File Name: /orabkdump/Rman_Bak/ACME/ACME_DB_722347939_2_1
    File Name: /orabkdump/Rman_Bak/ACME/ACME_DB_722348365_3_1
    File Name: /orabkdump/Rman_Bak/ACME/ACME_DB_722348681_4_1
    File Name: /orabkdump/Rman_Bak/ACME/ACME_DB_722349076_5_1
    File Name: /orabkdump/Rman_Bak/ACME/bkup_CTLFL_2206101206.ctl
    File Name: /orabkdump/Rman_Bak/ACME/c-1904932673-20100622-00
    File Name: /orabkdump/Rman_Bak/ACME/dbsnap.log
    File Name: /orabkdump/Rman_Bak/ACME/rman_Tuesday_LVL_0.log
    File Name: /orabkdump/Rman_Bak/ACME/rman_Tuesday_LVL_0.trc
    Do you really want to catalog the above files (enter YES or NO)? YES
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /orabkdump/Rman_Bak/ACME/ACME_DB_722347594_1_1
    File Name: /orabkdump/Rman_Bak/ACME/ACME_DB_722347939_2_1
    File Name: /orabkdump/Rman_Bak/ACME/ACME_DB_722348365_3_1
    File Name: /orabkdump/Rman_Bak/ACME/ACME_DB_722348681_4_1
    File Name: /orabkdump/Rman_Bak/ACME/ACME_DB_722349076_5_1
    File Name: /orabkdump/Rman_Bak/ACME/bkup_CTLFL_2206101206.ctl
    File Name: /orabkdump/Rman_Bak/ACME/c-1904932673-20100622-00
    List of Files Which Where Not Cataloged
    =======================================
    File Name: /orabkdump/Rman_Bak/ACME/dbsnap.log
    RMAN-07517: Reason: The file header is corrupted
    File Name: /orabkdump/Rman_Bak/ACME/rman_Tuesday_LVL_0.log
    RMAN-07517: Reason: The file header is corrupted
    File Name: /orabkdump/Rman_Bak/ACME/rman_Tuesday_LVL_0.trc
    RMAN-07517: Reason: The file header is corrupted
    8) RMAN> run {
    2> set until sequence 1789 thread 2;
    3> restore database;
    4> recover database;
    5> sql 'alter database open resetlogs';
    6> }
    executing command: SET until clause
    Starting restore at 06-AUG-10
    using channel ORA_DISK_1
    Finished restore at 06-AUG-10
    Starting recover at 06-AUG-10
    using channel ORA_DISK_1
    starting media recovery
    channel ORA_DISK_1: starting archived log restore to default destination
    channel ORA_DISK_1: restoring archived log
    archived log thread=1 sequence=2803
    channel ORA_DISK_1: restoring archived log
    archived log thread=2 sequence=6051
    channel ORA_DISK_1: restoring archived log
    archived log thread=1 sequence=2804
    channel ORA_DISK_1: reading from backup piece /orabkdump/Rman_Bak/ACME/ACME_AL_726286927_57_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 08/06/2010 23:10:38
    ORA-19870: error while restoring backup piece /orabkdump/Rman_Bak/ACME/ACME_AL_726286927_57_1
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 49283072 bytes disk space from 5218762752 limit
    ** My UAT database should be in noarchival mode . Generally such errors have been observed during backup , but have no clue why they occurred during recovery .Please advice .
    Thanks
    Edited by: user11981514 on Aug 6, 2010 9:46 AM

    Hi,
    Since the error ORA-19809 indicates the lack of space in flash recovery area during the media recovery, I suggested increasing the value of the parameter DB_RECOVERY_FILE_DEST_SIZE.
    Yes, during the media recovery the RMAN will restore the archived log to the default destination (only if the required archived logs are not already on the disks).You can confirm the restore location of the archived log in RMAN restore log/destination specified by parameters log_archive_dest_1/db_recovery_file_dest.
    Regards,
    Vaibhav

  • Restore RMAN from different Database Rman backup

    Hi Everybody
    I am practicing Rman so I have one query that how to restore rman backup from another database.
    For Example :
    1. I have Rman backup of DB1 with level 0 and level 1 cumulative database plus archievelog
    2. I need to import or restore Rman backup of DB1 to another database DB2.
    What is the procedure for doing the above queries. Please anyone one help me out.
    I have using oracle 10g r2 running in windows server 2003.
    Thanks in advance.

    These are the steps ; you need to write the appropiate commands for each step: Hope it helps!
    1) Take appropriate RMAN backup of the database db1. Note that you should turn on the CONTROLFILE AUTOBACKUP configuration so that we have the controlfile backed up after the database backup. When we restore the controlfile on new host from this autobackup piece, it will have the information of the latest backup.
    2) Create a PFILE for the destination database db2 using the database db1
    3) Move the backup pieces and the modified INIT.ORA file to the new host. Starting from 10g it is NO longer compulsory to copy the RMAN backup pieces to exactly the same location on the new host as the production location.
    4) Use the pfile created above to STARTUP NOMOUNT the database on the new host
    5) Now invoke RMAN and restore the controlfile specifying the location where the controlfile autobackup piece is restored on this new server. You can mount the database once the controlfile is restored successfully.
    6) You can skip this step if you have restored the RMAN backup pieces to exactly the same location they were backed up on database db1. If this is not the case then you need to catalog the RMAN backup pieces to make RMAN aware of thier new location on the new host. Note that CATALOG BACKUPPIECE command is available only starting from 10g.
    7) Having determined the point up to which media recovery should run, start the restore/recovery using for example:
    RMAN> run {
    2> set until sequence 59 thread 1;
    3> set newname for datafile 1 to '/new_location/system01.dbf';
    4> set newname for datafile 2 to '/new_location/undotbs01.dbf';
    5> set newname for datafile 3 to '/new_location/sysaux01.dbf';
    6> set newname for datafile 4 to '/new_location/users01.dbf';
    7> restore database;
    8> switch datafile all;
    9> recover database;
    10> }

  • Database restore from old rman backup

    Hi Friends,
    My database version is oracle 10.2.0 O/s : Windows
    I have a production database of an outlet. Yesterday night 11pm they have done some wrong transactions and whole stock is showing wrong.
    They have taken a export backup at 9.30 pm and latest archives are there.
    We have a rman backup on April-30,2008. when I am trying to restore from the old rman backup the controlfile I am unable to do it.
    Can any one of you help me out.
    thankyou
    satya

    Hi,
    I have tried installing in a seperate system and restore the rman backup, as I do not have the controlfile I have taken a standby controlfile and started restoring the rman backup as the old rman backup dbid is different with the current dbid and giving me following error:
    ORA-19870: error reading backup piece D:\MPOUTLET\0AJF4BM3_1_1
    ORA-19691: D:\MPOUTLET\0AJF4BM3_1_1 is from different database: id=1976833331, name=JEEVAMP
    ORA-19870: error reading backup piece D:\MPOUTLET\0BJF4BOE_1_1
    ORA-19691: D:\MPOUTLET\0BJF4BOE_1_1 is from different database: id=1976833331, name=JEEVAMP
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of catalog command at 07/13/2008 12:23:23
    RMAN-06209: List of failed objects
    RMAN-06211: ==========================
    RMAN-06212: Object Type Filename/Handle
    RMAN-06213: --------------- ---------------------------------------------------
    RMAN-06214: Backup Piece D:\MPOUTLET\0AJF4BM3_1_1
    RMAN-06214: Backup Piece D:\MPOUTLET\0BJF4BOE_1_1

  • 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 backup restore leads to the error "ORA-00600: internal error code, arguments: [kccsbck_first], [2], [2349545192]" on DB startup

    Hi All,
    DB:11.2.0.3.0
    OS: Sun Solaris SPARC 64 bits
    I am facing an issue -  RMAN backup restore leads to the error "ORA-00600: internal error code, arguments: , , " on DB startup. Restored from RMAN backup DB test2 to DB test1.
    <p mcekeep="true">  $ sqlplus / as sysdba
    <p mcekeep="true">   SQL*Plus: Release 11.2.0.3.0   Production on Sun Oct 6 09:31:28 2013
    <p mcekeep="true">   Copyright (c) 1982, 2011,   Oracle.  All rights reserved.
    <p mcekeep="true">   Connected to an idle instance.
    <p mcekeep="true">  
    SQL> startup
    ORACLE instance started.
    Total System Global Area 4277059584 bytes
    Fixed Size                  2166160 bytes
    Variable Size            1493176944 bytes
    Database Buffers         2768240640 bytes
    Redo Buffers               13475840 bytes
    ORA-00600: internal error code, arguments: , , ,
    SQL> exit
    DB test2 database validated:
    RMAN> validate Database;
    No issues reported.
    Could anyone please let me the what's the cause of this error
    Thanks for your time
    Regards,
    user10088255

    HI,
    CASE : I
    C:\>set ORACLE_SID=xxxx
    C:\>sqlplus sys/XXXXX@rosen as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Sat Jan 29 12:28:00 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area   3423965184 bytes
    Fixed Size                      2180544 bytes
    Variable Size                2080377408 bytes
    Database Buffers           1325400064 bytes
    Redo Buffers                   16007168 bytes
    ORA-00600: internal error code, arguments: [kccsbck_first], [1], [3978145973],
    Solution:   AFTER GETTING  ORA-00600, SHUT THE DATABASE AND STARTUP IT INTO MOUNT STAGE  AND  THEN ALTER  DATABASE   TO OPEN STAGE .
    SQL> shut immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 3423965184 bytes
    Fixed Size                      2180544 bytes
    Variable Size                 2080377408 bytes
    Database Buffers           1325400064 bytes
    Redo Buffers                    16007168 bytes
    Database mounted.
    SQL> alter database open;
    Database altered.
    SQL> select name,open_mode from v$database;
    NAME      OPEN_MODE
    ROSEN     READ WRITE
    CASE :: II
    C:\>sqlplus sys/XXXX@royalton as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Sat Jan 29 12:37:37 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  3423965184 bytes
    Fixed Size                      2180544 bytes
    Variable Size                  1979714112 bytes
    Database Buffers            1426063360 bytes
    Redo Buffers                  16007168 bytes
    ORA-00600: internal error code, arguments: [kccsbck_first], [1], [73515151],[], [], [], [], [], [], [], [], []
    Solution :  As in above case, I have started the database in mount and then alter it to the open mode but it doesnot work out. After some analysis ,troubleshooting and googling, we have decided to flush the shared pool  component of the SGA . So, we have started the database in mount stage and then flush the shared pool and further alter it to open stage . Below are the steps performed to solve this issue .
    SQL> shut immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    C:\>set ORACLE_SID= royalton
    C:\>sqlplus sys/xxxxxxxx@royalton  as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Sat Jan 29 12:28:00 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 3423965184 bytes
    Fixed Size                     2180544 bytes
    Variable Size                 2080377408 bytes
    Database Buffers            1325400064 bytes
    Redo Buffers                  16007168 bytes
    Database mounted.
    SQL> alter system flush shared_pool;
    SQL> alter database open
    Database altered.
    SQL> select name,open_mode from v$database;
    NAME            OPEN_MODE
    ROYALTON        READ WRITE
    Conclusion : Though this is not the solution but a workaround to solve ORA-00600  which is having same argument as above, then you may follow the above steps.
    Please chek this link : One Can Succeed at Almost Anything For Which He Has Enthusiasm...: ORA-00600: internal error code, arguments: [kccsbck_f…

  • RMAN backup restoration on diff OS

    Hi,
    Is it possible to restore an RMAN backup taken on AIX on Solaris?
    Any special tasks need to be done?
    TIA.
    KV

    Pavan Kumar wrote:
    Hi,
    Alternatives are available.
    Refer to doc : http://youngcow.net/doc/oracle10g/backup.102/b14191/rcmrecov002.htm (Old one)
    Try to test since I have not tested on AIX.
    - Pavan Kumar NHi Pavan
    As you know, AIX and Solaris are two different type of operating systems. It's not possible to copy RMAN backups from one host (AIX) and restore it at the second host (Solaris)
    File headers will be different and the system will not recognize the datafiles

  • Is it possible to restore TSM/ADSM RMAN backup pieces to disk manually?

    Is it possible to restore TSM/ADSM RMAN backup pieces to disk manually, and re-catlog as disk backups?
    Oracle 10.2.0.3
    TSM client 5.5.1.1
    SUN Solaris 10 64-bit
    We are gearing up to switch from IBM's Tivoli (TSM/adsm) to EMC's Networker (Legatto), and the old TSM software drivers are going to be uninstalled.
    In a worse case scenario, we would therefore not be able to easily restore using RMAN and TSM just after the switch, and before new backups are made on Networker.
    To be comfortable with the backup methodology change, we need to explore restoring the RMAN backup pieces of a given tag using TSM commands (dsmc ?) to a filesystem, re-catalog the backup pieces now on disk, and then perform test restore/recoveries using RMAN with disk channels.
    Does anyone know of the TSM command (dsmc ?) to perform the restores of RMAN backup pieces?
    Thanks!

    This is a set of guesses and thoughts.
    1: When you say you are removing the Tivoli software drive, is this just the driver from the oracle home, or is it more substantive. In fact could you have a different oracle home to access tivoli, possible with a rman catalog copy.
    2: I dont believe the backup tag is part of the filename, however is it possilbe to query the rman catalog to get the filenames mapped to a tag?
    3: Providing you know the filenames you wish to restore then it is possible to browse the tivoli catalog. Its ages since I've done this but doesn't samc have at interactive mode
    Apologies if these suggestions are rubbish and hopefully someone gives a better answer.

  • 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

Maybe you are looking for