Consistent test 'copy' of RMAN backup outside the ASM (RAC)

Hello!
We create consistent backup RMAN in our CARS (ASM with FRA) environment.
Safeguard measures looks like:
alter system set cluster_database=false scope=spfile sid='HAC4';
srvctl stop database -d HAC
Then we begin the RMAN backup script as (database is closed to the ground before):
run {
startup mount;
allocate channel t1 type disk format '/u01/rman_backup/HAC/cold_backup/HAC_%U';
allocate channel t2 type disk format '/u01/rman_backup/HAC/cold_backup/HAC_%U';
SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u01/rman_backup/HAC/cold_backup/HAC_%F_ctl';
backup as copy database include current controlfile;
}
After backup, we realize:
alter system set cluster_database=true scope=spfile sid='HAC4';
shutdown immediate;
and later
srvctl start database -d HAC
This backup backup files are placed on the area of local disk accessed by noeud4, where HAC4 SID is on.
We transfer the backup files to tape on an hourly basis...

Now, we want to test this backup.
Scenario:
Because we have consistent backup, we think we can restore her (from files on this disc) and him ALONE!
Our problem is that while restoration is the use of the DSO files, so we're not sure is our backup.

So, how to prevent the RMAN restore/recovery process of using any ASM file - just to use our consistent backup data?

Please a few example script for this...

Our config:
Oracle 10gR2.0.4 PS3 (NCPS, ASM database),
Linux Rhel IA64 5.3 on 'raw devices' (no raw disks)

THX
Damir

Hello

What I realized is that you want to test the image copy backup you took earlier and test this to restore the database, as it is.

Now, if I see your script, it shows that you have restored control file and then you tried to recover the database.

But when you make the copy of the image of the database, and you want to restore, then you have to try to restore the database first. I don't see any "restore order" in your script.

RMAN > restore database from tag = "";

Firstly, this will restore the data files.

Then, use

RMAN > restore database;

Then, open the database.

Kind regards
Vermorel

Tags: Database

