Forum Discussion

avertelis's avatar
avertelis
Level 2
7 years ago

Backups for Oracle RAC running twice

Hi All, We having issues with Oracle RAC invirovment backups, it's always dublicating. It was working, and did load balance between nodes, but i did created new policy with same configuration and no...
  • RiaanBadenhorst's avatar
    7 years ago

    Hi,

    The script you attached won't load balance. For that to happen you'd need to allocate channels using specific instances name and logins. Example below

    ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE' PARMS='ENV=(NB_ORA_CLIENT=rwaixtdb1-vip,NB_ORA_POLICY=test11g1)' CONNECT='oraback/ora10gr2bk@test11g1';

    ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE' PARMS='ENV=(NB_ORA_CLIENT=rwaixtdb2-vip,NB_ORA_POLICY=test11g1)' CONNECT='oraback/ora10gr2bk@test11g2';

    ALLOCATE CHANNEL ch02 TYPE 'SBT_TAPE' PARMS='ENV=(NB_ORA_CLIENT=rwaixtdb1-vip,NB_ORA_POLICY=test11g1)' CONNECT='oraback/ora10gr2bk@test11g1';

    ALLOCATE CHANNEL ch03 TYPE 'SBT_TAPE' PARMS='ENV=(NB_ORA_CLIENT=rwaixtdb2-vip,NB_ORA_POLICY=test11g1)' CONNECT='oraback/ora10gr2bk@test11g2';

    ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE' PARMS='ENV=(NB_ORA_CLIENT=rwaixtdb1-vip,NB_ORA_POLICY=test11g1)' CONNECT='oraback/ora10gr2bk@test11g1';

    ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE' PARMS='ENV=(NB_ORA_CLIENT=rwaixtdb2-vip,NB_ORA_POLICY=test11g1)' CONNECT='oraback/ora10gr2bk@test11g2';

    ALLOCATE CHANNEL ch02 TYPE 'SBT_TAPE' PARMS='ENV=(NB_ORA_CLIENT=rwaixtdb1-vip,NB_ORA_POLICY=test11g1)' CONNECT='oraback/ora10gr2bk@test11g1';

    ALLOCATE CHANNEL ch03 TYPE 'SBT_TAPE' PARMS='ENV=(NB_ORA_CLIENT=rwaixtdb2-vip,NB_ORA_POLICY=test11g1)' CONNECT='oraback/ora10gr2bk@test11g2';

    What you do then is make another policy that will kick off the backups by connecting to the SCAN. In that policy you don't need a application backup schedule as it will connect and initiate the backup script. Inside the backup script you'll list the policy name of the other policy (NB_ORA_POLICY=test11g1) as shown above. 

    Because the channels are allocated as shown above it will make the appropriate channels on each node and then send the data to the media server.

    Hope that helps.