Thursday 11 August 2011

Rac Database Backup Configuration - 11gr2

Configuring backup purely depends on the nodes where backup appliance has been configured. Here are som of the common methods followed in most of the organisations.

1. Single or muliple backup/storage media configured in first ( one ) node only.So want to run the backup from the first node only.

    This is the most common approach.Depends on the no of tape device configured,no of channels can be allocated to parallelise the rman backup. ( IT is a myth that more channels will always improve the performance of rman backup)

The below example script will help us to schedule a backup with two channels

run {
    allocate channel t1 type 'sbt_tape'
     format 'df.%d.%f.dbf_t%t_s%s_p%p.rmn'
     maxpiecesize 5G
     parms 'ENV=(NSR_SERVER=tape_srv)';
   allocate channel t2 type 'sbt_tape'
     format 'df.%d.%f.dbf_t%t_s%s_p%p.rmn'
     maxpiecesize 5G
     parms 'ENV=(NSR_SERVER=tape_srv)';
  backup
     incremental level 0
     filesperset 10
     tag 'INC1_DATABASE'
     database;
 }

2. Backup/Storage media configured in all nodes and want to run the backup from all instances

2.1 Dedicate the channel to a particular instance irrespective of the load on the instance

CONFIGURE DEFAULT DEVICE TYPE TO SBT;
CONFIGURE DEVICE TYPE SBT Parallelism 3;
configure channel 1 device type sbt connect='rman_id/rman_pwd@racdb1';
configure channel 2 device type sbt connect='rman_id/rman_pwd@racdb2';
configure channel 3 device type sbt connect='rman_id/rman_pwd@racdb3';
run{
backup
     incremental level 0
     tag 'INC1_DATABASE'
     database;
 }


2.2  To run the backup based on the load,
create a service with the preferred instances and connect the backup session through the service name. Oracle will automatically direct the channels to the instances where the loads are less

CONFIGURE DEFAULT DEVICE TYPE TO SBT;
CONFIGURE DEVICE TYPE SBT Parallelism 3;
configure channel 1 device type sbt connect='rman_id/rman_pwd@Service1';

2.3 Non-determinstic connection - 11g new feature.
    With this oracle automatically decides the instance where the channel need to be run.    Just mention the parallelism will be sufficient to avail this feature.

CONFIGURE DEFAULT DEVICE TYPE TO SBT;
CONFIGURE DEVICE TYPE SBT Parallelism 3;

3.Backup/Storage media configured in Standby database

Some companies want to schedule backup from the standby database to reduce the load in the production environment. Infact standby serve this purpose without any additional effort.

Backup of standby database is similar to production, it is exactly same as production. To take consistent backup we need to cancel the recovery mode and bring the database in mount mode, otherwise the backup will be in inconsistent mode.

for further details please refer Rman backup using standby database

16 comments:

  1. Hi jey,

    my understanding is 2.2 and 2.3 should be same , right?

    If service is used unless this service is made available on one particular node will be balanced to available nodes by scan ip.

    ReplyDelete
  2. Hi Suchin,

    Yes ,alomost 2.2 and 2.3 is same . using 2.2 ,we can restrict the backup to run in certain instances by creating service with selective preferred instances. Whereas 2.3 is spread across all the available instances based on the load information available at scan listeners.

    ReplyDelete
  3. Very nice article. I absolutely love this site.
    Keep writing!

    my web site; create real music dub turbo

    ReplyDelete
  4. Hello! I could have sworn I've been to this site before but after looking at a few of the posts I realized it's new to me.
    Anyhow, I'm definitely delighted I came across it and I'll be bookmarking it
    and checking back regularly!

    Here is my blog: does provestra work yahoo answers

    ReplyDelete
  5. What's up, I wish for to subscribe for this website to obtain most recent updates, so where can i do it please assist.

    Here is my homepage: http://mykaraokecontest.com/mykaraokecontest/read_blog/57/male-enhancement:-understanding-erectile-dysfunction

    ReplyDelete
  6. Sweet blog! I found it while surfing around on Yahoo News.
    Do you have any suggestions on how to get listed in Yahoo News?
    I've been trying for a while but I never seem to get there! Many thanks

    Here is my homepage; tattoomenow discount

    ReplyDelete
  7. Spot on Kupihea. If you nail all of these, you'll feel a great deal a lot more attractive to women than guys whom don't
    take on these properties.

    Here is my web page ... online dating books

    ReplyDelete
  8. Hi i am kavin, its my first time to commenting anyplace, when i
    read this article i thought i could also create comment
    due to this good paragraph.

    My weblog ... female libido pills

    ReplyDelete
  9. Hi to every one, it's actually a good for me to go to see this web site, it contains priceless Information.

    Feel free to visit my website 11x3 outdoor shed

    ReplyDelete
  10. I became really pleased to land on this site.
    I would like to thank you for initiating this great article!
    ! I undoubtedly really liked every function of it and we
    have your site stored as a specialty so we can maintain up on your own brand-new information.


    Also visit my web page :: earn money online ()

    ReplyDelete
  11. With havin so much written content do you ever run into
    any issues of plagorism or copyright violation?
    My site has a lot of completely unique content I've either written myself or outsourced but it looks like a lot of it is popping it up all over the web without my agreement. Do you know any solutions to help prevent content from being ripped off? I'd certainly appreciate it.


    my web-site singing maitre d'

    ReplyDelete
  12. Thanks very interesting blog!

    My homepage - basyx vl601st11t

    ReplyDelete
  13. Great weblog right here! Additionally your web site lots up fast!
    What web host are you the usage of? Can I get your affiliate link on
    your host? I want my website loaded up as quickly as yours lol

    Feel free to visit my website :: how to cut fat

    ReplyDelete
  14. Awesome blog! Do you have any hints for aspiring writers?

    I'm planning to start my own website soon but I'm a little lost on everything.
    Would you advise starting with a free platform like
    Wordpress or go for a paid option? There are
    so many options out there that I'm completely confused .. Any tips? Thank you!

    Here is my homepage: music production program

    ReplyDelete
  15. Hi,
    Interview question,

    tmp folder keep on increasing upto 14gb or more,
    what to do resolve this.

    Thanks
    Ather Hussain
    atherhussain9@gmail.com

    ReplyDelete
    Replies
    1. it could be due to socket files .. or need to check which folder or file consumes more space and action accordingly

      Delete

ZFS

Public Cloud tools comparison