Restore RMAN backup on new server

Hi
I took RMAN backup of a database with control file autobackup on...I copied the backup
to a new server restored the spfile from the backup and modified the parameters
bdump,udump,control file because the directory structure is different from the original
machine.I restored the control file and it was restored properly.
Now I need to restore the datafiles in the new path so I used set newname and switch
but I get some error ....I have posted the error please look at it
RMAN> run
2> {
3> set newname for datafile 1 to 'E:\ORACLE\METAGRID\ORADATA\METAGRID\SYSTEM01.DBF';
4> set newname for datafile 2 to 'E:\ORACLE\METAGRID\ORADATA\METAGRID\UNDOTBS01.DBF';
5> set newname for datafile 3 to 'E:\ORACLE\METAGRID\ORADATA\METAGRID\SYSAUX01.DBF';
6> set newname for datafile 4 to 'E:\ORACLE\METAGRID\ORADATA\METAGRID\USERS01.DBF';
7> set newname for datafile 5 to 'E:\ORACLE\METAGRID\ORADATA\METAGRID\TSDATA_01.DBF';
8> set newname for datafile 6 to 'E:\ORACLE\METAGRID\ORADATA\METAGRID\TSIDX01.DBF';
9> set newname for datafile 7 to
'E:\ORACLE\METAGRID\ORADATA\METAGRID\TSDATA_AUDIT01.DBF';
10> restore database;
11> switch datafile all;
12> recover database;
13> }
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 11-NOV-10
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 E:\ORACLE\METAGRID\ORADATA\METAGRID\SYSTEM01.DBF
restoring datafile 00002 to E:\ORACLE\METAGRID\ORADATA\METAGRID\UNDOTBS01.DBF
restoring datafile 00005 to E:\ORACLE\METAGRID\ORADATA\METAGRID\TSDATA_01.DBF
restoring datafile 00006 to E:\ORACLE\METAGRID\ORADATA\METAGRID\TSIDX01.DBF
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/11/2010 12:38:24
ORA-19693: backup piece E:\RMAN\DB_0FLSLJH1_1_1 already included

Try to clear and recatalog the backups to be used, before the restore:
rman target /
crosscheck backup;
delete expired backup;
catalog start with 'path_to_your_backup';

