Load balancing in RAC 11.2

Hello,
what is the best practise for rman backups load balancing for 11.2 RAC.
Should we use scan listener or should we use old method of allocating each channel to each node ?

If you are using FRA (db_recovery_file_dest - obviously a SHARED FRA diskgroup/filesystem etc.. ) you set parallelism and let it handle it. It will automagically do some load balancing. You no longer need to allocate/deallocate channels in this configuration.
RMAN> CONFIGURE DEFAULT DEVICE TYPE TO DISK;
# default backup device is disk
RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 6;
One thing to consider. Your archivelog backup destination needs to be accessible CLUSTER WIDE ie on ALL nodes.
I would like to see Oracle support ACFS for this sort of shared location - currently it is not supported. I have tested it and it works, but there is still a single-point-of-failure. ASM itself.

Similar Messages

  • Weblogic: load balancing and RAC contention

    I cannot locate any useful documentation on this: I am trying to find the optimal configuration to allow an Weblogic Application server to load balance to RAC.
    I see high numbers of v$sqlstats.clwait_delta for sessions connected from weblogic servers; typically from 25-95% over the overall statement execution time.
    Configuration is a three node RAC 10.2.0.4 on Linux; with and eight node weblogic cluster connected using about 150 sessions (equally divided between the rac nodes), hosting a number of applications. They use "Least Connections" load balancing which means any thread(/connection) could be used next. The weblogic sessions connect to a RAC service that is configured with LOAD_BALANCE=YES.
    I suspect that contention is caused by behaviour such as
    - insert on one node, then immediately query back on another node
    - inserts to indexed tables being distributed across all three nodes.
    There is too much going on here, and I want to simplify the configuration to eliminate contention for the same data blocks across nodes - this will likely mean new database services configured with LOAD_BALANCE=NO and some form of application partitioning on the weblogic servers. There are other load balancing schemes available for weblogic; but none seem designed to work well with rac.
    Is there any best practice documentation available to configure weblogic on RAC (as opposed to single-instance, which doesnt have any such contention issues).
    Any pointers appreciated!
    Rgds
    Mark Teehan
    Singapore

    Hi,
    see these 2 whitepapers:
    http://www.oracle.com/technetwork/database/enterprise-edition/twpracwkldmgmt-132994.pdf
    http://www.oracle.com/technetwork/database/enterprise-edition/bestpracticesforxaandrac-128676.pdf
    they should provide you with enough information on what to do.
    Regards
    Sebastian

  • About load balancing in rac

    Dear Gurus
    I want to ask about load balancing in RAC.
    we have two nodes rac1 rac2 with physical ip as virtual ip as
    rac1 rac2
    physical 10.22.1.50 10.22.1.51
    virtual 10.22.1.54 10.22.1.55
    and two appliction servers app1 app2.Actually in tns file of app1 there is entry of virtual ip of rac1 (10.22.1.54)and in app2 virtual ip of rac2 (10.22.1.55). so we want to test whether load balancing is happening or not .like if app2 is down so whether the connection of app1 moving to rac2 also or not
    so we down app2 and check.Guys tell me how could i check in that duration that whether connnection going to rac2.
    i am unable to find the parameter of sessions connected in awr .Please tell how could i identify

    i have stopped the IM's of one of my application server and checked the connections to my database with below query and according to it its connecting to both instances.Does it means that load balancing is happening fine.
    SQL> SELECT inst_id, TO_CHAR(logon_time, 'DD-MON-YYYY HH24:mi:ss') "Hour when connected", count(*) "DB Sessions"
    2 FROM gv$session
    3 WHERE type = 'USER' and TO_CHAR(logon_time, 'DD-MON-YYYY HH24:mi:ss') like '%05-OCT-2011 17%'
    4 GROUP BY inst_id, TO_CHAR(logon_time, 'DD-MON-YYYY HH24:mi:ss')
    5 ORDER BY inst_id, TO_CHAR(logon_time, 'DD-MON-YYYY HH24:mi:ss');
    INST_ID Hour when connected DB Sessions
    1 05-OCT-2011 17:20:06 1
    1 05-OCT-2011 17:27:18 1
    2 05-OCT-2011 17:11:31 1
    2 05-OCT-2011 17:26:28 2
    2 05-OCT-2011 17:26:38 1
    2 05-OCT-2011 17:27:18 1

  • Load Balancing on RAC Test

    Hi Team,
    We have 2 node ORACLE 10g RAC setup on RHEL4
    We have to prepare a Load Balancing Scenario
    1. How and on what basis Client Requests/load balancing are done on the oracle 10g RAC nodes
    2. How to Moniotor on which node client request/tasks are performed
    Please Lighten me on this
    Thanks in Advance for your help
    Thanks,
    AJ

    1. depends on how your load balancing is setup - client side (tnsnames.ora) or server side (remote listener)
    See http://www.oracle.com/technology/pub/articles/hunter_rac10gr2_iscsi_3.html#30
    2. select from gv$session

  • Load balancing on rac database with single node appsTier

    Hi,
    Please advice me, I am working on to configure load balancing on appstier, following is my setup and steps I did so far.
    Host name      Services
    Clelx062ptlge --     Rac 1 – only database
    Clelx063ptlge --     Rac 2 – only database
    Clelx042ptlge --     All apps services including concurrent managers
    I have two R12 database(UDEV -- development & HRQA -- UAT), I only made changes in apps tier xml file of udev for some load balancing parameters, following are the changes I did.
    *<TWO_TASK oa_var="s_tools_twotask" osd="unix"> udev_806_BALANCE </TWO_TASK>*
    *<CP_TWOTASK oa_var="s_cp_twotask" customized="yes">udev_806_BALANCE</CP_TWOTASK>*
    *<TWO_TASK oa_var="s_weboh_twotask" osd="unix"> udev_BALANCE </TWO_TASK>*
    I changed the values from "UDEV" to given above value. After the above change I ran autoconfig. Then Concurrent managers and forms services are not automatically getting failover to second database node, I need to bounce services to fail it back to other available Rac node. Please note that we have only one appsTier
    Thanks,
    Tanveer Mohammed.

    Hi,
    Yes, i have checked the doc referenced, and already did the steps given in the doc. Also i did all the steps given into ID 388577.1 but still Concurrent managers and forms services are not automatically getting failover to second database node, I need to bounce services to fail it back to other available Rac node.
    Please advice...
    Thanks,
    Tanveer Mohammed.

  • Load Balancing in RAC

    If you have 2 node cluster , you have configured Node 1 as Preferred instance and Node 2 as available.
    According to Oracle , the service will always run on a preferred instance and will relocate to available instance in case of preferred node failure.
    Also you have server side load balancing, as per documentation the service will relocate on available instance if the preferred node crashes.
    Question: How will Oracle take care of Load Balancing , since the service on available node will only run if the preferred node crashes. Since the service is not running on Node 2 (available instance) ? How will oracle distribute the connections among the nodes?

    The answer to your question depends one the configuration of your Oracle Net Services, Whether you have configured connection load balancing or server side load balancing. Oracle will only balance the workload among the database instance running the service. By default Oracle starts the service on prefered node and in your case you have configured only one preferred database instance for your service and at a time service will run on one node only so Oracle does not have any options to distribute the workload even if you have configured the server side load balancing for the services using the service level goals.
    To explain it further, consider you have 3 node cluster. The database instance on first and second node are preferred instances for the net service and service-level goals are defined for server side load balancing.
    Now suppose second node fails and Oracle relocates the service to third node. Because Oracle is aware about the services running in the cluster even the relocated services (You should read about LOCAL_LISTENER and REMOTE_LISTENER to understand how Oracle register services with listeners on other cluster nodes) thats why using the load balancing advisory Oracle decides, which node the new database connection should be connected.

  • Oracle RAC Concept  - load balancing

    Hello All,
    I have a question about Oracle RAC and how it balance loading.
    What I know about Oracle RAC that it balancing load between its node, so if a new session is connected to the Database it will execute on the node which have less load.
    If I am having an application that connects to the database with few number of sessions and some sessions have huge (huge load) processes to execute while the other sessions are executing small process (in terms of load).
    So below is an example scenario that i am asking for an answer of it:
    if am having a two node RAC database.
    My application that is connected to this RAC database wants to execute three processes P1, P2 and P3 each will have a session correspondingly S1, S2 and S3
    Let is say that P1 will take 60% of the database resources (memory ....) and P2 will take 1% and P3 1%.
    So my question is it a sessions load balancing or Processes load balancing ? So in case and randomly (Managed by ORACLE RAC) S1 is connected to node 1 and it is using node 1 resources so the load on node 1 will be 60%, so when S2 and S3 needs to connect it will go to node 2 since node 1 is loaded. in that case i will have Node 1 using 60% of it is resources (becuase of S1 that is executing P1) while node 2 only uses 2 % (because of S2 and S3 that is executing P2 and P3).
    Is that how Oracle RAC works ? or it balance the load of S1 (60%) between node 1 and node 2 ?
    I am asking this question since my application is not users application, so it will connect to the database with few number of sessions, and 1 session of them may execute a huge process while the other are executing small processes.
    So in that case, how RAC is doing the balance loading?
    Regards,

    i hope , this links may help you.
    Thread: Server side Load balancing in RAC
    Server Side Load Balancing Testing
    read Oracle documentation:
    http://www.oracle.com/pls/db102/search?word=server+side+load+balancing&partno=
    http://www.oracleracexpert.com/2010/01/oracle-rac-load-balancing-and-failover.html
    http://www.databasejournal.com/features/oracle/article.php/3659411/Oracle-RAC-Administration---Part-15-Connection-Load-Balancing-and-FAN.htm
    http://oracleinstance.blogspot.com/2010/08/transparent-application-failover-taf.html

  • Oracle Metrics Load Balancing

    I am trying to research the method of load balancing using Oracle Metrics Server/client. Does anyone know of any useful resources ...I am looking for something which can give a brief overview of how this works and what is required plus also something along the lines of a step by step configuration guide.
    If anyone can help it would be much appreciated.

    try this,
    http://oracleinstance.blogspot.com/2010/08/transparent-application-failover-taf.html
    http://oracledba-videos.blogspot.com/2009/11/transparent-application-failover-taf.html(video)
    if you have metalink access, Check the Oracle Metalink Notes.
    Note:226880.1 - Configuration of Load Balancing and Transparent Application Failover
    you can find n number of threads in our forum search
    some References:-
    load balancing in RAC
    Load Balancing on RAC Test
    Load Balancing with 10g RAC

  • Load Balancing for EBS R12

    Hi husssein,
    I have a pc shuttle with test EBS R12 on RHEL4.6.
    I want to practise/test installing "appsTier Load Balancing" because this is one of our client's requirement.
    I have 1 laptop and i can borrow another from my officemate. I will install rhel4.6 both on the 2 laptops.
    Is it possible to simulate testing on "appsTier Load Balancing" using the 2 laptops? and the dbTier resides on the
    shuttle pc?
    Thanks a lot

    Hi,
    Well, from your experience, which is difficult to setup/configure > Load Balancer or RAC?I would not compare, but personally I believe configuring load balancing is more straightforward.
    By the way the term "RAC" is quite misleading. It means "Real Application Cluster" and yet it is used or point to the database Tier, when is should be on tha AppsTier because of the word "Application".
    So why cannot they RAC the AppsTier?As mentioned above, RAC is a database feature which means you will need to have an Oracle database installed (Enterprise Edition) to configure RAC. For the application tier, you will have to use load balancing. Both RAC and Load balancing are forms of Clustering.
    Regards,
    Hussein

  • How to load balance Agents across multiple Oracle Management Servers?

    Hi everyone
    We have the 2 OMS servers in our OEM environment. We would like to set up our management agents to load balance over these 2 servers...Or if not load balance then at least set up the agents so they can access either/or OMS.
    I've looked through the documentation and in google, but can't seem to find the answer.
    Can someone point me towards the documentation please
    Thanks
    R

    OMS is just an appserver with a repository. You can load balance the appservers with an F5. You can load balance the repository with RAC.
    So ... your options for load balancing and resilience are :-
    1. one agent on each server, multiple OMS appservers load balanced, one RAC database (with dataguard standby)
    2. two agents per server, two appservers, two repositories.
    Both architectures work. Option 1 offers the best load balancing and resilience.

  • Remove load balancing...

    Oracle 10gR2 RHEL 4 AS 64bit
    I wanted to know is there a way to remove load balancing in RAC? Would I just set the LOAD_BALANCE parameter to OFF in the TNSnames.ora file? Would that take care of it? The problem is occurring because developers are trying to upload images into the database (using jumploader) and the file is stored on the first node. What happens is during the upload a procedure searches for the file on the second node (when it is actually on the first node) and then an error is returned. Below are my current TNS entries:
    PROD =
    (DESCRIPTION =
    (LOAD_BALANCE = ON)
    (FAILOVER = ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TAF)
    (FAILOVER_MODE =
    (TYPE = SELECT)
    (METHOD = BASIC)
    (RETRIES = 180)
    (DELAY = 1)
    TAF =
    (DESCRIPTION =
    (LOAD_BALANCE = ON)
    (FAILOVER = ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TAF)
    PROD2 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = PROD)
    (INSTANCE_NAME = PROD2)
    PROD1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = PROD)
    (INSTANCE_NAME = PROD1)
    )

    In this case, changing the tnsnames.ora file alone won't do it. RAC has two independent load balancing sides, client side (tnsnames level) and server side (listener level). The client side is simply a random (yep, random) picking of a listener on an instance to go to. On the server side, however, a given listener can then hand that connection off to another listener on a less loaded machine. Even if you connect via tnsnames to a specific instance, you may be connected to another machine.
    Your best bet would be to use services, you can create a service in the cluster that can connect to a specific node with a different service name than "standard" connection. I have used this for reporting instances on a specific node cluster. You then create a new tnsnames alias to point to that new server. Note. If you use the SERVICE_NAMES parameter within your database this will not work, as anything pointed to by it will override the service names.
    An alternate idea would be to nfs mount your filesystem that contains the pictures to each of your remaining rac nodes.
    Cheers
    Jay Caviness
    http://www.grumpy-dba.com

  • Load balancing in Oracle RAC 11g (11.1.0.6.0)

    Hi!
    One of our customers use load balancing, now all users get connected against node 2.
    --The configuration of load balancing will be correct I think, have worked before
    --How do I verify the load on each node ?
    --What can be wrong?
    --Need help, what to check?
    --tnsnames.ora looks like
    X.world =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = X)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = X)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = X.X.se)
    Regards
    T

    Hi,
    --The configuration of load balancing will be correct I think, have worked before
    --How do I verify the load on each node ?
    --What can be wrong?
    --Need help, what to check?
    Services
    Traditionally an Oracle database provided a single service and all users connected to the same service.
    A database will always have this default database service that is the database name.This service cannot be modified and will always allow you to connect to the database.
    Do not use the default database service, create at least one service.
    With Oracle Database 11g, a database can have many services (up to a maximum of 115 per database).
    The services hide the complexity of the cluster from the client by providing a single system image for managing work. Applications and mid-tier connection pools select a service by using the Service Name in their connection data.
    http://www.oracle.com/technetwork/database/clustering/overview/awmrac11g-133673.pdf
    http://download.oracle.com/docs/cd/B28359_01/rac.111/b28254/hafeats.htm
    Regards,
    Levi Pereira

  • Load Balance Problem in Oracle RAC 10.2.0.4 (two nodes with CRS)

    Hi all,
    I have an Oracle RAC 10.2.0.4 with two nodes and I'm having problems with sessions load balance.
    The problem is that all connections are going to the node which is enabled as 'master' in RAC, the node who has located .db resource in CRS.
    If .db resource is located in node1 all connections are made in node1. In the same way, all connections are made in node2 when .db resource from CRS stack is located in node2.
    The connections are made by a pool in Tomcat 6 using RAC service for made the connections.
    Any idea?
    Thanks in advance.
    Here is an example of my net configuration:
    listener.ora in node1:
    LISTENER_RAC_NODE1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1_vip)(PORT = 1525)(IP = FIRST))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1)(PORT = 1525)(IP = FIRST))
    tnsnames in node1:
    LISTENERS_RAC =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1_vip)(PORT = 1525))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2_vip)(PORT = 1525))
    NODE1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1_vip)(PORT = 1525))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1)(PORT = 1525))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rac)
    (INSTANCE_NAME = rac1)
    RAC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1_vip)(PORT = 1525))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2_vip)(PORT = 1525))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rac)
    ********************************************************

    It is my fault.
    It was the connection service. I had one one with preferred option and one without it. Now is working well.

  • Oracle RAC load balancing advisory services query

    Hi,
    I have a query on RAC load balancing advisory.
    Is it possible to create a service for exeuction of a PL/SQL package?
    We have UNIX batches which are set of PL/SQL packages that may or may not be linked are executed daily. These batches consumes lots of resources.
    So i want to configure my services such that say pkg1 will go to node1 and pkg2 will go to node2 and so on and so forth.
    Is it possible to achieve this with Net services and LBA?
    If not, is there any other way i can do this?
    Thanks
    AT
    Message was edited by:
    Amit Trivedi

    Hi, my answers are:
    Is it possible to create a service for exeuction of a PL/SQL package?Yes, that is posible, you can create a service for execute PL/SQL Packages, in fact you can create any service that you need and assign the resources and priorities for this service.
    Is it possible to achieve this with Net services and LBA?Yes, thats posible, you define the priorities at service level and where the service must run at node level.
    If not, is there any other way i can do this?Yes, if you dont wish using the LBA and services you will must create statict definition into tnsnames file for operate connection string and indicate where must connect the session for execute the package.
    Luck.
    Have a good day.
    Regards.

  • Load balancing of DB RAC using weblogic server

    Hi All,
    I want to test the load balancing of Data base RAC for my application. I got the box which is installed RAC in it with two nodes. I configured the multidatasource which points to individual data sources to each node.
    Is this configuration is correct or not? to test the load balancing of the Database. I come to know that there is something called SCAN from oracle 11g but it is not supported 100% by web-logic server(we are using weblogic server 9.2MP3).
    How many requests I made all the requests are going to the Node1 only not even one is gone to the node2. Any specific reason.
    Thanks,
    Venkat.

    Another alternative is, keep the property file in any pre-defined location. Write a class which reads the properties from the file and returns the one which is requested by caller and deploy this class. Whenever you have to change the properties just update the property file on server and next call to fetch the property should return the updated one.
    Downside of this approach is file I/O everytime. To overcome that you can actually "cache" the properties in a hashmap. Basically when any property if requested, first check the hashmap, if not found then only read from property file and also update in hash map. Next time same property will be returned from hash map itself. The hash map will be cleared at every server restart since its in the memory. You will also need to build a method to clear the hashmap when you update the values in the property file on server.
    This solution would be suitable for small size files and when network overhead of calling a DB needs to be avoided.

Maybe you are looking for