When oracle invalidates result_cache results without any changes in objects

Hi all!
On our production servers we have simple function with result_cache, like this:
create or replace function f_rc(p_id number) return number result_cache
is
  ret number;
begin
  select t.val into ret from rc_table t where t.id=p_id;
  return ret;
exception
  when no_data_found then
     return null;
end;
/And its results frequently invalidates without any changes in table or
function. I found only 2 cases when oracle invalidates result_cache
results without any changes in table:
1. "select for update" from this table with commit;
2. deletion of unrelated rows from parent table if there is unindexed
foreign key with "on delete cascade".
I test it on 11.2.0.1, 11.2.0.3, on solaris x64 and windows. Test
cases: http://www.xt-r.com/2012/07/when-oracle-invalidates-resultcache.html
But none of them can be the cause of our situation: we have no
unindexed fk, and even if i lock all rows with "select for update", it
still does not stop invalidating.
In what other cases this happens? Am I right that the oracle does not
track any changes, but the captures of the locks and "commits"?
Best regards,
Sayan Malakshinov
http://xt-r.com

Hmm.. Do you about our situation or about test cases with "select for update" and "fk" too?
I'm not sure that it is a bug, maybe it's an architectural approach to simplify and reduce the cpu load?
Best regards,
Sayan Malakshinov
http://xt-r.com

