Oracle RAC Load Balancing

I have Oracle 10g RAC database with 6 node installed. Now i want to do load balaning for few users not for all.
Suppose i have users a,b,c,d & e are there and i want to redirect the login of users a,c & e throgh node 5. How can i achieve this using server side load balancing ?
Thanks in Advance.

973407 wrote:
I have Oracle 10g RAC database with 6 node installed. Now i want to do load balaning for few users not for all.
Suppose i have users a,b,c,d & e are there and i want to redirect the login of users a,c & e throgh node 5. How can i achieve this using server side load balancing ?
Thanks in Advance.Create a service for each group, entering that service name in the connect string, and providing those users with the appropriate tnsnames.ora or application.
You middle-tier could handle this using the correct jdbc connection based on some info retrieved from the database. I will leave it up to you to take the suggestions and figure out how to develop the scenario you described.
Isn't It is also about time you upgraded to something that is still supported? 11g will make some of these issues a whole lot easier. You CAN use 11g Cluster/ASM with your 10g database until you can get your db upgraded. I have upgraded a boat-load of 10g databases to 11g - always < 2hrs start to finish. In many cases converting from single-instance to RAC in the same upgrade session. YMMV.

Similar Messages

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

  • Oracle RAC load balancing sessions

    Hi Gurus,
    I have just implemented SAP on a 2 node RAC. We had RAC1 shutdown for maintenance, and all sessions were failed over to RAC2. Upon bringing RAC1 up, all the sessions remains connected to RAC2. New sessions are load balance between the 2 nodes. Hence, RAC2 is much busier than RAC1.
    How can I distribute the sessions/load in oracle upon bringing back a RAC node?
    Thanks,
    Tzyy Ming

    Hi,
    >> I am using 11g scan. I have switched all the scan services to RAC1. RAC2 has over 300 sessions. After the entire afternoon, RAC1 only manage to build up less than 100 sessions, while RAC2 still has 300 sessions. Most users are connected to SAP throughout the day. It will be nice if we can average out to 200 sessions on each node.
    You shoudn't expect that a SAP workprocess kills itself and connect to another resource during the runtime, in order to RAC1. So, newly created processes may be connected to the newly startup RAC node. Because of this RAC2 has 300 and RAC1 has 100 sessions on it.
    >> Relocating the service manually requires human intervention and creates human error. How can we configure RAC so that it knows 1 node is busier than the others and automatically redirect the connection to the lighter node?
    As far as I know that this is manual operation, not automatic
    I hope that it is clear
    Best regards,
    Orkun Gedik

  • Oracle RAC - Load Balancing Problem

    Our J2EE application transactions (Container-managed) are using MULTIPLE database connections to complete one business transaction.
    Recently we swiched to below Oracle RAC configuration, and it is creating problems.
    BEA 8.1 SP5 Multi Pools
    Oracle 9i RAC (2 instances) : Active - Active
    Algorithm : Load Balancing
    Driver (JDBC) : Oracle 10g Release 1 Thin Driver
    non-XA transactions
    Looks like when LB algorithm is chosen, the load balacing is only **connection-aware** and NOT **transaction-aware**. Because of this, the application gets one connection from one RAC instance, and other from other instance is creating problems.
    Is there any work-around exist for this problem?
    If we chose, HIGH_AVAILABILTY algorithm, everything is fine. But we would like to make use of both instances.

    Srinivas Chintala wrote:
    Hello Joe,
    Here is the configuration:
    <JDBCConnectionPool DriverName="oracle.jdbc.OracleDriver"
    InitialCapacity="10" MaxCapacity="30" Name="rac_node1"
    PasswordEncrypted="{3DES}5M6WvgV8GsA=" Properties="user=apps"
    StatementCacheSize="20" Targets="app_cluster"
    TestConnectionsOnCreate="true" TestConnectionsOnRelease="true"
    TestConnectionsOnReserve="true"
    TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:oracle:thin:@usplgmnvmdb001.iweb.com:1521:prod_1"/>
    <JDBCConnectionPool DriverName="oracle.jdbc.OracleDriver"
    InitialCapacity="10" MaxCapacity="30" Name="rac_node2"
    PasswordEncrypted="{3DES}5M6WvgV8GsA=" Properties="user=apps"
    StatementCacheSize="20" Targets="app_cluster"
         TestConnectionsOnCreate="true" TestConnectionsOnRelease="true"
    TestConnectionsOnReserve="true"
    TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:oracle:thin:@usplgmnvmdb002.iweb.com:1521:prod_2"/>
    <JDBCMultiPool AlgorithmType="Load-Balancing" Name="appmutlipool"
    PoolList="rac_node1,rac_node2" Targets="app_cluster"/>
    <JDBCDataSource JNDIName="appdatasource" Name="AppDatasource"
    PoolName="appmutlipool" Targets="app_cluster"/>
    ChintalaHi, OK, that looks fine, except:
    1 - I would define the initial and max capacity = 30, for performance and stability.
    2 - For more performance, turn off test-on-release. It's a waste of cycles.
    3 - You can change your TestTableName to "SQL BEGIN NULL; END;" which goes
    even faster than "select 1 from dual".
    And the main problem is:
    4 - Your JDBCDataSource doesn't seem to be a transactional one, so any
    application code that gets connections from that, will get independent
    connections each time, and their work will not be included in any WLS
    controlled transactions. You want to make/use a JDBCTxDataSource.
    Joe

  • 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

  • Rac load balance

    Dear Gurus
    my database 10.2.0.4 and rac is configured.
    database is working fine.actually rac is installed from last 3 years and database is running fine.
    But when we see cpu usage on both nodes by command sar -r ,cpu usage on node 2 is less than node1
    so my boss is saying that load balancing is not happening.
    Could anybody tell me how could i check whether load balancing is fine on both nodes or is it like some master node concept.
    Please give some ideas to test the same as in my opinion load balancin is working fine but i don't know how do i check it

    Hi
    So, you are trying to achieve uniform CPU usage among the RAC nodes using RAC load balancing techniques?
    I am afraid, answer to your problem is not simple. Do you use Services to load balance? If yes, how is the CLB_GOAL and GOAL (run time) is setup for the services? You could potentially use services and load balancing goal to keep the CPU usage uniform.
    But, this becomes more complex in connection pool environments. In connection pool, connections are created at an accelerated pace. PMON updates the listener with Load Balancing Advisory data every 3 seconds or so, and if the connections arriving within that 3 seconds, then the listener does not get correct LBA and So, the listener might redirect the connection to the node already heavily loaded. You could control the this damage by introducing delays between the connection pool logins in such a way that PMON has enough time to update the listener.
    Even then, In theory, you could have imbalanced CPU usage. For example, let's say that application created 50 connections to instance 1 and 50 connections to instance 2. Now, some part of the application is going to have more CPU usage, then the others. If accidentally, all those connections borrowed by those CPU intensive components, are from one instance, then CPU usage will be higher. I guess, what I am saying is that connection pools do not know underlying instance load and might not distribute the workload.
    I will ask the question differently. Were you able to identify exactly what is causing the increased CPU usage in the heavily loaded node? Are you sure that it is the application? If yes, you could potentially configure more services so that you can differentiate the CPU usage at the service level.
    Now, the ultimate question is, do you see this imbalance causing performance issue?
    Hope this helps,
    Cheers
    Cheers
    Riyaj Shamsudeen
    Principal DBA,
    Ora!nternals - http://www.orainternals.com - Specialists in Performance, RAC and EBS
    Blog: http://orainternals.wordpress.com
    Oracle ACE Director and OakTable member http://www.oaktable.com
    Co-author of the books: Expert Oracle Practices, Pro Oracle SQL, Expert PL/SQL Practice
    Join me: Advanced RAC seminar - see blog.

  • XDOLoader on RAC / Load balancer

    Hi all,
    I'm busy with creating an installation script for installing all kinds of objects.
    There are also some XML Publisher objects that need to be installed trough XDOLoader.
    This installation script has to be dynamic as there are 9 environments that are all 9 in RAC / Load balancing.
    Now the problem is that XDOLoader requires an JDBC connection string and I have to 'build up' is this string in my script.
    Some will propose to use $TWO_TASK for the SID. And yes, that's a good proposal, but as I'm on load balancing the $TWO_TASK environment variable does not contain an SID...
    Also the JDBC_URL from the dbc file does not work.
    Does anybody has some experience with using XDOLoader in an RAC / Load balanced environment?
    Or any proposals how to get your JDBC string dynamically builded without using $TWO_TASK ?
    Thanks in advance
    Regards,
    Stijn

    Hi,
    Can you please give me some more information about your setup ...
    Something like ...
    F5/LB --> Apache or OHS --> WebLogic Cluster..
    If you are using F5/OHS directly to WebLogic cluster you can try enabling the session persistence and this problem should go away..
    If you are using plain Apache or OHS try putting "DynamicServerList" off.
    Let me know something more about setup so that i can contribute to help ..thanks.

  • Hypothetical RAC load balancing question

    Im trying to get a better understanding of RAC. Suppose I have the following tnsnames entry on Client1:
    DEV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dev010.net)(PORT = 1795))
    (ADDRESS = (PROTOCOL = TCP)(HOST = dev020.net)(PORT = 1795))
    (LOAD_BALANCE = yes)
    (FAILOVER = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dev1)
    (failover_mode=(type=select)(method=basic))
    dev010.net and dev020.net are two nodes that I am trying to balance the connection from Client1 to.
    dev010.net and dev020.net have the following listener.ora configurations respectively:
    LISTENER_DEV1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dev010.net)(PORT
    = 1795))
    SID_LIST_LISTENER_DEV1 =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/ora92)
    (PROGRAM = extproc)
    (SID_DESC =
    (ORACLE_HOME = /oracle/ora92)
    (SID_NAME = dev1)
    LISTENER_DEV2 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dev020.net)(PORT
    = 1795))
    SID_LIST_LISTENER_DEV2 =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/ora92)
    (PROGRAM = extproc)
    (SID_DESC =
    (ORACLE_HOME = /oracle/ora92)
    (SID_NAME = dev2)
    Question: since 'lsnrctl services' shows LISTENER_DEV1 and LISTENER_DEV2 are registered with services dev1 and dev2 respectively, how do I load balance Client1's connection between the two nodes if its service name is set to dev1?
    Can you set up RAC with some sort of master listener?
    Im new to RAC, so any help would be appreciated.

    Try this:
    LISTENER =
      (ADDRESS_LIST =
            (ADDRESS =
              (PROTOCOL = IPC)
              (KEY = DB1.WORLD)
            (ADDRESS=
              (PROTOCOL = IPC)
              (KEY = DB1)
            (ADDRESS =
              (COMMUNITY = MYRAC.WORLD)
              (PROTOCOL = TCP)
              (HOST = )
              (PORT = 1521)
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = DB101)
          (ORACLE_HOME = /oracle/Ora92)
        (SID_DESC =
          (SID_NAME = DB102)
          (ORACLE_HOME = /oracle/Ora92)
      )

  • Rac load balancing

    Hello,
    I am preparing to deploy RAC on oracle 10gr2 and I am considering availabe load-balnce and failover options. There is something I haven't clearly understand after reading some docs. I have a java application which connects to database through c3p0 connection pool - if I would not implement FCF neither TAF in this app, but enable server side load ballancing - will my connections be balanced ?
    thanks

    Check the Oracle Metalink Notes.
    Note:226880.1 - Configuration of Load Balancing and Transparent Application Failover
    Regards,
    Sabdar Syed.

  • RAC load balancing advice

    Hi guys,
    I’m in process of creating services for our RAC databases to ensure the system resources are efficiently utilized. Below is some info about my environment.
    2 node rac. 7 databases ,V11.2 and 10.2 ,system users: developers, testers
    Goal: to distribute the load as much as possible no prioritization is needed and all users have same SLA.
    I’m thinking of having one service for every database with following characteristics:
    Connection load balancing:=long (default)
    DBMS_SERVICE.GOAL=GOAL_THROUGHPUT
    Preferred instances: node1, node2
    Is thats the most efficient way of doing it?
    thanks

    user9198889 wrote:
    have seen people having around 20 db's across massive 2node rac. Sorry - I'm hard pressed to call 2 nodes, massive. :-)
    i guess the main reason behind this is oracle licensing fee, they cant afford having 20 smaller set of physical rac.... maybe its the hardware and maintenance cost too. I will dispute all those points. Especially the hardware cost side - as one wants the "+most bang for a buck+" from one's h/w investment. This can only be achieved by correctly utilising the h/w. Running multiple database instances on a single h/w platform like that, is everything but effectively utilising the h/w.
    To clear my doubt about the load balancing, do you approve service configuration which I mentioned above? Or that there are still better ways of distributing the load. I would need some very sound and very valid reasons for running 2 database instances on a single server, never mind running multiple RAC database instances on the same set of servers.
    If the intention is something along the lines of a RAC cloud - let's say 32 servers as a single cluster with Oracle RAC installed on each. Running 10 distinct RAC databases. 1 instance per server. And have the ability to distribute the available cluster nodes between cluster databases (e.g. 12 instances for RAC DB1 and 2 instances each for RAC DB2 to DB10, with the ability to reduce DB1 to 5 instances and allocate those nodes to another instance, etc).
    That is by far a more sensible approach than run multiple RAC instances per single cluster node.
    PS: if i was to add 3rd node to my cluster, i wouldnt have 3 smaller SGA's per every db, i would go for 2 large 2sgas per every db, for exmaple
    DB1 runs on node1,node2
    DB2 runs on node2,node3
    DB3 runs on node3,node1 This is still wrong. A single SGA is better ito scalability and performance than 2 SGAs.
    H/w is also cheap. The typical cost of a blade server for a cluster ranges from $2,000 to $8,000 - depending on how many CPUs and cores and memory you want per blade server.
    If you cost the cluster ito performance and capability, then it will be cheaper adding another server blade to the cluster, than to create another RAC instance to be run on an existing cluster, forcing blade servers to run multiple instances each.
    RAC architecture is scaling a single database across multiple servers. That is it. As simple as that.
    RAC architecture is not about using a single server and scaling multiple databases on it.
    So think carefully of WHY you want to do this.. as there are more than likely not one sound technical reason to justify this - which means you need exceedingly good business/environment reasons for violating the basic concept of RAC scalability.

  • 9i RAC Load Balancing

    I need some advice for this.
    INTRO:
    I got 2 instances of a 9i RAC registered with each's listener via REMOTE_LISTENER parameter but I am not sure if there is any load-balancing being done among these 2 instances. I am using Dedicated server configuration for my RAC.
    QUESTION:
    Does the server-side load-balancing feature for 9i RAC requires Shared Server configuration or can Dedicated Server configuration achieve the same results?
    Thanks

    It wokrs with either one. Compile the java code below (changing the appropriate parameters, of course) and you should see connections to different instances on a fairly regular basis.
    Steve
    import java.sql.*;
    import javax.sql.*;
    import oracle.jdbc.driver.*;
    class testLoadBalance{
    public static void main(String args[]) throws ClassNotFoundException,
    java.lang.InterruptedException {
    try {
    DriverManager.registerDriver(new OracleDriver());
    java.util.Vector v = new java.util.Vector();
    int i = 0;
    //Create a vector of connections to the database
    try {
    while(i < 10) {
    i++;
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@simp","system","manager");
    v.add(conn);
    catch(Exception ex) {
    System.out.println(ex.toString());
    //What are we on?
    try {
    while(i < v.size() - 1) {
    i++;
    java.sql.Statement stmt = ((Connection)v.get(i)).createStatement();
    ResultSet rset;
    rset = stmt.executeQuery ("SELECT host_name,instance_name FROM v$instance");
    if (rset.next()) {
    System.out.println("You are currently on " + rset.getString("host_name") + "...");
    catch(Exception ex) {
    System.out.println(ex.toString());
         //clean up connections
    try {
    while(i < v.size() - 1) {
    i++;
    ((Connection)v.get(i)).close();
    catch(Exception ex) {
    System.out.println(ex.toString());
    catch (Exception err) {
    System.out.println(err.toString());

  • Question RAC load balance with app

    Hi there,
    How RAC help load balance the database if most of my applications connection use JDBC with specific IP or hostname. I'm using JDBC:thin client and not OCI.
    Is there configuration that allows the application without specify the hostname? If I SQLPLUS, I can logon to the database with username/password and SID. I know the connection is going through Oracle Net with the tnsnames.ora file.
    Thanks

    Hi,
    Thin JDBC supports multiple specifications for connection url. You can refer to this document http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/urls.htm#BEICDECB for more information.
    --romas                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Oracle Portal Load Balancing question

    Our customer wishes to have multiple Oracle Application Servers running Oracle Portal, with load balancing. They would like to have Web Cache collocated with one of these Portal servers, operating as a load balancer for the Portal servers (including the one collocated with Web Cache). Our understanding is that this is not supported, since Web Cache must use the same port number as the destination server it is load balancing, and this is a problem with collocation. The alternative of using mod_oc4j load balancing by OHS is we understand not supported for Portal. The customer does not wish to use external, hardware load balancers, or operating system load balancing. We understand that the solution is to use Web Cache on a dedicated separate server, to load balance the Portal servers. Can you please confirm that, or is collocation possible to avoid the cost of the dedicated Web Cache server.
    thanks,
    Message was edited by:
    user582458

    <<
    We understand that the solution is to use Web Cache on a dedicated separate server, to load balance the Portal servers. Can you please confirm that, or is collocation possible to avoid the cost of the dedicated Web Cache server
    >>
    You are right .. if the client does not want use load balancer you have no other choice.

  • Oracle Weblogic Load Balancing/Clustering

    Can anyone tell me what the recommendation from Oracle is on how to best set up load balancing?
    We currently use the configuration.properties file to identify the 2 servers we load balance.  We will be implementing additional servers in the near future and we were wondering if this is the best way to load balance 4 or more weblogic servers or if there is some other way.
    We set up one cluster address to utilize these servers and use a separate hardware load balancer device.
    HRDEV\webserv\hrdev\applications\peoplesoft\PORTAL.war\WEB-INF\psftdocs\hrdev\configuration.properties
    # To enable jolt failover and load balancing, provide a list of application server
    # domains in the format of;  psserver=AppSrvr:JSLport,...
    # For example:  psserver=SERVER1:9000,SERVER2:9010,SERVER3:9020

    As this is peoplesoft specific configuration
    Please try positing here:
    https://community.oracle.com/community/oracle-applications/peoplesoft_enterprise/peoplesoft_general_discussion?customTheme=otn
    Best Regards
    Luz

  • RAC Load Balancing Issue

    Experts,
    We are using 9i RAC database(2 Nodes). Our Problem is Node1 is not getting too much connections,
    but node2 is getting too much connections.
    Difference between these two is around 400
    example
    Node1 ---> 70
    Node2 ---> 465
    How i could solve this issue?
    Thanks
    R.Sundaravel

    It depends on how you have defined Load Balancing.
    If you have client-side load balancing (e.g. with LOAD_BALANCE=ON in the tnsnames.ora file), it is the client(s) that decide which node to connect to. If you have server-side load balancing (e.g. with the database instances and listeners cross-registered such that the database instance PMON update both listeners), the listeners would be able to redirect client connections to the "less loaded" node.
    Hemant K Chitale

Maybe you are looking for

  • XDOXSLT in RTF Templates

    I have a few questions regarding the xdoxslt functions in RTF template making. I've been using the Report Designer's Guide here: http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T421739T481158.htm It says <?variable:name?> declares local or glo

  • How can i get the maximum salary first in the order of ascending

    Hi, How can i get the maximum salary first in the order of ascending. I need the sql query. my output should like: Emp_Name Salary A 5000 SS 100 AA 300 DD 700 WW 2000 Thanks, MuthyaM.

  • CONVERT_ABAPSPOOLJOB_2_PDF  // PDF in email attachment

    Hello all, i have z report program that line-size 132 that write abap list (Write: / .....). 1-Calling FM GET_PRINT_PARAMETERS, to print 2-Calling FM JOB_OPEN, to get job name and number 3-Calling my z-report program     SUBMIT /sym/bb_q_perg01      

  • On my iPad 2, how can I verify a secure (SSL, TLS) connection?

    After performing a search with the Google Search app and clicking on one of the "result" hyperlinks, I've just made an online purchase from my iPad 2.  Soon as I committed to the transaction, I began to look around for some indication that the Google

  • How to manually create a Report Layout using Crystal

    I am trying to create a new layout using Crystal for my Statements using BP Aging .  the out of the box Crystal report for that will not work and it would be easier if i just decide what tables I want to look at.  The problem is i am not sure how to