RMAN Restore using RMAN COLD Backup!!

Hi All,
I Need to restore a database using rman cold backup taken a month back.
Can i use Duplicate database option until time/scn just like we do for hotbackup or is there any other procedure for cloning/refreshing the database using RMAN COLD BACKUP of source.
Thanks & Regards,
Pdev

This may be used to clone db
connect target sys/sys@<dba>
connect catalog rman/rman@<dba>
connect auxiliary sys/sys<new>
run {
set newname for datafile 1 to 'e:\oracle\oradata\giri\system01.dbf';
set newname for datafile 2 to 'e:\oracle\oradata\giri\undotbs01.dbf';
set newname for datafile 3 to 'e:\oracle\oradata\giri\users01.dbf';
set newname for datafile 4 to 'e:\oracle\oradata\giri\indx01.dbf';
set newname for datafile 5 to 'e:\oracle\oradata\giri\example01.dbf';
allocate auxiliary channel dupdb1 type disk;
set until sequence 2 thread 1;
duplicate target database to dupdb
logfile
GROUP 1 ('e:\oracle\oradata\giri\redo01.log') SIZE 100k REUSE,
GROUP 2 ('e:\oracle\oradata\giri\redo02.log') SIZE 100k REUSE;
Message was edited by:
Girishh

Similar Messages

  • Tnsname resolve failed after performing an restore using rman

    I create an full database backup using rman and I want to perform an restore on another server. Steps are as follows.
    1. Install the same release of oracle database and apply the same release of patches in the testing server.
    2. Create an instance with the same name of original database.
    3.Perform the restore using rman.
    4.Create an spfile from pfile.
    5.Add an new tempfile then delete the old one.
    6. Shutdown the instance and restart it.
    7. reconfigure the listner.
    8. reconfigure the tns.
    In this step it fails,saying that "TNS:listener does not currently know of service requested in connect descriptor",but if I change the servername to the original server name,it succeed.

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MOSS-001)(PORT=1521)))
    Services Summary...
    Service "JDEDB.PharmaTechs.com" has 1 instance(s).
    Instance "jdedb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:3 refused:0 state:ready
    LOCAL SERVER
    Service "JDEDBXDB.PharmaTechs.com" has 1 instance(s).
    Instance "jdedb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: MOSS-001, pid: 7912>
    (ADDRESS=(PROTOCOL=tcp)(HOST=MOSS-001.pharmatechs.com)(PORT=2406))
    Service "JDEDB_XPT.PharmaTechs.com" has 1 instance(s).
    Instance "jdedb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:3 refused:0 state:ready
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    The command completed successfully

  • Backup/restore using RMAN with no catalog

    Hi all,
    Can someone tell me if this is correct:
    I have two identical machines, same configuration and same file structure, everything is the same.
    On machine A, I have a 9.2.0.7 database running. I take a hot backup and try to restore it on machine B.
    Note: I am using RMAN for backup/restore whith no catalog.
    This is how I perform backup on machine A:
    ALLOCATE CHANNEL C1 TYPE DISK;
    SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    BACKUP INCREMENTAL LEVEL=0 CUMULATIVE format '/backup/level0_%u' BACKUP CURRENT CONTROLFILE format '/backup/control_primary' FORCE;
    SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    BACKUP ARCHIVELOG ALL format '/backup/archivelogs_%s_%t';
    On machine B, here is how I perform restore:
    SET DBID 1221334455;
    RESTORE CONTROLFILE FROM '/backup/control_primary';
    ALTER DATABASE MOUNT;
    RESTORE DATABASE VALIDATE;
    RESTORE DATABASE;
    Recover database;
    Thanks,

    You forgot to restore the spfile or pfile on the second node to go to nomount state.
    OR
    You can use RMAN Duplicate to do this.
    Regards
    Message was edited by:
    Singh

  • RMAN restore database from another backup of different database in the same host

    Hi Experts,
    I have taken FULL Database Backup using RMAN , now I want to Restore and Recover the same database on different instance on Same Host.
    Could u suggest any document or Steps to achieve this task.....
    Thanks,
    Mouni.

    No Problem.
    Please check this :
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupdb.htm#BRADV420
    ORACLE-BASE - Duplicate a Database Using RMAN in Oracle Database 11g Release 2
    Ensure you follow what Mr. Hemant has mentioned.
    Regards
    Karan

  • Database Restore using RMAN

    Can I restore a oracle database with a different name using RMAN.
    Say, I backup a database named orcl. Now I wanted to restore this database with a different name. Is this possible? If yes, can some one guide me through the appropriate document?
    Thank you,
    Santhosh

    < Can I restore this Backup on to a database with a different name ...
    You even have to do this, if duplicated database belongs to the same ORACLE_HOME, otherwise it could be the same name (although the databases still have different DBIDs).
    DUPLICATE TARGET DATABASE TO <name>
    Werner

  • Restore using RMAN

    I had taken backup three time say backup1 after few transaction backup2 and after few transactions backup3 using RMAN. RMAN no catalog
    Now we want to recover database using backup1.
    provide the steps to recover the database using backup1

    Hi,
    You said you have taken the Backup. Which type of backup either level 0 or level 1 (incremental backups - differential or cumulative). Next type of backups - either image copies or backups. If backups are taken then we can try out to restore specific files from the backup sets - I am not sure on that.
    You have to provide the DB Version. ??
    What is the need for going for First Backup only... what is the need ??
    Does you know appropriate time , if you use the flashback then we can use that.
    - Pavan Kumar N
    Oracle 9i/10g - OCP
    http://oracleinternals.blogspot.com/

  • RMAN restore from older full backup.

    version. 10gR2
    We take full backup every Wednesday (7/2, 7/9, 7/16 and 7/23). I need to restore the database from 7/2 backup. No recovery is needed. How do I do that. Thanks for the help.

    You can specify the BACKUPSET or TAG you want to restore from on the restore command.
    RESTORE ... FROM BACKUPSET
    RESTORE ... FROM TAG = '..'
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta051.htm#sthref796
    Why do you need that specific backup? If you were restoring to a point in time before the 7/9 backup then RMAN will work out to use the 7/9 backup. If no recovery is needed I assume you're testing a restore using VALIDATE and/or PREVIEW?

  • Rman restore from last week backup

    Hi guys
    i need to restore last week rman backup from .. we are not using catalog database.
    i need to restore it on same machine with diff mount point ..
    i know i can use tag option of restore specifically last week backup but its production restore so thought if anybody can give me list of steps i need to follow .. anybody who has done this before.
    do i have to fire resetlogs at the end as its incomplete recovery .. i need last saturday backup .. don't want monday backup on top of it.
    please help me in this.
    Regards

    You have to ensure that your controlfile, redo log file and database file locations are different from your production database.
    Ensure that your instance parameter file specifies a different location for control_files
    Use db_file_name_convert -- however, I prefer to explicitly name a new location for each datafile, in case your database files are spread across multiple directories and you miss one or more in db_file_name_convert. (you don't want RMAN to restore datafiles from the backup to the current locations and overwrite your production database files !)
    Hemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on Apr 22, 2010 6:06 PM

  • RMAN restore from monthly tape backup

    hello!
    i have one more question regarding rman and tape backups: we don't want to store the rman recovery information in a separate database, so all the information is in the control files. but for revision we need to save one full backup per month. in addition to the databases we need files from different servers etc. on this tape-backups. so we decided to keep one tape set per month in a safe place -> is it possible to restore a rman backup from this tapes, e.g. 3 years afterwards (on a different machine)? thanks.
    bye,
    christian

    Hi christian,
    Can you give more info?
    As I understand it you do not want to use a recovery catalog ("we don't want to store the rman recovery information in a separate database").
    But if you store the rman backup info in the controlfile only you will limit the amount of rman information to your init parameter control_file_record_keep_time.
    Do you make rman backups to tape directly using a MML or do you make rman backups to disk which than get copied to tape (OS backup)?
    Regards,
    Tycho

  • Rman restore from a expired backup

    Hi
    My rman retention policy is set to 2 days.
    But i want rman to restor me the backup from 7 days before.I do have the backupset controlfiles etc.But rman tells me this backupset is expired how do i force rman to restore from this backup ?
    regards

    Hi,
    yes.
    1) restore controlfile from the backup from 7 days before
    2) mount database with the controlfile you restored
    3) restore/recover database ( if you have backed up datafiles and archivelog files from the time )
    Regards,
    Tom

  • RMAN restore using set until scn

    Hi guys.
    Quick question about using set until scn
    when I do list backup output shows multiple scn's for one full (I allocated 4 tape channels for the backup so there are 4 scn's in the output)
    Which one do I specify in the set until scn command? Below there is ..163 ...164 ...165 ...166
    Here is the backup I want to use:
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    12526 Incr 0 19G SBT_TAPE 00:27:22 Dec 31 2009 10:25:30
    BP Key: 12526 Status: AVAILABLE Tag: TAG20091231T095808
    Piece Name: rcworaprd-vprd2-full<12920:707047088:1>.dbf
    List of Datafiles in backup set 12526
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 1697159163 Dec 31 2009 09:58:08 /u02/oradata/vprd2/system01.dbf
    11 0 Incr 1697159163 Dec 31 2009 09:58:08 /u02/oradata/vprd2/ppa_data01.dbf
    12 0 Incr 1697159163 Dec 31 2009 09:58:08 /u02/oradata/vprd2/ppa_index01.dbf
    13 0 Incr 1697159163 Dec 31 2009 09:58:08 /u02/oradata/vprd2/itd_index01.dbf
    16 0 Incr 1697159163 Dec 31 2009 09:58:08 /u02/oradata/vprd2/rcl_data01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    12527 Incr 0 21G SBT_TAPE 00:29:19 Dec 31 2009 10:27:27
    BP Key: 12527 Status: AVAILABLE Tag: TAG20091231T095808
    Piece Name: rcworaprd-vprd2-full<12921:707047088:1>.dbf
    List of Datafiles in backup set 12527
    File LV Type Ckp SCN Ckp Time Name
    4 0 Incr 1697159164 Dec 31 2009 09:58:08 /u02/oradata/vprd2/tools01.dbf
    7 0 Incr 1697159164 Dec 31 2009 09:58:08 /u02/oradata/vprd2/xdb01.dbf
    8 0 Incr 1697159164 Dec 31 2009 09:58:08 /u02/oradata/vprd2/user_index02.dbf
    9 0 Incr 1697159164 Dec 31 2009 09:58:08 /u02/oradata/vprd2/una_data01.dbf
    14 0 Incr 1697159164 Dec 31 2009 09:58:08
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    12528 Incr 0 29G SBT_TAPE 00:33:48 Dec 31 2009 10:31:57
    BP Key: 12528 Status: AVAILABLE Tag: TAG20091231T095808
    Piece Name: rcworaprd-vprd2-full<12923:707047089:1>.dbf
    List of Datafiles in backup set 12528
    File LV Type Ckp SCN Ckp Time Name
    6 0 Incr 1697159166 Dec 31 2009 09:58:09 /u02/oradata/vprd2/user_index01.dbf
    17 0 Incr 1697159166 Dec 31 2009 09:58:09 /u02/oradata/vprd2/rcl_index01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    12529 Incr 0 23G SBT_TAPE 00:38:09 Dec 31 2009 10:36:17
    BP Key: 12529 Status: AVAILABLE Tag: TAG20091231T095808
    Piece Name: rcworaprd-vprd2-full<12922:707047088:1>.dbf
    List of Datafiles in backup set 12529
    File LV Type Ckp SCN Ckp Time Name
    2 0 Incr 1697159165 Dec 31 2009 09:58:09 /u02/oradata/vprd2/drsys01.dbf
    3 0 Incr 1697159165 Dec 31 2009 09:58:09 /u02/oradata/vprd2/eng_data01.dbf
    5 0 Incr 1697159165 Dec 31 2009 09:58:09 /u02/oradata/vprd2/user_data01.dbf
    10 0 Incr 1697159165 Dec 31 2009 09:58:09 /u02/oradata/vprd2/una_index01.dbf
    15 0 Incr 1697159165 Dec 31 2009 09:58:09 /u02/oradata/vprd2/eng_index01.dbf
    Or would it be better to use the set until time... using the oldest time from the backupset 12529 (Dec 31 2009 10:36:17)
    All input is appreciated.
    Thanks
    Jamie

    Note that an online backup is an inconsistent backup:
    >
    Any backup taken when the database has not been shut down normally is an inconsistent backup. When a database is restored from an inconsistent backup, Oracle must perform media recovery before the database can be opened, applying any pending changes from the redo logs.
    As long as your database is running in ARCHIVELOG mode, and you back up your archived redo log files as well as your datafiles, inconsistent backups can be the foundation for a sound backup and recovery strategy. Inconsistent backups are an important part of the backup strategy for most databases, because they offer superior availability. For example, backups taken while the database is still open are inconsistent backups
    >
    If you need to restore your database using the listed backups, you need to apply the archived redo logs until a SCN which is greater than any SCN in the datafile backup sets: otherwise Oracle won't open the database because some datafiles may have different SCN.

  • Restoring tigger from cold backup.

    Hi
    I have one problem..... recently i have drooped 1 trigger by mistake of one of my user in database. Now the problem is... we never take the logical backup of that DB.
    Backup mechanism of the database is Cold Backup and size is *2TB*.
    Now i have to restore that trigger from the cold backup with minimum effort , do i have to create the Clone database with the Cold backup using all the datafiles ...? or System tablespace ( or datafile) and default Schema tablespace(Schema which holds the trigger and its tables) in enough for restoring the trigger ?
    I hope i am clear with my question. please let me know if you need more details.
    Please suggest some best and fast way to solve this problem.
    Thanks,

    You need to restore enough to OPEN the DB can you please elaborate this clearly....
    The version is :
    Oracle Database 11g Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE    11.1.0.7.0 ;     Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production I have dropped in this Monday. Flashback is not implemented.
    Edited by: user10915512 on May 10, 2011 7:15 AM

  • Problems with Full restore using Time Capsule backup???

    For some reason my MacBook Pro recently crapped out completely, and I am trying to do a complete restore of the OS via a full backup I made with using Time Machine onto my Time Capsule disk, but I am running into some problems doing so and I was hoping someone might have some insight as to how I should deal with things at this point...
    Here's where things get messy...
    - I insert my Mac OS X 10.5 Installation DVD into my Macbook and boot from the drive, and I immediately choose the menu option to 'Restore from Time Capsule Backup'...
    - After logging into my Time Capsule and then choosing the proper .sparseimage file to restore from, I click 'continue' and it brings me to the screen where I choose where I want to restore to (which in my case, is the one and only internal HD inside my Macbook Pro)
    - The bottom of this window tells me that it's "Calculating space required to restore data..." but it simply hangs at the point with a spinning wheel indicating its still doing the calculating, but never actually presents me with the space required, not does it allow me to click continue to perform the restore?? I've allowed it over an hour to calculate the space required and it still just spins its status wheel...
    This is where I am stuck at this point, and I have no idea how to get it to proceed to the next step to allow me to perform the restore??
    Any suggestions would be greatly appreciated, as I will have no choice but to do a complete reinstall (including all apps and data) if I can't get the backup restored... Thanks!

    I had the same problem when installing a new HDD in my Macbook. The solution I found was to reinstall Leopard onto the new HDD from the install CD, then reboot off the install CD once I had done this. I was then able to choose the 'Restore from Time Capsule' option and get my HDD to show up in the window.
    A word of warning, once you have reinstalled Leopard and it starts asking you for all you info, as if for the first time to set up your computer, there is an option at the end of that process to restore your data from a Time Capsule backup. While this did restore all my files and so forth, it did not update any of the 'Apple' apps, i.e. iTunes, iPhoto, Quicktime, or the operating system itself, suggesting a 500Mb download via 'Software Update' to update the system. It was faster for me to reboot of the install CD and restore via the process outlines above. That way you get all your system updates included.
    Not sure if this is the 'approved' method but it worked for me! The restore process took about 75 minutes for about 100Gb of data from my external backup drive connected to my Macbook via a Firewire cable.
    Hope this helps!

  • DB migration from 9i to 10g (in a new server) using a cold backup

    We have a cold backup of a 9.2.0.5 database,
    we would like to migrate this 9i DB to a new server with only 10g software already installed.
    1- can we use DBUA to do the migration?
    2- should we start the database before running DBUA?
    3- if yes then we need to prepare the pfile, and the password file?
    we would like to avoid installing 9i in the new server
    Thanks for help

    I have to Install 10g on Solaris 10 on a new server and then move my old >database which is 9i on Solaris 9 to the new box. I'm not sure how to go about >doing all this right since I'm new in the dba field and this is production.How much down time you have to perform this activity?
    How big is your database?
    Since you're moving the database from one server to another, You have to proceed with Export/import or datapump export/import(only if you can upgrade your 9i database to 10g).

  • I got My iPhone 4s and restored using an Old Backup of my 3Gs

    Out of the box the iPhone 4s started fine. I synced it without a problem refering to a previous backup of my iPhone 3Gs.
    Network issues meant I did not use it as my primary phone for 4 days and phone still had my apps and old contacts.
    When I finally got my new account active I backed up my 3Gs and 4s and proceeded to restore on my 4s overnight using my 3Gs data.
    When I woke in the morning my 4s was stuck with an Apple Logo and a progress bar down the bottom with no movement and at 0.
    iTunes recognises the 4s and shows me the breakup of data on my mobile but does not recognise any settings for Apps, Music, Photos.....etc.
    In PC terms it is like it has loaded the operating System but has frozen trying to load settings.
    In trying to restore to a 4s Backup it tells me that it fails because the mobile is Pass Code Locked.
    I would like to go back to the state it was in when I got it. Out of the box!

        @jmt8603
    I want to ensure you're able to restore the service to your iPhone 4s!  First, let's try reprogramming the device by dialing *228 Option 1.  Once the device completes the "over-the-air" programming, you should be able to successfully make and receive calls and data.  Please let me know how this works out for you.
    AnthonyTa_VZW
    Follow us on Twitter @VZWSupport

Maybe you are looking for