Using RMAN restore the database on a new host in ASM

Hello All,
I am trying to restore a database without using RMAN database duplicate.  I want to do set new name for datafile and rename log file for online logs and change database name at last using NID.
here are details
source database - APSPROD / server - X
target database -  EMERALD / Server -Y
Compressed backup is copied to destination server and I am trying to restore database using RMAN. Here is my init.ora file
cat initAPSPROD1.ora
DB_NAME=APSPROD
compatible=11.2.0.3
sga_target=8G
CONTROL_FILES='+DATA_DM01/EMERALD/controlfile/cntrl01.dbf','+RECO_DM01/EMERALD/controlfile/cntrl02.dbf','+DATA_DM01/EMERALD/controlfile/cntrl03.dbf'
DB_BLOCK_SIZE=8192
db_file_name_convert=(+DATA_DM01/APSPROD,+DATA_DM01/EMERALD)
log_file_name_convert=(+DATA_DM01/APSPROD,+DATA_DM01/EMERALD,+RECO_DM01/APSPROD,+RECO_DM01/EMERALD)
DB_RECOVERY_FILE_DEST='+RECO_DM01'
DB_RECOVERY_FILE_DEST_SIZE=5500G
So from above you can see that control file should be restored to +DATA_DM01/EMERALD and +RECO_DM01/EMERALD path.
Question -
when I am trying to restore control file. It creates an ASM alias name in +DATA_DM01/EMERALD/controlfile/cntrl01.dbf',+RECO_DM01/EMERALD/controlfile/cntrl02.dbf',' and +DATA_DM01/EMERALD/controlfile/cntrl03.dbf' but It creates fully Qualified ASM Filename  under +DATA_DM01/APSPROD and +RECO_DM01/
Here is output
RMAN> restore controlfile from '/dbfs_direct/FS1/RMAN_APSPROD/cf_APSPROD_i4p4b62m_1_1
2> ;
Starting restore at 02-APR-14
using channel ORA_DISK_1
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:07
output file name=+DATA_DM01/emerald/controlfile/cntrl01.dbf
output file name=+RECO_DM01/emerald/controlfile/cntrl02.dbf
output file name=+DATA_DM01/emerald/controlfile/cntrl03.dbf
Finished restore at 02-APR-14
output at ASM level
SMCMD [+RECO_DM01/EMERALD/CONTROLFILE] > ls -l
Type         Redund  Striped  Time             Sys  Name
                                               N    cntrl02.dbf => +RECO_DM01/APSPROD/CONTROLFILE/current.17006.843826701
ASMCMD [+RECO_DM01/EMERALD/CONTROLFILE] > cd +RECO_DM01/APSPROD/CONTROLFILE/
ASMCMD [+RECO_DM01/APSPROD/CONTROLFILE] > ls -l
Type         Redund  Striped  Time             Sys  Name
CONTROLFILE  HIGH    FINE     APR 02 12:00:00  Y    current.17006.843826701
ASMCMD [+RECO_DM01/APSPROD/CONTROLFILE] > cd +DATA_DM01
ASMCMD [+DATA_DM01] > cd EMERALD/CONTROLFILE
ASMCMD [+DATA_DM01/EMERALD/CONTROLFILE] > ls -l
Type         Redund  Striped  Time             Sys  Name
                                               N    cntrl01.dbf => +DATA_DM01/APSPROD/CONTROLFILE/current.3678.843826699
                                               N    cntrl03.dbf => +DATA_DM01/APSPROD/CONTROLFILE/current.3679.843826701