Similar Messages

  • I am used to that when I open an image in Bridge it will be opened in PS, with all preferenses I have done to the image. Now it opens in PS but without any changes i have don e in Bridge. Also when I open a new image I want it to be opened in Camera Raw a

    I am used to that when I open an image in Bridge it will be opened in PS, with all preferenses I have done to the image. Now it opens in PS but without any changes i have don e in Bridge. Also when I open a new image I want it to be opened in Camera Raw automatically, both if a Jpeg or Raw picture.
    Using PS CC
    Regards BOJ

    <moved from Adobe Creative Cloud to Bridge General Discussion>

  • Firefox crashes when I close an e mail on AOL also it crashed once after printing some pages from my banking statement. Any ideas. I restarted a few times without any change to the crashing problem. WHat do you suggest.

    Firefox crashes when I close an e mail on AOL also it crashed once after printing some pages from my banking statement. Any ideas. I restarted a few times without any change to the crashing problem. What do you suggest.
    I am using Mozilla Beta 4. I volunteered to try it out. It's lightning fast. I really love using it. I see there is a new version of Firefox should I download it??

    I HAVE NOW SOLVED THE PROBLEM BY RUNNING WINDOWS REGISTRY REPAIR TOOL WHICH HAS OBVIOUSLY REPAIRED CORRUPT REGISTRY FILES.

  • Has anyone a solution to two update having the following popup-"We could not complete your request.  There was an error in the App store.  Please try again later.?"  I've tried over 4 days without any change.

    Has anyone a solution to two update having the following popup-"We could not complete your request".  There was an error in the App store.  Please try again later.  I've tried over 4 days without any change.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • I am suddenly using my data download without any changes to my normal usage why?, I am suddenly using my data download without any changes to my normal usage why?

    Why am I suddenly using most of my data allowance without any changes to my normal pattern of usage. Never had this problem before and have been using iPhones for a number of years now!

    go to settings>cellular>toggle off the apps you dont want your phone to use data

  • I am trying to download the update to Photo Effects (Lite) v 3.0.0, for several weeks now without success. I press the update button and it goes away, then comes back again without any change. Can someone help please?

    The update to Photo Effects (Lite) v 3.0.0 won't work. I've tried for several weeks without any result. I press the download button and it disappears, then reappears again. Can any one help, please?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select
              /var/log ▹ appstore.log
    from the hierarchical list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    Each message in the log begins with the date and time when it was entered. Select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, click the Clear Display button in the toolbar of the Console window and then try the installation again.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    ☞ The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Only query on existing form without any changes on the existing records?

    Dear all,
    I am working a brand new form. The form is able to query all the records from the table. However, when I leave the form, it will ask me "Do you want to save the changes you have made?" everytime. I didn't make any changes on the existing records.
    My form only has 2 fields (one with LOV and one without).
    Does anyone know what went wrong?
    Thanks.

    How do you populate your datablock? Do you query one of your values in a Post-Query trigger?
    However you are populating your datablock, Forms is detecting that the status of the Form, Block or Record is changing.
    Also, please let us know your Forms version.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Logging sql queries without any changes in existing apps

    Hi!
    Is it possible to log all SQL queries send from application to database via JDBC without any (or really small) changes in code of existing applications?
    I'm new to JDBC so any suggestions/ideas/best practices are welcome ;)
    Best regards.
    Edited by: matthew_ on Mar 16, 2008 5:35 PM

    Is it possible to log all SQL queries send from application to database via JDBCFirst is an assumption that the driver does in fact sends SQL. It might send some other form.
    But excluding that and excluding that the driver explicitly sends it then you can create a proxy driver. You implement the driver to pass everything to the real driver. Along the way it collects the information.
    You will find that that is quite bit of work. However it impacts the actual code very little and requires nothing more than loading the driver and changing the connection string in the code where it is used.

  • Double POR in SUS without any change

    Hi everyone,
    We have an issue with the POR in SUS. The steps to replicate the error are the following:
    1. We create a PO. This is sent to SUS.
    2. In SUS the vendor creates a POR for that PO. In this POR there is not any change. The vendor confirms the same quantity, the same dates, the same price.
    3. The POR is sent to SRM.
    4. In SRM, the POR is approved.
    5. THIS IS THE ISSUE. A change in the PO is registed in SRM and it is sent a XML message from SRM to SUS. This new message makes that the vendor will has to create a second POR. This is incorrect because the original POR does not have changes.
    Do you know how to solve this issue??
    We are working in SRM 5.5.
    Thank,
    Ivá

    Hi Khan,
    We reactivated the WF and tested again. We have the following behaviors (in all the cases we started with a SC and with direct materials):
    1st: One POR without changes (correct):
    1. The PO is created in SRM and is sent to SUS
    2. In SUS, the POR is created without changes and is sent to SRM
    3. The PO in SRM is not modified and is not sent a new message from SRM to SUS after the WF WS14500001
    2nd: One POR with changes and one POR without changes (correct):
    1. The PO is created in SRM and is sent to SUS
    2. In SUS, the POR is created with changes and is sent to SRM
    3. The PO in SRM is modified and is sent a new message from SRM to SUS
    4. In SUS, the POR is created without changes and is sent to SRM
    5. The PO in SRM is not modified and is not sent a new message from SRM to SUS after the WF WS14500001
    3rd: More than one POR with changes and one POR without changes (issue):
    1. The PO is created in SRM and is sent to SUS
    2. In SUS, the POR is created with changes and is sent to SRM
    3. The PO in SRM is modified and is sent a new message from SRM to SUS
    4. In SUS, the POR is created with changes and is sent to SRM
    5. The PO in SRM is modified and is sent a new message from SRM to SUS
    6. In SUS, the POR is created without changes and is sent to SRM
    7. The PO in SRM is not modified and is sent a new message from SRM to SUS after the WF WS14500001
    The 3rd case, the steps 6 and 7 are an infinitive loop.
    Do you think that is correct to deactivate the WF WS15400001??
    RG,
    Ivá

  • RE-Acknowledgement without any changes in the log???

    Hello Guyz,
    I am working on an issue where we have been receiving an excessive number of re-acknowledgments that are not as a result of a sales order change registering in the change log.
    This problem is creating a significant amount of additional work for us internally and it is impacting our ability to provide timely information to our customer regarding their order.
    Could you please advice what changes to the sales order will prompt a re-acknowledgement. I have checked everything there is no change in the programme or the SAP Scripts, there is no background job and there are no changes in the sales order,
    I would really appreciate if you could please help me out in resolving this issue, Appreciate your help and waiting for some urgent replies.---Thanks.
    MD

    If you want to see the fields that will trigger the log.
    go to AUT01.
    Select Change Document Object,
      Enter "VERKBELEG"  -( This is the change document object for sales documents )
    Press the display button. you can see all the tables that were enabled for logging changes.
    By clicking on each table, you can identify the fields that were enabled to trigger the change log.
    This is the answer to your question " where we can configure to trigger the log changes for sales order ".. I don't think it will solve ur main issue.
      You need to look into your business process and ur System architecture to resolve the main issue.
    Regards,
    Ajai.
    Don't forget to reward points if useful.

  • Syncs changes to my Touch even without any changes in iTunes

    Recently, everytime I connect my 32G Touch to my Macbook, it updates around 350 songs even if I have not made any changes to my iTunes library or Touch. I can even let it finish updating the 350 songs and disconnect then reconnect and it doest it again. Any idea what might be causing this?

    Mine has also been doing this for several weeks. Might have happened with an iTunes software update? Every time I sync, the same 99 songs out of my library re-sync to my iPod Touch even though nothing about them has changed. Nothing. it's freaking annoying.

  • I recently downloaded the latest version of iTunes.  Since then when I add a cd it does not show in my music library.  I have signed out then back in without any change.  Suggestions?

    Help!

    Hi Edward,
    You should still be able to manually manage the music on your iPhone within iTunes. Make sure that when your iPhone is plugged in, look in the Summary tab to see if “Manually manage music and videos” is enabled and you can even you turn off Automatically Sync when this iPhone is connected. Take a look at the first article below to give more information on that. As far as your other questions about calling someone, I have provided two options for you. If it is for feedback on iTunes, you can use the second link to give detailed feedback on what is going on. If you want to actually talk to someone, the last link has a list of numbers for you to call for any support or service that you may need.  
    Manage content manually on your iPhone, iPad, and iPod
    http://support.apple.com/en-us/HT201593
    Product Feedback
    http://www.apple.com/feedback/
    Contact Apple for support and service
    http://support.apple.com/en-us/HT201232
    Take it easy,
    -Norm G. 

  • When I boot up my Win7 (64bit) PC, I receive the following error msg "the new Java Plug-In requires a recent version of the Firefox browser" I have reinstalled Firefox3.6.12 several times without any change?

    I have reinstalled the latest JRE twice. Reinstalled Firefox3.6.12 twice but the following error message persists at startup "the new Java Plug-In requires a recent version of the Firefox browser(Firefox 3 or later)"

    I have reinstalled the latest JRE twice. Reinstalled Firefox3.6.12 twice but the following error message persists at startup "the new Java Plug-In requires a recent version of the Firefox browser(Firefox 3 or later)"

  • HT3529 My IMessage will not activate on my iPhone4. It worked fine till yesterday then suddenly quit. I have reset the entire phone without any change in results, how do I fix this?

    My iPhones I messaging an FaceTime were working fine until yesterday. I do not use my iPhone as a phone. It's basically a glorified iPod. But I do used it to imessage

    k

  • How to copy word document with bullet to email body without any changes

    when I paste word doc to mail body symbols all are changed..

    when I paste word doc to mail body symbols all are changed..

Maybe you are looking for

  • How to access/add data in windows registry[regedit]

    Sir, We are making a trial version software. How can we register this software with our own specified data eg product name, duration, duration left, account no.etc in windows or any other os registry.

  • How do you "UNLINK" the audio tracks?

    I have had LOGIC now for about 3 weeks. I am learning tons and enjoying the program overall. I have received some great help from this forum. My latest adventure is creating more audio tracks. I found out recently from this forum that I had the setti

  • DD multiples, perte du chemin d'accès aux photos

    Bonjour à tous, Je souhaite transférer toutes mes photos depuis un DD externe vers un autre DD externe. Mes photos sont réparties dans des dossiers par séance photo, toutes logées dans un dossier "images". Comment faire pour ne pas perdre le chemin d

  • How do I print a frame from a video I have in iPhoto or iMovie?

    I have a video in iphoto and imovie, and I would like to send/print out one frame, as a still picture. Is this possible?

  • Passwords and Mails, newbie

    It's my new BlackBerry, and I'm really bad in all the things related to technology. I would lik eto know what to do about the authorisations. The mobile asked me about a PIN, which I already know, an email, and a password. I should need this to get o