Trying to restore a database with RMAN in new server

Hello,
Database: Oracle 10gR2
O/S: Windows Server 2003
My RMAN backuppieces are stored in a network drive:
\\old_location\FULL
and
\\old_location\INC
I'm trying to restore a whole database with RMAN in another server from my FULL backup.
For that, I copy all backuppieces files
from: \\old_location\FULL
to new server: D:\new_location\
Also I created the relevant folder hierarchy under <ORACLE_BASE> directory, as follows:
a. Create BDUMP, CDUMP, and UDUMP directories under '<ORACLE_ BASE>\admin' directory
b. Create <DATABASE_NAME> directory under '<ORACLE_BASE>\oradata' directory
c. pfile.ora and controlfile (CTL_MTDPROD_2308_20120401_1.CTL) are backup from original database and they are in D:\new_location\
d. I copied pfile.ora and controlfile to folder: C:\oracle\product\10.2.0\db_1\database\
I started creating an instance in new server from scratch:
C:\>oradim -new -sid MTDPROD -intpwd mtdprod
C:\> SET ORACLE_SID=MTDPROD
C:\> rman
RMAN> connect target sys
RMAN> SET DBID=21692876873
RMAN> STARTUP force nomount PFILE=C:\oracle\product\10.2.0\db_1\database\init_mtdprod.ora
RMAN> restore controlfile from 'C:\oracle\product\10.2.0\db_1\database\CTL_MTDPROD_2308_20120401_1.CTL';
RMAN> alter database mount;
#Since I want to read my backuppieces from D:\new_location and not from \\old_location\FULL then I catalog and restore like:
RMAN> catalog start with 'D:\new_location\';
RMAN> restore database;
Starting recover at 25/04/12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=541 devtype=DISK
channel ORA_DISK_1: starting incremental datafile backupset restore
channel ORA_DISK_1: specifying datafile copies to recover
recovering datafile copy fno=00003 name=D:\BD_MTDPROD\CONTROLFILES\SYSAUX01.DBF
recovering datafile copy fno=00004 name=D:\BD_MTDPROD\CONTROLFILES\USERS01.DBF
recovering datafile copy fno=00007 name=D:\BD_MTDPROD\DATAFILES_DATA\MSE.ORA
recovering datafile copy fno=00010 name=D:\BD_MTDPROD\DATAFILES_DATA\EXPEDIENTES2.ORA
channel ORA_DISK_1: reading from backup piece \\old_location\FULL\FULL_MTDPROD_20120401_2304_1.BAK
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: failover to piece handle=D:\new_location\FULL\FULL_MTDPROD_20120401_2304_1.BAK tag=TAG20120401T190004
.....(continues)
Questions:
1. RMAN still reads from old_location. The only way to avoid that would be deleting all files from \\old_location\FULL ?
2. The message "failover to piece handle=D:\new_location\...." indicates that that file is not usefull? I just copy them from old_location to new_location... how can they get useless?
I suspect there is something in controlfile that redirects to \\old_location\FULL\ and doesn't let to read from D:\new_location\
Please, advice.

user521219 wrote:
Questions:
1. RMAN still reads from old_location. The only way to avoid that would be deleting all files from \\old_location\FULL ?
2. The message "failover to piece handle=D:\new_location\...." indicates that that file is not usefull? I just copy them from old_location to new_location... how can they get useless?
I suspect there is something in controlfile that redirects to \\old_location\FULL\ and doesn't let to read from D:\new_location\Is this a cold backup? Did you change the location of control file in your PFILE or is it still pointing to old location?
You may want to check the output of RESTORE DATABASE PREVIEW command, which will just report which backup files it uses without actually restoring thhe DB.

