Select statement after Update statement under autocommit with RAC

Hi,
I've met a problem when developing my application with 10g RAC (3 machines). I am using open jdk 1.6.0 on linux platform with kernel release 2.6.18-128.e15PAE, my app using spring with oracledatasource to establish the database connection with autocommit. The situation as below:
my application sends SMPP requests and receives SMPP responses, when receiving SMPP responses, my app update the response details to related record in DB. For some concatenated messages, my app need to check whether all responses of the related concatenated message are received, if all received, my app update the final status of the message.
it is found that for some concatenated messages, all responses are received successfully, i.e. can be found in the database that the details of the responses are updated, however the final status of the message is not updated as expected. After further investigations to the database records and application logs, those cannot be updated with response returning almost at the same second, however they are manipulated one by one, not multi-thread. From the log of my app, it shown the dealing of the second response is started in the same second when the dealing of the first response is completed. It seems like when dealing the second response, it cannot "see" the first response is updated such that both responses find the message is not completed.
Wonder under what condition would this happen? my db config as below:
<bean id="dataSource" class="oracle.jdbc.pool.OracleDataSource" destroy-method="close">
<property name="driverType" value="oracle.jdbc.driver.OracleDriver" />
<property name="URL" value="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbhost1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=dbhost2)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=dbhost3)(PORT=1521))(LOAD_BALANCE=yes)(CONNECT_DATA=(SERVICE_NAME=ha_bss)(SERVER=DEDICATED)))" />
<property name="user" value="dbuser" />
<property name="password" value="dbpassword" />
<property name="connectionCachingEnabled" value="true" />
<property name="connectionCacheProperties">
<props merge="default">
<prop key="InitialLimit">10</prop>
<prop key="MinLimit">10</prop>
<prop key="MaxLimit">2000</prop>
<prop key="AbandonedConnectionTimeout">0</prop>
<prop key="ConnectionWaitTimeout">120</prop>
<prop key="validate-connection">true</prop>
<prop key="validate-connection-statement">SELECT SYSDATE FROM DUAL</prop>
<prop key="factory-class">oracle.jdbc.pool.OracleDataSourceFactory</prop>
</props>
</property>
<property name="ONSConfiguration" value="nodes=dbhost1:6200,dbhost2:6200,dbhost3:6200"/>
<property name="fastConnectionFailoverEnabled" value="true"/>
</bean>
thanks

This is not likely to be a JDBC issue at all. It is likely that separate connections are being used
for the separate threads, and they may be to different RAC nodes. You must configure your
DBMS so there is zero latency between the nodes, else there may be some delay between
when one node changes data and another can see it.
HTH,
Joe