ASMCMD [+DATA_DM01/EMERALD/CONTROLFILE] > cd +DATA_DM01/APSPROD/CONTROLFILE
ASMCMD [+DATA_DM01/APSPROD/CONTROLFILE] > ls -l
Type         Redund  Striped  Time             Sys  Name
CONTROLFILE  HIGH    FINE     APR 02 12:00:00  Y    current.3678.843826699
CONTROLFILE  HIGH    FINE     APR 02 12:00:00  Y    current.3679.843826701
How can I ensure that every thing gets created in +DATA_DM01/EMERALD/ or [+RECO_DM01/EMERALD??  similary for datafile restore even I have used set new file name ASM fully quilified OMF  datafile gets created under +DATA_DM01/APSPROD/
ASMCMD [+DATA_DM01/EMERALD/DATAFILE]
N    undots5_01.dbf => +DATA_DM01/APSPROD/DATAFILE/APPS_UNDOTS5.3669.843818269
Thanks
PV

Even If I explicitly say
rman target / nocatalog
RMAN> restore controlfile  to '+DATA_DM01/emerald/controlfile/cntrl01.dbf' from '/dbfs_direct/FS1/RMAN_APSPROD/cf_APSPROD_i4p4b62m_1_1';
Starting restore at 02-APR-14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=64 device type=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
Finished restore at 02-APR-14
It create as alias name  +DATA_DM01/emerald/controlfile/cntrl01.dbf' pointing to +DATA_DM01/APSPROD/CONTROLFILE/
ASMCMD [+DATA_DM01/EMERALD/CONTROLFILE] > ls -l
Type         Redund  Striped  Time             Sys  Name
                                               N    cntrl01.dbf => +DATA_DM01/APSPROD/CONTROLFILE/current.3679.843828927
ASMCMD [+DATA_DM01/EMERALD/CONTROLFILE] > cd +DATA_DM01/APSPROD
ASMCMD [+DATA_DM01/APSPROD] > cd CONTROLFILE
ASMCMD [+DATA_DM01/APSPROD/CONTROLFILE] > ls -l
Type         Redund  Striped  Time             Sys  Name
CONTROLFILE  HIGH    FINE     APR 02 12:00:00  Y    current.3679.843828927
ASMCMD [+DATA_DM01/APSPROD/CONTROLFILE] >

Similar Messages

  • Can I restore the database (clone) to different Host/User account?

    Hi,
    We use RMAN catalog that backup our production database using "oracle" user (OS user is "oracle") account. We wanted to clone this database to different host and to different OS user (for example is "oradev") account. Both user has same group (oradba). Can I able to restore the control fies/data files to different user account (the account that wasn't backed up).
    Please update if you know of any documents/pdfs/links that explains this detail.
    Thanks in advance for your assistance,
    Ranga.

    Yes, the user account should be transparent assuming the backuppieces have the appropriate user/group permissions.

  • I'm waiting for my new iPhone 5s to be delivered. I lost my iPhone 5 but did have it backed up on my MacBook Pro. I was using iOS6 at the time. Will I have a problem restoring the data to my new iPhone 5s assuming it will come with iOS7?

    I'm waiting for my new iPhone 5s to be delivered. I lost my iPhone 5 but did have it backed up on my MacBook Pro. I was using iOS6 at the time. Will I have a problem restoring the data to my new iPhone 5s assuming it will come with iOS7?

    No, you should not.  There are problems trying to go the other way, but updating a newer iOS release from a backup of an older iOS release has always been supported and is the basic means of setting up a new device from a previous one.

  • HT201269 I backed up my 3GS using iTunes. I then restored the file to my new 4GS. Then I synced the apps onto the 4GS. Then I downloaded 2 custom ringtones, and attempted to sync them onto the 4GS, but it says "This Library is already synced with another

    I backed up my 3GS using iTunes. I then restored the file to my new 4GS. Then I synced the apps onto the 4GS. Then I downloaded 2 custom ringtones, and attempted to sync them onto the 4GS, but it says "This Library is already synced with another phone, and if you try to sync, you will lose all of the information on the iPhone." I am a Windows user. This Sync process is VERY confusing.

    How can I possibly get these two new ringtones onto the iPhone without wiping out everything else on the phone? This Sync process is nuts.
    I have Backed Up the phone twice. Why would iTunes try to wipe out the phone?

  • Restoring the database for the bcm using 2010 office pro

    I running win 7 professional and running the office 2010 professional using the bcm and it's working, but when I try restoring the database it gives me an error saying that I'm not the owner of the file. What's the problem?  I have backed up the from
    win 7 professional x'64' and trying to restore the file on a 32 bit application (office 2010 professional) I am the owner of the file that I'm trying to restore, and trying to avoid keying the transaction into the database on the 32 bit. Also I'm using the
    business contact manager to restore the file. Can anyone help? this is regarding outlook 2010 bcm.
    Mike Horrigan

    Hi Mike
    Try this
    Close Outlook
    Locate Outlook.exe on the file system
    Right-Click on Outlook.exe and select RunAs and Start Outlook as the Machine Administrator
    Then, try restoring the BCM Database
    Hope this helps!
    Larry - MSFT

  • Restore a database in a new instance with different name

    Hello, I need restore a database in a different server. I have a backup of 01-Jan-2008 on tape on DataProtector and I need to restore in another server in order to extract some information for a datawarehouse, I need restore with a name different because on that server we have a standby database. The both servers are HP ia64 and have Unix. I have installed Oracle 10.2.0.4.0 EE. I read the Oracle RMAN Advanced but the process is for duplicate the database, I need restore a backup from 01-Jan-2008. Can you help me please. What steps should I run. Thanks for your answer.
    Ruben Nieto
    DBA

    Hi Ruben Nieto,
    Can you check on the target if the backup pieces are still registered in the controlfile?
    < connect target /; >
    < list backup completed before 'to_date('2009-01-02:00:00:00','YYYY-MM-DD:HH24:MI:SS')'; >
    If no information is available:
    1) "I can't use the same name for the database." -> excludes a restore/recover on the standby server.
    2) "how can I restore the database whitout catalog in other server" -> excludes a duplication to new name.
    If you want to keep it simple find a third HP ia64 machine where you can mirror your production environment and restore the complete backup set and recover the database keeping the name of the target.
    Regards,
    Tycho

  • How can i retrieve documents(.doc,.pdf, .txt) using forms from the database.

    How can i retrieve documents(e.g .doc,.pdf, .txt etc) using forms from the database.
    i inserted the documents using sql*loader, below is the control and data files.
    -- control file
    LOAD DATA
    infile 'load.txt'
    INTO TABLE husman
    APPEND
    FIELDS TERMINATED BY ','
    (id integer external,
    fname FILLER CHAR(50),
    docu LOBFILE(fname) TERMINATED BY EOF)
    --data file
    1,../husman/dell.doc,
    2,../husman/me.pdf,
    3,../husman/export.txt,
    in the form i have a text field to display the id and an OLE container to display the document as an icon. but when i execute query, i only get the id number and not the document.
    any help will be appreciated.
    Thanks
    Hussein Saiger

    Step by step
    1. Erase all contents and settings
    2. You'll be asked twice to confirm
    3. You'll see Apple logo and progress bar
    4. You'll see a big iPad logo on screen
    5. Configuration start
    6. Set language
    7. Set country
    8. Enable Location Service
    9. Select network, enter password and join network
    10. You'll be given 3 options (a) Setup as New iPad (b) Restore from iCloud Backup (c) Restore from iTune Backup
    11. Selected Restore from iCloud Backup
    12. You'll be required to enter Apple ID and Password
    13. Agree to Terms and Conditions
    14. Select Backup file
    15. You'll see progress bar
    16. Red slider will appear; slide to unlock; step #1 to #16 is fast
    17. Pre-installed apps will be restored first
    18. Message: Purchased apps and media will now be automatically downloaded
    19. You'll see a pageful of apps with Waiting/Loading/Installing
    20. Message: Some apps cannot be downloaded, please sync with computer

  • Problem in Restoring the database

    Hi,
    I want to restore the database
    RMAN> startup force mount;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 07/20/2009 17:06:56
    RMAN-04014: startup failed: ORA-12514: TNS:listener does not currently know of s
    ervice requested in connect descriptor
    can anybody help on this.

    Hi,
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Cause:      The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action:      
    - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    Regards,
    Tom

  • Restoring the database from Coldbackup

    Hi Gurus,
    I have a cold back up files belongs to oracle 9i on Solaris 5.10. I wanted to restore the database and need to upgrade the Oracle 10g (10.2.0.3.0) on linux.
    All these process need to handle with out RMAN. What are the prerequisite information need to collect on source and target systems.
    Please guide me.
    Thanks,
    Tippu

    Azar wrote:
    Better install Oracle 10g on the new server and after import oracle 9i database into new server database.I would say that this depends on database size and database downtime that can be accepted: for small database and no short downtime constraint, I agree but for large database and limited downtime constraint this may not be a good choice.

  • Restore the database or tablespace from a old backup piece

    Hi All,
    We have the senerio like this.
    Day 1 : Took the complete database backup in RMAN
    Few changes done in database
    Day 2 : Took the complete database backup in RMAN
    Few changes done in database
    At day 3 if we wanto restore the database to Day 2 backup we can simply use restore database and recover database.
    Supose if we wan to restore the day 1 backup, please let me know if this will work.
    run
    set until time "to_date('10-06-2009 08:00:00','DD-MM-YYYY HH24:MI:SS')";
    restore database;
    recover database;
    Or is there any other way to do that.
    Please advice,
    Thanks & Regards,
    Rakesh

    It will work if you are running in archive mode and you have day 1 backup files available for RMAN.
    I recommend saving the current control file and restoring the original day 1 control file before you issue the resote / recover command.
    Oded
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • I have my iPhone 4s backed up on my mac but it seems it was encrypted with a password which i do not remember is there any other option to retrieve to the backup without restoring the device as a new one. Also I do not have access to a windows system.

    I have my iPhone 4s backed up on my mac but it seems it was encrypted with a password which i do not remember is there any other option to retrieve to the backup without restoring the device as a new one. Also I do not have access to a windows system.

    Sorry no, if you don't knnow the encrypted password, then you can't use that backjup.

  • TS4036 I have been restoring the backup into a new iphone for a week. My pictures do not get restored however. Is there anything I can do?

    I have been restoring the backup into a new iphone for a week. My pictures do not get restored however. Is there anything I can do?

    Not unless the phone was backed up to the icloud or in iTunes at some point. I know you said it's crushed but can it be connected to a computer? If so you can still back it up in iTunes and then when the new phone comes use iTunes to restore that back up on it.

  • RESTORING THE DATABASE AFTER BEING EDITED OR DELETED

    How to restore the database after being edited? I m using sql server 2008 R2, I've done backup with some foolish knowledge and many tables have disappeared from the database. I want to get them back. Please help me.

    Do you have backup which includes data which has been edited/removed by you .If so below query might help.
    use master
    go
    alter database db_name set single_user with rollback immediate
    go
    restore database db_name from disk='locaion of backup'
    with replace,recovery
    If you have transaction lgo backups as well please dont use above method.In such case you will need to  first restore full backup with no recovery like below and then apply all transaction logs with no recovery
    but the last transaction log with recovery( last trn log just before you edited)
    use master
    go
    alter database db_name set single_user with rollback immediate
    go
    restore database db_name from disk='locaion of backup'
    with replace,norecovery
    Hope this helps
    More details in below link
    http://www.karaszi.com/SQLServer/info_minimizing_data_loss.asp
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • HT1766 How to restore the iPhone as a new device?

    I am unlocking my phone through Apple & the mobile company, here are the steps I need to follow. I am not sure how to restore my phone as a new device!?
    iTunes
    1.    Back up the device using iTunes.
    2.    Restore the iPhone as a new device to complete the unlock.
    3.    Restore the iPhone again from Back up file to get all the data back.

    Thank you for your reply.
    I see. So When it asks me would you like to set it up as a
    1. New Device,
    2. Back Up from iTunes or
    3. Back up from iCloude
    I should select as a New Device? And re-use my current apple ID? I selected option 2 and didn't get the message "Congradulation, your iPhone is now unlocked"

  • HT4205 Can I update my iPod touch 2nd generation with iOS 4.2.1 to restore the iOS  to a new and improved iOS? Can I go from iOS 4.2.1 too iOS 5.0.

    Can I update my iPod touch 2nd generation with iOS 4.2.1 to restore the iOS  to a new and improved iOS? Can I go from iOS 4.2.1 too iOS 5.0.

    All you can do is get a newer model iPod. The 2G can only go as high as 4.2.1. Its hardare does not support a higher iOS version

Maybe you are looking for

  • How to change the web service address of NetBeans generated WS client

    I am currently experimenting with web services using netbeans and Sun Application Server. Basically I am creating simple web services using net beans and then deploy them on the app server and then create another pfoject with web service reference to

  • .java files appear double spaced in Jdeveloper IDE.

    After checking for updates and not finding what I was looking for, all .java files appear double spaced in the Code Editor. I can't find project property that seems to control this. The files appear fine when opened with other editors.

  • Using a non-firewire cam with quicktime broadcaster

    I have this very nice ptz analogue video conferencing camera... worth about $2000 to tell the truth. I would love to be able to use it with quicktime broadcaster. The problem is the video output is S-video, not fire wire. Does anyone know of some sor

  • Why was RSSI removed from iOS4?

    It appears that the Field Test Mode has been removed from iOS4 which also prevents owners from accessing their RSSI levels. The RSSI level provides a much better indication of the cellular wireless service signal strength than the signal strength bar

  • Query in oracle

    how to get the sysdate in oracle