Similar Messages

  • Could someone help me restore my photos?  I was trying to "restore my database" in iPhoto when it shut down - now my thumbnails are distorted, logged under a new name, and when you click on a thumbnail it opens as another photo.  I was following another "

    Could someone help me restore my photos?  I was trying to "restore my database" in iPhoto when it shut down - now my thumbnails are distorted, logged under a new name, and when you click on a thumbnail it opens as another photo.  I was following another "helpful hint" hold down the option and command key and restart iPhoto - select the top three and you should be able to get rid of the dreaded exclamation point.  My MAC ran through the first two options dealing with thumbnails, but crashed during the "restore database"  step and now I have a mess.  Help, please.  Thank you.

    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  

  • Error During restoring a database through RMAN in Oracle 9i

    Hi all,
    I have taken a full backup in oracle 9i through RMAN in one server(Solaris).
    After that moved that backupset to another server. Server Locations are same. I need to restore the backup in the new server.
    I am using pfile.
    Steps I followed:
    1. Using pfile i have started the db in nomount.
    2. Then restored the controlfile from backup and mounted the database.
    3. then tried to restore the database - I have to restore three of my datafiles to different location, hence i used "set new name "
    But RMAN threw an error while restoring.
    RMAN-00558:
    RMAN-01009:
    File not found.
    Can anyone help to resolve this error.
    Thanks in Advance.

    Hi,
    Thanks, but I took the backup of the database using the command:
    backup database;Only this command i issued.
    In the new server, I tried to list the backup using list backup command by putting the db in mount stage.
    I m not able to view the backup information.
    Is there any command to register the backup information using the catalog?
    -

  • Was trying to restore my database in iPhoto when it shut down - now my thumbnails are distored, logged under a new name and when you click on a thumbnail it opens as another photo.  Help, please

    Could someone help me restore my photos?  I was trying to "restore my database" in iPhoto when it shut down - now my thumbnails are distorted, logged under a new name, and when you click on a thumbnail it opens as another photo.  I was following another "helpful hint" hold down the option and command key and restart iPhoto - select the top three and you should be able to get rid of the dreaded exclamation point.  My MAC ran through the first two options dealing with thumbnails, but crashed during the "restore database"  step and now I have a mess.  Help, please.  Thank you.

    Repost in the iPhoto forum, where the real iPhoto wizards live:
    https://discussions.apple.com/community/ilife/iphoto

  • Newbie Trying to restore Oracle database. please help

    Hi All,
    I am a newbie who is trying to restore Oracle database, I currently use RMAN to backup the database, but the database needs to be restored onto a test server, I'm not quite sure of what I need to do or where I need to start here.
    I currently backup the following
    SPfile
    ControlFile
    Datafile
    Archive Log
    If someone can point me in the right direction or maybe a link to a website, I would be very grateful.
    Thanks.

    Hi,
    login to your box using ssh or telnet
    1. rman> connect target /
    3. rman >startup force nomount;
    4. rman >restore spfile from '/u01/restore/restore/2009_02_07/o1_mf_s_678160942_4rstxj3k_.bkp';
    5. rman > shutdown immediate;
    6. rman > startup nomount;
    7. rman > restore controlfile from '/u01/restore/restore/2009_02_07/o1_mf_s_678160942_4rstxj3k_.bkp';
    8. rman > mount database;
    9. rman > restore database;
    10.rman > recover database;
    11. rman > sql 'alter database open resetlogs';
    below is the sample i've done on my test environment
    RMAN> startup mount;
    connected to target database (not started)
    Oracle instance started
    database mounted
    Total System Global Area 167772160 bytes
    Fixed Size 1218316 bytes
    Variable Size 67111156 bytes
    Database Buffers 96468992 bytes
    Redo Buffers 2973696 bytes
    RMAN> backup database;
    Starting backup at 11-FEB-09
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=158 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=/u01/app/oracle/oradata/ORCL1/datafile/o1_mf_system_4qzm5q6g_.dbf
    input datafile fno=00003 name=/u01/app/oracle/oradata/ORCL1/datafile/o1_mf_sysaux_4qzm5qc1_.dbf
    input datafile fno=00005 name=/u01/app/oracle/oradata/ORCL1/datafile/o1_mf_example_4qzmky86_.dbf
    input datafile fno=00002 name=/u01/app/oracle/oradata/ORCL1/datafile/o1_mf_undotbs1_4qzm5sgk_.dbf
    input datafile fno=00004 name=/u01/app/oracle/oradata/ORCL1/datafile/o1_mf_users_4qzm5vqj_.dbf
    channel ORA_DISK_1: starting piece 1 at 11-FEB-09
    channel ORA_DISK_1: finished piece 1 at 11-FEB-09
    piece handle=/backup/ORCL1_1_1_678528722 tag=TAG20090211T081201 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:02:35
    Finished backup at 11-FEB-09
    Starting Control File and SPFILE Autobackup at 11-FEB-09
    piece handle=/backup/c-1061732667-20090211-00 comment=NONE
    Finished Control File and SPFILE Autobackup at 11-FEB-09
    RMAN>
    --- deleted all my file including spfile..
    RMAN> shutdown immediate;
    database dismounted
    Oracle instance shut down
    RMAN> exit
    Recovery Manager complete.
    [oracle]:/home/oracle>
    [LinuxForOracle.bai.com]: orcl1 >rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Wed Feb 11 08:17:27 2009
    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 '/u01/app/oracle/product/10.2.0.3/dbs/initorcl1.ora'
    starting Oracle instance without parameter file for retrival of spfile
    Oracle instance started
    Total System Global Area 159383552 bytes
    Fixed Size 1218268 bytes
    Variable Size 54528292 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2973696 bytes
    RMAN> restore spfile from '/backup/c-1061732667-20090211-00';
    Starting restore at 11-FEB-09
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=36 devtype=DISK
    channel ORA_DISK_1: autobackup found: /backup/c-1061732667-20090211-00
    channel ORA_DISK_1: SPFILE restore from autobackup complete
    Finished restore at 11-FEB-09
    RMAN> shutdown immediate;
    Oracle instance shut down
    RMAN> startup nomount;
    connected to target database (not started)
    Oracle instance started
    Total System Global Area 167772160 bytes
    Fixed Size 1218316 bytes
    Variable Size 67111156 bytes
    Database Buffers 96468992 bytes
    Redo Buffers 2973696 bytes
    RMAN> restore controlfile from '/backup/c-1061732667-20090211-00';
    Starting restore at 11-FEB-09
    using channel ORA_DISK_1
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
    output filename=/u01/app/oracle/oradata/ORCL1/controlfile/o1_mf_4s5n6jvq_.ctl
    output filename=/u01/app/oracle/flash_recovery_area/ORCL1/controlfile/o1_mf_4s5n6n4f_.ctl
    Finished restore at 11-FEB-09
    RMAN> mount database;
    database mounted
    released channel: ORA_DISK_1
    RMAN> restore database;
    Starting restore at 11-FEB-09
    Starting implicit crosscheck backup at 11-FEB-09
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    Crosschecked 1 objects
    Finished implicit crosscheck backup at 11-FEB-09
    Starting implicit crosscheck copy at 11-FEB-09
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 11-FEB-09
    searching for all files in the recovery area
    cataloging files...
    no files cataloged
    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 /u01/app/oracle/oradata/ORCL1/datafile/o1_mf_system_4qzm5q6g_.dbf
    restoring datafile 00002 to /u01/app/oracle/oradata/ORCL1/datafile/o1_mf_undotbs1_4qzm5sgk_.dbf
    restoring datafile 00003 to /u01/app/oracle/oradata/ORCL1/datafile/o1_mf_sysaux_4qzm5qc1_.dbf
    restoring datafile 00004 to /u01/app/oracle/oradata/ORCL1/datafile/o1_mf_users_4qzm5vqj_.dbf
    restoring datafile 00005 to /u01/app/oracle/oradata/ORCL1/datafile/o1_mf_example_4qzmky86_.dbf
    channel ORA_DISK_1: reading from backup piece /backup/ORCL1_1_1_678528722
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/backup/ORCL1_1_1_678528722 tag=TAG20090211T081201
    channel ORA_DISK_1: restore complete, elapsed time: 00:02:57
    Finished restore at 11-FEB-09
    RMAN> recover database;
    Starting recover at 11-FEB-09
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 6 is already on disk as file /u01/app/oracle/flash_recovery_area/ORCL1/onlinelog/o1_mf_2_4qzmccv0_.log
    archive log filename=/u01/app/oracle/flash_recovery_area/ORCL1/onlinelog/o1_mf_2_4qzmccv0_.log thread=1 sequence=6
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 11-FEB-09
    RMAN> sql 'alter database open resetlogs';
    sql statement: alter database open resetlogs
    RMAN> exit
    [oracle]:/home/oracle>
    [LinuxForOracle.bai.com]: orcl1 >sqlplus '/ as sysdba'
    SQL> select name from v$database;
    NAME
    ORCL1
    SQL>
    i hope this will help you... enjoy!
    Regards,
    baidba

  • I'm trying to restore my win7 with HP USB Recovery Flash Disk I get the following two messages

    I'm trying to restore my win7 with HP USB Recovery Flash Disk  I get the following two messages:
    "Fail to Create C:\Users\User\AppData\Local\Temp; c:\arc\01Script\FormatUFD.sp" and messsage "Fail to create".
    How do I port HP_recovery drive to my flash-drive?
    Windows 7 x64, HP G62-144DX
    This question was solved.
    View Solution.

    Hi:
    I can't help you with that specific issue, but if you can't get it resolved and you can read the 25 character Microsoft Windows product key on the bottom of your PC, make your own W7 installation media to reinstall W7.
    Here's how:
    If you can read the 25 character Microsoft windows 7 product key, you can download plain Windows 7 ISO files to burn to a DVD for the version of windows that came installed on your PC, and that is listed on the Microsoft COA sticker on your PC's case.
    Burn the ISO using the Burn ISO option on your DVD burning program and burn at the slowest possible speed your program will allow. This will create a bootable DVD.
    Or use the Windows 7 USB/DVD installation tool to compile the ISO file you download from Digital River. Link and instructions below. You need a 4 GB flash drive to use the USB method of compilation.
    http://www.microsoftstore.com/store/msstore/html/pbPage.Help_Win7_usbdvd_dwnTool
    Use the 25 character product key on the PC to activate the installation.
    The key will activate either a 32 or 64 bit installation.
    Then go to the PC's support and driver page to install the drivers you need.
    Link to the W7 ISO file downloads is below.
    http://www.mydigitallife.info/official-windows-7-sp1-iso-from-digital-river/
    Paul

  • TS3682 im trying to restore my iphone with itunes and it gives me this error "We're sorry, we are unable to continue with your activation at this time."

    im trying to restore my iphone with itunes and it gives me this error "We're sorry, we are unable to continue with your activation at this time."

    This is usually a symptom that the phone was hacked/jailbroken. Was it?

  • I have been trying to restore my iphone5 with icloud back up. Keep getting an error. Any trouble today with Icloud? what can be happening? (I restored it yesterday to an older back up and it worked perfectly!!)

    I have been trying to restore my iphone5 with icloud back up. Keep getting an error. Any trouble today with Icloud? what can be happening? (I restored it yesterday to an older back up and it worked perfectly!!)

    From your other post on the same subject.
    my iphone not restoring to icloud today. I restored it yersterday to an older copy and worked perfectly...  Any troubles today with ICloud? what should I do?

  • HT1766 i tried to restore a backup with itunes on my ipod touch 4g, i tried what it said to do but it didnt work

    i tried to restore a backup with itunes on my ipod touch 4g, i tried what it said to do but it didnt work

    What exactly happened when you tried to restore from backup?
    Error message?
    maybe this:
    If you can't update or restore your iOS device

  • HT1750 I tried to restore my iMac with my MacBook Pro Cd's but the computer say that the cd is not supported on the iMac,Now it does come out because there's no eject button on the screen.How could I take it out an how could I install the OS X Lion ok wit

    I tried to restore my iMac with my MacBook pro CDs but it's seem it got restored but it say this cd is not supported on this iMac, What could I do to take out the disk?

    Also, if you have Lion on the computer. You have a recovery partition on the drive. On startup hold down 'Control' to bring up your startup menu. Select "Recovery HD". That's how you get to it. Lion's recovery partition acts as the installation discs that came with all previous versions of OS X.

  • Creating a Data Guard Database with RMAN in 10&11g

    I found this notes for 9i, looking for same for 10g & 11g
    183570.1 Creating a Data Guard Database with RMAN (Recovery Manager) using Duplicate Command

    These notes just show duplicating dbs without datagurd, i am looking for Creating a Data Guard DB with RMAN in 10 &11g.

  • TS3694 1015 ? I'm trying to update my iPhone 3 and get this error message. The phone belonged to my wife, and I'm trying to restore it to factory settings as new owner. Any ideas?

    1015 ? I'm trying to update my iPhone 3 and get this error message. The phone belonged to my wife, and I'm trying to restore it to factory settings as new owner. Any ideas?

    Before beginning the download, try temporarily disabling your antivirus, anti-adware, anti-spyware, and any other anti-whatever that is required with the secure OS your computer is running.

  • I tried to restore backup from itune to my new iphone 5s but have forgotten the password what should I do?

    I tried to restore backup from itune to my new iphone 5s but have forgotten the password what should I do?

    JennyGEL wrote:
    I ... have forgotten the password what should I do?
    Which password?
    If you mean the passcode to your iPhone, here's the solution:
    http://support.apple.com/kb/HT1212
    If you mean the encryption password to your backup on your computer:
    Warning: Make sure it's a password you will remember or write it down for safekeeping. If you encrypt an iPhone backup in iTunes and forget your password, you can't restore from backup and your data will be unrecoverable.
    If you can't remember the password and want to start again, you must perform a full software restore and chooseset up as a new device when iTunes prompts you to select the backup from which to restore.

  • Backing up DPM2012R2 Database with a different DPM Server

    Hi,
    is it still a recommended way to backup up a DPM 2012R2 database (-> pure SQL on the same Server) with another DPM2012R2 Server?
    So just attach it and back it up (like in DPM2010)?
    Or shall one always use dpmbackup.exe?
    If supported / recommended is it possible to backup a DPM 2012SP1 database with a DPM 2012R2 Server?
    Thanks in advance
    /bkpfast
    My postings are provided "AS IS" with no warranties and confer no rights

    Hi,
    Using native DPM backup using D2D is fine for non disaster recovery scenario, otherwise D2T or D2D2T or using secondary protection is best.  DPMBACKUP is non automated, so that is good for ad-hoc backups before major updates.
    Scheduling native SQL backups is also viable solution.
    If using Secondary DPM Server, both primary and secondary must be the same DPM versions including updates.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
    posting is provided "AS IS" with no warranties, and confers no rights.

  • How to import whole database (with data) from remote server?

    I am using oracle sql developer 2.1. Our main database server is in USA, we use this from Bangladesh. We also a local copy here time to time updataed.
    Is there any way copy or migrate the whole database with data from usa server to our local serve using sql developer 2.1?
    we use windows server 2003 service pack 2 in local server.

    I replied to you in Import Data wizard not found and stand by my suggestions.
    Regards,
    K.

Maybe you are looking for