JDBC connection creation with ORACLE RAC

Hello All,
Here my scenario is when ever one of my VIP instance in Oracle RAC goes down.Weblogic/Java(JDBC) is taking close to 3 minutes for failover with secondary host. I am looking for a solution to reduce the connect time failover seconds..
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=HOST1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=HOST2)(PORT=1521))(FAILOVER=on)(LOAD_BALANCE=off))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=SERVICE)))

Hi,
In such case failover will depend on RAC instead on Weblogic.
Oracle will never recommend such way.
Please try to use Mutli datasource to implement such failover and in older version we have 60 seconds for failover time.
But we can change but adding one Bug (currently not remember).
Regards,
Kal

Similar Messages

  • Connection issues with Oracle-JDBC

    Using the Universe Design Tool in BOE 4.4 to create an Oracle-JDBC connection.
    Issue:  Test Connection fails for JDBC connection to production Oracle database.
    Getting error:
    “DBD: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    IBM AIX RISC System/6000 Error: 2: No such file or directory”
    Things to note:
    There are three entries in the tnsnames.ora file (a prod entry, a dev entry and a test entry).  I can successfully create the JDBC connections for the test and dev entries, but not prod.
    I can go to Designer in another server (our BOE 3.5 server in a different environment) and create all three Oracle-JDBC connections.
    The Oracle middleware is the same between the two servers (11g) and the tnsnames.ora files are identical.
    The prod database is up (it would definitely be known if it were down).
    Very confused on this one.  Any help would be appreciated.

    It appears that the SAP tool “Universe Design Tool” wants to have a fully qualified (host.parent domain.org) Net Service name for this particular connection as I was able to successfully JDBC connect to our production Oracle database.  The other two databases didn't need it and the Oracle SQL Developer (which uses JDBC for connections) didn’t need a fully qualified name for our production server either.  In any case, it appears to be working now.

  • Problem in connecting JSP with Oracle 9i.

    Hi,
    I am having problem in connecting JSP with Oracle 9i.
    I am using windows XP and my JDK version is 1.4. For executing JSP I am using
    "jakarta-tomcat-5.5.4-preconfigured". My database name is global.
    I have set java_home, j2ee_home, oracle_home, path, classpath as follows:
    j2ee_home=c:\sun\appserver
    java_home=c:\sun\appserver\jdk
    oracle_home=C:\oracle\ora92
    path=C:\Sun\AppServer\bin;C:\Sun\AppServer\jdk\bin;C:\oracle\ora92\bin
    classpath=C:\Sun\AppServer\lib\j2ee.jar;C:\oracle\ora92\jdbc\lib\ojdbc14.jar;C:\oracle\ora92\jdbc\lib\nls_charse
    t12.zip
    My code is as follows:
    <%@ page language="java" %>
    <%@ page import ="java.sql.*"%>
    <%
    try
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    Connection conn = DriverManager.getConnection ("jdbc:oracle:oci8:@global", "scott", "tiger");
    catch(SQLException e)
    out.println(""+e);
    out.println("Connected");
    %>
    I tried other program:
    <%@ page language="java" %>
    <%@ page import ="java.sql.*"%>
    <%
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:global","scott","tiger");
    out.println("Connected");
    %>
    I am getting following error:
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 5 in the jsp file: /jsp/oracle.jsp
    Generated servlet error:
    oracle.jdbc.OracleDriver cannot be resolved or is not a type
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Thanking you in advance,
    Anurag

    maneesh108 wrote:
    hi this is maneesh1) Read the thread it has been answered.
    2) The thread is very old. Don't resurrect old threads.
    I'm locking this zombie thread.
    Kaj

  • Sun Fire V490 x 2 servers with Oracle RAC facing Split brain problem

    Hi all,
    I have Sun Fire V490 x 2 servers with Oracle RAC and they faced a Split brain problem. One of the node's database instance has gone down, The DBA claims it is due to network problem, but as such the networks are OK. We use the on board CE1 interface for Cluster interconnect and CE0 as the public interface.
    Did anybody face this kind of a problem? Could this be a hardware/OS patch problem?
    I had kept a continuous ping for 24 hours after this happened last time and the output shows no packet loss
    Many thanks in advance.
    Ushas Symon

    In order to diagnose this properly, you'll need to provide too much detail and far too many log files for a generic discussion forum to handle.
    Use your service contract and open a support case.
    Because a cluster environment is involved you'll likely end up talking to the cluster support staff.
    They can analyze hardware and software errors as well as review whether you configured the systems in a supportable fashion.
    Be prepared to make a direct connection to each system and gather data using such as by using the Explorer tool. The technical support staff will tell you what they will actually need.

  • How to connect java with oracle

    can any body show me the code of how to connect java with oracle database.
    thank you

    To configure Oracle JDBC:
    1. Add Oracle JDBC JAR file classes12.zip or ojdbc14.zip to classpath.
    2. Load and register the JDBC driver.
    Class.forName("oracle.jdbc.driver.OracleDriver");
    3. Obtain a connection:
    String url="jdbc:oracle:thin:@<host>:1521:<database>
    Connection con = DriverManager.getConnection(url,
    "myLogin", "myPassword");
    4. Create a SQL statement.
    Statement stmt = con.createStatement();
    5. Obtain a result set.
    ResultSet rs = stmt.executeQuery(
    "SELECT ...");

  • Error in connecting webdynpro with oracle

    Hi
          while connecting webdynpro with oracle, i am getting this type of error. I imported the classes12.jar file also.
    <b>Error:</b>
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    The <b>coding</b> which i used to connect is as follows,
    Class.forName("oracle.jdbc.driver.OracleDriver");
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              Connection conn = DriverManager.getConnection(
              "jdbc:oracle:thin:@entegdt36:1521:dbserver",
              "scott","tiger");
              pst=conn.prepareStatement("select * from Test");
              rs=pst.executeQuery();
              while(rs.next())
                   res=res+rs.getString(1);
                   wdThis.wdGetContext().currentContextElement().setName(res);
    Please help me to solve this problem.
    It's very urgent.
    Thanks in advance.

    Hi,
    Go to technical landscapes and create a technical landscape for your ECC backend system.
    This should solve the problem.
    Regards
    Bharathwaj.

  • Solaris x86 with Oracle RAC 10g Enterprise Edition Release 10.2.0.3.0

    Hello,
    Maybe you can help me (new on RMAN backup) in doing this.
    I have configured a single Oracle 10g database to have backup with RMAN with following steps:
    1. $ mkdir $ORACLE_BASE/rman_scripts
    2. $ mkdir $ORACLE_BASE/logs
    3. $ mkdir $ORACLE_BASE/tracking
    4. $ mkdir $ORACLE_BASE/c_backup
    5. $ sqlplus sys/<password> as sysdba
    6. SQL> alter system set db_recovery_file_dest_size = 50G scope=both;
    7. SQL> alter system set db_recovery_file_dest='${ ORACLE_BASE}/flash_recovery_ area' scope=both;
    8. SQL> alter system set log_archive_dest_10='location= use_db_recovery_file_dest';
    9. SQL> shutdown immediate
    10. SQL> startup nomount
    11. SQL> alter database archivelog;
    12. SQL> alter database open;
    13. SQL> alter database enable block change tracking using file '${ORACLE_BASE}/tracking/rman_ change_track.f';
    14. $ rman target /
    15. RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK
    TO '/var/opt/oracle/flash_ recovery_area/ORCL/c_backup/% F';
    16. RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
    17. RMAN> CONFIGURE BACKUP OPTIMIZATION ON;
    18. RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    19. RMAN> exit
    I need to configure incremental backup with RMAN on a two node Solaris x86 with Oracle RAC 10g Enterprise Edition Release 10.2.0.3.0 installation.
    We also use ASM to store database files, and have Oracle software installed on separate file systems (two Oracle roots for Node1 and Node2).
    I have following questions:
    1) where to put Flash Recovery Area (FRA)?
    I saw recommendations to put FRA on the ASM, is this the best way to do it?
    2) Can I put FRA on another file system (not on the ASM) which is available only from Node1? This way I can save space on the ASM.
    3) Is it possible/recommended to run RMAN from Node1 only?
    Below is the script used to run RMAN on the normal Oracle database (without RAC) which I need to change :
    =============================================================================================
    2.0 Oracle backup script: /opt/app/oracle/rman_scripts/backup.sh
    Use this for daily backups, possiblly as a cron job.
    Once a week run this: /opt/app/oracle/rman_scripts/backup.sh FULL
    All other days of the week: /opt/app/oracle/rman_scripts/backup.sh INCREMENTAL
    Note: You may have to change ORACLE_SID, ORACLE_BASE below to match your database.
    =============================================================================================
    #!/usr/bin/ksh
    ORACLE_SID=orcl
    ORACLE_BASE=/opt/app/oracle
    ORACLE_HOME=${ORACLE_BASE}/product/10.2.0/db_1
    PATH=${ORACLE_HOME}/bin:/usr/bin
    LOGDIR=${ORACLE_BASE}/logs
    LOGFILE=${LOGDIR}/rman.log
    if [[ $# < 1 ]]
    then
    echo "usage: backup.sh FULL|INCREMENTAL"
    exit;
    fi
    BACKUPTYPE=${1}
    full='FULL'
    incremental='INCREMENTAL'
    if [[ $BACKUPTYPE == $full ]]
    then
    $ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append << eof
    run {
    backup database;
    SQL 'alter system archive log current';
    backup archivelog all;
    delete noprompt obsolete;
    exit;
    eof
    echo ''
    fi
    if [[ $BACKUPTYPE == $incremental ]]
    then
    $ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append << eof
    run {
    backup database;
    backup incremental level 1 database;
    SQL 'alter system archive log current';
    backup archivelog all;
    delete noprompt obsolete;
    exit;
    eof
    echo ''
    fi

    Hi [email protected],
    Q1) where to put Flash Recovery Area (FRA)?
    A1) With RAC: on the shared storage
    I saw recommendations to put FRA on the ASM, is this the best way to do it?
    If you want your backups to be available for both nodes you have to use shared storage or tape using an mml library.
    So if you want to use the FRA for rman backups and the database is on ASM just make ASM the standard for the FRA as well.
    Q2) Can I put FRA on another file system (not on the ASM) which is available only from Node1? This way I can save space on the ASM.
    A2) Than you cannot recover in case Node1 is down. Best would be to send your storage admin to a training course so he can manage the clustered raw devices needed for ASM.
    Q3) Is it possible/recommended to run RMAN from Node1 only?
    A3) No see A2.
    Regards,
    Tycho

  • Unable to connect forms6i with oracle 10g

    hi:
    i am facing a problem to connect forms6i with oracle 10.2 g. i already make a entry in TNSNAMES.ora file in forms folder.
    while i am trying to connect it dispaly "ORA-12203: TNS:unable to conect to destination" error.
    please help. Thanks in advance.
    Regards,
    Abhishek

    Hi
    i already make a entry in TNSNAMES.ora Another option...
    1. Pls Verify that the net service name you entered was correct including no spaces.
    2.Verify that the ADDRESS portion of the connect descriptor which corresponds to the net service name is correct.
    3.Ensure that the destination process (for example the listener) is running at the remote node and the cabel of ur local net work connecting to ur server is well connected and working well.
    4. Test ur local network cabel and try to make the connection to another computer set.
    5.u can check from Start > control panel > administrative tools > services that the service name is started or not if it is Started Restarted or refresh it.
    6. Ensure that the listener is running at the remote node and that the ADDRESS parameters specified in TNSNAMES.ORA are correct.
    and the more ....
    Hope this helps...
    Regards,
    Abdetu...

  • SAP EHP6 Installation Steps with Oracle RAC

    Dear Experts,
    i am looking for step by step guide for SAP ehp6 installation with Oracle RAC. if anyone can help please guide me with the steps or share if any document available
    Thanks

    Hi Wali,
    You can follow below documentation to perform your installation on Oracle RAC.
    http://scn.sap.com/docs/DOC-8835
    This document is very useful for planning the installation and executing the same
    Some other useful documents
    Installation of SAP on RAC with Oracle ASM
    SAP note which needs to be referred for installation
    Note 527843 - Oracle RAC support in the SAP environment
    Hope this helps.
    Regards,
    Deepak Kori

  • Is OCFS2 certified with oracle RAC 11gR2 ?

    Hi,
    Is OCFS2 certified with oracle RAC 11gR2 ?
    Thanks..

    ocfs2 is certified for oracle 11gr2 but oracle recommends using asm. please see this for more information http://download.oracle.com/docs/cd/E11882_01/install.112/e10812/storage.htm#CWLIN262

  • Suncluster with oracle RAC customer

    Hi,
    Are we have any customer reference for suncluster with Oracle RAC.
    Suggestion and recommendation are welcome.
    Thanks in advance,
    karthikeyan.N

    karthikeyan.N
    There are many hundreds customers running this combination, totalling many thousands of nodes. Not all are (or want to be) public references. Some are listed here though:
    http://www.sun.com/third-party/global/oracle/success/index.jsp#s10
    Tim
    ---

  • Issue JDBC connection pool with Glassfish 3.1.2.2 and Oracle XE 11gR2

    Hello,
    I am experiencing an issue with pinging a JDBC connection Pool.
    I installed the following without any warnings or errors:
    Operating System: Oracle Enterprise Linux 5
    Oracle XE 11gR2 (11.2.0.2.0) database
    Glassfish 3.1.2.2
    I will refer to the steps I did after the installations
    1) In the .profile file of the OS I add the following:
    JRE_HOME=/usr/java/jre1.6.0_31; export JRE_HOME
    JAVA_HOME=/usr/java/jdk1.6.0_31; export JAVA_HOME
    GLASSFISH_DIR=/u01/glassfish3
    GLASSFISH_HOME=/u01/glassfish3/glassfish
    DERBY_HOME=$GLASSFISH_DIR/javadb
    OPEN_MQ_HOME=$GLASSFISH_DIR/mq
    PATH=:$JAVA_HOME/bin:$JRE_HOME/bin:$PATH:$HOME/bin:$GLASSFISH_HOME/bin:$DERBY_HOME/bin:$OPEN_MQ_HOME/bin
    export GLASSFISH_HOME
    export DERBY_HOME
    export OPEN_MQ_HOME
    export PATH
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/xe/lib; export LD_LIBRARY_PATH
    . /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
    2) I copied the ojdbc6.jar to the $GLASSFISH_HOME/domains/domain1/lib
    3) I login to the Glassfish admin console and created a new JDBC Connection Pool.
    Pool Name: ds_orasys
    Resource Type: javax.sql.DataSource
    Datasource Classname: oracle.jdbc.pool.OracleDataSource
    User: [myschema]
    Password: [myschema password]
    URL: jdbc:oracle:thin:@localhost:1521:xe
    When I ping the connection pool I get the following message in the server log:
    [#|2012-10-23T12:14:37.069+0300|WARNING|glassfish3.1.2|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service|_ThreadID=22;_ThreadName=Thread-2;|RAR8054: Exception while creating an unpooled [test] connection for pool [ ds_orasys ], Connection could not be allocated because: Invalid Oracle URL specified|#]
    [#|2012-10-23T12:14:37.071+0300|SEVERE|glassfish3.1.2|org.glassfish.admingui|_ThreadID=19;_ThreadName=Thread-2;|RestResponse.getResponse() gives FAILURE. endpoint = 'http://212.205.62.217:4848/management/domain/resources/ping-connection-pool.json'; attrs = '{id=ds_orasys}'|#]
    I tried to use different jar files. I used ojdbc6dms.jar and ojdbc14.jar.
    I also copied the jar files in the $GLASSFISH_HOME/domains/domain1/lib/ext directory as some people suggested. Still no luck. I keep getting the same error messages in the server.log
    Can anybody help me out or point me to the right direction.
    Thank you in advance

    The error is in the URL. It was in front of my eyes and I couldn't see the error. I skipped the ':' before the '@' when I created the pool. It is working fine now.

  • Problem with Oracle RAC with DRCP and persistent connections

    Hello,
    I am having a problem that has me stumped. I cannot get SCAN, and DRCP to work together nicely.
    Right now, I can connect through my scan hostname fine without connection pooling, once I enable it I start having connection time outs. I found if I specified outbound_connection_timeout in sqlnet.ora that it times the connection out to the time I set in there. If I don't set this option I get a "ORA-12170: TNS:Connect timeout occurred".
    The odd thing is I can leave connection pooling on and connect to one of my rac instances individually and it doesn't experience this problem. The only time it pops up is if I combine multiple rac instances (Through the use of SCAN or tnsnames.ora) and I enable connection pooling.
    I don't know which direction to go to even diagnose this, so any and all help is appreciated.
    Thank you.
    Edited by: Rarp on Oct 1, 2011 10:47 PM

    Hi,
    You need to detail the problem. Enable TRACE SQL*NET on the server and client using note below.
    How to Enable Oracle SQLNet Client , Server , Listener , Kerberos and External procedure Tracing from Net Manager [ID 395525.1]
    Also you can try check this note:
    11g: ORA-12170 With Combination RAC, DRCP and a Firewall [ID 953277.1]
    Hope this helps,
    Levi Pereira

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

  • How an aplications sever will communicate with  Oracle RAC?

    Hi, I wonder how the applacations server will communicate with the two nodes Oracle RAC. Do I have to install an Oracle client to the application server and configure tnsname.ora file to connect with the nodes?
    Have any one any experience to share and help me?

    That depends on the driver being used. Here are some examples for the JDBC connections
    url="jdbc:oracle:oci:@TNS_ALIAS"
    url="jdbc:oracle:oci:@(DESCRIPTION=
    (LOAD_BALANCE=on)
    (ADDRESS=(PROTOCOL=TCP)(HOST=clusnode-1vip)(PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=clusnode-2vip)(PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=clusnode-3vip)(PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=clusnode-4vip)(PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=ERP)))"
    url="jdbc:oracle:oci:@(DESCRIPTION=
    (ADDRESS=(PROTOCOL=TCP)(HOST=clusalias)(PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=ERP)))"
    url="jdbc:oracle:thin:@(DESCRIPTION=
    (LOAD_BALANCE=on)
    (ADDRESS=(PROTOCOL=TCP)(HOST=clusnode-1vip)(PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=clusnode-2vip)(PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=clusnode-3vip)(PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=clusnode-4vip)(PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=ERP)))"
    url="jdbc:oracle:thin:@(DESCRIPTION=
    (ADDRESS=(PROTOCOL=TCP)(HOST=clusalias)(PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=ERP)))"
    If you are going to use FAN and FCF you may want to take a look at the following white paper.
    http://www.oracle.com/technology/products/database/clustering/pdf/twpracwkldmgmt.pdf

Maybe you are looking for

  • How to get binding variables from request

    We are trying to use html-db to develop an application which need to get values from user request to use in the queries, i.e. we will have pages depend on several binding variables and the value of these variables will be provided by the user through

  • How do I trnsfer my data and applictions from old to new ipad, how to trnsfer my data and applictions from old to new ipad?

    How do I trnsfer my data and applictions from old to new ipad, how to trnsfer my data and applictions from old to new ipad?

  • Copy Pearl data to new phone

    I have a Pearl 8100 which has developed a bad screen.I was given another 8100 as a replacement. Same network, T-Mobile. I want to copy all the data, address book, etc. and setup from the old 8100 to the new one. I backed up the old 8100 using Blackbe

  • Upgraded to iPhone 5 w iOS 6.0.2.

    Can't connect to iTunes Store on iPhone, but can connect on iPad & computer. Also, had to remove all other apps and reinstall them as downloads froze when trying to set up iPhone when connected to computer.

  • SOLUTION FOR IPODS THAT WONT SYNC ON WINDOWS

    For all people who got their new ipod classics (80 or 160 gig) and right when they brought them home and plugged them in got error messages with numbers(48, 69, 53, etc) or error messages about not being able to copy disc... you probably have corrupt