Similar Questions

  • can we take copy of rman backup image in several places

    Hi all

    We are planing to move the database from the old warehouse to new storage on the same server.

    planing to use RMAN image copy to copy the files db destocking former new storage, then switch database to copy.

    Now dbfiles on/U01, / U02, /u03, /u04, and we are planing to move to the new storage /u05 / u06 /, /u07

    Is it possible that I can copy all the dbfiles in /u05 / u06, / u07

    Backup in the database copy format ' / u05

    As I know that I can move one place. Is there any copy of way in several places using the copy of the image.

    Please suggest.

    Thank you

    You can use DB_FILE_NAME_CONVERT to make the operation easier.

    Take a look at The Concepts of RMAN backup

    Thank you!!

  • RMAN backup with the smallest size of backup

    Oralce 11g 2 on Redhat 5. Disk space is our the tighter resource, and we want an incremental backup with Level0 Sunday and level 1 every day of the week and on Saturdays. I'm using the comamnds to do the job
    --Sunday
    backup incremental level 0 tag 'level_0' database plus archivelog;
    --Other days
    backup incremental level 1 database plus archivelog delete all input;
    I don't think that it is the best practice or produce smaller backup files.

    What are you comments and opinions. Thank you

    RMAN backup except for the backup copy will only backup blocks used, which is quite efficient. Backup incremental level 1 are set by default and the smallest of the incremental backup.

    However, you can enable compression reduce the size of the backupset (Oracle 10 g and more). You can also enable the block track the changes in the database only once, so that backup incremental level 1 do not need to analyze the data files for the changes - this allows saving a lot of time and IO.

    SQL > ALTER DATABASE ENABLE BLOCK CHANGE TRACKING;

    RMAN > run {sql 'alter system switch logfile' ;}}
    RMAN > BACKUP AS BACKUPSET INCREMENTAL LEVEL 0 COMPRESSED DATABASE MORE ARCHIVELOG DELETE ALL ENTRIES;
    RMAN > ACE COMPRESSED BACKUPSET INCREMENTAL LEVEL 1 DATA BACKUP MORE ARCHIVELOG;

    I would prefer not to delete the archivelogs after each incremental backup of level 1 in order to make a point in time recovery without the need to restore the archivelogs.

    And don't forget to:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;

    I hope this helps.

  • RMAN backup in the dated dated system folder

    Hi all
    I need to store the rman backup in linux like system date of the file.
    I created the folder
    *#mkdir /bkp/ $(date +%Y%m%d) *.
    and I've tried this,
    RMAN > backup database format ='/ bkp/$(date +%Y%m%d)/db_%d';)
    does not, how to solve this problem.

    Thanks in advance
    Sila

    "mkdir/bkp /'date + %m %d %Y"

    for rman
    create the variable date_rman lik

    "date_rman ='date + %m %d %Y"
    RMAN > backup database format='/bkp/$date_rman/db_%d ";

  • Only RMAN backup, restore the temporary files?

    DB version: 11.2
    Operating system platform: Solaris 10

    Can RMAN backup and restore temp files?
    I'm to recreate a database in a new server, when restoring, it's recommended to restore a temporary RMAN backup file? (if Rman can indeed save and restore temporary files). Or is it better to manually create temporary files in the new server?

    N ° RMAN does not backup TEMPFILEs. (so it does not restore them).
    You can not even explicitly issue a command to BACKUP for TEMPFILEs.

    The TEMPORARY file is re-created automatically when you OPEN the database - it is created at the location specified in the controlfile.

    Hemant K Collette

  • RMAN backup to the remote disk in Windows

    Hello

    I'm under Oracle 9.2.0.1 with Windows Server 2003 in Server A and Server B. My first DB is stored in the server a in the meantime my catalog RMAN is to Server B. I'm under RMAN to do the backup of the DB in Server A, which is short of space. So, I decided to put my backupsets to Server B since I got here a few hundred Gs. Overall, I will push the catalog RMAN backup script to Server B and store the backupsets to Server B.
    My problem is when I run the script, what either him or from a server or Server B, I get the following error. Tied together correspond to the configuration of RMAN settings.

    Error:

    ***********************************************************************************
    RMAN > backup database;

    From backup 20 August 09
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 13 devtype = DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid = 9 = DISC devtype
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: sid = 14 devtype = DISK
    channel ORA_DISK_1: from full datafile backupset
    channel ORA_DISK_1: specifying datafile (s) in backupset
    input datafile fno = 00012 name = F:\ORADATA\DRDB\DATA\DATA01. DBF
    channel ORA_DISK_1: starting piece 1 at 20 August 09
    channel ORA_DISK_2: from full datafile backupset
    channel ORA_DISK_2: specifying datafile (s) in backupset
    input datafile fno = name 00002 = F:\ORADATA\DRDB\DATA\DATA07. DBF
    channel ORA_DISK_2: starting piece 1 at 20 August 09
    channel ORA_DISK_3: from full datafile backupset
    channel ORA_DISK_3: specifying datafile (s) in backupset
    input datafile fno = name 00006 = E:\ORADATA\DRDB\INDEX\INDX01. DBF
    channel ORA_DISK_3: starting piece 1 at 20 August 09
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 2009-08-20 17:06:
    56
    ORA-19504: cannot create the file '\\ServerB\f$\drdb\backupset\BackupDRDB_DB_39k '.
    n665g_105_1 ".
    ORA-27040: skgfrcre: error, unable to create the file
    04002 - OSD: could not open the file
    S/O-error: (OS 5) access denied.

    RMAN > show all.

    RMAN configuration parameters are:
    CONFIGURE REDUNDANCY 10 RETENTION STRATEGY;
    CONFIGURE BACKUP OPTIMIZATION # by default
    SET UP DEFAULT DISK DEVICE TYPE; # by default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FOR DEVICE TYPE DISK FORMAT to ' \\ServerB\f$\d
    rdb\controlfile\Backup%d_CTL_%F';
    SET UP THE DEVICE TYPE DISK PARALLELISM 3;
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT ' \\ServerB\f$\drdb\backupset\Backup
    % d_DB_ % %%p s_ u_ ';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE the SNAPSHOT CONTROLFILE NAME to ' \\ServerB\f$\drdb\controlfile\SNCFDRDB.
    CTL';

    **********************************************************************************

    My login ID exists in the administrator and ORA_DBA group in Server A and Server B. I can manually run the path '\\ServerB\f$\drdb\backupset\' on server A and able to create/modify/delete a file inside this folder. But I don't understand why the error "access denied"? In any case, is it a proper way to do remote disk backup? I am quite new to Oracle and just attended courses RMAN with the OU. I have Google-ed this problem but no one can help me. Please help me or share your knowledge to solve this problem.

    Thank you and best regards,
    Nsiala

    Hi nsiala.

    Under windows, the oracle process runs as a service. By default, this service runs under the Local System account. This account is fairly low privileged when it comes to remote network privileges and therefore cannot see the directory you are trying to write your backups to.

    You can change the user that the service is running as, there are a few notes on metalink for this and I remember well find some info usually using google.

    Concerning
    André

  • How do I delete the database and backup of the ASM

    Hi all

    Oracle 11.2.0.3 database
    OEL 5.7

    We have a host for restore purposes.
    Run us monthly or quarterly operations to verify that I am able to restore a subset data in the given duration or for other purposes of restoration.
    I have an automated script to clone the database, but the database Clone to remove former base ASM before starting this process. I want to delete only the database files and keep the configuration (for example oratab/network/ocr and so on).

    Question: There is an easy way to delete these files without logging on ASM or using DBCA?

    Appreciate any help.

    user12028775 wrote:
    Hi all

    Oracle 11.2.0.3 database
    OEL 5.7

    We have a host for restore purposes.
    Run us monthly or quarterly operations to verify that I am able to restore a subset data in the given duration or for other purposes of restoration.
    I have an automated script to clone the database, but the database Clone to remove former base ASM before starting this process. I want to delete only the database files and keep the configuration (for example oratab/network/ocr and so on).

    Question: There is an easy way to delete these files without logging on ASM or using DBCA?

    Yes, there is a simple way. Use the DROP DATABASE command.

    Use the DROP DATABASE command to remove the database target and, if RMAN is connected to a recovery catalog, unregister it. RMAN removes all the data files, online redo logs and control belonging to the target database files. By default, RMAN prompts.

    Put this command in your script before clone your database:

    RMAN> CONNECT TARGET SYS@test1
    
    RMAN> STARTUP FORCE MOUNT
    RMAN> SQL 'ALTER SYSTEM ENABLE RESTRICTED SESSION';
    RMAN> DROP DATABASE INCLUDING BACKUPS NOPROMPT;
    

    Kind regards
    Levi Pereira

  • backup of the asm instance

    Hello

    It is necssary to backup ASM instance? If Yes, then how to backup asm instance.if not, then what will happen

    If my server goes down, then hw can retrieve my asm instance.

    Concerning

    Dear user13367819,

    Please visit the following links. I hope that they will guide you;

    Data Instance ASM, rman backup files
    http://dbaspot.com/forums/Oracle-Server/64961-how-backup-ASM.html
    http://www.appsinsight.NET/2008/05/02/how-to-backup-Oracle-ASM-instance-using-RMAN-on-IBM-platform/

    Kind regards.

    Ogan

  • The copy of RMAN backup format

    Hello

    use the following rman block to take incremental backup to recover.

    run{
    allocate channel c1 type disk format 'd:\copy\%f';
    BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG 'full_backup' DATABASE ;
    }
    

    It creates the backup under D. COPY directory, but the name of the backup copy is the data file file number. How can I take backup that has the same name as a data file that is users01.dbf real?

    Thank you

    SAQ

    Hello

    Thanks, but unfortunately it can not work. By specifying a file name unique 'users01.dbf' for the full database backup will ask other files copy to replace users01.dbf and command would fail. I got the solultion that is as follows.

    BACKUP AS COPY INCREMENTAL LEVEL 0 FORMAT 'd:\copy\SYSTEM01.DBF' TAG='DF_COPY' datafile 1;
    BACKUP AS COPY INCREMENTAL LEVEL 0 FORMAT 'd:\copy\SYSAUX01.DBF' TAG='DF_COPY' datafile 2;
    BACKUP AS COPY INCREMENTAL LEVEL 0 FORMAT 'd:\copy\UNDOTBS01.DBF' TAG='DF_COPY' datafile 3;
    BACKUP AS COPY INCREMENTAL LEVEL 0 FORMAT 'd:\copy\USERS01.DBF' TAG='DF_COPY' datafile 4;
    BACKUP AS COPY INCREMENTAL LEVEL 0 FORMAT 'd:\copy\FLOW_1046227278781593.DBF' TAG='DF_COPY' datafile 5;
    

    SAQ

  • Error of RMAN backup in the R & D of the server

    friends,

    OS: RHEL 4.8
    DB: 10 gr 2

    I am doing some R & D in my test 10g Pb...
    I deleted the last log file archive... then I tried to make backup rman and archivelog all;
    but I get an error... then I copy the file deleted in the same place... then the backup works fine...
    Assume that if this situation comes to the production db, what should I do... am I have to wait for the next generation of newspaper archive or I need to change the system log file switch;

    Thank you

    Whenever an archivelog that place gets deleted, RMAN wouldn't suite to take backup.

    You can follow the steps that asifkabirdba gave.
    If you still experience the problem, you can uncatalog this archive special and start the backup. But it is recommended to perform a full backup

    RMAN > changing archivelog any overlap;

    In the worst cases, then:
    RMAN > changing archivelog sequence uncatalog;

  • RMAN backup on the database with data file with corrupted block

    Hi friends,

    I have a problem with a database of oracle 11g XE on windows server 2003, the database is in production, it is open, is operating normally.

    The database has no backup configured before, so I put the database archiving mode and tried to backup using rman utility, but it show me some errors.

    First of all, it showed me:

    ORA-19501: error in reading file... SYSAUX. DBF

    ORA-27070: async read/write failed

    OSD-04016: error queuing an asynchronous i/o request.

    And when I passed the dbv on the SYSAUX file utility. DBF showed the fatal error.

    So, I switched CHKDSK utility on windows to repair the disc of the error. After that, run utility dbv and he passed and showed me the corrupt on SYSAUX blocks. DBF

    Then, came to rman and ran:

    RMAN > validate the logical database checking;

    State of the file marked corrupt blocks examined empty blocks high YVERT

    ---- ------ -------------- ------------ --------------- ----------

    3 0 1111 115840 78859075 FAILED

    File name: C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX. DBF

    Type block for lack of treated blocks blocks

    ---------- -------------- ----------------

    Data 0 0

    Index 0 0

    Other 38 114729

    After that: watching the content of v$ database_block_corruption;

    Show me a lot of lines like this:

    SQL > select * from v$ database_block_corruption;

    FOLDER # BLOCK # BLOCKS CORRUPTION_CHANGE # CORRUPTIO

    ---------- ---------- ---------- ------------------ ---------

    3 4440 1 FRACTURED 0

    3 4439 1 0 ZERO ALL THE

    3 4386 2 FRACTURED 0

    3 4384 1 0 ZERO ALL THE

    3 4334 1 0 ZERO ALL THE

    ...

    33 selected lines.

    Finally I try to rerun rman and he shows me the error:

    ORA-19566: exceeded the limit of 0 blocks corrupt file C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX. DBF

    How can I do backup with rman? Maybe I can by pass the corrupt block?

    I'll be grateful for any help you can provide.


    =)

    It would be better if you try to find the reason of corruption and try to recover the corrupt blocks. A block corrupted in the backup would really not must use. But if you're ready to take backup, you can ask RMAN to ignore corrupt blocks and move forward.

    Use the pseudo-code for the backup

    Run {set maxcorrupte for the database to 10;

    backup tablespace sysaux ;}

    HTH

    Aman...

  • We can schedule with rman backup in the windows platform?

    My question is about the backup settings of my

    the idea is to all on the windows platform

    a weekly full backup (compressed backupset level 0)
    daily incremental backup of (cumulative) (even, level 1)
    an incremental backup every hour (bonus) (level 1)



    could you please tell me if the following examples will be adapted to my needs
    Thanks to you all

    I think you would need to do a .cmd file plan and then using the Windows Task Scheduler. I suggest you do a cmd simple backup file, try to plan and see how it goes.

    HTH
    Aman...

  • Copy the RAC ASM RMAN backups

    Hi, I have a database (RHEL 5.8) RAC 2 nodes with shared ASM storage. RMAN makes daily backups on this ASM storage too. How could copy backups of the ASM to another place? I use version 10 gr 2 db, and there is no 'cp' command in asmcmd.

    How could copy backups of the ASM to another place? I use version 10 gr 2 db, and there is no 'cp' command in asmcmd.

    You can use RMAN to do it.

    Use the command

    RMAN>  backup backupset from ... format '' ;
    

    Example here:
    Re: Move ASM backups to disks

    Using the tag:
    Re: RMAN to the ASM and network file system

    Published by: Levi Pereira on April 4, 2013 11:39

  • How to create a database in the server-2 based on the game of RMAN backup in server-1

    Hi all

    I need help related to RMAN backup in the following scenario, my server-1 details are given below.

    * Operating system-Windows server 2012 R2 Standard Edition

    * Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for 64-bit Windows: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production,

    I have configured RMAN and level 0 and backup of level 1 with on the external HARD drive.

    all the RMAN backup is located in this drive external HARD only, same archivelog.

    My question is,

    How to create a database to Server-2 based on the RMAN backup I took in server-1.

    It's to help me create a server test and even if the server-1 crash, then I can create a database in the new server-2 with backup I took on the external HARD drive.

    Is it possible to achieve the same or not. Kindly suggest me or share a good Internet link or document and share your knowledge to achieve my need of stimulus.  This will really help me

    It does not matter whether you use ASM. The link above should guide you on how to change the file names of data before restoring if the location of the data file on server 2 will be different from server 1.

    Since you asked for 11g binding, it is here

    http://shivanandarao-Oracle.com/2012/04/28/duplicating-database-without-connecting-to-target-database-or-catalog-database-in-Oracle-11g/

    Kind regards

    Shivananda

  • How to restore the Rman incremental level 0 backup if the SID is different?

    Hi Experts,
    I had a little problem with restore rman backup of level 0. I have backup rman for oracle 11.2.0.1.0 - 64 bit and restore the server to Test 11.2.0.1.0 - 64 bit.

    Problem:
    Sid = prd production server
    Sid = prderp test server

    Operating system is Oracle linux 5 on both servers.

    How to restore Rman if the SID is different?

    Hello

    Refer to this http://shivanandarao.wordpress.com/2012/04/19/duplicating-primary-database-to-a-new-host-without-connecting-to-the-primary-database-in-oracle-10g11g/

    You need to restore it under the same name as you have in the production and later change the dbname using the NEST.

    If you don't want to go with this method, then I suggest you to go with the method of double RMAN.

    http://www.Oracle-base.com/articles/11g/duplicate-database-using-RMAN-11gr2.php
    http://docs.Oracle.com/CD/B28359_01/backup.111/b28270/rcmdupdb.htm

    rman target sys/@prod auxiliary sys/@tst
    RMAN>duplicate target database to 'prderp' nofilenamecheck;
    

    Please close this Re: how to restore the Rman backup if the SID is different? wire by marking as replied.

