RMAN Backup specially for tablespaces

Hi@everybody,
we have a Oracle 11gR2 (11.2.0.3.0) Server, based on RedHat 6, running in our company. For the Backups i'm using RMAN with a script. In that script this code specially creates the backup:
        run {
            allocate channel oem_backup_disk1 type disk;
            backup incremental level ${level} cumulative as COMPRESSED BACKUPSET tag '${tag}' database;
            backup as COMPRESSED BACKUPSET tag '${tag}' archivelog all not backed up;
            release channel oem_backup_disk1;
${level} is for 0 or 1, full backup or incremental backup. ${tag} is the name for the backup. This script is for the hole database. But now i want to change that script to tablespace level. We have some "test" tablespaces, where a backup is not needed. I just found that one:
backup tablespace TEST tag='BACKUP_TEST';
But now i'm not shure how i can implement that into my script.
Can you guys help me?
Thanks and best regards,
David

I've just to ask again to understand it right:
In RMAN - Console i just exclude the tablespaces that should not be backed up with:
CONFIGURE EXCLUDE FOR TABLESPACE Tbs1, tbs2, tbs5;
And then RMAN knows, when he is doing a backup of the database, he will exclude that tablespaces that i've told him? Thats awesome! And easier to handle!
EDIT: I've tested this on my Oracle Test server and it works! Thanks a lot for the answers!

Similar Messages

  • Best pratices for RMAN backup management for many databases

    Dear all,
    We have many 10g databases (>40) hosted on multiple Windows servers which are backup up using RMAN.
    A year ago, all backup's were implemented through Windows Scheduled Tasks using some batch files.
    We have been busy (re)implementing / migrating such backup in Grid Control.
    I personally prefer to maintain the backup management in Grid Control, but a colleague wants now to go back to the batch files.
    What i am looking for here, are advices in the management of RMAN backup for multiple databases: do you guys use Grid Control or any third-party backup management tool or even got your home-made solution?
    One of the discussion topic is the work involved in case that the central backup location changes.
    Well... any real-life advices on best practices / strategies for RMAN backup management for many databases will be appreciated!
    Thanks,
    Thierry

    Hi Thierry,
    Thierry H. wrote:
    Thanks for your reaction.
    So, i understand that Grid Control is for you not used to manage the backups, and as a consequence, you also have no 'direct' overview of the job schedules.
    One of my concern is also to avoid that too many backups are started at the same time to avoid network / storage overload. Such overview is availble in Grid Control's Jobs screen.
    And, based on your strategy, do you recreate a 'one-time' Oracle scheduled job for every backup, or do your scripts create an Oracle job with multiple schedule?
    You're very welcome!
    Well, Grid Control is not an option for us, since each customer is in a separate infrastructure, and with their own licensing. I have no real way (in difference to your situation) to have a centralized point of control, but that on the other hand mean that I don't have to consider network/storage congestion, like you have to.
    The script is run from a "permanent" job within the dba-scheduler, created like this:
    dbms_scheduler.create_job(
            job_name        => 'BACKUP',
            job_type        => 'EXECUTABLE',
            job_action      => '/home/oracle/scripts/rman_backup.sh',
            start_date      => trunc(sysdate)+1+7/48,
            repeat_interval => 'trunc(sysdate)+1+7/48',
            enabled         => true,
            auto_drop       => false,
            comments        => 'execute backup script at 03:30');and then the "master-script", determines which level to use, based on weekday from the OS. The actual job schedule (start date, run interval etc) is set together with the customer IT/IS dept, to avoid congestion on the backup resources.
    I have no overview of the backup status, run times etc, but have made monitoring scripts that will alert me if/when a backup either fails, or runs for too long. This, in addition with scheduled disaster/recovery tests makes me sleep rather well at night.. ;-)
    I realize that there (might be) better ways of doing backup scheduling in your environment, since my requirements are so completely different than yours, but I guess that we all face the same challenges in unifying the environments as much as possible, to minimize the amount of actual work we have to do. :-)
    Good luck!
    //Johan

  • Rman backup size for Dr db is very much higher than that of primary db

    Hi All,
    My production database on Oracle 10.2.0.4 had a physical size of 897 Gb and logical size of around 800 Gb.
    Old tables were truncated from the database and its logical size got reduced to 230 Gb.
    Backup size is now 55Gb which used to be of 130 Gb before truncation.
    Now this database has a DR configured. Backup of this DR database is daily taken which is used to refresh test environments.
    But the backup size for DR database has not decreased. The restoration time while refreshing test environments is also same as before.
    We had predicted that the backup size for DR database will also decrease and hence reducing the restoration time.
    We take compressed RMAN backup.
    What is the concept behind this?

    When you duplicate a database it will restore all the datafiles from the RMAN backup. You will find the physical space of your source database. Remove the fragmented space using object movement. Then shrink the tablespaces and take fresh RMAN backup and restore.
    Regards
    Asif Kabir

  • Rman restore command for tablespace...

    Hi All,
    I required your help to restore RMAN backup. I have not used RMAN any time before so no idea how to restore it.
    Below is the syntax of backup which I get it from one of our DBA at remote side:
    ====================================================================================================
    BACKUP AS COMPRESSED BACKUPSET incremental level = 0 tablespace SYSTEM,SYSAUX,UNDOTBS2,SYS_AUDIT_1_D1,TOOLS,JISP_BIL1,JISP_BILL1_INDX plus archivelog
    ====================================================================================================
    on the target database where I want to restore this database is running in no archive mode.
    Can anyone guide me how to start /steps to restore tablespace backup into my environment.
    thanks in advance.

    user12115 wrote:
    I want to restore my data from the given backup only.
    pls let me know how to do that.rman does not restore data, it restores database files. Of course the files contain data, but it is an important distinction. You cannot simply restore a tablespace (files that constitute a TS) from one database into another (unless you are dealing with transportable TS).

  • RAC RMAN BACKUP Recovery FOR  Oracle APPS Application

    Hi,
    We have an Application which is similar to Oracle APPs application and We have a RAC Database at Backend.
    As I am a Oracle RAC DBA and never worked as an Oracle apps DBA.
    Each Week or month We have to deploy a patch on Our Database which are kind of sql changes to Database and before we applying we need to backup our Database.
    I am very comfortable while applying patches on Single instance Database:-
    I Usually shutdown my database and backing up My Database(Conistent\cold Backup) before applying patch.
    and I have a Flash back on both option I am having for my Database.
    Problem:-
    But in Production I have RAC Database, on which I already configured Hot Backup.
    FlashBackup Feature is there with me, but Not reliable.
    I want cold backup along with my existing hot backup, and want to restore same if something goes wrong.
    Since ASM is configured so we have only option RMAN backup.
    IF possible kindly Share your knowledge and Experience of your to handle Such Problem.

    Sir,
    RMAN is already configured for backing up database online.
    My only intention is to have cold or consistent backup before applying application patch, So that at the time of crisis I will resotre my Cold/Conistent backup.
    Because I am using 11gr2 RAC with ASM, so only option is there for me to use rman as backup tool.
    But I never tried to Have Cold backup in RAC environment in my previous jobs, and I am new to this Oracle APPS DBA technology. So Here I am looking for a Strategy that Normally oracle apps dba use while applying patch to Oracle Database and kind of backup strategy they use.
    Regards
    Gaurav

  • RMAN Backup script for RAC Database..please suggest

    Hi All,
    I am currently working on backup policy for RAC Database for my client.The client requirement is to backup while database is shutdown(mount state).I have made below script and could any one please suggest what further things should I need to add with below rman script.
    echo "Shutdown Database";date
    srvctl stop database -d PROD
    srvctl status database -d PROD
    echo "Database shutdown on";date
    echo "Mount Database ";date
    srvctl start instance -d PROD -i "PROD1" -o mount
    srvctl status database -d PROD
    echo "Start Full Database Backup on";date
    $ORACLE_HOME/bin/rman target / nocatalog <<EOF
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/BACKUP/PRODBKP/%F';
    run{
    allocate channel c1 device type disk connect 'sys/******@node1-vip:1521/PROD';
    allocate channel c2 device type disk connect 'sys/*****@node2-vip:1521/PROD';
    backup format '/BACKUP/PRODBKP/PROD_df_%t_%s_%p.bak'(database);
    backup format '/BACKUP/PRODBKP/archive_%t_%s_%p.bak' archivelog all;
    copy current controlfile to '/BACKUP/PRODBKP/PROD.ctl';
    delete noprompt obsolete;
    release channel c1;
    release channel c2;
    exit
    EOF
    echo "RMAN Backup Finished on";date
    echo "Shutdown Database";date
    srvctl stop database -d PROD
    echo "Start Database";date
    srvctl start database -d PROD
    srvctl status database -d PROD
    Please share your experiences.
    Regards

    Hi,
    Some tweaks for your script.
    echo "Shutdown Database";date
    srvctl stop database -d PROD
    srvctl status database -d PROD
    echo "Database shutdown on";date
    echo "Mount Database ";date
    srvctl start instance -d PROD -i "PROD1" -o mount1. If you database does not shutdown properly , does your script stops the execution of next step?
    2. configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/BACKUP/PRODBKP/%F';(Why you need to configure this every time) ?
    It's persistent at db level one time setting (until some other script changes the settings by other dba - else remove that - set the configuration at db level once for all)
    - Pavan Kumar N
    3.

  • RMAN backups valid for clone database.

    Hi,
    If we clone the database using rman that clone database will be having different database id, incurnation number and new resetlogfiles.
    so here we can't use source database backup files. if we want to use that source database backup files to clone database what is the procedure to clone the database.
    please let me know.
    thank you very much...!

    899329 wrote:
    Hi,
    If we clone the database using rman that clone database will be having different database id, incurnation number and new resetlogfiles.
    so here we can't use source database backup files. if we want to use that source database backup files to clone database what is the procedure to clone the database.
    please let me know.
    thank you very much...!You can clone/refresh database as
    1) RMAN duplicate
    2) RMAN restore from backups(restore control + database)
    using source backup files:-
    3) Hot backup clone ( begin backup, copy files, end backup, create controlfile using trace)
    4) cold clone (shutdown database, copy datafiles, create controlfile)
    5) whole database export & import

  • RMAN level 0 backup with bigfile tablespaces

    We noticed that our rman backup process for PROD database is not working properly.
      PROD is a 8 TB size database having two bigfile tablespaces each having more than 2 TB datafile.
      PROD is a 11gR1 (11.1.0.7) RAC database with ASM storage.
       We are taking weekly incremental level 0 backup for entire database and level 1 backup every day.
      As per v$session_longops, the approx completion time for the two tablespaces is 5 days.
    We can use "SECTION SIZE" parameter to take rman backup for bigfile tablespaces and exclude them from the level 0 backup.
    However, in this case our level 0 backup wont include the two bigfile tablespaces and the daily level 1 backup will not include them.
    Will you pls advise us on how to take backup in this scenario.
    we have only 4TB of LUN allocated for backup and have to keep 7 days of backup on disk.
    Thanks in advance !
    DR

    We can use "SECTION SIZE" parameter to take rman backup for bigfile tablespaces and exclude them from the level 0 backup.
    How do you think that the backup will be useful if you exclude some files from level 0 or base backup? You will find difficulties or you can't restore the database in case of disaster.
    Yes you can use section size parameter for paralleled big file tablespace backup.
    Check below for explanation and example.
    Backing Up the Database: Advanced Topics
    http://www.oracle-base.com/articles/11g/rman-enhancements-11gr1.php#multisection_backups
    You can use the below note for your case which will be of help.
    Reducing RMAN backup time for unevenly sized tablespaces &amp;laquo; Oracle DBA &amp;#8211; A lifelong learning experie…
    Thank you!!

  • RMAN script for hot backup (looking for code critic) code attached.

    Hello Guru's,
    I have been having soem trouble running a successful hot full rman backup nightly.
    We max our CPU load whenever our RMAN takes too long and conflicts with a Legato tape backup. I have a development server that I attempted to get a consistent backup time duration that is rock solid as to not conflict with the Legato backup time.
    I just found out about duration with RMAN scripts here is my code:
    #!/bin/bash
    #rman backup script for daily hot whole database backup
    at -f /hd1/rman_scripts/rman_backup 0600 tomorrow
    rman target/
    run {
    allocate channel d1 device type disk format '/path/%U';
    backup duration 1:00 partial minimize load database filesperset 1;
    backup as BACKUPSET tag '%TAG' database;
    backup as BACKUPSET tag '%TAG' archivelog all delete all input;
    delete noprompt obsolete;
    release channel d1;
    exit
    It completes the backup, but does not use the 1 hour allocated- it only uses 15 minutes on average and creates many files instead of normally three backup files.
    Here is the results from querying the v$rman_status table for operation,status,start_time:
    RMAN,FAILED, 17-OCT-06 0600
    BACKUP,FAILED,17-OCT-06 0600
    RMAN,FAILED,17-OCT-06 0606
    BACKUP,COMPLETED,17-OCT-06 0606
    BACKUP,COMPLETED,17-OCT-06 0606
    BACKUP,FAILED,17-OCT-06 0615
    RMAN,COMPLETED,17-OCT-06 1513
    REPORT,COMPLETED,17-OCT-06 1513
    DELETE,COMPLETED,17-OCT-06 1513
    However, the timestamps of the backupset files it creates is:
    06:15 and not 1513?????????????
    RMAN appears to have only taken 15 minutes to create the files, why do I have a completed timestamp from v$rman_status of 1513???
    Please advise and comment, I am just learning RMAN.

    Try to remove the DURATION option in your script.
    Here more details about that part.
    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#i1010261
    Bye, Aron

  • RMAN backup with NOARCHIVELOG mode

    Hi,
    Is it possible to EXCULDE TABLESPACE with rman using NOARCHIVELOG database ?
    Thanks

    Use following persistent setting:
    RMAN> CONFIGURE EXCLUDE for tablespace <Tablespace Name>;
    N.B. You will not be able to do this for system tablespace.
    Regards,
    S.K.

  • RMAN backup in ORACLE RAC database

    Hi there,
    We are using RMAN backup strategy for taking backups from one node(eg.node1).Database is RAC database, version 9.2.3. and OS is Solaris 5.10.
    this is the configuration which we use, as follows:
    Connecting to Prod.Database using catalog database.
    rman catalog=rman/rman@CATDB target=sys/oracle@PRODDB(node 2).
    RMAN> show all;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 30;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rmanback/_%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 5;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/rmanback/CMWPROD_%s.bak';
    CONFIGURE CHANNEL 2 DEVICE TYPE DISK CONNECT 'SYS/oracle@PRODDB(node2)';
    CONFIGURE MAXSETSIZE TO 7 G;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/9.2.3/dbs/snapcf_CMWPROD1.f';
    As the above config shows RMAN is connecting to PROD DB (node 2). But we need to take backups (datafiles and as well as archive logs) from two nodes (i.e from node 1 and as well as node 2).
    Is there any possibility for taking backups from two nodes?
    Thanks,
    Balu.

    Duplicate thread
    RMAN configuration in ORACLE RAC database
    Khurram                                                                                                                                                                                                                               

  • Backup solution for E- Business Suite

    Hi all,
    We have Oracle application and database deployed to a single server, whilst running a server on Oracle Entreprise Linx on 64 bit and running oracle R12.
    Therefore basically I see 03 root folders in my server in my Oracle folder namely,
    [oracle@test lab01]$ ll
    total 12
    drwxr-xr-x 4 oracle dba 4096 Jun 24 15:07 apps
    drwxr-xr-x 4 oracle dba 4096 Jun 24 15:07 db
    drwxr-xr-x 3 oracle dba 4096 Jun 24 15:06 instSo far as my backup solution I am planning to have:
    - RMAN backup solution for the database which is represented by the DB folder
    - OS tar command"  to copy the Oracle application which is represented by the apps* folder --> correct me if I am wrong, I am not sure...
    - I am not sure what is the function of the INST folder and what is the best way of backing it up.
    Thanks and Regards,

    Hi,
    - RMAN backup solution for the database which is represented by the DB folder Correct.
    - OS tar command"  to copy the Oracle application which is represented by the apps* folder --> correct me if I am wrong, I am not sure...Correct.
    - I am not sure what is the function of the INST folder and what is the best way of backing it up.Please refer to the "Oracle Applications Concepts" manual for details about the INST folder.
    You need to use the OS command to backup this top, just the same way you back up the application tier node files.
    Oracle Applications Concepts
    http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121oacg.pdf
    Thanks,
    Hussein

  • RMAN backup destination

    Hi
    Is there any way to mention the RMAN backup destination for datafiles and archivelog files with their exact name?
    e.g
    backup as backupset
    format 'c:\backup\'
    filesperset 1
    database plus archivelog all;
    Backup will be stored in c:\backup with the actual name of the files.
    Destination has to be other than the FRA.
    Regards

    Does this mean if I use non FRA then 'delete force
    noprompt obsolete;' will not delete the obsole
    backups from non FRA destinations?
    -- but I have checked it is deleting even from the
    non FRA location also.
    no i didnt mean to say that i mean to say if you dont use FRA for backup strategy then you are also not using OMF (Oracle managed files) cause one of the parameter db_recovery_file_dest_size define location of RMAN backups which enable also the OMF and its advantegous to use OMF cause it reduce wasted disk space consumed by obsolete files by deleting itself when FRA pressure goes to 85%.
    You can mock up this situtaion by enabling FRA which in turn enable OMF and start taking backup iteratively when oracle see the space goes to 85% then OMF will remove the earliest obsolete files,you can check it in yours oracle alert log files where you will find
    Deleted oracle managed files '<filename>'
    I hope yours confusion is cleared now.
    Khurram

  • RMAN backup job showing problems

    We have scheduled RMAN backup jobs for Oracle full backups & incremental level 0 & level 1 backup. Among the recent status for jobs, I have found problems for incremental 0 backup for 2nd Dec ’13 and incremental 1 backup for 6th Dec’13. I would elaborate as below:
    For 2nd Dec ’13:
    The messages showing are-
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 12/02/2013 01:02:41
    ORA-19502: write error on file "/orabackup/rman/snlprod/data_files/7voqfb9a_1_1", block number 763264 (block size=8192)
    ORA-27072: File I/O error
    For 6th Dec’13:
    The messages showing are-
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 12/06/2013 01:12:00
    ORA-19502: write error on file "/orabackup/rman/snlprod/data_files/8moqpt4r_1_1", block number 1135616 (block size=8192)
    ORA-27072: File I/O error
    Request you to please help me with the reason for these error messages.
    I hope, my question is clear.
    Please revert with the reply to my query.
    Regards

    Hi,
    You should look at your systems logs (/var/log/messages on linux, errpt on AIX) to see which error you have exactly at the OS level.
    As Sybrand_b said, it is an error while writing a block on disk, so either a filesystem full or a corrupted block on disk.
    Do you have additional error message like follows?
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 112) There is not enough space on the disk
    Regards,
    Joseph

  • Rman backup for tablespaces

    Dear,
    i want to use rman to backup the tablespaces. I have write a pram file as below.
    owner=database
    file=c:/backup/database.dmp
    log=database.log
    buffer=81920
    How can i run this file from rman
    ManyThanks

    It appears that you have created a parfile for the export utility and NOT for RMAN. The basic command to backup a tablespace in RMAN is:
    RMAN> BACKUP TABLESPACE USERS;If you are looking to actually export a tablespace, you can save the following to a file called user_parfile.txt
    userid=system
    file=d:\user_exp.dmp
    log=d:\user_exp.log
    tablespaces=users
    buffer=81920and execute as:
    exp parfile=d:\user_parfile.txt

Maybe you are looking for

  • Brightness/Contrast edit tool messes up my clips.HELP!

    When I try to apply brightness/contrast to my iMovie 6.0.3 video clips (because so many of them end up much darker on iMovie than on my camcorder), it helps with the brightness, but after the rendering is done, my clip is messed up in 2 ways: 1) the

  • G530 Motherboard/CPU Upgrades?

    Hi all, My girlfriend has a G530 that I just had to pull apart after it took a little bit of a swim. Aside from needing a keyboard nothing was damaged, but I noticed something interesting while I had it apart: Next to the northbridge there are what a

  • Adobe Reader 8.1.2 - Error 1304.Error writing file

    I keep getting an error as follows wvery time i try and download Adobe Reader 8.1.2: Error 1304.Error writing file C:\ProgramData\Adobe\Acrobat\8.0\Replicate\Security\directories.acrodata. Verify that you have access to that directory. I run Vista 64

  • Conditional checkboxes

    I have a list of options available on a spreadsheet that are selectable via a checkbox. Can I set up a conditional rule that if a certain checkbox is checked, then another is automatically checked? Column A has the options, Column B has the price, an

  • BRS material

    Dear All, I need BRS material is required please help me any one of you. Thanks, Regards, pandu