Java application (tomcat) and Oracle RAC 10gR2

Hi, I have an Oracle RAC 10gR2 (10.2.0.3) on Suse Linux Enterprise Server (3 nodes).
I have several application running on tomcat 5.X and tomcat 6.X with java 1.5 and java 1.6. Sometimes, because of hardware fail, network problems,... one of the nodes fails, and then the other 2 nodes still working and my database is up. However, the most of applications lose the connection with the database, and I must to restart the tomcat. I want to have a system more reliable and robust, and I want to prepare the tomcat's and java application for prevent it. I have read the http://drdobbs.com/java/222700353?pgno=1 and http://db360.blogspot.com/2007/01/is-your-java-application-failoverproof.html. I've been tried the example of the first url, but I don't connect with my database. However, I've probe the sample on another oracle rac (10.2.0.4) and it works. In the samples, it use the ucp.jar (11g) and ons.jar (10g) and ojdbc6.jar (11g driver).
Anyone can help me how can I configure my application for I must not to restart the tomcats??
Thanks you very much!!.

The best solution for your problem is ORACLE SUPPORT.. Please raise an SR and coordinate with them.. GoodLuck!

Similar Messages

  • High parsing with Siebel and Oracle RAC 10gR2

    Hi all,
    I'm working for a company that uses Siebel 8 with a 2 nodes RAC 10gR2. 70GB SGA with assured minimum values for shared pool 16GB, 50GB db buffer cache and the rest distributed among the other pools.
    In the last weeks we are facing a very annoying issue in our production system, at random times we have a very high concurrency peak with contention events like:
    - cursor: pin S wait on X
    - latch: library cache
    and a performance problem as a consequence.
    I have read all the documents on metalink about these types of waiting events and how to troubleshoot it, but I can't get rid of this problem.
    We have dynamic SGA configured, but we haven't had any resizes in the last weeks.
    We didn't have many "version count" for query, we are about <40.
    In the AWR I have noticed that we have very high parsing (in most cases query execute=query parse). We have talked to our Siebel support team to propose them the use of CURSOR_SHARING=FORCE, but they told us that it's unsupported.
    We have increased the parameter session_cached_cursors from 50 to 1000, but in the last days the problem has even got worse.
    I suppose that the solution could be reducing the parse count and elapsed parse time, but without changing the CURSOR_SHARING parameter and not much help from Siebel support, I don't know how to achieve this.
    Does anyone have any idea?

    The only way you can reduce the number of parses is to fix Siebel (in other words - not much you can do).

  • Sort order in Java Application (deploy in Oracle oc4j container)

    I have a Java application deploy in Oracle OC4J container (EAR file).
    In my Java application (jsp), I have a SQL statement who return data but the
    sort order is wrong. The letters "é" and all characters with accents
    appears at the end of the result.
    I tried many things to change the sort order (NLS parameters in database
    and OAS10g parameter files).
    When I use SQL*plus on database server, that's working.
    The sort order is wrong when I use the java application.
    Somebody can tell me what and where is the NLS parameters to change ?
    Thanks
    Robin

    Robin,
    I'm only guessing, but it could either be related to the java locale or the CHARSET attribute of the HTML header -- and nothing to do with the NLS parameters.
    Maybe you should try the Globalization Support forum?
    Good Luck,
    Avi.

  • BODS and Oracle RAC

    Do we know of any problems with BODS and Oracle Real Application Clusters architecture? For example, a RAC TNS entry would specify one service name but multiple hosts for load balancing and failover. In BODS the connections are specified in many places (web console, datastores, job server). As far as I remember in some of those places we do have to enter the host name. Would this disqualify BODS from benefiting from RAC or would it (even worse) cause problems? Any official note by SAP on BODS and Oracle RAC?
    Thanks.

    Hi Mahir,
    As far as I know it's only the web console that requires the hostname, however I am using DS XI 3.1 and when selecting database type Oracle in the web console there is a checkbox for 'Oracle RAC'. If you check this box then you do not require to enter the hostname.

  • Calling Java application(forms) from Oracle/Developer

    Hi
    How can i call java application by using Oracle/Developer 10g. Pl. name the methods that i can use.
    regards
    Touseef

    In Oracle a Java stored procedure is a program you write in Java to run in the server, exactly as a PL/SQL stored procedure. You invoke it directly with products like SQL*Plus, or indirectly with a trigger. You can access it from any Oracle Net client—OCI, precompiler, or JDBC.
    Oracle provides a fully-compliant implementation of the Java programming language and JVM. Oracle Database Java Developer's Guide explains how to write stored procedures in Java, how to access them from PL/SQL(or developer), and how to access PL/SQL functionality from Java. -> http://download-uk.oracle.com/docs/cd/B19306_01/java.102/b14187/chfive.htm#BABGCGBG

  • Install SAP ERP 6.0 with Linux and Oracle RAC

    Hi Guru,
    I want to install SAP ERP 6.0 with Linux and Oracle RAC. Is this possible?
    Where do I find information?
    Thanks,
    Hugo.

    Hello Hugo,
    You can use either RAC or dataguard. On note [105047|http://service.sap.com/sap/support/notes/105047]:
    14. Data Guard
        o  You can use "Physical Standby".
        o  You cannot use "Logical Standby".
        o  You can use Data Guard Broker.
        o  You can use Maximum Performance Mode, Maximum Availability Mode and Maximum Protection Mode.
        o  In the case of Maximum Availability and Maximum Protection, you must pay particular attention to a fast network connection in order to avoid performance problems.
        o  Maximum Protection causes the primary database to terminate if problems occur in the standby database.
    60. Real Application Cluster (RAC)
        o  You can use this feature in accordance with Note 527843.
    Regards,
    Eduardo Rezende

  • Date Formats in Oracle Applications Forms and Oracle Self Service

    Can someone tell me what determines the Date format that appears on Oracle Applications Forms and Oracle Self Service ?
    *1.* In Oracle HRMS,all dates i see on the Forms are of the Format "MM/DD/YYYY" but my NLS Parameters are not in this format .I'm giving the results for the NLS parameters below.I thought the date formats are determined by the NLS format.Is there something else that determines the date format appearing on Oracle Applications Forms ?
    NLS_DATABASE_PARAMETERS
    NLS_DATE_FORMAT     :DD-MON-RR
    NLS_DATE_LANGUAGE     :AMERICAN
    NLS_LANGUAGE     :AMERICAN
    NLS_TERRITORY     :AMERICA
    NLS_INSTANCE_PARAMETERS
    NLS_DATE_FORMAT     :DD-MON-RR
    NLS_DATE_LANGUAGE     :
    NLS_LANGUAGE     :american
    NLS_TERRITORY     :america
    NLS_SESSION_PARAMETERS
    NLS_DATE_FORMAT     :DD-MON-RR
    NLS_DATE_LANGUAGE     :
    NLS_LANGUAGE     :american
    NLS_TERRITORY     :america
    *2* What about the profile option : ICX_DATE_FORMAT_MASK ? Does it determine the Date Format for Self Service alone or does it impact the date format appearing on Oracle Applications Forms and the actual database also ?
    *3* If I use a to_date function in ,say, a pl/sql function that i code for some custom requirements,what will be the output of the date format ? Does it take the format given in NLS paramaters or is it determined by anything else?
    Thanks in advance...

    Hi,
    Thanks for your reply ,but I'm still confused ..
    Here are the profile options I'm seeing for one of my instance :
    ICX: Date format mask - 12/31/1999
    ICX: Date language - American English
    ICX: Language - American English
    ICX: NLS Sort - BINARY
    ICX: Territory - United States
    ICX: Numeric characters - NULL
    NLS parameters are given in my original email.
    In Self Service applications(OAF) ,the date format is appearing in "mm/dd/yyyy" format but when i login to Forms based applications ,I see the date format as "dd-mon-yyyy".What determines this date format ?
    How can i make the date format to always return one format everywhere ,be it Self Service (OAF) or Oracle Forms ?
    I'm getting date format related errors for my code because of default date formats changing intermittently when i log into Self Service.I want to know if there is anyway to prevent this from happening?
    Thanks in advance.

  • PDF XFA form/internet browser/JAVA application/Drag and Drop

    Hi guys,
    I need to be able to open a PDF XFA form (a PDF document where I have some input controls and javascripts for validation) inside a JPanel.
    If this is not doable am thinking if i can open this pdf form in a web browser by launching it from my java application.
    And when I do this, I want to be able to drag and drop between the java application and the browser.
    Anyone can tell me if that is doable?
    Thanks and Regards,
    Rawad

    Tristan,
    I am stuck in the same place. Perhaps we could work on this together.
    I am trying to drag a single item from a JList to a text editor, Word, etc. I have two problems:
    1) I can't seem to get just the item in the JList to drag. It wants to drag the entire JList component.
    2) How does one define the remote application as the drop target? Have not found any examples either.
    Is the drop target actually the system clipboard?
    Rp

  • Running both Tomcat and Oracle !

    Can anyone tell me how to setup Tomcat and Oracle on the same machine so that they both can be accessed through port 80.
    I am using Tomcat 5.0.24 and Oracle 9i.
    I would be glad if anyone can send me links to useful resiurces !!!
    Thanks !!!!

    Hi,
    Thank you much for your reply.
    Right now I am running my Tomcat on port#7000. I want it to run on port#80 because my network admin has set firewall on port#7000.
    Do u know anyway of connecting Tomcat and oracle so that they both can run on same port or is there any other way out ?????
    Thanks !!!

  • PATCH Oracle RAC 10gR2 DB on Linux

    Hello,
    I want to patch 2 node RAC 10gR2 DB (Standard Edition) on SLES 11. I have patched signle instance DB with OPATCH, but never patched RAC DB, kind of very nervous. I am not able to find generally and also from MOS regarding step by step process to patch RAC 10gR2 on SLES OS. In the readme of the Patch, I do not find step by step detail of how to ....regarding RAC. Following is the information regarding the current setup, please have a look and suggest/help me, as it's a production DB and I'm little afraid to Patch it.
    I've also other general questions please, like:
    - In RAC, how many homes are normall there to patch? DB,CRS, Grid?
    - Clusterware (CRS) and ASM has same home?. Are they same?. Pathing any one means pathing both ASM and CRS, right?
    oracle@dba01 [ec]: /home/oracle > echo $CRS_HOME
    /oracle/app/11.2.0/grid
    oracle@dba01 [ec]: /home/oracle > echo $ASM_HOME
    /oracle/app/11.2.0/grid
    oracle@dba01 [ec]: /oracle/app/10.2.0/db1/OPatch > opatch lsinventory
    Invoking OPatch 11.2.0.1.0
    Oracle Database 10g                                                  10.2.0.1.0
    Oracle Database 10g Release 2 Patch Set 3                            10.2.0.4.0
    There are 2 products installed in this Oracle Home
    Rac system comprising of multiple nodes
      Local node = dba01
      Remote node = dba02
    Connected to:
    Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
    With the Real Application Clusters option
    ####### According to MOS patch advisor for the DB, found this patch for Linux-x86-64:
    Patch 12879929 - 10.2.0.4.11 Patch Set Update ## DATABASE PATCH SET UPDATE 10.2.0.4.11 (PRE-REQ 10.2.0.4.4|INCLUDES CPUJAN2012)
    Patch 9352164 - 10.2.0.4.4 Patch Set Update
    # Both are in Downloads folder on my local machine.
    SYS@rac1p1 AS SYSDBA> select * from registry$history;
    ACTION_TIME       ACTION  NAMESPACE VERSION   ID  COMMENTS   BUNDLE_SERIES
    30-MAR-10 07.38.3 APPLY    SERVER  10.2.0.4   6   CPUJan2010   CPU   6.877725 AM
    30-MAR-10 07.43.4 CPU                       6452863 view recompilation 5.716832 AM
    14-JUN-10 10.55.1 APPLY    SERVER  10.2.0.4   7   CPUApr2010   CPU   8.089709 PM
    oracle@dba01 [ec]: /home/oracle > echo $CRS_HOME
    /oracle/app/11.2.0/grid
    oracle@dba01 [ec]: /oracle/app/11.2.0/grid/OPatch > opatch lsinventory
    Patch  9352191      : applied on Mon Jun 14 22:28:04 CEST 2010 # Latest patch installed ..
    - - - # I think patch option for RAC which I read,,,rolling I cannot perform because its not Enterprise edition DB, minimum downtime also doesn't look like suitable, then I think I will adopt ALL NODE patching,isn'it?
    # In DB, I can find out through registry$history the latest PSU installed, but how would I find out which patch to install now in CRS/ASM home?
    # I was looking at srvctl and crsctl,etc commands....I am little confused between these both type of command to perform ...like to Shutdown instances,services,listener,nodes,etc...what commands do I need for this process, please?
    Bundle of thanks.
    Regards

    Hello,
    Thanks for the reply.
    What I noticed before that as ASM-GI has same home, so I need to apply one patch for that. After your reply I am planning to do it like that only.
    As I have posted in my main post the versions of patches to apply for Oracle Home. That seems somehow clear to me what to apply and,etc. Can you please suggest which Patch or how to find/select next patch version to apply to ASM/GI home please?
    When we select PATCH ADVISOR from MOS, for example in case of DB home, I select DB,Enterprise,Standard editio,9i,10g,11,d, OS Linux-x64,10.2.0.4. DB,OS version etc is OK, but I am confused what to select from that first drop down menu in order to select patch version for ASM/GI ??
    @onedba
    I am planning to Patch not upgrade.
    Thanks and regards.

  • Problem with java.sql.Clob and oracle.sql.CLOB

    Hi,
    I am using oracle9i and SAP web application server. I am getClob method and storing that in java.sql.Clob and using the getClass().getName() I am getting the class name as oracle.sql.CLOB. But when I am trying to cast this to oracle.sql.CLOB i am getting ClassCastException. The code is given below
    java.sql.Clob lOracleClob = lResultSet.getClob(lColIndex + 1);
    lPrintWriter = new PrintWriter(new BufferedWriter (((oracle.sql.CLOB) lOracleClob).getCharacterOutputStream()));
    lResourceStatus = true;
    can anybody please tell me the what is the problem with this and solution.
    thanks,
    Ashok.

    Hi Ashok
    You can get a "ClassCastException" when the JVM doesn't have access to the specific class (in your case, "oracle.sql.CLOB").
    Just check your classpath and see if you are referring to the correct jar files.
    cheers
    Sameer
    PS: Please award points if you find the answer useful

  • UTL_FILE_DIR and Oracle RAC

    Gentlemen,
    I have installed with sucess an environment with Oracle RAC with two servers. The application that runs in these servers, has batch procedures, and it has to save flat files during these processes. When the processes run with both servers something goes wrong and the system stops. It doesn´t happen when I shutdown one of the servers. I tried to setup directories in the storage system (external disks) but it wasn´t allowed too.
    Does anyone know how can I setup utl_file_dir to work with both servers? Is there another parameter to set?
    Thank you all,
    Best regards.
    Roberto Cavalcante
    Brazil

    VCFS/CFS/NFS are just filesystems and UTL_FILE does file i/o. If you have sessions in multiple instances that write to the same file on a cluster filesystem, the outcome would be unpredictable. Most likely, the last person to write to the file would have their changes saved. Oracle DB (RAC or not) doesn't handle any concurrency related to UTL_FILE writes. So, even if you were in the same instance (non-RAC) and had two sessions writing to the same file, I don't think you'd get the desired results :). The file would likely be a mess and you'd have to use different file names or control concurrency yourself manually.

  • Difference between Oracle Application Express and Oracle Forms/Reports

    hi guys,
    i have just use oracle apex to create some report generation tools through the web. know that this is what is known as html db in the past.
    however, i have not really touch oracle forms and reports before, neither have i really seen how they work.. but soemhow i feel oracle report/forms seems to be more.. then this oracle apex.
    it includes integration with web services, java and pl/sql .
    but i still cant really figure out what is the actual general main difference ?
    is it that for oracle forms there can be some programming logic inside , whereas for apex , it is just using what is available from what oracle provides ..
    i am read oracle form white paper, but seriously, i am not a very web guy. it has alot of components that i am not familiar with.
    so i hope you guys can just give me a more general rough idea.
    regards,
    Noob.

    Hi, my .05$
    ... most Forms & Reports users will tend to be old installed base customers using applications developed many years ago in F&R such as insurance company cores and even banking cores. Going from client/server F&R6 to "web" F&R10g is costly as you have to license an application server and most likely need to migrate to recent versions of the DB in case the customer is still on oracle 8 (common occurrence). So many customers opt. to not migrate or to simply invest in new web enabled solutions.
    Using the migration tool f&r installed base will have an easier job of migrating and at a price of whatever DB edition they are using and probably be able to do it with the same people who maintain their f&r systems provided they learn a bit about web technologies.
    what might be interesting to see is performance perception of users on f&r vs. apex...
    regards,
    luis aranguren

  • Tomcat and Oracle

    Hi. I have tomcat 6 and Oracle 10g Express edition 10.2.0.1.0 and I have to make a jsp page that would connect to my database and get data from it.
    In server.xml I added:
    <Resource name="jdbc/myoracle" auth="Container"
    type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:@127.0.0.1:8080:apex"
    username="hr" password="hr" maxActive="20" maxIdle="10"
    maxWait="-1"/>
    and in web.xml:
    <resource-ref>
    <description>Oracle Datasource example</description>
    <res-ref-name>jdbc/myoracle</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    I also downloaded ojdbc14.jar driver and placed it into tomcat/lib folder.
    now, I dont know how to connect to the database in my jsp page and what imports to make, I tried to search the web and couldnt find anything specific.
    Can you please help me? How would I for example list all entries from say Employees table that is already created.
    Thanks

    Hi,
    Found the solution best described in below link.
    http://wiki.apache.org/tomcat/UsingDataSources
    Im using tomcat 6.0.18 on vista and oracle 10g. Hope this Infomation might help someone.
    1. comment following line in TOMCAT_HOME\conf\context.xml
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    2. copy following in ur web applications META-INF\context.xml
    <?xml version='1.0' encoding='utf-8'?>
    <Context>
    <Resource name="jdbc/oraclexe" auth="Container"
    type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:@127.0.0.1:1521:xe" username="oracle"
    password="oracle" maxActive="20" maxIdle="10" maxWait="-1" />
    </Context>
    3. no need to edit TOMCAT_HOME\conf\server.xml or WEB-INF\web.xml.
    Hope this helps
    bye

  • How to upload a java application into the oracle DB

    Hello,
    I am in search of an issue that is worrying me now for weeks. I have a java application which is independent. Now I want to upload this application to the oracle DB.The idea is for the application to sit on the DB and do it work from there, which is to transfer data to another 3rd party independent system. What is the best way of doing this? Is there any utility which can help me to upload a java application to the DB?
    Also after uploading the application in the DB, how can it be called? Is there any tutorial to guide me please?
    Thank you all for brain storming

    Check the docs for "Java Stored Procedure":
    http://www.oracle.com/pls/db92/print_hit_summary?search_string=java+stored+procedure

Maybe you are looking for

  • I got a question but, it is too long to type here.

    the question I have is how can I pop() strings off a Stack and test the first on with the next one and so on. I am trying to write a recursive algorithm (push down automana) that recieves a Stack and tests each item in the stack with the next item in

  • Xperia U ICS update

    Is it possible to update Xperia U purchased from Oman in India ? The SI number is 1261-8744. When the phone is connected to PC Companion or Update Service it shows "Your phone is already up to date." Please let me know about the update if it is launc

  • Broadband access when out and about

    I am an Infinity user and FON registered. At my away from home location the BTcoverage map shows three FON users ,all within 100 yards but no nearby Openzones. I am unable to make a connection. Do the other local Fon users have to have their Broadban

  • BAPI to park G/L Account document with ledger

    Hi Experts, I have been looking for BAPI to park G/L account document with ledger (FV50L). Can you please let me know, if you have know about it. I have found the one for posting BAPI_ACC_DOCUMENT_POST, but It should not be used in our case. It is pa

  • Status led always on

    I have a macbook wich has been wet with soda, i dried the macbook and cleaned it up. Everything seems to work fine except for the status led thats always on. I already have reseted the smc following the instructions provided by apple but the led rema