RMAN backup locations

Hi,
I have the same query for a Oracle 9i and 10g server.
I'm using this RMAN script:
RUN {
ALLOCATE CHANNEL disk1 DEVICE TYPE DISK FORMAT '/backups';
BACKUP DATABASE PLUS ARCHIVELOG;
RELEASE CHANNEL disk1;
Once the backup is run, we use OS utilities to copy /backups to a remote server, so we have a remote copy.
Is there any RMAN way to perform this task, preferably with some sort of validate functionality?

Hi Hemant,
I have found the first two options in the documentation, but had noted they weren't really acceptable. With a short backup window, and remote backups taking a long time, attempting to backup the live database remotely presented a performance issue while it was running.
Backup backupset however, is exactly what I am looking for. Thank you for this.

Similar Messages

  • When the archive disk group and RMAN backup location is full

    11.2.0.2 on Solaris 10
    2-Node RAC
    Sometimes I am faced with a situation where the disk group meant for storing archivelogs is full and the Disk based
    RMAN backup location is full as well. What would you do in such a situation ?
    This usually happens with our QA/UAT DBs during apps testing of certain type which causes huge amount of redo is generated.
    We don't directly backup to tape. The disk based backups are moved to tape every two weeks by our SysAdmin.

    Thank you Hemant, Tsharma, Asahideo
    If I have free space left in my local filesystem in any of the nodes in my 2-node RAC, I can run something like
    -- Untested
    BACKUP AS COMPRESSED BACKUPSET ARCHIVELOG ALL DELETE INPUT format '/localNode_pATH/ora_Arch%t_s%s_s%p';and later when the space is freed up in the original RMAN backup location , I can move it there and use CATALOG command to catalog this backup . Right ?

  • RMAN backup location

    Hi there
    I have a production database oracle10g R2 in Redhat 5 . I have been taking disk base backup using catalog.
    Now I want restore that database to another server which file system is not identical with production database.
    My production database backup location is : /u01/backup/orcl/data/..
    My test server do not have same location
    when I restore database
    run { restore database;........}
    in test server then it search backup data from /u01/backup/orcl/data/
    Please help me to overcome the above situation
    Jamal

    The "CATALOG" command (not to be confused with the catalog schema !) is what you need to use.
    See the documentation :
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta011.htm#sthref230
    After restoring the controlfile, run "CATALOG START WITH /newlocation" in RMAN.
    Then, the controlfile would be updated with the new location, thus allowing the RESTORE to search for the backup pieces in the new location.
    Hemant K Chitale
    Edited by: Hemant K Chitale on Jan 3, 2011 5:41 PM

  • RMAN Backup Location sizing

    Hello:
    I have scheduled a RMAN backup of three of our development databases ( all 9i ) . The database are about 100 G in size. I wanted to do the following:
    1. Weekly full backup
    2. Daily incremental backup
    I have set the recovery window to a week. RMAN backsups would be stored in a NFS disk. The Question I have is what is the minimum size of the this disk for all the backups to be successful. Currently I am getting Disk out of space errors. Here is how I am calculating the space requirments.
    Full backups - 3 x 100 G =300 G
    Daily incrementals = 3 x 100M X 6 = 1800 M ( 100 M incremental for each of these databases for 6 days )
    So the total space needed would be 302 G in total. Given the recovery window of 7 days do you think that this is sufficient or i have to double the full backup size.
    Regards,
    Bala

    BMP wrote:
    Hello:
    I have scheduled a RMAN backup of three of our development databases ( all 9i ) . The database are about 100 G in size. I wanted to do the following:
    1. Weekly full backup
    2. Daily incremental backup
    I have set the recovery window to a week. RMAN backsups would be stored in a NFS disk. The Question I have is what is the minimum size of the this disk for all the backups to be successful. Currently I am getting Disk out of space errors. Here is how I am calculating the space requirments.
    Full backups - 3 x 100 G =300 G
    Daily incrementals = 3 x 100M X 6 = 1800 M ( 100 M incremental for each of these databases for 6 days )
    So the total space needed would be 302 G in total. Given the recovery window of 7 days do you think that this is sufficient or i have to double the full backup size.
    Regards,
    BalaDon't forget to factor in the implications of takeing a full backup once a week with a recovery window of one week.
    You take your first backukp, a full (incremental 0) backup on Sunday.
    You take your incrementals (incremental 1) Monday through Saturday.
    Everything is going just as you calculated.
    Then the next Sunday comes around.
    You take your next full (incr 0) backup.
    At this point oracle still has to maintain all the backups required to have a recovery window of 7 days. That means he has to keep everything back to and including the last full backup on or prior to the beginning of that 7 day window.
    So if you have a backup window of 7 days and only take a full backup once every seven days, oracle will actually have to maintain 14 days worth of backup sets.

  • The specified RMAN backup is invalid ?

    Hi,
    I'm trying to clone database by enterprise manager (OS: Win Server 2003, DB: 11gR1), but I'm getting the following error:
    >
    RMAN Backup Location - The specified RMAN backup is invalid. Could not identify controlfile from the backup.
    >
    I'm using this opyion:
    >
    -An existing database backup
    -RMAN backup
    >
    The "* RMAN Backup Location" I selected is where a full database backup location.
    what could be the problem?
    Saad,

    Saad Nayef wrote:
    Hi,
    I'm trying to clone database by enterprise manager (OS: Win Server 2003, DB: 11gR1), but I'm getting the following error:
    >
    RMAN Backup Location - The specified RMAN backup is invalid. Could not identify controlfile from the backup.
    >As per the error message, the control file backup is not there. So did you take this backup or its passed over to you? Whoever did the backup, they need to confirm the validity of it including the control file backup status.
    HTH
    Aman....

  • Backup location during Duplicate db

    hi,
    Is it possible to change the RMAN backup Location for the Auxillary db.
    ie., say on my Target the bakup location is /u03/rman/backup
    and on Auxillary host i copy the backup to /u01/rman backup
    How to tell RMAN to look at different destination during DUPLICATE database.
    also, I am NOT using recovery catalog.

    OS? Database version? On 10g and higher use 'catalog backuppiece' to move the metadata information about backups to another location.
    Werner

  • 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

  • Restore RMAN Backup in Different Database on Same RAC

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

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

  • RMAN backup into multiple locations

    Hi All,
    Our database size is 1.4 TB. I am planning to schedule RMAN full backu. But i do not have mount point of size 1.4 TB. We have mount point /rmanbkp1 of size 1200GB and /rmanbkp2 of size 200GB. How can i distribute RMAN backup to these two filesystems.
    Can i take tablespace level backups..?
    Please suggest.
    Thanks
    Sandeep Vadlamudi

    Hello;
    First of all 1200GB, might be enough since you probably are not using all the blocks in the 1.4 TB and will compress you will also lose less.
    Can i take tablespace level backups..?
    Yes but the value is limited. You cannot for example recover a dropped tablespace.
    Test a backup first and get an idea of how much space you really need.
    Also once you have a backup how do you free space for the next backup?
    You could use the FORMAT command to backup the database to one location and the Archive to the other. 200 GB is not much space.
    RMAN backup into more than one location :
    http://www.oracle-class.com/?p=2043
    Best Regards
    mseberg

  • Centralized rman backup in one location

    Hi,
    I want to centralize rman backup for all my databaseserver in one location.
    I already dedicate one server for this backup and create a catalog in this server but if i start the backup the backup file is not stored on the server that reside the catalog but in the database server. What should I do to store all my backup in this backup server.
    Thanks

    dbakely wrote:
    RMAN> show all;
    starting full resync of recovery catalog
    full resync complete
    RMAN configuration parameters for database with db_unique_name TESTDB are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    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 NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/opt/oracle/11.2.0/orah1/dbs/snapcf_testdb.f'; # default
    Yes, catalog is just a metadata but I want to store rman backup in a remote database server.
    Is there rman server to be installed to do this?
    ThanksPls, your RMAN script also.
    Look:
    Server1: Where you execute your backup script
    Server2: Where your catalog database resides.
    Now, if you want your backups to be stored in Server2, you have to mount location at Server1 which points location at Server2. This is could be NFS o ssh based sharing and etc.

  • Rman backup to a remote location

    I want to take the rman backup of production database to a remote server.
    Means, source and destination servers are located at two different location.
    OS: RHEL 4
    In metalink, i got the doc id: 292726.1
    Could anyone please tell me the detailed steps of "Backup to Remote DISK" heading of meantioned doc or provide me some other useful links ?
    Edited by: NKJ on Dec 3, 2008 10:07 AM

    You can backup to a remote location assuming you have the remote location appropriately mapped.
    However, you may want to check this 10gR2 "database backup" to nfs mounted dir results in ORA-27054 NFS error regarding NFS and RMAN.

  • RMAN Backup then moving to different location.

    Hi,
    Any help is much appreciated.
    I have a situation where I must backup a 1TB database to a different location than where the database resides using rman, there is also an rman catalog being used, the backup location is NFS mounted on the database server.
    If I backup directly to the NFS mount, it takes about 5 hours.
    If I backup locally on the server the database resides, the backup is completed in just over 1 hour.
    One option I have is to backup the database locally then immediately after wards copy the backup files to the backup location over NFS. However, when it comes to backing up the database he following day, it assumes the backup no longer exists.
    The question is :
    If I do 1 level 0 backups and 6 level 1 backups per week and each day rman finds no backup files, how will it know at what point the level 1 backup should start from ? Will the backups valid in the event of a restore ?
    In the event of a restore, if I copied over the backup files from the nfs mounted backup location to the local disk, will rman be able to identify that these are the backup files it had created and now can be used for a restore ?
    Below are 2 copies of the backup script, Level 0 and level 1 :
    rman target $TARGET_DB@$ORACLE_SID catalog $CATALOG_DB <<EOD1
    crosscheck archivelog all;
    crosscheck backup;
    resync catalog;
    run {
    CONFIGURE DEVICE TYPE DISK PARALLELISM 5;
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '$BACKUP_DIR/CTL_%F';
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '$BACKUP_DIR/DB_L0_%d_%U';
    backup spfile;
    BACKUP INCREMENTAL LEVEL 0 DATABASE include current controlfile filesperset 4;
    EOD1
    rman target $TARGET_DB@$ORACLE_SID catalog $CATALOG_DB <<EOD1
    crosscheck archivelog all;
    crosscheck backup;
    resync catalog;
    run {
    CONFIGURE DEVICE TYPE DISK PARALLELISM 5;
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '$BACKUP_DIR/CTL_%F';
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '$BACKUP_DIR/DB_L1_%d_%U';
    backup spfile;
    BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE include current controlfile filesperset 20;
    EOD1

    Where shall I start?
    This is yet again a post where including the four digit version number was considered irrelevant, though functionality of RMAN changes with every new release. Whether this is Oracle 9i or Oracle 10g, who can tell.
    It is at least 9i style code, with many misunderstandings on how RMAN works.
    First of all, by relocating your backup to a NFS mounted drive you make it unavailable to the catalog.
    By running crosscheck the status of the backup will go to expired, so it will not be considered anymore.
    Secondly, making a RMAN backup on a NFS device is dangerous. You don't specify an OS (also irrelevant) but I had to observe a backup to a correctly mounted NFS device (with a 32k read buffer and a 32k write buffer) couldn't be restored
    in a later stage as the backup was 'corrupt'.
    Thirdly, 'restore database' will only consider level 0 backups. This means: when the level 0 backup is no longer available, you can not restore your database, l1 backups are only used in the recover phase.
    Fourthly, there are few minor problems in the backup scripts, as when datafile 0 is being backed up the spfile and controlfile are included. Also you don't seem to autobackup the controlfile.
    All in all, my crystal ball tells me in the event of disaster, you will have no backup at all.
    Time to review this situation. Urgently!
    Sybrand Bakker
    Senior Oracle DBA

  • Unable to restore and recover my Database from RMAN Backup

    Dear All,
    Iam practicing RMAN in Windows environment.
    My configurations are
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION ON; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'F:\Backup\%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    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 ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'E:\ORACLE\DATABASE\SNCFORCL.ORA';
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'F:\Backup\%U.bak';
    Then i took the RMAN backup, now iam shutdown my DB and removed one logfile..
    then i tried to startup the DB but it is saying
    ORA-00313: open failed for members of log group 3 of thread 1
    ORA-00312: online log 3 thread 1: 'E:\ORADATA\ORCL\REDO03.LOG'
    So i tried to restore the Database with my rman backup
    RMAN> restore database;
    But i am unable to restore my logfile in the Datafiles location where as all other datafiles are restored but redo logfiles are not restored.
    So, i am unable to recover my DB
    Please tell me whether i am doing any mistake, what is the solution for my problem.
    Thanks in advance
    Mahi

    All you restored was your datafiles.
    Now issue recover database and that will apply the archive logs.
    This is in the oracle documentation.
    "You must restore backups of these archived logs for recovery to proceed. You can restore either to the default or nondefault location. If you do not have backups, then you must performing incomplete recovery up to an SCN before the first missing redo log and open RESETLOGS."
    http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/osrecvry.htm
    In this case after issuing restore database in RMAN, then issue this.
    "Recover database"
    It will then be an incomplete recovery. They should have been multiplexed. Did you restore your controlfile with this backup? You may have to issue an "Alter database open resetlogs;"

  • Create a new Database in an other server using a copie of RMAN backup

    Hi all,
    I want to create an other instance for our production database. We have disk and tape in rman backup. My question is can i create a new database using our disk backup in an other server?
    If some procedure or steps is there, email it to my adresse [email protected]
    Hamid.
    Thanks

    By means of the use of Recovery Manager it is possible to duplicate a database out from a previously taken rman backup. The method will be outlined in the next few lines.
    Let's assume a source database named SRCDB and the target database, named GEMINI. A unix like environment is assumed, but it can be implemented on windows as well, just beware of the particular Oracle implementation on a windows platform (orapwd file name, service creation, path format)
    1. Create a password file for the Cloned (GEMINI) instance:
    orapwd file=/u01/app/oracle/product/9.2.0.1.0/dbs/orapwGEMINI password=password entries=10
    2. Configure tnsnames.ora and listner.ora
    Properly identify the database at the tnsnames.ora and have the instance manually registered against the listener.ora files, both files located at the $ORACLE_HOME/network/admin directory.
    2.a Manually register the database against the listener (listener.ora)
    (SID_DESC =
    (ORACLE_HOME = /u01/app/oracle/product/9.2.0.1.0)
    (SID_NAME = GEMINI)
    2.b Added the target GEMINI to the tnsnames.ora
    GEMINI =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mydomain.com)(PORT = 1521))
    (CONNECT_DATA =
    (ORACLE_SID = GEMINI)
    2.c Reload the listener
    lsnrctl reload
    3. Create a new init.ora for the cloned database.
    Next create an init.ora file for the cloned database. In case the same paths cannot be used on the target host, either because it is the same source host or because those paths are not reproducible on the target, then DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT may be required to be defined
    DB_NAME=GEMINI
    CONTROL_FILES=(/u02/oradata/GEMINI/control01.ctl,
    /u02/oradata/GEMINI/control02.ctl,
    /u02/oradata/GEMINI/control03.ctl)
    # Convert file names to allow for different directory structure.
    DB_FILE_NAME_CONVERT=(/u02/oradata/SRCDB/,/u02/oradata/GEMINI/)
    LOG_FILE_NAME_CONVERT=(/u01/oradata/SRCDB/,/u01/oradata/GEMINI/)
    # block_size and compatible parameters must match those of the source database
    DB_BLOCK_SIZE=8192
    COMPATIBLE=9.2.0.0.0
    4. Connect to the cloned instance
    ORACLE_SID=GEMINI; export ORACLE_SID
    sqlplus /nolog
    conn / as sysdba
    5. Create an SPFILE based on the init.ora
    CREATE SPFILE FROM PFILE='/u01/app/oracle/admin/GEMINI/pfile/init.ora';
    6. Start the database in NOMOUNT mode:
    STARTUP FORCE NOMOUNT;
    7. Connect to the TARGET, CATALOG and AUXILIARY databases.
    By means of the rman three connections are open, one for the Source Database (SOURCEDB), another for the Catalog database (RCAT), and one more for the cloned database (GEMINI)
    ORACLE_SID=GEMINI; export ORACLE_SID
    rman TARGET sys/password@SRCDB CATALOG rman/rman@RCAT AUXILIARY /
    8. Complete or Incomplete clone (recover)
    From the rman the database using one of the following commands:
    8.a Clone the database by means of a complete recover.
    DUPLICATE TARGET DATABASE TO GEMINI;
    8.b Clone the database up to a defined point in time in the past by means of an incomplete recover
    DUPLICATE TARGET DATABASE TO GEMINI UNTIL TIME 'SYSDATE-2';
    9. Process finished.
    Once the process is finished, the newly created GEMINI database is ready to be used as an independent new cloned database.
    Ref. RMAN Clone a Database
    ~ Madrid

  • Creating a new controlfile with datafiles in RMAN backup

    Hi,
    i am using oracle 10g (10.2.0.1) in RHEL5 server. i am trying to restore a RMAN backup from one server to another new server with new db name. i have taken out the spfile from RMAN autobackup and created pfile from it and edited the pfile with new dbname and directory structure and started the db in nomount with the new pfile. Now i have restored the controfile from the RMAN autobackup tried to put the database in mount state. But it failed due to the below error
    RMAN-03002: failure of alter db command at 11/05/2012 21:44:56
    ORA-01103: database name 'ORADB' in control file is not 'DEVDB'
    Hence i shutdown the database and started the db in nomount with new pfile and tried to create the controlfile with the new db name,but it failed as it is looking for the datafiles.
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file
    '/u01/app/oracle/oradata/DEVDB/datafile/o1_mf_system_80jq0kfw_.dbf'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    All my datafiles reside in my RMAN backup. How to get the datafiles from RMAN backup in the above scenario??
    Regards,
    007

    Hello;
    The location and filename and DBIS will be different, but you need something like this :
    $ORACLE_HOME/bin/rman  << EOF
    CONNECT TARGET /
    STARTUP NOMOUNT;
    SET DBID 3754763357;  #DBID of PROD database
    RUN
       ALLOCATE CHANNEL c1 DEVICE TYPE disk format '/u01/oradata/backups';
       RESTORE CONTROLFILE FROM '/u01/oradata/backups/sb_t790762003_s85_p1';
       ALTER DATABASE MOUNT;
       SET NEWNAME FOR DATAFILE 1 TO '/u01/app/oracle/oradata/CLONE/system01.dbf';
        SET NEWNAME FOR TEMPFILE 1 TO '/u01/app/oracle/oradata/CLONE/temp01.dbf';
       RESTORE DATABASE;
       SWITCH DATAFILE ALL;
       RECOVER DATABASE;
       release channel c1;
    ALTER DATABASE OPEN RESETLOGS; So you need "SET NEWNAME" for all your files
    Full Example
    http://www.visi.com/~mseberg/rman/restore_database_without_catalog.html
    Best Regards
    mseberg

Maybe you are looking for