Similar Messages

  • Restoring Rman backup on New Host with different directory structure

    Hi,
    I have a following scenario to clone the database.
    1. clone the database on new server
    2. source is non - ASM and target is ASM
    3. On source incremental level 0 backup taken on disk connecting to catalog, the backup is moved to target host to different directory structure
    4. source is running on 32-bit Linux two node Rac and Target is running on 64-bit Linux two node Rac
    I did the following steps and getting below error:
    1. I copied incremental Level 0 backup to target server(where we need to build new db) to different directory structure
    2. On target i created pfile and build the instance, as dbf file are in multiple locations in source i put following tow parameters in init.ora of target database
    *.db_file_name_convert =(/u02/oradata/app1p/,+QADATA2/udev/datafile),(/u03/oradata/app1p/,+QADATA1/udev/datafile),(/u12/oradata/app1p/,+QADATA1/udev/datafile,),(/u99/oradata/app1p/,+QADATA1/udev/datafile),(/u09/oradata/app1p/,+QADATA1/udev/datafile),(/u14/oradata/app1p/,+QADATA1/udev/datafile),(/u07/oradata/app1p/,+QADATA1/udev/datafile),(/u06/oradata/prod/,+QADATA1/udev/datafile'),(/u05/oradata/app1p/,+QADATA1/udev/datafile)
    *.log_file_name_convert =("/u99/oradata/app1p/","+QADATA2/udev/onlinelog/")
    3. connected to rman -->> started db in nomount -->> restored the controlfile --> cataloged the backup piece and then i am trying to restore
    All the above steps i did using the Doc id *How To Restore Rman Backups On A Different Node When The Directory Structures Are Different [ID 419137.1]*
    script i am using is :
    RMAN> run {
    2> set until time "to_date('DEC/20/2010 05:30:00','Mon/DD/YYYY HH24:MI:SS')";
    3> allocate channel c1 device type disk;
    4> allocate channel c2 device type disk;
    5> allocate channel c3 device type disk;
    6> allocate channel c4 device type disk;
    7> set newname for datafile 1 to '+QADATA1/UDEV/DATAFILE';
    8> set newname for datafile 2 to '+QADATA1/UDEV/DATAFILE';
    9> set newname for datafile 3 to '+QADATA1/UDEV/DATAFILE';
    10> set newname for datafile 4 to '+QADATA1/UDEV/DATAFILE';
    11> set newname for datafile 5 to '+QADATA1/UDEV/DATAFILE';
    12> set newname for datafile 6 to '+QADATA1/UDEV/DATAFILE';
    13> set newname for datafile 54 to '+QADATA1/UDEV/DATAFILE';
    set newname for datafile 63 to '+QADATA1/UDEV/DATAFILE';
    14> 15> set newname for datafile 67 to '+QADATA1/UDEV/DATAFILE';
    16> set newname for datafile 68 to '+QADATA1/UDEV/DATAFILE';
    17> set newname for datafile 50 to '+QADATA1/UDEV/DATAFILE';
    18> set newname for datafile 39 to '+QADATA1/UDEV/DATAFILE';
    19> set newname for datafile 38 to '+QADATA1/UDEV/DATAFILE';
    20> set newname for datafile 7 to '+QADATA1/UDEV/DATAFILE';
    21> set newname for datafile 9 to '+QADATA1/UDEV/DATAFILE';
    22> set newname for datafile 8 to '+QADATA1/UDEV/DATAFILE';
    23> set newname for datafile 11 to '+QADATA1/UDEV/DATAFILE';
    24> set newname for datafile 10 to '+QADATA1/UDEV/DATAFILE';
    25> set newname for datafile 66 to '+QADATA1/UDEV/DATAFILE';
    26> set newname for datafile 48 to '+QADATA1/UDEV/DATAFILE';
    27> set newname for datafile 47 to '+QADATA1/UDEV/DATAFILE';
    28> set newname for datafile 12 to '+QADATA1/UDEV/DATAFILE';
    29> set newname for datafile 13 to '+QADATA1/UDEV/DATAFILE';
    30> set newname for datafile 14 to '+QADATA1/UDEV/DATAFILE';
    31> set newname for datafile 15 to '+QADATA1/UDEV/DATAFILE';
    32> set newname for datafile 16 to '+QADATA1/UDEV/DATAFILE';
    33> set newname for datafile 18 to '+QADATA1/UDEV/DATAFILE';
    34> set newname for datafile 17 to '+QADATA1/UDEV/DATAFILE';
    35> set newname for datafile 19 to '+QADATA1/UDEV/DATAFILE';
    36> set newname for datafile 69 to '+QADATA1/UDEV/DATAFILE';
    37> set newname for datafile 60 to '+QADATA1/UDEV/DATAFILE';
    38> set newname for datafile 59 to '+QADATA1/UDEV/DATAFILE';
    39> set newname for datafile 55 to '+QADATA1/UDEV/DATAFILE';
    40> set newname for datafile 53 to '+QADATA1/UDEV/DATAFILE';
    41> set newname for datafile 44 to '+QADATA1/UDEV/DATAFILE';
    set newname for datafile 22 to '+QADATA2/UDEV/DATAFILE';
    42> 43> set newname for datafile 21 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 20 to '+QADATA2/UDEV/DATAFILE';
    44> 45> set newname for datafile 72 to '+QADATA2/UDEV/DATAFILE';
    46> set newname for datafile 70 to '+QADATA2/UDEV/DATAFILE';
    47> set newname for datafile 65 to '+QADATA2/UDEV/DATAFILE';
    48> set newname for datafile 64 to '+QADATA2/UDEV/DATAFILE';
    49> set newname for datafile 57 to '+QADATA2/UDEV/DATAFILE';
    50> set newname for datafile 56 to '+QADATA2/UDEV/DATAFILE';
    51> set newname for datafile 49 to '+QADATA2/UDEV/DATAFILE';
    52> set newname for datafile 45 to '+QADATA2/UDEV/DATAFILE';
    53> set newname for datafile 26 to '+QADATA2/UDEV/DATAFILE';
    54> set newname for datafile 25 to '+QADATA2/UDEV/DATAFILE';
    55> set newname for datafile 24 to '+QADATA2/UDEV/DATAFILE';
    56> set newname for datafile 23 to '+QADATA2/UDEV/DATAFILE';
    57> set newname for datafile 27 to '+QADATA2/UDEV/DATAFILE';
    58> set newname for datafile 28 to '+QADATA2/UDEV/DATAFILE';
    59> set newname for datafile 29 to '+QADATA2/UDEV/DATAFILE';
    60> set newname for datafile 30 to '+QADATA2/UDEV/DATAFILE';
    61> set newname for datafile 73 to '+QADATA2/UDEV/DATAFILE';
    62> set newname for datafile 32 to '+QADATA2/UDEV/DATAFILE';
    63> set newname for datafile 31 to '+QADATA2/UDEV/DATAFILE';
    64> set newname for datafile 34 to '+QADATA2/UDEV/DATAFILE';
    65> set newname for datafile 33 to '+QADATA2/UDEV/DATAFILE';
    66> set newname for datafile 35 to '+QADATA2/UDEV/DATAFILE';
    67> set newname for datafile 36 to '+QADATA2/UDEV/DATAFILE';
    68> set newname for datafile 37 to '+QADATA2/UDEV/DATAFILE';
    69> set newname for datafile 51 to '+QADATA2/UDEV/DATAFILE';
    70> set newname for datafile 43 to '+QADATA2/UDEV/DATAFILE';
    71> set newname for datafile 40 to '+QADATA2/UDEV/DATAFILE';
    72> set newname for datafile 41 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 71 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 58 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 52 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 46 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 42 to '+QADATA2/UDEV/DATAFILE';
    73> 74> 75> 76> 77> 78> set newname for datafile 62 to '+QADATA2/UDEV/DATAFILE';
    79> set newname for datafile 61 to '+QADATA2/UDEV/DATAFILE';
    80> set newname for datafile 74 to '+QADATA2/UDEV/DATAFILE';
    81> restore database;
    82> switch datafile all;
    83> recover database;
    84> alter database open resetlogs;
    85>
    86> release channel c1;
    87> release channel c2;
    88> release channel c3;
    89> release channel c4;
    90> }
    Getting the following error, copied lines from the error i am getting.
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 27-DEC-10
    released channel: c1
    released channel: c2
    released channel: c3
    released channel: c4
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/27/2010 08:09:08
    RMAN-06026: some targets not found - aborting restore
    RMAN-06100: no channel to restore a backup or copy of datafile 74
    RMAN-06100: no channel to restore a backup or copy of datafile 73
    Please advice...
    Thanks,
    Tanveer Mohammed

    If you would like, please refer the link:-
    http://gavinsoorma.com/2010/04/creating-an-asm-duplicate-database-from-a-non-asm-database/

  • Restore incremental backups to new server

    Hello!
    I am trying to create my database on a new server using rman incremental cold backups.
    I have already restored my level 0 database, but i am not able to restore the level 1 backup because rman doesn't find it on the new server. I have transported the level 0 and level 1 backup in tar format from the old server to the new one. Also I have not executed recover copy of database with tag 'xxxx' after level 1 backup on the source server , because i want to transport only the incremental files. Can sb help me on this issue?
    Thanks in advance!

    Hi,
    Please follow the below process....
    1- Take Level 0 backup with archivelog from Primary machine.
    Note:- Auto Cotrolfile backup should be set in parameters setting of RMAN
    2- Ship this dackup to another machine(Directory Structure Should be same , If directory Strucuture is different then use set new name option while restore)
    3- STARTUP WITH NOMOUNT to second machine.
    4- connect rman
    5- RESTORE CONTROLFILE FROM AUTOBACKUP;(All backup files should be placed at same location as on primary server , if Location is different then use RESTORE CONTROLFILE FROM 'backup file'
    6- MOUNT THE DATABASE
    7- RESTORE DATABASE
    8 -RECOVER DATABASE
    After this go to primary machine do some updations and take INCREMENTAL LEVEL 1 BACKUP
    Move all files to New machine
    1-STARTUP NOMOUNT
    2- RESTORE CONTROLFILE FROM AUTOBACKUP;(All backup files should be placed at same location as on primary server , if Location is different then use RESTORE CONTROLFILE FROM 'backup file'
    Note:- This time controlfile should bw retored from New backup;
    3- MOUNT THE DATABASE;
    4- RECOVER DATABASE;( This time no need to restore database again).
    Hope this will help
    Thanks & Regards
    Rahul Sharma
    Database Administrator
    IndiaMART InterMESH Ltd.

  • Restore Rman backup on another server

    Hi.,
    I am taking oracle 10g rman Incremental backup level 1
    on Sunday I am taking full backup.
    No Repository catlog is used.
    I want to restore all the database using the backup of RMAN on the another server .
    Can you tell mi whats are the step to restore on another server .

    http://download-uk.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmrecov002.htm#sthref723

  • Can we restore oracle 11g RMAN backups to 10g server

    Hi,
    I have RMAN backups (full backup)of oracle 11g database. My server was suddenly crashed due to hardware failure.
    We have another Oracle 10g server. Is it possible to restore RMAN backups of 11g database to Oracle 10g server???
    Thanks

    I don't have 11g server ready with me. The other server running oracle 10g and I dont have rights to install oracle 11g on the 10g server. So I can not test the RESTORE/RECOVER commands.
    If anyone had experience in the past, please let me know whether we can RESTORE RMAN backups of 11g database to oracle 10g server...
    Thanks

  • Move Publisher backup to new server( Cold Standby Server) ?

    We have CUCM cluster consist of 1 publisher, 4 subscriber and have installed a new node like another cluster's publisher(with diferent ip address from existing publisher) . When existing publisher goes down we will move publisher backup to new server and change publisher ip address to new server on existing subscribers.
    is it posible ?
    Our aim is using new server for publisher down issue.(like cold standby server but diferent ip address from existing publisher)
    Or is there any better way to install publisher backup on on branch? When publisher goes down we will use the new server like publisher.

    Hi
    Re: NTP... you can have multiple NTP servers assigned, and only the primary NTP server is used for license MAC generation. As such, I would:
    1) set the primary NTP server to be the real NTP address you want to use. This will not be accessible when you build the server with the old servers' IP.
    2) set the secondary NTP server to an accessible NTP server. I do this by setting up NTP on the server you serve the SFTP backup file from. I use Meinberg NTP if this is a Windows box, it's free.
    That way you can build the server (primary NTP not accessible, but secondary is so it's fine). Then after the restore, change IP address and it will start using the primary NTP server.
    I presume deployment type refers to product and role .e.g. a CUCM Publisher, not a CUC server or CUCMBE publisher.
    Aaron HarrisonPrincipal Engineer at Logicalis UK
    Please rate helpful posts...

  • Restore RMAN Backup

    Dear All,
    I am practicing Oracle Restore scenarios on my Oracle 9i database. Once I complete my tests in Oracle 9i I will move up to 10g and then finally to 11g.
    Following is my recovery scenario:
    1) I did NOT configure Recovery Catalog
    2) I would like to restore my databse from a 15 days old backup
    3) control_file_record_keep_time is set to 7 days.
    4) Backups are on tape.
    Can you guys please shed some light on how to I proceed?
    - P

    In oracle 9i , check , which situation you can perform complete recovery and in which situations you have to select incomplete recovery.
    check the notes by Alejandro Vargas, BACKUP AND RECOVERY SCENARIOS
    http://www.google.co.in/#hl=en&q=oracle+backup+and+recovery+scenarios&aq=0&aqi=g10&aql=&oq=oracle+backup+and+reco&gs_rfai=&fp=aa24f2b3591f5f42
    [PDF]
    Backup and Recovery Scenarios - Backup & Recovery Check List
    - 4:11am
    File Format: PDF/Adobe Acrobat - Quick View
    Oracle Support Israel. User Managed Recovery Scenarios And Configuration .... 4. recover automatic database using backup controlfile; ...
    static7.userland.com/oracle/gems/.../BackupAndRecoveryChecklist.pdf
    refer this, this will helps you.
    Can one restore RMAN backups without a CONTROLFILE and RECOVERY CATALOG?_
    http://www.orafaq.com/wiki/Oracle_database_Backup_and_Recovery_FAQ#Can_one_restore_RMAN_backups_without_a_CONTROLFILE_and_RECOVERY_CATALOG.3F
    Edited by: rajeysh on Jun 20, 2010 6:36 PM

  • Steps to restore RMAN backups from tape to disk

    Hi All,
    using Netbackup Veritas Volume
    DB:10.2.0.3.0
    OS:AIX 64 bit
    Could nayone please share the steps to - restore RMAN backups from tape to disk.
    An early reply would be appreciated!!
    Thanks for your time!
    Regards,

    Hi,
    I went through as per your action plan it is giving below error I found a solution on meta doc id 559190.1 but i am not able to understant how to start observiced as it is mentioned in the doc id.
    allocated channel: t1
    channel t1: sid=2386 devtype=SBT_TAPE
    channel t1: Data Protection for Oracle: version 5.4.1.0
    Starting restore at 09-MAY-10
    channel t1: looking for autobackup on day: 20100509
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 05/09/2010 11:57:01
    ORA-27191: sbtinfo2 returned error
    Additional information: 2
    RMAN>
    Thanks,

  • What permission is needed for a login to access the restored database(backup from different server)

    what permission is needed for a login to access the restored database(backup from different server)
    frequently reach the situation, when vendor restores a database, but he cannot access it unless I remap or add his login to the restored database. What permssion can grant the vendor so that he can but only can access the database he restored, not all other
    databases.

    Hi George,
    According to your description, When you move a database from one server that is running SQL Server to another server that is running SQL Server, a mismatch may occur between the security identification numbers (SIDs) of the logins in the master database
    and the users in the user database. As other post, you can use the sp_change_users_login stored procedure to map SQL Server logins. Also , you can use the following statement after doing the restore database. It will
     fix the mis-mapped SID inside the restored DB.
    ALTER USER <username> WITH LOGIN = <username>
    For more information, you can review the following article.
    http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/MSSQLServerAdmin/do-you-still-use-sp_change_users_login/
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • 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/

  • How to Restore Control file to New Server

    I want to test my backup by restoring the full backup of my production database on a separate test server.
    I have taken following action for restore to test server:
    •     Copy full backup to Test Server on same folder where it was in Production Server.
    •     Copy parameter file to Test Server. (Edit control file location on it)
    •     Connect Rman
    •     Set DB with new DBID
    •     Startup Nomount (from new parameter file)
    RUN
    ALLOCATE CHANNEL c1 TYPE DISK;
    RESTORE CONTROLFILE FROM AUTOBACKUP;
    ALTER DATABASE MOUNT;
    Then we found following error:
    RMAN> RESTORE CONTROLFILE FROM AUTOBACKUP;
    Starting restore at 07-NOV-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=9 devtype=DISK
    channel ORA_DISK_1: looking for autobackup on day: 20071107
    channel ORA_DISK_1: looking for autobackup on day: 20071106
    channel ORA_DISK_1: looking for autobackup on day: 20071105
    channel ORA_DISK_1: looking for autobackup on day: 20071104
    channel ORA_DISK_1: looking for autobackup on day: 20071103
    channel ORA_DISK_1: looking for autobackup on day: 20071102
    channel ORA_DISK_1: looking for autobackup on day: 20071101
    channel ORA_DISK_1: no autobackup in 7 days found
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/07/2007 16:35:13
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    Can anyone guide me, how to restore control file?
    Irfan

    RMAN> RESTORE CONTROLFILE FROM AUTOBACKUP;
    Starting restore at 07-NOV-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=9 devtype=DISK
    channel ORA_DISK_1: looking for autobackup on day:
    20071107
    channel ORA_DISK_1: looking for autobackup on day:
    20071106
    channel ORA_DISK_1: looking for autobackup on day:
    20071105
    channel ORA_DISK_1: looking for autobackup on day:
    20071104
    channel ORA_DISK_1: looking for autobackup on day:
    20071103
    channel ORA_DISK_1: looking for autobackup on day:
    20071102
    channel ORA_DISK_1: looking for autobackup on day:
    20071101
    channel ORA_DISK_1: no autobackup in 7 days found
    RMAN-00571:It seems to me its not finding the contolfile from 7 days before sysdate ,increase the window size using
    RMAN>restore controlfile from autobackup maxdays 15;Khurram

  • RMAN clone in new server

    Hi
    I have rman tape backup of the entire database. I want to clone this on new server.
    I have started database in new server. It is in mount stage. how to restore and recover the datafiles on new host.
    I am using leagato server for tape backup. Please guide me on this.

    You need to use RMAN DUPLICATE and to adapt following steps to your environment http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006474.
    About tape backups, please note:
    >
    When using tape backups, you must make the tapes containing the backups accessible to the remote node. You can achieve this goal by physically moving the tape to a drive attached to the remote host or by means of a network-accessible tape server.

  • Create a database from 32bit rman backup with NEW name on a 64bit system

    Hello,
    i'm more programmer than database admin but i need to set up a 10gR2 apex development server based on our productive instance in a short time.
    For that i want to use a rman backup of the productive machine (SLES 10 32bit, DB10GR2+ASM, APEX 3.1).
    Because of the less time i got, i want to use an existing machine (SLES 11 64bit, DB10GR2+ASM) as destination.
    On this machine i want to create a new instance from the backup i took. I Already read note 881395.1 but i'm quite unsure about 2 things
    a) It's VERY IMPORTANT that the development instance has another name than the productive instance.
    When i follow 881395.1 and set the enviromental variable ORACLE_SID to another new name. Will this be all? Or will there be problems using another SID because of references in the controlfile or sth. like that?
    b) It's VERY IMPORTANT that the datafiles aren't stored in the same path and with the same names as the productive instance. It is another server but there is already a copy of the database (our dba tried to set up a standby solution on this machine) and i don't want to bother this!
    How can i rename the datafiles before restoring the backup from scatch?
    I found this: set newname for datafile 1 to '<filesystem based filename>';
    Will this help? Do i need to rename every single file? Or is it possible to set a path in which all datafiles will be restored?
    c) What about the 32bit to 64 bit thing? Will this work? Or do i need to convert the database? How? RMAN Convert?
    Or could RMAN convert anyhow used to realize the whole thing?
    Thank you very much for your support!
    Regards
    Daniel

    Hello,
    i'm more programmer than database admin but i need to set up a 10gR2 apex development server based on our productive instance in a short time.
    For that i want to use a rman backup of the productive machine (SLES 10 32bit, DB10GR2+ASM, APEX 3.1).
    Because of the less time i got, i want to use an existing machine (SLES 11 64bit, DB10GR2+ASM) as destination.
    On this machine i want to create a new instance from the backup i took. I Already read note 881395.1 but i'm quite unsure about 2 things
    a) It's VERY IMPORTANT that the development instance has another name than the productive instance.
    When i follow 881395.1 and set the enviromental variable ORACLE_SID to another new name. Will this be all? Or will there be problems using another SID because of references in the controlfile or sth. like that?
    b) It's VERY IMPORTANT that the datafiles aren't stored in the same path and with the same names as the productive instance. It is another server but there is already a copy of the database (our dba tried to set up a standby solution on this machine) and i don't want to bother this!
    How can i rename the datafiles before restoring the backup from scatch?
    I found this: set newname for datafile 1 to '<filesystem based filename>';
    Will this help? Do i need to rename every single file? Or is it possible to set a path in which all datafiles will be restored?
    c) What about the 32bit to 64 bit thing? Will this work? Or do i need to convert the database? How? RMAN Convert?
    Or could RMAN convert anyhow used to realize the whole thing?
    Thank you very much for your support!
    Regards
    Daniel

  • Restore RMAN Backup in Different Database on Same RAC

    We have 11gR2 2 node RAC on Linux. ASM and OMF is used for database. The database on it is backedup using RMAN.
    We want to test the RMAN backup by restoring it to a new database on same server.
    Can someone guide me to steps on how this can be achieved. I'm afraid this should not affect the actual database.
    Thanks a lot.

    Hi,
    Yes, this can be done without disturbing your source db. Need more information on your DB structure (datafile asm diskgroups), all you need to do is restore as single node and convert to rac, since you want to test rman restore, you can restore to single node to prove your RMAN backups are intact.
    Changes in init.ora
    ==============
    db_file_name_convert= ("source dir structure","target dir structure")
    log_file_name_convert=("source dir structure","target dir structure")
    cluster_database=false
    event="10298 trace name context forever, level 32"
    _no_recovery_through_resetlogs=TRUE
    Set new database sid (export ORACLE_SID=NEW_SID)
    sql>startup nomount;
    rman auxiliary /
    rman>duplicate database to "NEW_SID" backup location "Your RMAN Backup location";
    The above are very high level general steps, please do take other steps into consideration as per your environment.

  • Restore database Error when restoring database to a new server

    Hi folks,
    I am oracle 10g on an AIX server (5.3).
    I created an rman backup of a database. I then copied it over to a new server where I am trying to restore it (I just created the backup today). However, I am getting the error below.
    Essentially, I used an initdb.ora file to create an instance of the database, and mounted it, on the new server. And then I ran a simple "restore database" command, the end of which is displayed below, with a "Restore complete. ..."
    I have looked up this error (ora-01152) online and I cannot find a scenario which best provides me with a fix to my problem, about the file not being restored from a sufficiently old backup. Could any one help please?
    piece handle=/ora_backup/prev_0/qconfig/dbf/QCONFIG_18_1_721669501_2010_06_14_15:44_Mon_full tag=2010_06_14_15:44_MON_FULL
    channel ORA_DISK_4: restore complete, elapsed time: 00:03:30
    channel ORA_DISK_2: restored backup piece 1
    piece handle=/ora_backup/prev_0/qconfig/dbf/QCONFIG_15_1_721669501_2010_06_14_15:44_Mon_full tag=2010_06_14_15:44_MON_FULL
    channel ORA_DISK_2: restore complete, elapsed time: 00:05:00
    Finished restore at 14-JUN-10
    RMAN> alter database open resetlogs;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 06/14/2010 17:48:12
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '+DGROUP1/testdb/datafile/system.751.721679898'Edited by: efachim2 on Jun 15, 2010 2:19 AM

    I ran only as below because I copied over the backup right after it finished, when there were no archivelogs.
    RMAN> restore database;
    Starting restore at 14-JUN-10
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=651 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=650 devtype=DISK
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: sid=649 devtype=DISK
    allocated channel: ORA_DISK_4
    channel ORA_DISK_4: sid=648 devtype=DISK
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00002 to +DGROUP1/testdb/datafile/undots1.667.721227421
    channel ORA_DISK_1: reading from backup piece /ora_backup/prev_0/testdb/db/testdb_16_1_721669501_2010_06_14_15:44_Mon_full
    channel ORA_DISK_2: starting datafile backupset restore
    channel ORA_DISK_2: specifying datafile(s) to restore from backup set
    restoring datafile 00007 to +DGROUP1/testdb/datafile/a1_x.641.721227553
    restoring datafile 00009 to +DGROUP1/testdb/datafile/ent_sm01_x.659.721227557
    restoring datafile 00013 to +DGROUP1/testdb/datafile/in01_x.657.721227569
    restoring datafile 00015 to +DGROUP1/testdb/datafile/cs01_x.656.721227571
    restoring datafile 00016 to +DGROUP1/testdb/datafile/cs01_d.650.721227559
    restoring datafile 00021 to +DGROUP1/testdb/datafile/h01_x.644.721227575
    restoring datafile 00023 to +DGROUP1/testdb/datafile/doc01_x.647.721227575
    restoring datafile 00025 to +DGROUP1/testdb/datafile/og01_x.645.721227577
    channel ORA_DISK_2: reading from backup piece /ora_backup/prev_0/testdb/db/testdb_19_1_721669509_2010_06_14_15:44_Mon_full
    channel ORA_DISK_3: starting datafile backupset restore
    channel ORA_DISK_3: specifying datafile(s) to restore from backup set
    restoring datafile 00003 to +DGROUP1/testdb/datafile/sysaux.662.721227423
    restoring datafile 00006 to +DGROUP1/testdb/datafile/a01_d.639.721227549
    restoring datafile 00010 to +DGROUP1/testdb/datafile/ent_lg01_d.666.721227423
    restoring datafile 00012 to +DGROUP1/testdb/datafile/in01_d.658.721227511
    restoring datafile 00014 to +DGROUP1/testdb/datafile/cs01_d.661.721227521
    restoring datafile 00019 to +DGROUP1/testdb/datafile/ndata_x.654.721227423
    restoring datafile 00022 to +DGROUP1/testdb/datafile/doc_01_d.660.721227531
    restoring datafile 00029 to +DGROUP1/testdb/datafile/in01_x.642.721227471
    channel ORA_DISK_3: reading from backup piece /ora_backup/prev_0/testdb/db/testdb_17_1_721669501_2010_06_14_15:44_Mon_full
    channel ORA_DISK_4: starting datafile backupset restore
    channel ORA_DISK_4: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to +DGROUP1/testdb/datafile/system.655.721227423
    restoring datafile 00004 to +DGROUP1/testdb/datafile/users.653.721227453
    restoring datafile 00005 to +DGROUP1/testdb/datafile/tools.663.721227423
    restoring datafile 00008 to +DGROUP1/testdb/datafile/en_sm01_d.665.721227473
    restoring datafile 00018 to +DGROUP1/testdb/datafile/n_data_d.664.721227423
    restoring datafile 00020 to +DGROUP1/testdb/datafile/hfig01_d.652.721227527
    restoring datafile 00024 to +DGROUP1/testdb/datafile/og01_d.651.721227535
    restoring datafile 00028 to +DGROUP1/testdb/datafile/in1_d.646.721227469
    channel ORA_DISK_4: reading from backup piece /ora_backup/prev_0/testdb/db/testdb_18_1_721669501_2010_06_14_15:44_Mon_full
    channel ORA_DISK_2: restored backup piece 1
    piece handle=/ora_backup/prev_0/testdb/db/testdb_19_1_721669509_2010_06_14_15:44_Mon_full tag=2010_06_14_15:44_MON_FULL
    channel ORA_DISK_2: restore complete, elapsed time: 00:00:27
    channel ORA_DISK_2: starting datafile backupset restore
    channel ORA_DISK_2: specifying datafile(s) to restore from backup set
    restoring datafile 00017 to +DGROUP1/testdb/datafile/cs_lg01_x.640.721227579
    restoring datafile 00026 to +DGROUP1/testdb/datafile/am1_d.643.721227581
    restoring datafile 00027 to +DGROUP1/testdb/datafile/am1_x.671.721227581
    channel ORA_DISK_2: reading from backup piece /ora_backup/prev_0/testdb/db/testdb_20_1_721669624_2010_06_14_15:44_Mon_full
    channel ORA_DISK_2: restored backup piece 1
    piece handle=/ora_backup/prev_0/testdb/db/testdb_20_1_721669624_2010_06_14_15:44_Mon_full tag=2010_06_14_15:44_MON_FULL
    channel ORA_DISK_2: restore complete, elapsed time: 00:00:07
    channel ORA_DISK_2: starting datafile backupset restore
    channel ORA_DISK_2: specifying datafile(s) to restore from backup set
    restoring datafile 00011 to +DGROUP1/testdb/datafile/ent_lg01_x.648.721227421
    channel ORA_DISK_2: reading from backup piece /ora_backup/prev_0/testdb/db/testdb_15_1_721669501_2010_06_14_15:44_Mon_full
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/ora_backup/prev_0/testdb/db/testdb_16_1_721669501_2010_06_14_15:44_Mon_full tag=2010_06_14_15:44_MON_FULL
    channel ORA_DISK_1: restore complete, elapsed time: 00:02:30
    channel ORA_DISK_3: restored backup piece 1
    piece handle=/ora_backup/prev_0/testdb/db/testdb_17_1_721669501_2010_06_14_15:44_Mon_full tag=2010_06_14_15:44_MON_FULL
    channel ORA_DISK_3: restore complete, elapsed time: 00:03:15
    channel ORA_DISK_4: restored backup piece 1
    piece handle=/ora_backup/prev_0/testdb/db/testdb_18_1_721669501_2010_06_14_15:44_Mon_full tag=2010_06_14_15:44_MON_FULL
    channel ORA_DISK_4: restore complete, elapsed time: 00:03:30
    channel ORA_DISK_2: restored backup piece 1
    piece handle=/ora_backup/prev_0/testdb/db/testdb_15_1_721669501_2010_06_14_15:44_Mon_full tag=2010_06_14_15:44_MON_FULL
    channel ORA_DISK_2: restore complete, elapsed time: 00:05:00
    Finished restore at 14-JUN-10
    RMAN>  alter database open resetlogs;

