JDBC URL for Two Oracle Nodes

Hi All,
I have two DB nodes which are running independently (Mean no RAC), I want to configure JDBC URL for these nodes that if one node goes down my application automatically connected to second one.
Both nodes have different HOST and SID.
Regards,
imran

Hi jwenting,
I tried following URL in PL/SQL developer and my fail over is working fine with separate nodes, Only thing i did was i keep SID of both nodes with same name.
ERS=(DESCRIPTION=(FAILOVER=on)(LOAD_BALANCE=off)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=172.21.5.130)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=172.21.5.133)(PORT=1521)))(CONNECT_DATA=(SID=orcl)))
But strange when i connected this through JDBC URL like following it gives me error of invalid URL
jdbc:oracle:thin:@(DESCRIPTION=(FAILOVER=on)(LOAD_BALANCE=off)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=172.21.5.130)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=172.21.5.133)(PORT=1521)))(CONNECT_DATA=(SID=orcl)))
Regards,
imran

Similar Messages

  • JDBC URL for Two Oracle Nodes with different SID

    Hi All,
    I have two DB nodes which are running independently (Mean no RAC), I want to configure JDBC URL for these nodes that if one node goes down my application automatically connected to second one.
    Both nodes have different HOST and SID but the tables i am going to access have same structure. we are using this DB for some logging purpose that's why we didn't choose RAC option.
    Regards,
    imran

    For RAC database, I used:
    jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=port))(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=port)))(CONNECT_DATA=(SERVICE_NAME=servicename)))
    For non RAC database you could ommit LOAD_BALANCE setting, and set correct hostname & port for both nodes. We connected using common service name. If your databases have different service names, then the SID will have to be part of ADDRESS somehow - maybe (SID=sid).
    I have to mention though that unless the main reason behind your decision was lower cost without RAC (and you don't need to store any information apart from logs), it was a wrong decision. If you decide to store any additional information in the database for whatever reason (new requirements), you are in trouble.

  • Jdbc url for yahoo finance

    Hey guys,
    Can anyone please help me find out what is the JDBC url for Yahoo Finance Database that stores the values of the historical stock quotes . I desperately need it for my java application in which I require to access the database in order to get the high, low, open, close quotes of a stock index. Any help would be greatly appreciated.
    Thank you,
    Vivek

    Hi!!
    The URL to the database on the yahoo webpage is http://chart.yahoo.com/d . If you go to that link then you will be able to access the database and do a search on it.
    Please reply. Any help will be greatly appreciated.
    Thank you,
    Vivek

  • Can't use JDBC URL for multiple LDAPs

    ColdFusion 8,0,1,195765 Enterprise (Trial)
    We use Oracle OID (LDAP) instead of tnsnames.ora to resolve database connection strings. This is how I specify one LDAP JDBC URL. On the CF admin page, Server Settings, Java and JVM, ColdFusion Class Path is set to C:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar. Under Data & Services, Data Sources, create a new source. Set JDBC URL to
    jdbc:oracle:thin:@ldap://mdaoid1.mycompany.com:389/mdad2,cn=OracleContext,dc=mycompany,dc= com
    where mdaoid1 is one of the two Oracle OID servers that resolve connection strings, and mdad2 is an entry in the two OID's sync'ed to each other. That works.
    According to many sources based on Google search for "space separated LDAP URLs", I should be able to add another LDAP server separated by space. Now I append " ldap://mdaoid2.mycompany.com:389/mdad2,cn=OracleContext,dc=mycompany,dc=com" (no quotes, added to indicate leading space) to that string. Upon clicking Submit, I get
    Connection verification failed for data source: orcl10g3
    java.sql.SQLException: For input string: "389 ldap:"
    The root cause was that: java.sql.SQLException: For input string: "389 ldap:"
    (orcl10g3 is the CF data source name I'm creating) Some say I need to replace space with %20 in the double LDAP URL. With %20, I get error
    Connection verification failed for data source: orcl10g3
    java.sql.SQLException: Io exception: JNDI Package failurejavax.naming.InvalidNameException: Invalid name: mdad2,cn=OracleContext,dc=mycompany,dc=com ldap://mdaoid2.mycompany.com:389
    The root cause was that: java.sql.SQLException: Io exception: JNDI Package failurejavax.naming.InvalidNameException: Invalid name: mdad2,cn=OracleContext,dc=mycompany,dc=com ldap://mdaoid2.mycompany.com:389
    Question: How do I add more than one LDAP server to the JDBC URL so I can achieve failover and load balance?
    Yong Huang
    yong321 at yahoo.com

    The message above was posted by me two years ago and was brought to my attention today. Here's a short update: The network team added a load balancer mdaoid in front of, and resolved to, mdaoid1 and mdaoid2 (in round-robin fashion). The problem described in this thread is bypassed because the JDBC URL can simply use one-OID format, in which mdaoid is used as the LDAP server.

  • Opening OEM for two Oracle 11gR2 Databases in the same web browser automatically log out.

    Hi to everyone,
    I have an issue regarding Oracle Enterprise Manager in 11gR2. I have two database (SWPROD, PDPROD) in a single server. When I open the OEM URL for  SWPROD it is successfully logged on but when I open the OEM URL for PDPROD and successfully logged on the other tab for SWPROD will automatically logged out. And when I switch to the other tab for PDPROD it is also automatically logged out. Both OEM URL is open in a single web browser like Mozilla Firefox. What would be the reason why both OEM URL will be logged out when I open them at the same time?
    Thank you for your incoming response.

    Well it seems the only way to clear these out of EM was to shut BOTH RAC nodes down and power them up one at a time.  Now the updates aren't shown as required and my compliance score is where it should be.
    Is this a bug ?  Seems pretty stupid to have to shut down both RAC nodes to fix this.  Powering a single RAC node off and back on did not clear this.
    Unless i'm missing something??

  • JDBC Driver for Personal Oracle 7.0

    I have Personal Oracle 7.0 setup on my PC. I need to install JDBC driver for it. Where Can I get it? Thanks.

    www.oracle.com

  • How should I write HANA JDBC URL for windows authentification?

    Hi,
         I got a HANA configured windows AD authentification, which already be tested successfully on HANA Studio.
         Now my app want to use JDBC to establish a HANA connection, but I have no idea how to append the parameter at the end of the JDBC URL.
         Could someone help me?
    Thanks
    Spring

    Hi Spring,
    The URL format is
    jdbc:sap://hostnameorip:portnumber
    Portnumber is 3<instancenumber>15 -> for a instance 01 should be 30115.
    The class is com.sap.db.jdbc.Driver found on ngdbc.jar library (This don't come with Studio, get it on  SAP HANA Client)
    Regards, Fernando Da Rós

  • URL for Free Oracle Linux DVD ?

    hi,
    can you provide me the URL where i can request for Free Oracle Linux DVD ? i am new to oracle /unix
    thanks in advance

    Hi,
    See http://www.oracle.com/webapps/dialogue/dlgpage.jsp?p_ext=Y&p_dlg_id=5659298&src=5634329&Act=44 for form to request free Oracle Unbreakable Linux DVD.
    Regards,
    ...

  • One lieneter for two oracle homes?

    Hi
    If I have two Oracle Homes on the same servers (say, 10.2.0.4 and 10.2.0.5), do I need to configure two listeners (one for databases of each Home) OR one listener (from the higher version Oracle home probably) will be good enough? If one listener is enough, is there special configuration for such case?
    Best regards

    user130038 wrote:
    Hi
    If I have two Oracle Homes on the same servers (say, 10.2.0.4 and 10.2.0.5), do I need to configure two listeners (one for databases of each Home) OR one listener (from the higher version Oracle home probably) will be good enough? If one listener is enough, is there special configuration for such case?
    Best regards
    No, the listener from the most recent release would be sufficient for all the databases running on the machine.
    Aman....

  • How to use one URL for several Oracle AS?

    Hi folks,
    how do I use one URL to access several application servers (i.e. for different applications).
    Example:
    We have one URL:
    www.test.com
    In our DMZ, wie have three application servers and one web cache:
    test1.intranet.com:7777
    test2.intranet.com:7777
    test3.intranet.com:7777
    webcache.intranet.com:8000
    One application server is no problem. In Web Cache, i just map site www.test.com:443 to AS test1.intranet.com:7777.
    But what is the correct setting, to access all three Oracle AS over one URL? I tried URL PATH Prefix. Then i am able to access all three Oracle AS, but the application server does not know the Path.
    Example for mapping:
    www.test.com:443/server2 -> test2.intranet.com:7777
    When I access www.test.com:443/server2, I get redirected to the correct AS (test2.intranet.com:7777), but the Oracle AS does not know the path /server2.
    How do I have to configure the Oracle AS?
    Thanks in advance and best regards.

    I setted up a proxy and at first glance,
    it works fine. The problem are internal links. Some links redirect to the
    machine name, which is of course not accessible from outside our dmz.
    My httpd.conf entries:
    ProxyPass /test1infra/ http://test1.intranet.com:7777/
    ProxyPassReverse /test1infra/ http://test1.intranet.com:7777/
    ProxyPass /test1mid/ http://test1.intranet.com:7778/
    ProxyPassReverse /test1mid/ http://test1.intranet.com:7778/
    When I now access (for example) www.test.com/test1infra/pls/orasso I get
    redirected to www.test.com/pls/orasso, which is another Oracle AS!
    How can I prevent my OracleAS doing this? It has to "know" that all its internal urls need a url path prefix.

  • Options to change jdbc adapter for multiple server nodes without flag in db

    Due to load, we are about to add a new server node for additional J2EE memory within XI.  Reading the notes and discussions about this, it is apparent that the server nodes don't distinguish between themselves in terms of polling.  i.e. If we have a jdbc channel that polls every 24 hours, and you have 2 server nodes, it polls twice at the approximate same time every 24 hours.
    Question I have is how have people got around this issue where you cannot update the information to say that the data has been read.  i.e. Our scenario is reading the complete table contents every day and sending all information to another system.
    Hence, if we have 2 server nodes, we will execute this message twice.  When we add a 3rd server node, we will have 3 messages sent at the same time per day.
    One complicated option (I think) is to use an application client on XI to schedule a job which calls an ABAP Proxy on the integration client which starts off a ccBPM which in turn reads the database hence single threading this process.
    Anyone got any sensible ideas?
    Regards,
    Matt
    ps. Ignore the obvious design flaws with this approach as there is no other option in this scenario due to restrictions in the end system.

    Hi Matt,
    Extending Bhavesh's point, and assuming the receiver system is SAP, then why not schedule your calls on the receiver system, as the consumer of the data.
    The report name and optionally a date range can be written from the RFC via XI to a separate table in the database. The select statement can join the table to the existing view. The update statement can update the new table as your source table or view is obviously out of bounds.
    The advantage of this approach is that it results in a classic request response where XI is transparent.
    We are planning to do something very similar in our own project.
    Best Regards,
    Bill

  • JDBC url  for orcale repository

    Hi,
    I want to connect an oracle  repository as my data server.
    By giving the following url "jdbc:oracle:thin:@<server>:<port>:<service_name>" I can connect to the database of the repository.
    The database has more than one repository and what should I add to the url above to read only the repository I want.    
    SAP MII server 12.2
    oracle 9i
    Rgds,
    Arun
    Edited by: arun kurup on Dec 1, 2011 10:08 PM

    Hi
    jdfbc driver: oracle.jdbc.driver.OracleDriver
    ServerURL:   jdbc:oracle:thin:@host:port:SID

  • JDBC Url for connecting SQL Server Alias name

    Hi All,
    I am having a SqlServer Databse Instance for that we have created "alias name".
    i am unable to connect to that particular alias name.
    please can any one though light on this plz.
    Edited by: mahesh512 on Jun 17, 2009 6:48 PM

    If i am geussing right, you mean that you have created a TNS Name for your Database Server.
    If you are accessing it from your DB Client via the TNS name, maybe the CLient is configured to contact a TNS Server to retrieve the IP if the server.
    Your JDBC Driver does not do that. Either use the IP of the DB Server or provide a Source for the Driver to look up the IP via the TNS Name.
    How this is accomplished deplends on your Database.

  • Need a jdbc driver for tomcat - oracle

    i have tomcat 6 and oracle forms 6i
    i need a driver
    where can i get it from & how do i install???

    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html

  • Jdbc urls and when does load balancing and failover work?

    I you use a jdbc url with OracleDriver not OracleDataSource because we use dbcp for our connection pooling. What can we expect by putting in two connection descriptors one for each host when an 11g RAC node goes away?
    I know all about ONS and FCF etc but when you are not using OracleDataSource and friends what benefit is there is having mulitple hosts in the jdbc url?
    What is that recognises the other host in the jdbc url when a RAC node goes away? Is that integral to OracleDataSource or anything outside of OracleDriver?
    right now we only have one HOST = in your jdbc url but I'm not sure how we would benefit by adding the second if we are not using OracleDataSource.

    Best I can suggest - step up and become the expert.
    You are dealing with RAC which most people do not have and do not use (based on postings I have seen) so you already have that advantage.
    The dbcp pool doesn't mean anything since it just acts as a wrapper around the Oracle driver.

Maybe you are looking for

  • Is it possible to Configure TDS  for Customer

    Dear Experts              pls consider this as an example 1.customer invoice  f-22       customer a/c dr 18000       Tds a/c          dr 2000              to                 sales a/c               20000 2.At the time of incoming payment f-28        

  • Load order

    In AS3 I am loading 2 images where I want 1 image to be on top of the other. Waht I am doing is loading 1 image and when that is loaded load the other. I prefer to set a Z-order depth . I use a atChildIndex? IntroCanvas=IIntroCanvas;              img

  • SUIM RSUSR010 does not return completed list of t-code.

    All, I have a problem using SUIM. 1. running for Transactions -> Executable fro role (RSUSR10) The result does not match the list of S_TCODE of PFCG.  I checked the OSS note and applied 1283691.  After that, the result got worse as the result is even

  • Customizing colors for the MotifLookAndFeel

    Hello, I am new to look and feels other than the default one. I am supposed to provide an application with a a Motif UI with a specific color scheme (colors of text, backgrounds, menus, etc.). Is there some API to configure Sun's MotifLookAndFeel col

  • UIX JSP equivalent for JSTL 'set'?

    Is there a UIX JSP tag that performs an analogous function to the JSTL tag 'set'? I would like to be able to setup local variables so that I don't have to repeat extended expressions.