NamedQuery Results are Cached - I Need to retrieve live database results

I've developed an application EJB3 web application which uses Entity Beans and NamedQueries to retrieve my results.
Aswell as my main EJB3 web application I also have an external interface (Oracle Stored Procedure) which is updating data in my database tables. The problem is that the when the NamedQueries are called they only bring back "Cached" resultsets and not the live results that exists in the database at that time. If my Stored Procedure updates a value (or if I update a value via Toad for testing) the NamedQuery does not bring back these changes. From what I have read about NamedQueries it seems that they do actually query the live db but send back the cached values for performance reasons.
Is there a way to turn off caching of Query results?
If not is there another way to deal with this issue?
ps. I'm using Jdev 10.1.3.4 and appserver 10.1.3.1
Edited by: darkBubble on 15-May-2009 07:33

I've posted this within the oc4j forum. Admin please remove this thread.

Similar Messages

  • Urgent help : Need to recover a database without backup and archivelogs

    Hi,
    We are in urgent need to recover a database without backup and archivelogs
    one datafile seems corrupted
    SQL> recover automatic database until cancel using BACKUP CONTROLFILE;
    ORA-00279: change 10527325422479 generated at 07/27/2011 03:13:04 needed for
    thread 1
    ORA-00289: suggestion : /pys/u5/oradata/PYS/PYSarch/arch0001.0000181845.arc
    ORA-00280: change 10527325422479 for thread 1 is in sequence #181845
    ORA-00278: log file '/pys/u5/oradata/PYS/PYSarch/arch0001.0000181845.arc' no
    longer needed for this recovery
    ORA-00308: cannot open archived log
    '/pys/u5/oradata/PYS/PYSarch/arch0001.0000181845.arc'
    ORA-27037: unable to obtain file status
    HP-UX Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/pys/u2/oradata/PYS/pay_system_01.dbf'

    N Gasparotto wrote:
    bsac14 wrote:
    my database is in no archive mode
    can you please tell how to restore
    yes it is a datafile corruptionYou did not say how you defined that's a datafile corruption. You provide minimum to zero information.
    I just need to bring the database up,no need any exact data
    I can refresh from prod laterThen drop and recreate database. Basically and since you are not in archive mode, no recover is possible. Period.
    Nicolas.Hi,
    How did you come to the conclusion that your datafile is corrupted? Can you provide and supported logs?
    Regards .....

  • I need to retrieve files from my iPad but I forgot my password. I tried to restore it but then it said I had to turn off Find my iPad on my iPad. I can't do this because I can't get into it. What do I do?

    I need to retrieve files from my iPad but I forgot my password. I tried to restore it but then it said I had to turn off Find my iPad on my iPad. I can't do this because I can't get into it. What do I do?

    If the iPad was running iOS 7,  iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Need Help, retrieving a combo boxes actual/print/visible value instead of the export value.

    Hello,
    I need help, retrieving a combo boxes actual value, not the export value.
    I have a combo box with multiple options to select from.
    each of those selections has a separate export value, which is in the form of a number, which I use to calculate dates in a separate field.
    However, I have another field that i want to retrieve the, users selected value, which is text, from the combo box instead of the export value.
    Is there an easy way to do this.
    This is what I am currently using. But like I said the results are that I retrieve the export value and not the selected text value.
    event.value = this.getField("_Arugula").valueAsString;
    Thanks

    First get the currentValueIndices property of the combo box and use it with the getItemAt field method to return (what I call) the display value. Something like:
    var f = getField("combo1");
    var display_value = f.getItemAt(f.currentValueIndices, false);
    See the documentation for more information

  • Have a  problem with Lightroom 5.4.  Since the program crashed yesterday it won't launch, it comes up with the message "Lightroom encountered an error when reading its preview cache and needs to quit".  "  Lightroom will attempt to fix this problem net ti

    Have a  problem with Lightroom 5.4.  Since the program crashed yesterday it won't launch, it comes up with the message "Lightroom encountered an error when reading its preview cache and needs to quit".  "  Lightroom will attempt to fix this problem next time it launches".  Except that it doesn't, I keep getting the same message and the program closes.  Does anyone know what I  can do to repair it?  Can't back up, can't do anything.

    There are dozens of threads in this forum that describe the fix

  • Lightroom 5 is not opening it gives me an error message there is an error when reading from its preview cache and needs to quite

    lightroom 5 is not opening it gives me an error message there is an error when reading from its preview cache and needs to quite
    it also says it will attempt to to fix the next time it opens it doesn't do anything

    Check this thread. Your Previews Cache files are corrupted.
    Re: preview cache?

  • TS3899 I have a problem with emails disappearing from my iphone. These are emails that I have put into folders to keep. When I go back to get them they are gone. Need help please.

    I have had issues with my iphone deleting emails without my consent. It seems as if it doesn't want to hold onto emails for an extended amount of time. I use my iphone for all work related emails and personal. I have created folders to store important emails in related to work. I found when I need to retrieve those emails, they simply are not there. I was told to delete the email account from my iphone, then to add it back into phone. I have done this and things seem fine, then after a few days it no longer works. I have researched this topic and see that I am not the only one with this problem. From what I can find no one seems to have the answer. Please help?

    Settings > Mail, Contacts, Calendars > Tap email account in question > nMail days to sync > extend the time

  • What are the ports need to open at firewall

    What are the ports need to open at firewall to access Oracle EBS R12 through internet?

    All these following ports need to open at firewall??
    Database Port : 1521
    RPC Port : 1626
    Web SSL Port : 4443
    ONS Local Port : 6100
    ONS Remote Port : 6200
    ONS Request Port : 6500
    Web Listener Port : 8000
    Active Web Port : 8000
    Forms Port : 9000
    Metrics Server Data Port : 9100
    Metrics Server Request Port : 9200
    JTF Fulfillment Server Port : 9300
    MSCA Server Port : 10200-10205
    MCSA Telnet Server Port : 10200,10202,10204
    MSCA Dispatcher Port : 10800
    Java Object Cache Port : 12345
    OC4J JMS Port Range for Oacore : 23000-23004
    OC4J JMS Port Range for Forms : 23500-23504
    OC4J JMS Port Range for Home : 24000-24004
    OC4J JMS Port Range for Oafm : 24500-24504
    OC4J AJP Port Range for Oacore : 21500-21504
    OC4J AJP Port Range for Forms : 22000-22004
    OC4J AJP Port Range for Home : 22500-22504
    OC4J AJP Port Range for Oafm : 25000-25004
    OC4J RMI Port Range for Oacore : 20000-20004
    OC4J RMI Port Range for Forms : 20500-20504
    OC4J RMI Port Range for Home : 21000-21004
    OC4J RMI Port Range for Oafm : 25500-25504
    DB ONS Local Port : 6300
    DB ONS Remote Port : 6400
    Oracle Connection Manager Port : 1521

  • Help needed in retrieving account description present in PO distributions

    Hi All,
    I have written a query to retrieve purchase orders and it's distributions. I need to retrieve account descrption related to distributions. I have got account number from gl_code_combinations table(segment1 to segment5). I am not able to proceed further in getting account description. Please suggest which are the tables and what is the link between them.
    Thanks and Regards,
    Mahesh

    Hi,
    Please find my comments below:
    Thanks for the reply
    Welcome
    If we link with fnd_flex_values_vl and gl_code_combinations, number of records is increasing i.e records are repeating.
    add condition flex_value_set_id
    Also account number will be like 01-0101-0101-1010, so this means that account number is flex field. Then i think we have to use flex field tables. But i am not able to find out which are the tables and what is the link between them
    Account number is a combination of Segments. You cannot find total combination anywhere. You have to take Code combination id, get the segments, link the segment with fnd_flex_values_vl with particular value_set_id and display the description against that segment.
    Finally you have to concatenate all the segment descriptions.
    Regards,
    Sridhar

  • Are EJB ( entity beans) are cached ?

    Are EJB ( entity beans) are cached ?
    I have a doubt here . As per my understanding , the entity beans are cached from the database. In that case , If I delete a row in the database by an external application ( say using TOAD tool) , how the Entity bean will be updated / reloaded ? Entity bean will be out of sync then .
    Application server : weblogic/webspehere .

    >
    You can use the refresh method of the EntityManager interface to read new values from the database (if you expect it to be out of sync), and use locks to prevent others from changing your data while the application is performing actions in a transaction.Did you mean I have to write code for this ? can't be made it automatic refresh by the container ? Is there any settings I can configure so that container can do it by itself proactively ?
    Also, using locks ...is this a container settings or I need to configure myself in ejb-jar.xml ? Could you please shed some light here ?

  • Need to retrieve memory and cpu information

    level: Advanced
    i m working on a cluster related software (not a business software, just a thesis work). i need to retrieve current memory and cpu usage info (i m using windows xp, i need the info what we get by pressing (alt+ctrl+del)). i need to use pure java. please tell me a better and easy way.

    i know about JNI and i know Runtime.exec(), but theRight, then you also know what to search for on google.
    problem is it would not be helpful for my program to
    call taskmgr by Runtime.exec() and for using JNI i
    need the native code in c or c++ to retrieve the cpu
    and memory usage information. but i m not expert in c
    or c++. Thats more search factors to add to the google search.
    please help me somehow. if u have any reliable native
    code then help me. the code should provide both cpu
    and memory usage info instantly.Thats another requirement to add to that google search.
    There may be free versions out ther, but you are going to have to do the leg work, nobody is going to do your work for you. You know about runtime.exec(), you know about JNI, now do a search.

  • I received an error message in Lightroom 5 , Lightroom encountered an error when reading from its preview cache and needs to quit

    I was wondering now that I deleted my preview cache after receiving the lighgtroom encountered an error when reading from its preview cache  and needs to quit  , light room 5 opened fine now , but  I now have no previews showing  up , all I get is blank gray boxes ...  have  I lost everything ?
    how do I get the pictures or previews back ...all my folders I had catalogued , now show only grayed boxes where the previews were ...  can I get this back ?

    I will check for the meta data.. as to hows this adobes fault....first let me ask do you work for or get paid for by adobe?  If the answer is no, which i presume it is...then that answers it... how is it , or better yet why is it a billion dollar company, has or offers no support, no phone number, no email nothing...but depend on third party people who may or may not know or give the correct info to help, and do this free, all the while adobe makes $$$ and runs smaller companies that may have actually better products by getting or buying off reviews etc..that only rave, but never mention issues...the issue im having has been reported by adobe users since version 1, yet has not been addressed or even mentioned...why shouldusers get little true support from adobe, get a product that has un addressed issues is messed up...it would be like ford making newer vehicles say a f150, advertising all the bells and whistles , but knowing since their 2008 model  that if you go over 70 mph for more than 100 miles the engine will just shut off, then have know way to contact them to solve the problem...had no mechanics to fix it...no warranty...that would be insane...but yet companies like adobe and microsoft do this all the time, but since its notlife threatening as driving a truck would be somehow we accept it as ok....yet it sickens me the hardearned money spent on their products, its an investment,  like whether or not to go canon or nikon..your investing in the company its not easy to switch once you make that intial choice...  adobe and microsoft continously advertise all the so called (al beit meaningless) upgrades or improvents which are more fluff than  worth while improvent, but the way they present them you feel you need them...if they went back to the true ethics of buisness and american pride they would focus moe money and attention to customer service,  and truly improving the product rather than how to sell more...but then they know like my camera example once you choose your theirs...sad...i had an adobe salesman out right lie to me and misrepresented a product, as i was having an issue getting sound to work in creating a video of my granddaughters birth...i was using an older version, told him all the info , he said if i upgraded i would have no trouble, so i did...the sound still didnt work . Then they suggested another program to convert the files more money down...the other company also makes video editing programs, once that work...and cost less...but i am all tied up in adobe spending hundreds all ready...sad ...very sad...now that ive had some issues and have gone back and done more researching i see all tge issues, many go back 10 plus years and have yet to be addressed...yet many otherless known third party companies had similar issues, corrected them , are cheaper, have support teams but arent pushed in every photo magazine etc...and arent known where giants like Adobe that dont address there issues have or offer no Adobe paid support, yet through their money and muscle to dominate magazines, and web, by controlling how things are precieved....sad in deed...the more i learn, and experience the sadder things are....but enough complaining sadily im invested in adobe for now till i get rich,  just want the crap to work...so i can get my cherished pictures , once in a lifetime pics of my granddaughter  back...to bad people have to place faith in a company and risk loosing all the pictures that mean something to them,and realize the comoany only truly cares about $$$...sad

  • HT201356 I have accidentally deleted my alternate iCloud (email) address. Are there any possibilities to retrieve it back because my iPad is connected to that email address, and now, I can't log out from it on my iPad, because it doesn't exist?

    I have accidentally deleted my alternate iCloud (email) address. Are there any possibilities to retrieve it back because my iPad is connected to that email address, and now, I can't log out from it on my iPad, because it doesn't exist.
    I have alternate icloud email attached to my iPad and I accidentally delete it from appleid.apple.com. And now I can't log out that iCloud account because it doesn't exist and it can't recognize my password.

    If you mean that Find My Phone is asking for a password to a different Apple ID to your current Apple IDand that ID is a previous version of your current ID, not an entirely different one.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details and some other circumstances.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone" and delete the account from your device. It may take a short while to remove the account.
    You should then change your Apple ID back to its current state, save it once again and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • Please help! Desperately need to retrieve critical data from dead Curve 9330

    Re-posting as I'm desperate.
    My phone shut down while making a call.  The screen went black, no LED signal light, no power, totally dead.
    Actions already attempted:
    1) removed/replaced battery multiple times,
    2) inserted fully charged spare battery,
    3) connected to charger cord,
    4) connected to computer via USB and
    5) connected to computer via USB with battery removed.
    The phone has not been subjected to water or cooked by heat.  It was operating perfectly fine for six months prior to this event. One caveat: the phone was running on software one version (5.5?) behind the current latest version (6.0?), as the newer software slowed my phone to a crawl plus I really didn't like the new calendar software.
    Verizon is replacing the phone under the warranty program but I I desperately need to retrieve critical medical and tax data from this dead device as I regrettably have not backed up in the six months since I purchased the phone.
    Any help/replies are urgently needed as I am required to return the dead device within five days of receiving the replacement unit (expected today 8/26/11).  Thank you in advance for any assistance you can provide.

    You don't have BlackBerry Protect installed on the device, by any chance? If so, you'd have an over the air backup of contacts, calendar, SMS, etc.
    I'd suggest one last time, leave it charge a couple of hours on a wall outlet charger. After a few hours, keep it connected to the charger, remove the battery for a few minutes, replace and see if it boots.
    If not, then I think you're stuck.
    We might be able to get the device to reload the OS and power up again, but you will lose all your data.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Issue with opening a site in SharePoint Designer 2010 -The version of SharePoint foundation running on the server is more recent than the version of SPD you are using, you need a more recent version of SPD.

    I have a SharePoint site which I am trying to open in SPD 2010, I am getting the following error(some of my team members are able to open)
    The version of SharePoint foundation running on the server is more recent than the version  of SPD you are using, you need a more recent version of SPD.
    These are the ways I tried
    1) Earlier I have MS office 32 bit and SPD 32 bit, I uninstalled them and installed both 64 bit versions
    2) I uninstalled restarted my machine and installed it again still no use.
    3) I installed SPD 2010 Service Pack 2 of 64 bit
    4) I uninstalled the SPD 2010 and opened the site—site actions—edit page in SPD , then it asked me to install SPD 2010, then I installed and tried to open the same site, again same error.
    How to solve this issue?
    I checked permissions also at that site level – I have full control like others. I don’t have access to Central Admin so where else I can check the permission settings?

    Please update us SharePoint version 
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

Maybe you are looking for