Maybe you are looking for

  • Win 7 updated kill intenet connection

    Win 7 Ultimate sp1 2nd time this has happened on a computer and not the other 2 comps comcast wired works, the two comps plugged into the router/modem on the computer without the link, it says disconnected butitis plugged in - tried disconnect reconn

  • Can you help me to insert a JAVA script into an Adobe PDF form I created.

    I have never programmed in Java and need a Java script to insert in a calculation field in an Adobe PDF form that I created using Adobe Acrobat Pro DC.  This form will be the one that can be filled on the PC or printed and filled out manually.  The c

  • How can I register 'Page Separation'

    Hi allI need to separate the pages in a document in a book and add bleed along all items that align the spine at export, for some reason any I'm unable to do what the "X" axis is not available, I'm doing something wrong here or missing something?Can

  • 100% use of the disk in the Task Manager when you use Photoshop CC (8.1-64-bit Windows)

    HelloI have been using Adobe CC for a month or two now. I have an Asus laptop with Intel Core i7 (2.4 GHz), 6 GB RAM, 1 TB hard disk space and 64 bit, almost 6 months old. Following apps are installed: Photoshop, Illustrator, InDesign, Audition, Acro

  • How to customize the location of OCR and voting disks.

    HelloToday I installed the first time CARS (gR 11, 2) on HP UX 11-31 with ASM. Customer wishes to place OCR and voting disks in a specific disk group.  Today during the installation, I couldn't find an option to indicate the location of the OCR and v