Similar Messages

  • Execute A select statement under Oracle connection?

    Hi,
    How can i execute a select statement
    under an existing Oracle connecton without
    defining extera JDBC connection.

    Be aware that you can create View Objects that are NOT based on entity objects. In this case, they are read only, but if you just want to display results, or check for a specific value, it at least reduces the overhead of an EO.
    I'm not sure that answers the question here, but thought I would at least throw it out there.
    In the View Object wizard, on the page that asks you to choose an EO, just click Next without selecting any EOs. This will automatically put you in expert query mode. Just type in your query and go.
    You do have to be a little careful with expert mode queries, especially if you go back and edit them later. You need to make sure to keep the attribute mapping in synch on the Attribute page.
    Also, I have found some limitations to this approach, which I'm not sure are fixed in 3.2. Namely, you can't use setWhereClause() to set the entire where clause string from the client. You have to use setWhereClauseParams(). This means that you have to have the basic where clause included in the query and user parameters as placeholders for the where clause values. These are JSP methods, I'm not sure what the equivalent is in DAC, but I am pretty sure the same limitation is there.

  • After updating my iPhone 4 with iOS 5.0 some of my ringtones are missing. What happened to them?

    Hi, 
    After updating my iPhone 4 with iOS 5.0 some of the ringtones I purchased previously are missing; even though I have selected ALL ringtones in the preferences when syncing. Has anyone else had this problem and if so do you know why they are missing?

    Hi,
    See if this Discussion addresses your issue...
    https://discussions.apple.com/message/16373915#16373915

  • After update my iPad 2 with IOS 6.0.1 the botton mute and sound + doesn't work...any solution for this??? Thanks

    After update my iPad 2 with IOS 6.0.1 the botton mute and sound + doesn't work...any solution for this??? Thanks

    There are numerous reports of this issue happening on iPhones. It may be a glitch that will need a new update. Some find that a full shut-down and restart fixes that problem, but not always.

  • HT5815 After update, i have problems with wifi

    after update, i have problem with wifi
    wifi always falls
    I get no internet access
    I have to reboot the system to return

    Information.
    Troubleshooting Wi-Fi connection issues - MacBook Air (Mid 2013)
    Troubleshooting Wi-Fi issues in OS X
    Wireless Connection Problems - Fix
    Wireless Connection Problems - Fix (2)
    Wireless Connection Problems - Fix (3)
    Wireless Connection Problems - Fix (4)
    Wireless Diagnostics - About

  • After updating my iphone 4S with the ios 6, I can no longer open my apps. HELP!

    After updating my iphone 4S with the ios 6, I can no longer open my apps (Facebook, Instagram, games, Voxer, WhatsApp, Tumblr). It prompts me to enter my Apple ID. I enter my email address (what is listed everywhere as my ID) and it does not recognize that.  I wondered if it is saved somewhere as something different so I went online to find it. When I go to the support page and request my apple ID, it takes me in circles to reset my password but never tells me my ID.  HELP!

    Hello JeepJackie
    Check out the article to download your past purchases to your iPhone.
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • After updating my Iphone 4S  with the ISO6  i lost my pictures and i never backed up my phone to ICloud. how do i retrieve my photos?

    After updating my Iphone 4S  with the ISO6 I lost my pictures and i never backed up my phone to ICloud. how do I retrieve my photos?

    Hello JeepJackie
    Check out the article to download your past purchases to your iPhone.
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • HT4623 I cannot import my photos to my Windows xp PC after updating my iphone 5 with the latest iOS 7.1

    I cannot import my photos to my Windows xp PC after updating my iphone 5 with the latest iOS 7.1

    According to the iTunes download page, it still supports Windows XP.
    Windows System Requirements
    PC with a 1GHz Intel or AMD processor and 512MB of RAM
    Windows XP Service Pack 3 or later, 32-bit editions of Windows Vista, Windows 7, or Windows 8
    64-bit editions of Windows Vista, Windows 7, or Windows 8 require the iTunes 64-bit installer
    400MB of available disk space
    Broadband Internet connection to use the iTunes Store
    (Emphasis added)
    If your XP computer was updated, then it should work. Again, the links I posted earlier contain the current USB drivers for the iPhone and Windows.

  • After updating my iPad 2 with os6 my yahoo mail accounts can't log me in as session time expires. When I try again as we'll as confirming my password etc I face the same problem. Any help or ideas?

    After updating my iPad 2 with os6 I can't get into my yahoo mail accounts. After repeating the process I get session expired message or sometimes not even this message and just prompts me to re enter my password. I know there is no issue with username or password as it works on my PC without any issues.
    Does anyone have an answer to this?

    Thanks for your response, however my yahoo mail started to work as normal this morning! No explanation, even though I made several attempts during the past few days by trying to log in but to no avail. Yet today it suddenly worked...presto.
    Prior to this I made a trip to the Apple store in London and chatted with a few staff about this issue yesterday and they could not help.....had two answers:
    1. Check with yahoo and make sure you have not over stretched the number of accounts ( even though there are only two)
    2. If you had backed up os5 on the computer, one could revert back to old software. Otherwise wait for Apple to fix issues as os6 is new.
    *Be interesting to know if anyone else has had a similar fix without rhyme or reason?

  • HT4623 After updating my iPhone 4S with the new iOS7, I lost all my games and apps that I had downloaded to my phone. How do I get these apps back?

    After updating my iPhone 4S with the new iOS7, I lost all my games and apps that I downloaded to my phone. How do I get them back?

    Hello JeepJackie
    Check out the article to download your past purchases to your iPhone.
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • After updating my Ipad 2, with Vodafone 3G abbo, to iOs 5.0.1 I receive the massage "no simcard". What to do?

    After updating my Ipad 2, with Vodafone 3G abbo, to iOs 5.0.1 I receive the massage "no simcard". What to do?

    I have the same problem, but in T-Mobile (Poland). Today I got a new SIM card and nothing has changed. I read that this problem appears also in the iPhone 4S. This is apparently related to the temperature of the processor. I hope that Apple will fix it in the next update of iOS 5.0.2.

  • Select statement inside function with  into keyword

    Hi Everyone,
    i have a function which contains a select statement
    create or replace
    function fun_1(Table_Name1 in varchar2)
    RETURN VARCHAR2
    is
    VAR_GEN_TYPE NUMBER(10);
    TA_U varchar2(256);
    VAR_DATA_FLAG varchar2(1);
    begin
    select T.FLAG into VAR_GEN_TYPE ,T.DATA_UID_GEN_TYPE into VAR_DATA_FLAG  from T_DYNAMIC_TABLE T  where T.TABLE_NAME=TABLE_NAME1;
    end
    whene ever i am executing this function giving error message: From Keyword  Not Found
    when i change select statement to
    select T.FLAG ,T.DATA_UID_GEN_TYPE into VAR_DATA_FLAG, VAR_GEN_TYPE from T_DYNAMIC_TABLE T where T.TABLE_NAME=TABLE_NAME1;
    then it is working
    why first statements will not work ?
    i.e.,
    select T.FLAG into VAR_GEN_TYPE ,T.DATA_UID_GEN_TYPE into VAR_DATA_FLAG from T_DYNAMIC_TABLE T where T.TABLE_NAME=TABLE_NAME1;
    why in select statement we cannot use into keyword more than one time ?
    Edited by: karteek on Jun 7, 2012 4:23 AM
    Edited by: karteek on Jun 7, 2012 4:24 AM

    select T.FLAG into VAR_GEN_TYPE ,T.DATA_UID_GEN_TYPE into VAR_DATA_FLAG, from T_DYNAMIC_TABLE T where T.TABLE_NAME=TABLE_NAME1;
    into should be only once..
    the syntax should be
    select <column list>
    into
    <variable list>
    from <table name> where <condition>
    --This query shuold return only one row.
    column list count and variable list count should match
    there should be no comma after last variable.andbefore from.

  • After updating my iphone 4 with iOS 6, I lost all my pictures, contacts, and music. How do I get this all back if I don't have the icloud?

    My friend updated her iphone 4g with the iOS6 and lost all of her photos, contacts, messages, and music. She doesn't believe she had the icloud set up because after they restored her phone they asked for a new apple-id. Any suggestions on how to get all of her stuff back, she has a newborn and all of her pictures of him are gone!

    I tried that but I still got the message "Unable to verify account information."  I saved it anyway and when I go to the Exchange email account it says "Cannot Get Mail" "The connection to the server failed."  We are running Microsoft Exchange 2010 and I was always able to sync my calendar and email before I upgraded to IOS 6.

  • Problem after update to Mountain Lion with QuickTime

    Hello! I have a Macbook Pro early 2011. After updating to ML i have a problem with QuickTime player 10.2. I cant open any video with this player. For example i also have flip4mac + perian and i cant play an avi file. Specifically, i can open but it doesent play. I click to play button, but nothing works... I can see image but doesnt play normally.
    But the most strange is, that i cand open also a .mov (quicktime file).. I export a video from my Aperture Library, and when i press play, the video plays ,but i cant see anything... only black screen. The video plays normally within aperture app..
    Quicktime player 7 is ok... but QuickTime player 10.2 doesnt work.. why?

    Is the time capsule the only router in the network?
    Try setting the lease time in the TC to very short value.. 20min or even less, 10min. It will not add signficant network traffic but might keep the Air updated to the TC.
    I would also use SMB compatible name for the TC as well as wireless.. ie short, no spaces.. pure alphanumeric.
    Set a different name for 5ghz so it cannot swap around.
    And lock the wireless channels. Try each channel in turn, to see if any are better.

  • HT4623 After updated my iphone 4 with version 6.1.3, how to restore my iphone 4 4.2.1 back up

    Dear Sir/Madam,
    I was previously updated my friend's iphone 4 version 4.2.1 to version 6.1.3. How ever, before updated full back up was stored my computer.
    But after updated  software, I can't restore my import photos, contact and so on..... I restore my data, error show that " password was not corrected '
    and acn't restore my data. Please help me solve my issue.

    You have an encrypted backup. You will have to remember the encryption key that you entered the first time the prompt appeared for a backup password.

Maybe you are looking for

  • AEBSn admin problem error -6753

    So, I just brought home a new AEBSn and set it up just fine. The internet works on all my computers, wireless and wired, but... I can't admin it anymore. Airport Admin won't let me connect to it, update my firmware, or anything. I want to get in ther

  • Use of minimum, maximum and preferred size?

    Hi, What is the use of the three sizes (maximum size, minimun size and preferred size) of component and container? And which class use them? Thanks for any ideas and input, Wing

  • Sidecar.xml first generation

    Johannes granted us with the excellent : http://projects.nordsueddesign.de/sidecarxml/ so that we can organize and easily manipulate elements of a large publication. The thing is it requires a "first time generation" which seems to have to be done ma

  • Know the all function modules & descriptions

    Is there any transaction or table or program to know the all the function modules and its descriptions

  • Disable auto check-in with SharePoint

    Hi all, I apologize if this isn't in the right place; I couldn't find an obvious location for Adobe / SharePoint integration questions. Today one of my users complained that Adobe Reader X has suddenly started behaving differently in how it integrate