Maybe you are looking for

  • New to Pages, mail merge help needed

    OK, I tried to get some help a couple of days ago in the Numbers discussion pages but apparently the invoice I'm trying to create won't work. (At least, no one has replied to the other post.) So I've given up on trying to create a usable Invoice in N

  • Aironet 1310 to dot11 Bridge?

    Is there a way to create a bridge between a Linksys WAP54GPE and a Cisco 1310? Linksys states Bridge and Repeater are only available with other Lonksys products. But the Aironet 1310 offers the universal workgroup bridge mode. Does this work? As well

  • Need info. about dbms_pipe!

    Hi all, Can anybody give me some explanation & an example of dbms_pipe. My requirement is, i want to run host commands through PL/SQL procedure. My host command will be a pro*c executable. In order to run a host command in a pl/sql procedure, i think

  • Advantages of OO ABAP

    Hi Folks, Can anyone please list down the 'real' advantages of OO ABAP over the conventional ABAP? Well, of course, apart from the obvious advantages of the Object Oriented concepts. I mean, when one can do everything using conventional ABAP, why sho

  • I have a lock field(boot.efi) in recycle bin how to put it out (for unlock and empty my recycle bin)

    I have a lock field(boot.efi) in recycle bin how to put it out (for unlock and empty my recycle bin)