Load balancing in 10g RAC

why we need to have load balancing(client and server side load balancing) in 10g RAC environment

853910 wrote:
why we need to have load balancing(client and server side load balancing) in 10g RAC environmentIn simple words because you don't want just one node to be getting busy with all the workload coming up but you do want the work to be divided among all the nodes in teh cluster since the RAC is based on the principle of divide and rule .
Aman....

Similar Messages

  • Load Balancing with 10g RAC

    Hi,
    I have one query regarding balancing load with RAC.
    We have some batch processes executed from shell script in Oracle RAC environment where a separate node is used for failover only. There are some issues related with performance. We are looking for a solution to utilize 'idle' node used for failover to resolve this issue.
    I want to know whether the below mentioned scenario is possible to achieve with 10gRel2 RAC.
    A batch process is running and it is utilizing all resources (CPU) of instance 1, then it is possible by any means that this process be split and distributed to idle instance 2 on another node?
    Looking for expert advice.
    Regards
    Amit

    Hi Amit,
    I;ve done lots of RAC implementations, and it;s critical to set-up the primary node accordig to the "type" of table access. For example, cistomer queries on node 1, order queries on node 2, etc. Minimizing pinging is very important!
    Staring in Oracle 10g release 2, Oracle JDBC and ODP.NET provide connection pool load balancing facilities through integration with the new “load balancing advisory” tool. This replaces the more-cumbersome listener-based load balancing technique.
    I have more notes here:
    http://www.dba-oracle.com/oracle10g_tuning/t_grid_tuning.htm
    Hope this helps. . .
    Donald K. Burleson
    Oracle Press author

  • How Load Balance works in RAC?

    Hi All,
    I have a 2-node 10gR2 RAC on RHEL4. One of our web based application is connecting to the RAC database. Today, while starting up the application, one of our node(node1) was down and all the connections from the app are connected to the DB using other node(node2). There were around 120 connection from application. Again, i brought back the node1 but still, the connections were on node2 and no connection on node1.
    My doubt is, how the load balancing works in RAC? is there limit like after some number of connections, it will load balance to other node?
    Thanks,
    Praveen.

    If all the connections go to node 2 cause node 1 is down, then, when node 1 comes back, those connections already established on node 2 will remain on node 2. There is no mechanism to migrate existing connections. However, over time, as more connections come in, they should go to node 1. Over time, the load should balance out. But, the only way to immediately rebalance would be to force existing connections to recycle their connection.
    If one node is capable of handling the load, I wouldn't worry about it....over time, things will balance out.
    -Mark

  • Functional load balancing in oracle RAC

    Hi all,
    Could anyone suggest how to setup functional load balancing in oracle RAC? Will there be any performance improvement in doing so? I implemented server side load balancing and the performance of INSERT, UPDATE and DELETE are very poor. Will functional load balancing be of any use? Please tell me the steps of how to implement functional load balancing?
    Regards,
    Aravind
    Edited by: Aravind K R on Jul 12, 2011 2:49 PM

    Aravind K R wrote:
    Hi all,
    Could anyone sujjest how to setup functional load balancing in oracle RAC? Will there be any performance improvement in doing so? I implemented server side load balancing and the performance of INSERT, UPDATE and DELETE are very poor. Will functional load balancing be of any use? Please tell me the steps of how to implement functional load balancing?
    Regards,
    Aravind
    Hi,
    Load balancing will not necessary increase performance, it just distribute the load more evenly.
    Is the DML statement only slow in specific instance?
    To prove if there is problem with load balancing, have you tried connect to one instance and perform same DML statement? compare the result
    Cheers

  • FRM-92101: Load Balancing Forms 10g with Web Cache

    Hi,
    I´m having some problems with Oracle Forms and Webcache 10g and I was wondering if you
    could help.
    Machines: (Pentium IV 2.6 GHz; 2GB RAM; 80GB HD)
    A. Red Hat Linux AS 2.1
    Oracle AS 10g - Infrastructure Installation
    B. Windows 2000 Server - Service Pack 4
    Oracle AS 10g - BI and Forms Installation (Using Infrastructure on machine A)
    C. Windows 2000 Server - Service Pack 4
    Oracle AS 10g - BI and Forms Installation (Using Infrastructure on machine A)
    I didn´t apply any Patchsets of Oracle AS 10g. My current version is 9.0.4.0 .
    Goal:
    Use Oracle Webcache 10g on machine B for Load Balancing an Oracle Forms Application
    on machines B and C.
    Facts:
    The Oracle AS 10g installation on the 3 machines was made without problems.
    The Forms Applications are running without problems on both Forms servers in machine B and C.
    Symptoms:
    I´m getting the following error when I try to acces the forms application through Webcache:
    FRM-92101: There was a failure in the forms server during startup.
    This could happen due to invalid configuration.
    Please look in the web-server log file for details.
    But, this error happens ONLY when BOTH OC4J_BI_Forms instances (machines B and C) are
    running.
    When just one of the OC4J_BI_Forms is running everything works fine.
    Webcache Configuration:
    I´ve followed Metalink note 207668.1: Configuring Web Cache as a Load Balancer for Application Servers
    step by step to make the configuration of the following components:
    1. Configuration of the origin servers
    2. Configuration of Site definitions
    3. Configuration of Site to server mapping
    After that, I´ve follwed the Metalink note 229900.1: Integrating and using Web Cache with Forms 9i for Load Balancing
    step by step to make the configuration of the following components:
    4. Session Binding
    Then I try to test the Load Balancing and I got the error FRM-92101 when both OC4J_BI_Forms
    instance were running.
    I´ve searched Metalink and found note 268830.1: Webcache Won't Load Balance 2 Forms Instances.
    Following the note instructions I did the following changes:
    Added these lines at the end of HTTPD.conf (machine B):
    CookieTracking On
    CookieName myformscookie1
    Added these lines at the end of HTTPD.conf (machine C):
    CookieTracking On
    CookieName myformscookie2
    In Webcache configuration:
    I´ve Changed the default session binding from JSESSIONID to "ANY SET COOKIE" for the
    site's session binding.
    But even after these changes I´m getting FRM-92101 error on the same conditions.
    How can I solve this problem ?
    Thank you in advance.
    Marcus Santos.
    ([email protected])

    Just ran into this problem last Tuesday, Nov.30 and applied the changes today.
    My configuration is similar to yours: 9.0.4 web cache on machine A, 9.0.4 10gAS forms and reports standalone on machine B and C (not a cluster, no infra).
    I appended the Cookie lines you mentioned in httpd.conf located in $ORACLE_HOME/Apache/Apache/conf in both machines B and C.
    One important thing you may have missed. After changing httpd.conf in each 9iAS instance, you need to make the change known to dcmctl so issue:
    dcmctl updateConfig -ct ohs
    Then do the following for each 9iAS instance and it should be ready for webcache:
    dcmctl stop
    dcmctl start
    Setup Any-set-Cookie in webcache instead of JSESSIONID and the whole thing should now work. You can run a form through machine A which will load balance to either machine B or C (which can both be up). Then, try shutting down 9iAS on machine B or C and run a form again. They now all work.
    HTH,
    Raffy

  • FRM-92101: Load Balancing Forms 10g with Webcache

    Hi,
    I´m having some problems with Oracle Forms and Webcache 10g and I was wondering if you
    could help.
    Machines: (Pentium IV 2.6 GHz; 2GB RAM; 80GB HD)
    A. Red Hat Linux AS 2.1
    Oracle AS 10g - Infrastructure Installation
    B. Windows 2000 Server - Service Pack 4
    Oracle AS 10g - BI and Forms Installation (Using Infrastructure on machine A)
    C. Windows 2000 Server - Service Pack 4
    Oracle AS 10g - BI and Forms Installation (Using Infrastructure on machine A)
    I didn´t apply any Patchsets of Oracle AS 10g. My current version is 9.0.4.0 .
    Goal:
    Use Oracle Webcache 10g on machine B for Load Balancing an Oracle Forms Application
    on machines B and C.
    Facts:
    The Oracle AS 10g installation on the 3 machines was made without problems.
    The Forms Applications are running without problems on both Forms servers in machine B and C.
    Symptoms:
    I´m getting the following error when I try to access the forms application through Webcache:
    FRM-92101: There was a failure in the forms server during startup.
    This could happen due to invalid configuration.
    Please look in the web-server log file for details.
    But, this error happens ONLY when BOTH OC4J_BI_Forms instances (machines B and C) are
    running.
    When just one of the OC4J_BI_Forms is running everything works fine.
    Webcache Configuration:
    I´ve followed Metalink note 207668.1: Configuring Web Cache as a Load Balancer for Application Servers
    step by step to make the configuration of the following components:
    1. Configuration of the origin servers
    2. Configuration of Site definitions
    3. Configuration of Site to server mapping
    After that, I´ve follwed the Metalink note 229900.1: Integrating and using Web Cache with Forms 9i for Load Balancing
    step by step to make the configuration of the following components:
    4. Session Binding
    Then I try to test the Load Balancing and I got the error FRM-92101 when both OC4J_BI_Forms
    instance were running.
    I´ve searched Metalink and found note 268830.1: Webcache Won't Load Balance 2 Forms Instances.
    Following the note instructions I did the following changes:
    Added these lines at the end of HTTPD.conf (machine B):
    CookieTracking On
    CookieName myformscookie1
    Added these lines at the end of HTTPD.conf (machine C):
    CookieTracking On
    CookieName myformscookie2
    In Webcache configuration:
    I´ve Changed the default session binding from JSESSIONID to "ANY SET COOKIE" for the
    site's session binding.
    But even after these changes I´m getting FRM-92101 error on the same conditions.
    How can I solve this problem ?
    Thank you in advance.
    Marcus Santos.
    ([email protected])

    Did you ever Get this to work?
    I am having some problems trying to load balance with Oracle Forms, Discover and reports Oracle Application Server Release 10g (9.0.4.0.2) and I was wondering if you could help. Has any one ever got this to work consistently? We are an ERP product written mostly in forms (904) and are trying to implement are largest customer there performance issue so we need the load balancing to work. Will also accept other recommendation as cost effective as solutions.
    Site 1:
    A: SERVER –
    •     Host as1.xyzco.local
    •     Version 10.1.2.0.2
    •     Installation Type Identity Management and Metadata Repository
    •     Oracle Home E:\oracle\inf_1012
    •     Farm as1db.xyzco.net
    o     HTTP_Server
    o     Internet Directory
    o     OC4J_SECURITY
    o     Single Sign-On:orasso
    o     Management
    B SERVER –
    •     Host as2. xyzco.local
    •     Version 9.0.4.0.2
    •     Installation Type Business Intelligence and Forms
    •     Oracle Home E:\oracle\mid_904
    •     Farm as2db. xyzco.net
    o     Discoverer
    o     Forms
    o     home
    o     HTTP_Server
    o     OC4J_BI_Forms
    o     Reports Server
    o     Web Cache
    o     Management
    C SERVER –
    •     Host as3. xyzco.local
    •     Version 9.0.4.0.2
    •     Installation Type Business Intelligence and Forms – Discoverer and Reports
    •     Oracle Home E:\oracle\mid_904
    •     Farm as2db. xyzco.net
    o      Discoverer
    o     Forms
    o     home
    o     HTTP_Server
    o     OC4J_BI_Forms
    o     Reports Server
    o     Web Cache
    o     Management
    All servers Are:
    •     Windows 2003 Standard Server with current service packs
    •     Xeon Dual Processor with 4GB ram
    •     Raid 0 drives 2 for OS and 2 for Oracle
    Daniel Brody
    [email protected]

  • 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 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.

  • JDBC load balancing with non RAC replicated instances

    Hi,
    The thin JDBC load balancing feature only works with RAC clusters or it can be used with two non RAC replicated instances using the same service name?
    Thanks,
    Ezio.

    Thank you Douglas for your time.
    I assumed the first case (database connection load balancing). I thought that the listener would do the load balancing and failover trick. So, I configured the JDBC connection as follow:
    String MM_loadBalance1_DRIVER = "oracle.jdbc.driver.OracleDriver";
    String MM_loadBalance1_USERNAME = "scott";
    String MM_loadBalance1_PASSWORD = "tiger";
    String MM_loadBalance1_STRING = "jdbc:oracle:thin:@(DESCRIPTION=" +
    " (LOAD_BALANCE=on) (FAILOVER=on)"+
    " (ADDRESS_LIST="+
    " (ADDRESS=(PROTOCOL=TCP)(HOST=test1) (PORT=1521))"+
    " (ADDRESS=(PROTOCOL=TCP)(HOST=test2)(PORT=1521)))"+
    " (CONNECT_DATA=(SERVICE_NAME=test)))";
    Driver DriverRecordset1 = (Driver)Class.forName(MM_loadBalance1_DRIVER).newInstance();
    Connection ConnRecordset1 = DriverManager.getConnection(MM_loadBalance1_STRING,MM_loadBalance1_USERNAME,MM_loadBalance1_PASSWORD);
    But, when one of the instances was down (test1), the connection failed, it didn't failed over to the other instance (test2).
    So I wondered if it failed due to some misconfiguration issue or because it only works with RAC instances...

  • Load Balancing issue on RAC setup

    1. We have a Oracle RAC cluster having two node say node1-vip and node2-vip
    2. We have two client software (both uses weblogic as app server) say ANP and HDM
    3. We configure connect string for HDM by giving node1-vip as primary and node2-vip as secondary. Here is the connect string we provide
    jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=node1-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=node2-vip)(PORT=1521))(FAILOVER=on)(LOAD_BALANCE=off))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME= anpdb)))
    4. We configure connect string for ANP by giving node2-vip as primary and node1-vip as secondary. Here is the connect string we provide
    jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=node2-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=node1-vip)(PORT=1521))(FAILOVER=on)(LOAD_BALANCE=off))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME= anpdb)))
    We are observing that connection for HDM is only going to node1-vip however connection for ANP sometime goes to only node2-vip however sometime it is getting distributed between node1-vip and node2-vip. Whenever there is more connection on node1-vip than node2-vip then connection for ANP is only going to node2-vip however whenever number of connection at node2-vip is equal or greater than node-1 vip, connection for ANP gets distributed between node1-vip and node2-vip
    Thanks
    Sumit

    Hi,
    jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=node1-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=node2-vip)(PORT=1521))(FAILOVER=on)(LOAD_BALANCE=off))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME= anpdb)))
    Why have you put *(LOAD_BALANCE=off)* ?
    And from your post, you are not trying to use actual load balancing.
    You are trying to give connectivity like this HDM->node 1 and ANM->node 2
    In that case you need tp specify only one server vip address.
    When you configure the connection entries like above, when a new user session connection is requested, listener will connect the user to whichever address is reachable at that time.
    Hope you got my point...
    Regards,
    Mahesh.

  • Automatic load balance for oracle RAC

    Hi there,
    we have application, that use local oracle 9i database and every users use terminal application. That meaning, users do connect to hostname via terminal and invoke application.
    We want migrate to RAC with cluster composed with 2 nodes. On every node must be
    unique oracle_sid, but database is same on disk array.
    My question is how configure users terminal profile which be comensatory automatic load balance .
    Thanks

    Hi,
    This software simulates a real environment.
    It creates a schema with tables, sequence, index, functions, etc..
    Preferably in a client host it simulates several users (configurable) connecting to the database.
    Then the test is simulated like in the real environment.
    Check this:
    RAC speedup example
    This demo shows an example of RAC speedup
    http://apex.oracle.com/pls/apex/f?p=44785:24:1688430074669391::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:4946,2
    RAC scale example
    This demo shows an example of how a 2 node RAC database can scale in performance.
    http://apex.oracle.com/pls/apex/f?p=44785:24:1688430074669391::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:4945,2
    Regards,
    Levi Pereira

  • OC4J Load Balancing on 10G R2

    Greetings!
    I am trying to set up OC4J with multiple JVMs on 10G R2 and did this by setting the Number of Processes parameter to 2 under Server Properties. We need sticky sessions in our app - my small tests so far seems to indicate this is working without me having to do anything.
    The reason for doing multiple processes is that our app consumes a lot of memory and with the restriction on the max JVM heap size, we are trying to exploit the full capacity of high-end servers.
    Here are my questions:
    1. Is this really as easy as it seems ? :-) Am I missing something - settings etc.? I went through documentation below and it does not have anything specific on how to choose number of processes except saying it is "specific to a computer."
    [http://download-west.oracle.com/docs/cd/B14099_11/core.1012/b14003/midtiermanage.htm]
    2. Is session replication disabled by default? There is a link on the OC4J administration page for replication which is empty. This works for us as not all objects we put in session are serializable.
    3. We have a configuration file that is read by a singleton. For multiple processes we want different values to be read by the singletons running on different processes. Is there a pattern for doing this? I am thinking of creating a lock file/index file to indicate if another process has already read the configuration. Anything better?
    I am new to this. Will appreciate all comments/suggestions.
    Regards,
    Arnab.

    Hello Arnab,
    It looks like the Metalink Note 175593.1
    "Configuring Multiple OC4J Instances as a High Availability Cluster"
    would be of a good help to answer your questions.
    Sincerely,
    Steff

  • 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

  • Client side load balancing and server side load balancing

    Hello Team,
    I need to know how to set up client and server side load balancing in oracle rac.  What all things to be implemented like creating a service, tnsnames.ora settings etc.
    And also if i used SCAN ip instead of VIP. how the settings will change.
    Regards,

    Hi,
    please find here an Whitepaper with the information
    http://www.oracle.com/technetwork/database/features/availability/maa-wp-11gr2-client-failover-173305.pdf
    kind regards

Maybe you are looking for

  • S-VIDEO black & white signal from VHS to PC using TV@where Plus. PLZ PLZ HELP.

    I have had TV@where plus now for a few months after having many many sound related problem recording from VHS to PC using TV@where master. Didn't know about this forum so after many months of AGONY i purchased TV@where plus hoping this would resolve

  • How to check the content of cluster table smw3_bdoc1(00)

    Hi! I want to check the business partner changes sending via bdoc from crm to sap. For this i want to look into the bdocs. I think it's the cluster-table smw3_bdoc1. 'Cause i don't know which is the name of the structure in the clustd-field i use: da

  • How much ram nokia 6630 have

    Pls answer Solved! Go to Solution.

  • NetBeans 6.5 - Decompiler - Not Working

    Hi, it seems that the NBJAD plugin does not work for Netbeans 6.5. Does anyone know whether this plugin will be updated? or alterntively, if there's any other currently available plugin that would give the same functionality? what i would like to do

  • Sharing content between QIP7216s

    I have 2 QIP7216s and a single QIP6200. Is it possible to copy content from one DVR to another? Obviously both DVRs can't be viewed by the QIP6200, and one DVR can't view the content of another. So is there anyway to copy content from one 7216 to the