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

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

  • CF 10 Load-Balancing with Remote Instances

    I was reading an article on Clustering/LB/HA using CF8, but have not found any updates for CF10.
    Using VM VirtualBox to setup a few virtual servers, I am looking to setup a load balancing of ColdFusion 10 on 2 remote instances. The goal would be have ColdFusion Cluster Manager be able to point http request to one of the two servers based on load/availability. Not really having a hardware cluster/failover setup, just managing resources on two CF instances instead of a standalone.
    The servers are Windows Server 2008 R2 with IIS7.5 and ColdFusion 10 Enterprise on installed on 3 of these machines. Let's call them CF-LBManager, CF-Web1, and CF-Web 2. In the CF Docs, they show the Cluster Manager adding the local CF instance and "if you want" a remote instance. However, this scenario would require the main instance to be running and not fail for it to direct to the other instance.
    I am trying to set this up now with CF-LBManager as just a manager of the requests coming in. In the Enterprise Manager >> Instance Manager, the local instance is shown and I add the two remote instances with the correct Remote Port, JVM Route, etc. I also made sure the <Cluster>...</Cluster> block was added to the two remote instances (CF-Web1 and CF-Web2) \runtime\conf\server.xml file too, Jetty Services also is running. Now under the Enterprise Manager >> Cluster Manager I add the two remote instances to the cluster, not the local instance on CF-LBManager with Multicast Port and Sticky Sessions enabled. On Submit, I get a green message "You must restart all the server instances and any configured webservers for these changes to take effect.". I go ahead and reboot the servers and come back.
    I now browse to the ColdFusion page as a test on CF-Web1 and CF-Web2 to make sure CF is running properly, they do. I then browse the IP of the CF-LBManager, however it only returns the local IIS web site and not redirect to one of the two cluster members. I am not seeing any message on the coldfusion-out.log on the remote instances. Am I not setting this up correctly or not enabling the Cluster Manager to take over and pass along the requests to those in the cluster?

    Unfortunatley I don't have a lot of experience with CF10 on Windows, but if you are running CF behind IIS I think  you will need to update the Tomcat connector configuraiton to do load balancing. I'm not sure if re-running the wsconfig tool on all of the servers will do this or not, but that is what I would suggest trying first. If that doesn't work you will need to update the Tomcat connector configuraiton manually. You can find more information on load balancing with the Tomcat connector here: http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html.

  • 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

  • Hardware load balancing with session stickiness

    Hello,
              We are looking for a hardware based solution to load balance 4
              unclustered weblogic servers. These servers are software replicas of
              each other and share a common database. We need a solution that
              provides session level server stickiness based on jsessionid as both a
              cookie and url rewrite. Currently we have Cisco load balancers which
              do not handle the url rewrite due to the fact the the load balancer
              only "sees" what is after the question mark in the url and the
              jsessionid is before the question mark. Example:
              http://somehost.com/some/url.jsp;jsessionid=26D5C566075663ABD8E17AD255974323?parm=value
              I'm sure we are not the only ones trying to do this. Any suggestions
              would be greatly appreciated.
              Thanks,
              Alan George
              

              Having worked on Cisco load balancer and WLS clustered, you would loose sessions
              when the requests are failed over.
              S
              "Shawn Kircher" <[email protected]> wrote:
              >
              >Has anyone got this type of scenario working where you load balance sticky
              >sessions
              >from a Cisco load balancer between non-clustered weblogic servers?
              >
              >Thanks,
              >
              >Shawn
              >
              >"Aravind Krishnasamy" <[email protected]> wrote:
              >>F5 or BigIp provides hardware level load balancing and it injects date
              >>inside weblogic cookie and maintains server affinity.
              >>Thanks
              >>Aravind
              >>"ageorge" <[email protected]> wrote in message
              >>news:[email protected]...
              >>> Hello,
              >>>
              >>> We are looking for a hardware based solution to load balance 4
              >>> unclustered weblogic servers. These servers are software replicas
              >>of
              >>> each other and share a common database. We need a solution that
              >>> provides session level server stickiness based on jsessionid as both
              >>a
              >>> cookie and url rewrite. Currently we have Cisco load balancers which
              >>> do not handle the url rewrite due to the fact the the load balancer
              >>> only "sees" what is after the question mark in the url and the
              >>> jsessionid is before the question mark. Example:
              >>>
              >>>
              >>http://somehost.com/some/url.jsp;jsessionid=26D5C566075663ABD8E17AD255974323
              >>?parm=value
              >>>
              >>> I'm sure we are not the only ones trying to do this. Any suggestions
              >>> would be greatly appreciated.
              >>>
              >>> Thanks,
              >>>
              >>> Alan George
              >>
              >>
              >
              

  • Load Balancing with BigIP / SSL question

    I have an oddball question. We're load balancing ColdFusion
    MX7 across 3 servers using a BigIP load balancing server. We
    decided to go the hardware approach and it has been great except
    for one small configuration issue.
    We use a mix of SSL and non SSL pages, prior to the switch
    from a single server to a load balanced setup I used to script that
    would determine if a page that was supposed to be SSL had the
    variable CGI.HTTPS turned on or off. If it was off, the page would
    redirect back to itself with the SSL turned on.
    The problem we have is that we followed BigIP's instruction
    to secure the load balancing hardware instead of the three servers
    running behind it. So what happens is that the traffic goes to the
    load balancer port 441, but then the calls from the load balancer
    to the individual servers is port 80. So even if a page is called
    as HTTPS://... the coldfusion server says that CGI.HTTPS is "off"
    since the traffic is port 80.
    This isn't much of a problem, our SSL pages are linked as
    HTTPS:// and the only problem would actually arise if someone was
    to type in the URL and call it as HTTP rather than HTTPS.
    My questions is this, does anyone know of a way that I can
    detect if the page should be HTTPS and is not without changing our
    configuration and putting SSL certificates on each individual
    server?

    Hey,
    Well the load balancing with the BigIP device is really very
    amazing. I think
    what i liked most was swapping out servers when their lease
    was up, through the
    BigIP manager I just stopped all traffic to a server, shut it
    down, plugged in
    the new one and turned traffic back on. It was really very
    easy.
    The SSL stuff still gives me a headache to think about. but
    I should mention I
    no longer work where I was, plus now I'm all .net C# but
    that's a different
    story.
    I think if I was going to do this all again I would not have
    secured the bigIP
    unit. It was nice to buy one SSL cert for all the servers I
    attached rather
    than one per server, but getting the SSL sites to work
    properly was a headache.
    We also use windows file replication where now I would go
    with like a pair of
    Dell MD1000's mirrored for storage and just have tons of ram
    and cpu on the
    front end units. Depends what you want to spend I guess. I
    think the bigIP unit
    we bought was like 20 grand, i think they are cheaper now
    though.
    Hope I helped.

  • Load Balancing With Round Robin

    Hi,
    I have two iAS instances, each on their own box, and one iWS instance
    running on a third box. I have setup the web connector to use round
    robin and added the server weights. I believe that is all that is to it
    to do simple load balancing with iAS. The problem is is that the
    requests only go to one iAS instance. The server weights are 1 and 1.
    Am I missing something here?
    Thanks

    Could be lots of things.
    The most common misconfiguration is testing an application that is deployed "local". This application option effectively disables load balancing.
    Another common mistake is to either not update the configuration of the webconnector (if the webconnector
    has a seperate configuration LDAP) or to not restart
    the webconnector after the configuration change.
    Hope this helps. There's more things we could try, but I'll hope its one of these two easy things.

  • Load balancing with A-Gate

    Hi All,
    I wish to configure my single W-Gate (Linux) to load balance with 2 A-Gate (Window). Can anyone help?
    Regards
    Lauran

    Hello Lauran,
    I'm assuming that you already have the ITS working with one AGate server.  To load balance between two you need to install the ITS AGate again on the second server with the same ITS instance name.  Then on the WGate server you will need to modify the ItsRegistryWgate.xml.  Under the <key name="Instances"> you will find a section already for this ITS instance name, like ITS1.  You will need to copy and paste the Agate1 section and make it Agate2, change the Host name and the PortAGate and PortMManager and then save and restart.  The finished section should look like:
    - <key name="ITS1">
    - <key name="Values">
      <value name="Available" type="text">yes</value>
      <value name="Name" type="text">ITS1</value>
      <value name="DocumentRoot" type="text">c:\its1081</value>
      <value name="ServerName" type="text">Apache2 (virtual host: default:1081)</value>
      <value name="NIReceiveRetryCount" type="text">0</value>
      <value name="NIReceiveTimeout" type="text">0</value>
      <value name="NISendTimeout" type="text">0</value>
      </key>
    - <key name="Agates">
    - <key name="Agate1">
      <value name="Host" type="text">Hostname1</value>
      <value name="PortAGate" type="text">sapavw00_ITS1</value>
      <value name="PortMManager" type="text">sapavwmm_ITS1</value>
      <value name="Type" type="text">1</value>
      <value name="SncNameAGate" type="text" />
      <value name="SncNameWGate" type="text" />
      <value name="MultiProcess" type="text">no</value>
      <value name="Available" type="text">yes</value>
      </key>
    - <key name="Agate2">
      <value name="Host" type="text">Hostname2</value>
      <value name="PortAGate" type="text">sapavw00_ITS1</value>
      <value name="PortMManager" type="text">sapavwmm_ITS1</value>
      <value name="Type" type="text">1</value>
      <value name="SncNameAGate" type="text" />
      <value name="SncNameWGate" type="text" />
      <value name="MultiProcess" type="text">no</value>
      <value name="Available" type="text">yes</value>
      </key>
      </key>

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

  • PRD with RAC and DR with non-rac datagaurd

    Is it possible to implement production with RAC database and DR with non-rac datagaurd.
    if yes, how does the log shipping happening from different nodes of RAC to one DR node?
    Can anybody answer please?
    Thanks
    Vignesh.

    There is also a very good MAA whitepaper on this szenario:
    MAA 10g Setup Guide: Creating a Single Instance Physical Standby Database for a RAC Primary Database
    http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10g_RACPrimarySingleInstancePhysicalStandby.pdf

  • CSS Load Balancing with Cookies

    We are trying to load balance 2 backend servers hosted on Websphere with advance balance cookies method.
    Restrictions
    ServerA is unable to accept cookies generated from ServerB.
    ServerA and ServerB are generating random cookies
    Unable to modify cookie string with a constant.
    How can we load balance based on cookies considering the above restrictions?
    We have attempted to do hash based load balancing with cookies but the problem we run into is the servers do not accept cookies generated from another server.
    The configuration we tried is written below:
    service ServerA
    ip address 192.168.10.2
    keepalive type tcp
    keepalive port 80
    active
    service ServerB
    ip address 192.168.20.2
    keepalive type tcp
    keepalive port 80
    active
    content ABC
    url "/*"
    add service ServerA
    string prefix "JSESSIONID="
    advanced-balance cookies
    port 80
    add service ServerB
    string skip-length 5
    string process-length 16
    string operation hash-xor
    protocol tcp
    vip address 172.16.32.1
    active
    Can we change the string prefix to JSESSION instead of JSESSIONID= ?
    The only place the app guys can add a constant string to match on is before the = sign.
    Is it possible for CSS to match on a constant string before = sign e.g below:
    service ServerA
    ip address 192.168.10.2
    keepalive type tcp
    keepalive port 80
    string id567=
    active
    service ServerB
    ip address 192.168.20.2
    keepalive type tcp
    keepalive port 80
    string id123=
    active
    content ABC
    url "/*"
    add service ServerA
    string prefix "JSESSION"
    advanced-balance cookies
    port 80
    add service ServerB
    string skip-length 0
    string process-length 6
    protocol tcp
    vip address 172.16.32.1
    active

    It should work.
    There is no reason for it not to work...
    This is the best method you can have on the CSS for stickyness.
    Get a sniffer trace on the client and server with arrowpoint cookie configured on the CSS and capture a failure so we can see what is going on.
    also send me the config so I can verify everything is ok.
    If you have a service request open with the TAC, you can also give the SR # so I can review what has been done.
    Gilles.

  • Cache and Load Balancing with Oracle APEX Listener

    Hi,
    I intend to use only HTTP access.
    How to implement a Cache and Load Balancing with the Oracle APEX Listener?
    Is it possible to do with the the standalone running APEX Listener?
    Thanks by advance for any tips/documentation/references.
    Kind Regards.

    Hi,
    I think this question is best asked in the APEX Listener forum:
    ORDS, SODA & JSON in the Database
    Kind regards
    Sandro

  • Load balancing with JSP

    Anyone and everyone,
    When configuring load balancing with Weblogic clusters, does load
    balancing take effect for all services or just EJB and RMI? Or another
    way of saying the same thing, can I setup weighted load balancing for
    the JSP engines across 2 weblogic servers.
    Thanks in advance,
    Mike

    The load-balancing documentation you read describing the different algorithms only applies to RMI stubs (e.g., EJB clients). Please see http://www.weblogic.com/docs51/cluster/concepts.html#1026091 for a description of how load-balancing/clustering works with servlets/JSPs.
    The short answer is that in using servlet clustering, most people want/need/use in-memory replication for HttpSession objects. In WLS 5.1 (and before), in-memory replication requires one or more proxy servers be set-up in front of the cluster. Typically, most people use something like BigIP to load-balance
    across the proxy servers and let the weblogic plug-in for the proxy server handle the routing to the cluster. The plug-in uses round-robin until an HttpSession is established for a user, then it always tries to route to the server where the user's session is located.
    Hope this helps,
    Robert
    Brian Lin wrote:
    All,
    I have a quesiton here regarding load balancing with DNS round robin. As of Chapter Adminstration of Clustering Weblogic server, Weblogic can be configured to balance by weight. How about Weblogic handle weight based balancing after DNS round robin ip response? or just can choose one way instead of both?
    What's the big difference between choosing BigIP and software balancing (WL)?
    Brian
    "Wei Guan" <[email protected]> wrote:
    I don't think you can configure this load balancing in weblogic in current
    release. However, if you have Big-IP or LocalDireoctr, you can set up
    weighted load-balancing there. Otherwise, weblogic proxy will use DNS round
    robin to do the load-balancing between JSP engins.
    My 2 cents.
    Cheers - Wei
    Michael Yakimisky <[email protected]> wrote in message
    news:[email protected]...
    Anyone and everyone,
    When configuring load balancing with Weblogic clusters, does load
    balancing take effect for all services or just EJB and RMI? Or another
    way of saying the same thing, can I setup weighted load balancing for
    the JSP engines across 2 weblogic servers.
    Thanks in advance,
    Mike

  • Multihomed eBGP load balancing with 3 ISP's

    We currently peer with 2 ISPs using BGP in an active/failover configuration.  My company wants to move to a 3 ISP model where Internet traffic is split across the 3 providers so that bandwidth is equally distributed on outgoing traffic across our 2 /22 ARIN IP ranges.  This is from our 2 edge switches that have VSS.  
    Within my limited knowledge of BGP, I have determined that we could do load sharing pretty easily by adding multiple default routes and breaking up our /22's into /24 and advertising them that way.  However, I don't think this satisfies the request that downtime must be seamless, should one link drop.  
    Currently, our ISP's advertise default routes.  From the research that I've done, we could get close to load balanced links if we receive full BGP routes and community settings and definitions.  I'm nervous about this because it looks really complicated, and I don't want our AS to turn into a transit AS.  I've been told the same can be accomplished with only partial BGP routes and community settings and definitions.  
    Personally, I think we just need a WAN load balancer.  However, given the request, is there a thread out there that can explain this, or can someone discuss this requested scenario a little bit?  
    Thanks!

    Hi there
    First question would be what is the required reconvergence time for the applications using the Internet? Should an outage occur, when do they lose their state? Once you know that, you then have a target to aim for in terms of recovery
    With regards load-balancing, with BGP we are always talking inbound and outbound.
    The outbound solution is relatively simple - each ISP advertises a default route to your Internet edge router(s). Create an eBGP session from each edge router to the core, advertise the default route and redistribute into the IGP. Ensure the IGP cost to each BGP next hop is equal and you have ECMP for outbound routing.
    Inbound influence is usually via MED (not likely in this case given 3 ISPs), adjusting local-pref in the ISP via BGP EXT communities configured your end, or via AS-PATH prepending for longer prefixes from your /22. Prepending would be simplest, but your unlikely to get an exact inbound traffic split, however a relatively even distribution should be sufficient. 

  • How does load-balancing with WebCache work - is there still a bottleneck?

    Hello,
    We're migrating an old Forms 6i app to 10.1.2.0.2 (apps servers = Redhat Linux), and are starting to consider using WebCache to loadbalance between two application servers.
    My question is this - say we have apps servers A and B, both running Forms and Reports Services. We use Webcache on server A (don't have the luxury of a third apps server...) to load balance between A and B. So all initial requests come into A, which in some cases may then be diverted to start a new Forms session on B.
    For those users whose middle-tier sessions are now running on B - will all network traffic for their Forms session continue to be routed through Webcache on A, then to B, over the course of the session? Or does Webcache somehow shunt the whole connection to be straight between the client PC and server B, for the duration of that Forms session?
    If the former, does that mean that the server hosting Webcache can still be a significant bottleneck for network traffic? Have people found load-balancing with Webcache to be useful..?
    Thanks in advance,
    James

    Hi gudnyc,
    Thanks for posting on Adobe forums.
    For HDPI you do not have to do any It will adjust automatically.
    http://helpx.adobe.com/photoshop-elements/using/whats-new.html
    Regards,
    Sandeep

Maybe you are looking for

  • Menu/Toolbar Display Corruption Upon Resizing Window

    We're experiencing an issue with one of our workstations where when the Adobe Reader X (10.1.3) window is resized, the Menu/Toolbar displays become corrupt and garbled on the screen (see the attached picture). The Toolbar appears on the top, the fram

  • Not found - The requested URL /apex/wwv_flow.show was not found on this ser

    I have a very simple anonymous block (see below) which I am using to test an area of the database I am developing using OE and APEX. Sometimes the block works and other times it fails with the following error message------ Not found - The requested U

  • Only one sound source at the time works.

    Not that long ago things used to be good. Things used to work nice. I was happy. My desktop was happy. Then, at some point during the summer, something went wrong. I can't remember when exactly it happened, but at some point a poison pill came from t

  • User Status change date

    Dear All For an ABAP report , i need to find the table names for date and time of change in the User Status for the Maintenance Order. ( for example from INPR to RETN) I have tried JEST and CRM_JEST tables but couldn't found the correct result. Pl ad

  • Not receiving iCal alarm

    My iCal alarms are being sent (I can see them in my sent folder in Mail), and they are showing up in my gmail account online. However, they aren't showing up in my inbox in Mail, and I'm not having trouble receiving any other emails. What could be th