RMAN Backup in ASM

Hi,
I have oracle 11gR2 with ASM installed on Windows 2008 R2 server 64 bit.
I have taken RMAN full database backup and that is in +FRA\BACKUP location now if i want to use that backup in other network location then how it is possible ?
Thanks & Regards,
Vikash Jain (Junior DBA)

Vikash Jain (DBA Trainee) wrote:
Hi Levi,
Here i am trying to copy file from ASM file system to Window drive ..am anable to do .
ASMCMD [+FRA/ASMDB/autobackup/2012_04_10] > cp +FRA/ASMDB/autobackup/2012_04_10/s_780262450.307.780262451 d:\olam\s_780262450.307.780262451.bak
ASMCMD-08010: no usr name is specified in remote instance connect_string->'d'ASMCMD [+FRA/ASMDB/autobackup/2012_04_10] > cp +FRA/ASMDB/autobackup/2012_04_10/s_780262450.307.780262451 d:/olam/s_780262450.307.780262451.bak
ASMCMD-08010: no usr name is specified in remote instance connect_string->'d'
You can see i have tried both back slash and forward slash.. but unfortunately nothing working for me.
Do you any solution for my problem ?
Thanks and regards,
Vikash Jain(Junior DBA)In Windows, Oracle takes the drive letter from the server where oracle software/home is installed. So when you try to copy using cp command, you don't have to specify the drive letter. And make sure that the directory [\olam] on windows is on the same "disk/drive" as the oracle software:
ASMCMD [+FRA/ASMDB/autobackup/2012_04_10] > cp +FRA/ASMDB/autobackup/2012_04_10/s_780262450.307.780262451 \olam\s_780262450.307.780262451.bak

