-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate SQL returning stale value
PostPosted: Wed Apr 16, 2014 11:35 am 
Newbie

Joined: Wed Apr 16, 2014 4:56 am
Posts: 1
hi,

We have an issue with our application where one SQL statement fired from application getting stale value from DB (Oracle11G 11.2.0.4). The SQL comes out from create SQL statement. The output of the query fired from application is different from the same SQL executed from sqlplus. Confirmed not a transaction issue, since the value is commited in DB for sure.

It returns D-1 data.

select * from ( SELECT TRAN.* FROM ADS_USER.TRANSACTION TRAN, ADS_USER.SETUP_X_EVENT AREV WHERE TRAN.TXN_ID = AREV.TXN_ID AND AREV.AR_ID = 9395 ORDER BY TRAN.TXN_VALUE_DT DESC, TRAN.TXN_TS DESC ) where rownum <= 1

More points:
1. Hibernate caching is off.
hbm.cacheProvider org.hibernate.cache.NoCacheProvider
2. Version used is Hibernate 3.3.2.GA
3. Issue happened on 7th March and then again on 8th April. We are not sure whether this will happen again on 09th may.
4. On a given day when the issue happen at some intervals the results from SQL is correct and then suddenly it goes and get the stale value.
5. The same query runs every 5 mins against DB

Is there any know issue with Hibernate? Or anyknow know of a similar problem where the issue might be in Oracle?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.