Similar Messages

  • Is it necessary to take RMAN backup for ASM

    Hi all
    I also know we need RMAN to take backup for ASM . But i also seen its possible to take backup by using dd command itself on ASM . Why we need RMAN rather than this method . What is the specific reason we using RMAN,

    its possible to take backup by using dd command itself on ASM Very bad idea.
    1. You'll run into the classic "fractured block" issue when attempting a recover or reading a block after the restore
    2. RMAN can be used to
    a relocate individual datafiles,
    b duplicate / clone database,
    c restore to an alternate server,
    d copy / move from ASM to filesystem
    e verify for corruption
    f generate reports on backups taken
    None of which dd of ASM will do reliably (depending on the skills of the DBA/SA).
    Hemant K Chitale
    Edited by: Hemant K Chitale on Feb 19, 2013 9:56 AM
    Added the words : "reliably (depending on the skills of the DBA/SA)"

  • Restoring RMAN Backup from ASM RAC env to Non ASM standalone environment

    Hi,
    Can anyone please tell me how to restore database using RMAN in a Non ASM environment as my backup file with ASM RAC environment.
    i was also looking for some documentation which provides clear explanation about RMAN backup and Restore in ASM and Non ASM environment.
    Thanks

    You can set the parameter db_file_name_convert in init.ora in you new database with [ID 47325.1]
    or
    you can set parameter "set newname" in your script rman. [ID 549972.1]
    if you have one or two destinations of dbfiles in ASM I seggest to you set parameter db_file_name_convert in init.
    example:
    db_file_name_convert=('+DGDATA','/u01/oradata/');
    remenber you need set log_file_name_convert to.
    log_file_name_convert=('+DGREDO','/u01/redo/');
    if you use "set newname" commands you need set this lines in your script rman.
    set newname for datafile 1 to '/u01/oradata/system01.dbf';
    set newname for datafile 2 to '/u01/oradata/undotbs01.dbf';
    set newname for datafile 3 to '/u01/oradata/sysaux01.dbf';
    set newname for datafile 4 to '/u01/oradata/users01.dbf';
    and every datafiles you need set!
    Edited by: user1107977 on 21/07/2011 13:47

  • RMAN Backup to ASM and DISK Multiple Locations

    Hi
    We currently have a RAC database that backs up to the Flash Recovery Area on ASM.
    Is there any way of backing up to ASM and Local Disk at the same time? I know you can configure multiple locations but what is the syntax to backup to ASM?
    I've seen the line
    format '/disk1/......','/disk2/.....' etc which backs upto multiple locations.
    Is ASM just '+data/......' ?
    Thanks

    as you said, use the ASM path in the format scope.
    also if you want to backup the DBF's as is(not a backup set) - use:
    backup as copy database;
    good luck

  • RMAN Backup with ASM and Standby in place

    Hi All,
    We are planning to upgrade our database from 10.2.0.2 to 10.2.0.3. We have ASM as storage on primary and phisical standby is in place.
    I want to make a cut of point for backup, i.e if I restore till that poit on primary standby should continue to work. I need not create standby.
    We are using rman for backup and primary db uses asm for data,archive and redolog storage.
    I have a online complete db backup at 12:00PM. At say 6:00pm i take primary down and apply all archives on standby and cancel recovery on standby along with taking it down. On primary i mount db and take controlfile backup and all archive log backup using rman.
    Now i continue with upgrade and many more changes on primary. I will not touch standby. We decide to revertback at 10pm on primary. If I wan to return back to 6:00pm state on primary and standby.
    I believe I will restore controlfile backup taken at 6:00pm with db in mount phase. Restore dbfiles from online backup and recover using archives.
    My question is do i need to open with resetlogs? Then I will lose my standby which was up to date at 6:00pm. Can I not backup redofiles at 6:00pm with db in mount phase and i restore them then i need not open with reset logs and my stnadby will continue from that point.
    Please guide me..Is there way to backup redologs when db is in mount phase and using asm for storage using rman.

    There are quite a bunch of steps involved and you need to do some documentation reading.
    Do you plan to create the test database on the same machine or different RAC system?
    Which version of Oracle are you using? What OS?
    There is plenty of information on the web if you search for "duplicate database RAC ASM". Did you try?

  • Rman backup and restore from ASM env to Non ASM Environment

    Hi,
    I got a situation where i need to take RMAN Backup from ASM RAC environment and Restore that back to Non ASM standalone database.
    Please let me know the procedure.
    would appreciate your quick response

    874152 wrote:
    Hi,
    I got a situation where i need to take RMAN Backup from ASM RAC environment and Restore that back to Non ASM standalone database.
    Please let me know the procedure.
    would appreciate your quick response
    Hi,
    You can follow this procedure
    1. take the backup to destination host
    2. restore spfile and controlfile
    3. catalog the backup with command 'catalog start with <location of backup>'
    4. use "set newname for datafile" to restore the datafile to non asm disk
    5. restore database
    6. recover database until point in time
    7. rename redolog and tempfile
    8. open database with resetlogs
    9. remove redolog group from another instance
    10. you might want to drop undo tablespace from another instance too
    11. task complete
    Cheers

  • Create Data Guard Using ASM Managed RMAN backup

    we have an oracle database 11.1.0.7 working on Windows server 2003 (64bit). The storage in ASM managed (same 11.1.0.7). Our total database size is 4TB.
    I will have to create a physical standby database (Data Guard) of this instance. Now I am having issues on how to transport my RMAN backup pieces (which is also ASM managed).
    I cannot do an over the network RMAN backup because it will take months to complete.
    We have external 4 hard disks (2 TB each). But my RMAN backup pieces are ASM in format.
    Any ideas on how to easily create a data guard in this set up.

    TheAlchemist wrote:
    can you provide us any clear steps....Hope you asked for Restoring from backups.
    1) Prepare PFILE and put in nomount status.
    2) Restore standby controlfile
    RMAN> restore standby controlfile from '+DG/...'
    3) Mount controlfile
    SQL> alter database mount standby database;
    4) Restore database.
    If you are restoring into another diskgroups, then use as below.
    RUN {
    SET NEWNAME FOR DATAFILE 1 TO '+Dg1/....';
    SET NEWNAME FOR DATAFILE 2 TO "+Dg1/...';
    RESTORE DATABASE
    If same diskgroup you want to use then, just give RMAN> restore database;
    After successful restore
    5) Start MRP
    SQL> alter database recover managed standby database disconnect from session;

  • RMAN BACKUP configured to asm

    Vinoth here.....Hi to all
    We have rman backup in our environment and rman backup location is in local server '/oracle/app/oracle/rman_backpup' like this, when i check with that physical location no backup file is found. It seems like backup is stored in asm diskgroup '+DGBACKUP'. I am confused because i saw the rman log file which is written to a file during the rman backup process, it shows the backup is available in '/oracle/app/oracle/rman_backpup'. can anyone explain hw it happens because i am new to asm environment.
    Thanks in advance

    See my List Backup looks like as below
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    823 Full 15.15G DISK 00:03:39 05-AUG-12
    BP Key: 823 Status: AVAILABLE Compressed: NO Tag: FULLBKP
    Piece Name: /oracle/backup/SMHPMBLD00/today/bckdat_790488273_827_1_prnhr p6h_1_SMCPROD.bkp
    List of Datafiles in backup set 823
    File LV Type Ckp SCN Ckp Time Name
    3 Full 256379481 05-AUG-12 +DATA/smcprod/datafile/undotbs1.258.77854121                                                                                        9
    4 Full 256379481 05-AUG-12 +DATA/smcprod/datafile/users.259.778541219
    7 Full 256379481 05-AUG-12 +DATA/smcprod/datafiles/ts_ris_data_01.dbf
    9 Full 256379481 05-AUG-12 +DATA/smcprod/datafiles/ts_pacs_data_01.dbf
    11 Full 256379481 05-AUG-12 +DATA/smcprod/datafiles/ts_pacs_data_02.dbf
    12 Full 256379481 05-AUG-12 +DATA/smcprod/datafiles/ts_pacs_data_03.dbf
    14 Full 256379481 05-AUG-12 +DATA/smcprod/datafiles/ts_pacs_data_05.dbf
    16 Full 256379481 05-AUG-12 +DATA/smcprod/datafiles/ts_pacs_data_07.dbf
    17 Full 256379481 05-AUG-12 +DATA/smcprod/datafile/system.274.789902945
    [oracle@smhpmbld00 today]$ pwd
    /oracle/backup/SMHPMBLD00/today
    [oracle@smhpmbld00 today]$ ls
    afiedt.buf
    [oracle@smhpmbld00 today]$
    But i didnt find any backup piece in the path: /oracle/backup/SMHPMBLD00/today/bckdat_790488273_827_1_prnhr
    But backups are found in the location below and it is in Zip file
    /oracle/backup/SMHPMBLD00
    [oracle@smhpmbld00 SMHPMBLD00]$ ls
    backup_2012-06-26_SMCPROD.tar.gz backup_2012-07-07_SMCPROD.tar.gz backup_2012-07-18_SMCPROD.tar.gz backup_2012-07-29_SMCPROD.tar.gz
    backup_2012-06-27_SMCPROD.tar.gz backup_2012-07-08_SMCPROD.tar.gz backup_2012-07-19_SMCPROD.tar.gz backup_2012-07-30_SMCPROD.tar.gz
    backup_2012-06-28_SMCPROD.tar.gz backup_2012-07-09_SMCPROD.tar.gz backup_2012-07-20_SMCPROD.tar.gz backup_2012-07-31_SMCPROD.tar.gz
    backup_2012-06-29_SMCPROD.tar.gz backup_2012-07-10_SMCPROD.tar.gz backup_2012-07-21_SMCPROD.tar.gz backup_2012-08-01_SMCPROD.tar.gz
    backup_2012-06-30_SMCPROD.tar.gz backup_2012-07-11_SMCPROD.tar.gz backup_2012-07-22_SMCPROD.tar.gz backup_2012-08-02_SMCPROD.tar.gz
    backup_2012-07-01_SMCPROD.tar.gz backup_2012-07-12_SMCPROD.tar.gz backup_2012-07-23_SMCPROD.tar.gz backup_2012-08-03_SMCPROD.tar.gz
    backup_2012-07-02_SMCPROD.tar.gz backup_2012-07-13_SMCPROD.tar.gz backup_2012-07-24_SMCPROD.tar.gz backup_2012-08-04_SMCPROD.tar.gz
    backup_2012-07-03_SMCPROD.tar.gz backup_2012-07-14_SMCPROD.tar.gz backup_2012-07-25_SMCPROD.tar.gz backup_2012-08-05_SMCPROD.tar.gz
    backup_2012-07-04_SMCPROD.tar.gz backup_2012-07-15_SMCPROD.tar.gz backup_2012-07-26_SMCPROD.tar.gz today
    backup_2012-07-05_SMCPROD.tar.gz backup_2012-07-16_SMCPROD.tar.gz backup_2012-07-27_SMCPROD.tar.gz
    backup_2012-07-06_SMCPROD.tar.gz backup_2012-07-17_SMCPROD.tar.gz backup_2012-07-28_SMCPROD.tar.gz
    [oracle@smhpmbld00 SMHPMBLD00]$ pwd
    sho parameter db_rec
    NAME TYPE VALUE
    db_recovery_file_dest string +DGFLASH
    db_recovery_file_dest_size big integer 5727M
    db_recycle_cache_size big integer 0
    Oracle 11G R2 Rac DB 2 node
    **How to find the Rman script, and where is it placed?**
    Edited by: 950327 on Aug 5, 2012 1:32 AM
    Edited by: 950327 on Aug 5, 2012 1:36 AM
    Edited by: 950327 on Aug 5, 2012 1:40 AM

  • RMAN backup restoration on a different server under ASM .

    Hello Experts,
    This is regarding new installation of Oracle RAC 11gR2 on AIX 6.1 . Its a two node cluster setup , using ASM . As i am newbie for RMAN , I would like to know how i can restore my rman backup to another uat server which has standby database again cofigured under asm .
    Thanks for your kind help .

    Hi ,
    Thanks for reply
    1) I performed the full database backup on source .
    2) Source (prod) and target remote database (uat) are in ASM and have same DG for datafiles .
    3) I have transfered the backup from production to UAT . I have already running uat database
    do i need to drop it before i start the restoration ? My final purpose is just to refresh target with production backup . Kindly advice the steps from here to proceed with .
    Thank you

  • RMAN backup restore from RAC to single instance ASM

    Hi,
    We are using oracle 11gR2 on AIX 6.1,
    We need to restore RMAN backup from RAC to single instance ASM,
    Im new to RAC & ASM, What will be the changes
    What will be steps involved into it.
    Thanks

    Hello,
    Refer this MOS doc *HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another Node [ID 415579.1]*
    On the Single Instance ASM, you need to specify the diskgroup name for the parameters "control_files, db_create_file_dest"
    Handle:      user10745179
    Email:      [email protected]
    Status Level:      Newbie (5)
    Registered:      Feb 24, 2009
    Total Posts:      168
    Total Questions:      74 (52 unresolved)
    Name      Devesh
    Location      Mumbai If you feel that your questions have been answered, then please consider closing the threads by providing appropriate points. Please keep the forum clean !!
    Regards,
    Shivananda

  • ASM RMAN backup to File System

    Hi all,
    I have a rman backup (datafile and controlfile) which was took in an ASM instance (not a RAC) ORACLE 11.2.0.2 in a Linux server, now I want restore the backup in a new database in windows/Linux OS using general File System storage (single instance rdbms) instead of ASM.
    Is this possible?
    Can I restrore an ASM rman backup in a file system storage mechanisim in a new server?
    Kindly clarify my question.
    Thanks in Advance..
    Nonuday

    Nonuday wrote:
    Hi Levi,
    Thanks for your invaluable script and blog.
    can you clarify me on this query:
    I have a RMAN backup taken from ASM and the backup is database and controlf file backup which contains datafiles and controlfiles.
    Now I need to restore this on my system and here I dont use ASM or archive log, I use single instance in no archive log mode database.
    I have restored the control file from the RMAN controfile backup.
    Before restoring the control file I have checked the orginal pfile of the backup database which had parameters like
    'db_create_file_dest',
    'db_create_online_log_dest',
    'db_recovery_file_dest_size',
    'db_recovery_dest',
    'log_archive_dest'.
    Since I am not gng to create a DB in no archive log mode, I didnt use any of the above parameters and created a database.
    Now my question is:
    If i restore the database and the datafile will get restored and after renaming all the logfiles, database will be opened.
    I want to know whether this method is correct or wrong and will the database work as it was working previously. Or do i need create the db_file_recovery and other parameters also for this database.About Parameter:
    All these parameters should reflect your current environment any reference to the old environment must be modified.
    About Filesystem used:
    Does not matter what Filesystem you are using the File (datafile/redolog/controlfile/archivelog/backuppiece) are created on Binary Format which depend on Platform only. So, The same binary file ( e.g datafile) have same format and content on raw device, ASM, ext3, ext2, and so on. So, to database it's only a location where file are stored, but the file are the same. ASM has a different architecture from Regular Filesystem and need be managed in a different manner (i.e using RMAN).
    About Database:
    Since your database files are the same even using different filesystem what you need is rename your datafiles/redofiles on controlfile during restore, the redo files will be recreated.
    So, does not matter if you database are noarchivelog or archivelog, the same way which you will do a restore on ASM is the same way to restore on Regular Filesystem. (it's only about renaming database file on controlfile during restore)
    On blog the post "How Migrate All Files on ASM to Non-ASM (Unix/Linux)" is about move the file from filesystem to another. But you can modify the script used to restore purposes;
    ## set newname tell to RMAN where file will be restored and keep this files location on memory buffer
    RMAN> set newname for datafile 1 to <location>;
    ### swich get list of files from memory buffer (rman) and rename on controlfile the files already restored.
    RMAN>switch datafile/tempfile all ;With database mounted use this script below:
    I just commented three lines that are unnecessary in your case.
    SET serveroutput ON;
    DECLARE
      vcount  NUMBER:=0;
      vfname VARCHAR2(1024);
      CURSOR df
      IS
        SELECT file#,
          rtrim(REPLACE(name,'+DG_DATA/drop/datafile/','/u01/app/oracle/oradata/drop/'),'.0123456789') AS name
        FROM v$datafile;
      CURSOR tp
      IS
        SELECT file#,
          rtrim(REPLACE(name,'+DG_DATA/drop/tempfile/','/u01/app/oracle/oradata/drop/'),'.0123456789') AS name
        FROM v$tempfile;
    BEGIN
    --  dbms_output.put_line('CONFIGURE CONTROLFILE AUTOBACKUP ON;'); ### commented
      FOR dfrec IN df
      LOOP
        IF dfrec.name  != vfname THEN
          vcount      :=1;
          vfname     := dfrec.name;
        ELSE
          vcount := vcount+1;
          vfname:= dfrec.name;
        END IF;
      --  dbms_output.put_line('backup as copy datafile ' || dfrec.file# ||' format  "'||dfrec.name ||vcount||'.dbf";');  ### commented
      END LOOP;
      dbms_output.put_line('run');
      dbms_output.put_line('{');
      FOR dfrec IN df
      LOOP
        IF dfrec.name  != vfname THEN
          vcount      :=1;
          vfname     := dfrec.name;
        ELSE
          vcount := vcount+1;
          vfname:= dfrec.name;
        END IF;
        dbms_output.put_line('set newname for datafile ' || dfrec.file# ||'  to  '''||dfrec.name ||vcount||'.dbf'' ;');
      END LOOP;
      FOR tprec IN tp
      LOOP
        IF tprec.name  !=  vfname THEN
          vcount      :=1;
          vfname     := tprec.name;
        ELSE
          vcount := vcount+1;
          vfname:= tprec.name;
        END IF;
        dbms_output.put_line('set newname for tempfile ' || tprec.file# ||'  to  '''||tprec.name ||vcount||'.dbf'' ;');
        END LOOP;
          dbms_output.put_line('restore database;');
        dbms_output.put_line('switch tempfile all;');
        dbms_output.put_line('switch datafile all;');
        dbms_output.put_line('recover database;');
        dbms_output.put_line('}');
    ---   dbms_output.put_line('alter database open;');  ### comented because you need rename your redologs on controlfile before open database
        dbms_output.put_line('exit');
    END;
    /After restore you must rename your redologs on controlfile from old location to new location:
    e.g
    ##  use this query to get current location of redolog
    SQL>  select group#,member from v$logfile order by 1;
    ## and change from <old_location> to <new_location>
    SQL > ALTER DATABASE
      RENAME FILE '+DG_TSM_DATA/tsm/onlinelog/group_3.263.720532229' 
               TO  '/u01/app/oracle/oradata/logs/log3a.rdo'  When you change all redolog on controlfile issue command below:
    SQL> alter database open resetlogs;PS: Always track database in real time using alert log file of database.
    HTH,
    Levi Pereira

  • RMAN backup goes to filesystem and not to ASM diskgroup

    Hi,
    DB: 11.2.0.1
    OS: Linux
    Parameter configured in database:
    SQL> show parameter db_recovery_file_dest
    NAME TYPE VALUE
    db_recovery_file_dest string +BACKUP
    db_recovery_file_dest_size big integer 10184M
    If i execute the command " RMAN> backup database; " , then the backup ( backup pieces) is going to +BACKUP destination and this is as expected.
    But, if i execute the same command using script, then the backup pieces are going to filesystem(default location $ORACLE_HOME/dbs ).
    Could you suggest me(if i understood wrongly), why the backup pieces are going to the location of filesystem , and not to the ASM diskgroup ?.
    I want to take the backup to ASM diskgroup, because of less space at filesystem.
    The script i used is this:
    [oracle@rac1 rmanscripts]$ more online.sh
    export ORACLE_SID=test;
    export NLS_DATE_FORMAT='dd/mm/yy hh24:mi:ss';
    umask 022
    date
    rman target / cmdfile online.rcv msglog online.log
    [oracle@rac1 rmanscripts]$ more online.rcv
    run {
    backup
    full
    tag b_db_full_test
    filesperset 2
    format 'df_%d_%t_%s_%p'
    database include current controlfile;
    Thanks in advance,
    Regards,

    Hi mseberg,
    Thanks for your reply and the thing is that the controlfile autobackup is going to ASM diskgroup ( +BACKUP).
    Even after changing the suggested config, no luck to me.
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name TEST are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 15 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '+BACKUP';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 3 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/home/oracle/app/oracle/product/11.2.0/dbhome_2/dbs/snapcf_test.f'; # default
    Backup piece destination info from log is here:
    channel ORA_DISK_2: finished piece 1 at 16/02/13 22:41:22
    piece handle=/home/oracle/app/oracle/product/11.2.0/dbhome_2/dbs/df_TEST_807575973_155_1 tag=B_DB_FULL_TEST comment=NONE
    channel ORA_DISK_2: backup set complete, elapsed time: 00:01:49
    Finished backup at 16/02/13 22:41:22
    Starting Control File and SPFILE Autobackup at 16/02/13 22:41:22
    piece handle=+BACKUP/test/autobackup/2013_02_16/s_807576082.342.807576083 comment=NONE
    Finished Control File and SPFILE Autobackup at 16/02/13 22:41:25
    I cannot understand why this is,
    Regards,

  • Copy RMAN backups from RAC ASM

    Hi, I have 2-node (RHEL 5.8) RAC database with ASM shared storage. RMAN is doing daily backups on this ASM storage too. How could I copy backups from ASM to another place ? I'm using version 10gR2 db, and there is no "cp" command in asmcmd.

    How could I copy backups from ASM to another place ? I'm using version 10gR2 db, and there is no "cp" command in asmcmd.You can use RMAN to accomplish it.
    Use command
    RMAN>  backup backupset from ... format '<new_location>' ;Example here:
    Re: Move Backups from ASM to Disks
    Using Tag:
    Re: RMAN to both ASM and Network File system
    Edited by: Levi Pereira on Apr 4, 2013 11:39 AM

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

  • 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

Maybe you are looking for

  • Safari 5.0.5 freezes on wake

    If I close my MBP, with Safari open, it freezes when I open it back up.  All other programs work, but slower. Took it to the Genius (sic) bar and they told me to install Clicktoflash to block flash.  Still froze. I've reset Safari and deleted the pre

  • Web templete showing "EA" in the Key figure but not in Bex Report

    Hi, When I exucute my query in BEx , the report works fine , but while exucuting in Web , "EA" is getting added after every Key figure Value.. Can you pls help us with any input ?

  • DefaultMutableTreeNode to XML file

    Morning all, i have a program that writes a node to an xml file. it looks like so: public void write(DefaultMutableTreeNode root) {      try {      DocumentBuilderFactory factory =   DocumentBuilderFactory.newInstance();                      Document

  • SAP HANA Query

    Hello, I have a query about SAP HANA. If I want to bring BSEG table in HANA from ECC but do not want to do Live update(SLT) and do not want to create all the fields that exist in BSEG in ECC one by one. what features of native HANA would I use to do

  • 2504 Port config

    Dear all, Today I see a strange behavior of the 2504. Does the 2504 working similar to the 5508? I configured on the 2504 a two new interfaces additional to the management which is also tagged I used only port-1 on the wlc and was not able to use the