Cache and DB Triggers

What is the best approach to caching if I expect data base triggers to often change the data on the back end?
Also a similar scenario but two seperate systems updating data in database independently.
Thanks.
p.s. SoftCacheWeakIdentity does not support this situation really well even if I disable cache hits on certain object that I expect to change frequently, mainly due to number of Privately Owned relationships.

Don,
Thank you for the reply.
You are addressing mainly the Locking issue wich I more or less understand. But my question really focuses on the Refresh issue.
If I expect triggers to modify data on every commit from Toplink - what caching policy is recommended in this case?
The problem lies in the fact that user sees stale data while the application is real-time dynamic. The default SofCacheWeakId works great if Toplink is the only data modifier. However when adding another system to do some "database work" I can no longer rely on TopLink cache as being accurate.
I don't wasnt to turn caching off completely bacause only certain objects are being modified externally.

Similar Messages

  • Transactional Caches and Write Through

    I've been trying to implement the use of multiple caches, each with write through, all within a transaction.
         The CacheFactory.commitTransactionCollection(..) method only seems to work correctly if the first transactionMap throws an exception in the database code.
         If the second transactionMap throws exceptions, the caches do not appear to rollback correctly.
         I can wrap the whole operation in a JDBC transaction that rolls back the database correctly but the caches are not all rolled back because they are committed one by one?
         For example, I write to two transaction maps, each one created from separate caches. When commiting the transaction maps, the second transaction map causes a database exception. It appears the first transaction map has already committed its objects and doesn't roll back.
         Is it possible to use Coherence with multiple transaction maps and get all the caches and databases rolled back?
         I've also been trying to look at using coherence-tx.rar as described in the forums within WebLogic but I'm getting @@@@@ Failed to commit: javax.transaction.SystemException: Could not contact coordinator at null+SMARTPC:7001+null+t3+
         (SMARTPC being my pc name)
         Has anybody else had this problem? Bonus points for describing how to fix it!
         Mike

    The transaction support in Coherence is for Local     > Transactions. Basically, what this means is that the
         > first phase of the commit ("prepare") acquires locks
         > and ensures that there are no conflicts. The second
         > phase ("commit") does nothing but push data out to
         > the caches.
         This means that once prepare succeeds (all locks acquired), commit will try to copy local data into the base map. If there is a failure on any put, rollback will undo any changes made. All locks are cleared at the end.
         > The problem is that when you are using a
         > CacheStore module, the exception is occurring during
         > the second phase.
         If you start using a CacheStore module, then database update has to be part of the atomic procedure.
         >
         > For this reason, write-through and cache transactions
         > are not a supported combination.
         This is not true for a cache transaction that updaets a single cache entry, right?
         >
         > For single-cache-entry updates, CacheStore operations
         > are fully fault-tolerant in that the cache and
         > database are guaranteed to be consistent during any
         > server failure (including failures during partial
         > updates). While the mechanisms for fault-tolerance
         > vary, this is true for both write-through and
         > write-behind caches.
         For the write-thru case, I believe Database and cache are atomically updated.
         > Coherence does not support two-phase CacheStore
         > operations across multiple CacheStore instances. In
         > other words, if two cache entries are updated,
         > triggering calls to CacheStore modules sitting on
         > separate servers, it is possible for one database
         > update to succeed and for the other to fail.
         But once we have multiple CacheStore modules, then once one atomic write-thru put succeeds that means database is already updated for that specific put. There is no way to roll back the database update (although we can roll back the cache update). Therefore, you may end up in partial commits in such situations where multiple cache entries are updated across different CacheStore modules.
         If I use write-behind CacheStore modules, I can roll back entirely and avoid partial commits? Since writes are not immediately propagated to the database? So in essence, write-behind cache stores are no different than local transactions... Is my understanding correct?

  • 9iAS Db Cache and Forms

    Hi
    How do I get use of 9iAS DB Cache with my Forms deployment using forms server.
    null

    Mark,
    I was succesful on my 4th try. This is what I did differently and I'm not sure what triggered success.(a preface: database cache was not succesful but portal was). After install of db I followed these suggestions before install of 9ias(plus others offered by Tao Fan in a previous post:
    in the init.ora file:
    set o7_dictionary_accessibility=true(this is an o, not 0)
    comment out the 'dispatchers' line.
    rename the spfile in the <oracleHome>\database directory(i changed mine to xspfile.txt). Make sure you restart the db after any changes to the init.ora file. Set all oracle services to manual and disable the http server. Stop all services.
    Start your install. Mine hung at 100% complete with a command window open. Before I closed the command window I started the database service but not the listener. The install proceeded to fail during the db cache and portal install. I exited out of the install, started the dbTNSlistener, and any iSuitesagent services(not sure if this helped but I'm happy now!)Then, I restarted the machine. Then start/programs/iSuites/portalConfigAssistant and it worked.
    If none of this makes sense I can email you the documentation I kept while installing.

  • 9iAS installation problems w/ db cache and Portal

    I am still trying for a succesful installation of the 9ias software. I have followed all of the suggestions that have been posted and I am now getting TNS cannot resolve service name during the database cache part of the install. I checked services and it seems that this install didn't set up a TNSListener service for the 9iSuites home? I set the oracle_sid = icache as it instructs in the appendix, set the o7_dictionary_accessibility = true, and renamed the spfile to a .txt file so Oracle wouldn't find it. Subsequent to the database cache errors, the Portal install can't find the database either. I'm frustrated because I had the server up and running succesfully with an 8.1.7 db and I'm trying to switch to 9iDB. Any help would be greatly appreciated! My boss is getting a little impatient.
    Thanks.

    Mark,
    I was succesful on my 4th try. This is what I did differently and I'm not sure what triggered success.(a preface: database cache was not succesful but portal was). After install of db I followed these suggestions before install of 9ias(plus others offered by Tao Fan in a previous post:
    in the init.ora file:
    set o7_dictionary_accessibility=true(this is an o, not 0)
    comment out the 'dispatchers' line.
    rename the spfile in the <oracleHome>\database directory(i changed mine to xspfile.txt). Make sure you restart the db after any changes to the init.ora file. Set all oracle services to manual and disable the http server. Stop all services.
    Start your install. Mine hung at 100% complete with a command window open. Before I closed the command window I started the database service but not the listener. The install proceeded to fail during the db cache and portal install. I exited out of the install, started the dbTNSlistener, and any iSuitesagent services(not sure if this helped but I'm happy now!)Then, I restarted the machine. Then start/programs/iSuites/portalConfigAssistant and it worked.
    If none of this makes sense I can email you the documentation I kept while installing.

  • 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

  • Statement caching and batch update

    Can these 2 JDBC features work together ?
    Is it possible while statement is cached to be reparsed (soft) if used in batch update ?
    I am asking this questions because i have a sitution where an insert is cached using implicit statement caching and then put in a batch to exeute batch updates !!! From statspack reports i find that 1/3 of statements are reparsed ... even soft !!!

    Statement caching and batch update work fine together. The most common cause of unexpected soft parses is changing the type of some parameters. If you first bind one type, setInt(1, ...), do addBatch, then bind another type to the same parameter, setString(1, ...), and do addBatch, you will get a soft reparse. There is nothing the JDBC driver can do about this, the RDBMS requires it.
    In general, whatever parse behavior you see with statement caching you would also see without it.
    Douglas

  • Can not open lightroom 3.6 it shows error reading preview cache and closes what can i do. it does not stay open long enough to do anything

    has anyone had an issue that lightroom has error reading preview cache and closes immediately. what can i do to correct this

    Re: "Lightroom encountered and error when reading from its preview cache and needs to quit"

  • When I publish my site on one specific page where i've added {tag_pagecontent} I get the error:Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.

    When I publish my site on one specific page where I've added {tag_pagecontent} I get the error:
    'Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.'
    I'm trying to get a blog module going, I've even deleted the html insert bog with the tag in and re-published which then I don't get the error but as a result no blog either. But then I add the tag in again and publish the error comes back. I've used the dev console and it says that my musicians sample.css is out of date but why is it only out of date when I add in html to my muse site?
    HELP!!!! I've searched other threads and to no avail I'm publishing so no direct ftp going on. the only thing I changed in business catalyst was the module stylesheet in order to style the blog. I've tried uploading and replacing all files nothing seems to work. the site is here:
    http://www.musicstudentsforhire.co.uk/musicians-samples.html
    It's only this page as it has the blog on. Also I've noticed when I've re-published occasionally it will show the mobile version on my desktop and not the desktop version??? no idea why that's happening so I've had to turn that off. any explanation on why that is happening would also be much appreciated.

    I haven't received an answer as of yet, I'll post t on here when I do. I de-activated the mobile site because it's my clients site so he needs it to be operational during the day. I hope someone gives me an answer soon.

  • How do I get Firefox to show the proper font and layout of a site when it keeps loading an older version of that site? (I have cleared cache and cookies already)

    We are having a new website developed and my designer has made changes to it. Despite clearing the cache and cookies, the fonts are not showing up as the actual fonts. Also, the form fields at the bottom are extending beyond the border on the right side of the box on my screen, but this does not happen for other people using Firefox - it is only on my computer.
    I AM ON A MAC.
    I received a suggestion to reload the page and bypass the cache with:
    * Press "Cmd + Shift + R" (MAC)
    BUT - this did not work.

    You can reload the page and bypass the cache with:
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    See [[Keyboard shortcuts]] and [[Mouse shortcuts]]

  • Questions on cache and general RSRT settings for plancube

    Hi,
    we would like to:
    1) set request status 1 in RSRT for our planqueries, in order to automatically refresh the query after executing a planfunction (problem we have now is that the results of a planfunction are not automatically updated in the query. Only when doing something else like executing other function, saving, check locks, ... the results are visible).
    2) activate delta cache for our planqueries
    we have read OSS note 1136163 on RSRT settings. It says:
    Aggregation level "A" is implemented internally by the automatically created query "P/!!1P" (plan buffer query). This query acts like an InfoProvider. It reads the data of the database or provides the data from InfoProvider "P", it adds the data of the delta buffer "Dp" (or the delta buffer Dpi if P is a MultiProvider with several PartProviders Pi that can be planned) and transfers the data manager as data of the InfoProvider "A" of type "ALVL". The query "P/!!1P" can use aggregates and the cache; this is exactly like each normal query in "P". If "P" is a MultiProvider, it is useful to set PARTITIONMODE to "1".
                  For the query "P/!!1P" that is created automatically for an aggregation level or for all aggregation levels using the InfoProvider P, we recommend the following setting:
                  Read mode "H", request status "1", cache mode "1" or higher, delta cache "true" and SP grouping "1".
                  Furthermore, the selection to use the structure element (KIDSEL) should be "true".
                  The input-ready queries in "A" should not, and cannot, use a cache. The request status is irrelevant since queries in "A" are automatically set to current data. The delta buffer does not currently support hierarchy processing. Therefore, aggregation level "A" cannot completely support read mode "H". For input-ready queries at A:
                  Read mode "X", request status "0", cache mode "0".
                 The delta cache and SP grouping are not visible
    Problems we have:
    1) for query P/!!1P (PCA_AGQF/!!1PCA_AGQF in our example) does not allow changing the request status (greyed out). It now has value 0 instead of 1. It also does not allow to activate the delta cache flag. How to change this? In RSDIPROP we have set partitionmode to 1 for the multiprovider and activated the delta cache flag...
    2) can we use the cache / delta cache principle for our planqueries? If so, how to ensure these settings remain activated in RSRT?
    regards
    Dries
    regards
    dries

    Hi,
    To change the cache settings for your cube.
    Open the cube in RSA1 and click in 'Chance'.
    - click in the 'Environment' menu;
    - expand 'InfoProvider Properties'
      - select the option 'Change'.
    You will be able to set the cache mode for this provider.
    I don't think it will be possible use cache for a multiprovider, it is
    not possible.
    Regards,
    Amit

  • My safari,4.1.3 on the bottom says cancelled opening page. have cleared the cache,and reset but it still does it on some pages,not all. Any ideas

    My safari,4.1.3 on the bottom says cancelled opening page. have cleared the cache,and reset but it still does it on some pages,not all. Any ideas

    It's possible that the pages you are attempting to open simply won't work with that old web browser.
    If you're using Mac OS X Tiger, update to the latest version, which is 10.4.11. (You might be using that already. Your profile says you're running 10.4.1, but I bet that's just a typo.)
    Then get the latest version of Safari that will run on Tiger. (And... you have that already: 4.1.3.)
    You might try a more modern browser designed specifically for your current OS. That would be TenFourFox.
    Information on TenFourFox:
    http://en.wikipedia.org/wiki/TenFourFox
    Download TenFourFox here:
    http://www.floodgap.com/software/tenfourfox/

  • Lightroom encountered and error when reading from it preview cache and needs to quit

    A power outage caused my Lightroom 5.2 to shut down without closing.  When I powered back up and opened lightroom it gives me an error "Lightroom encountered and error when reading from it preview cache and needs to quit" and then it says it will try to fix it the next time it opens. I have opened it 20 times and it is not fixing it. I removed the program completely and upgraded to 5.5 AND it is still giving me the same error.  Is my catalog corrupt or something? I had it set to automatically load the most currently used catalog, so it is not allowing me to open or start a new catalog either. HELP!!!

    Search the forum, this has been answered many times.

  • I'm unable to open up Lightroom 5, I get this message in a pop up box: "Lightroom encountered an error when reading from it's preview cache and needs to quit" Underneath  that is "Lightroom will attempt to fix this problem the next time when it launches."

    I'm unable to open up Lightroom 5, I get this message in a pop up box: "Lightroom encountered an error when reading from it's preview cache and needs to quit" Underneath  that is "Lightroom will attempt to fix this problem the next time when it launches."  It hasn't, what should I do? Thanks Shawn (Irish Se7en) .

    Can you try to rename (not delete!) the folder named "YOUR_CATALOG_NAME Previews.lrdata" and restart Lightroom?

  • "Lightroom encountered and error when reading from its preview cache and needs to quit"

    I keep receiving this error every time I open LR, "Lightroom encountered and error when reading from its preview cache and needs to quit" and the app won't open. It said LR would try and fix this error next time I opened it but the error remains. I tried uninstalled and installing the app and the error remains.
    Any Ideas here? Is there another app that may be telling it where to look for the cache and it no longer there? I was using a ramdisk for a bit but ditched it. Not sure if that has something to do with it but it seems suspect.
    Your thoughts?
    --Kenny Brandon Wilson

    Talked to Adobe support this morning, this is their response in case anyone else is looking for help. I'm running a Windows 7 box, LR 5.6.
      Gokul: Click on start and type %appdata%, then open roaming folder.
      Edward: ok
      Gokul: Open Adobe folder.
      Gokul: Open Lightroom folder.
      Gokul: Open Lightroom folder> Preferences.
      Edward: ok
      Gokul: Rename Lightroom 5 Preferences.agprefs file as Lightroom 5 Preferences.agprefsOLD.
      Edward: OK
      Gokul: Please check if you can launch Lightroom without any error.
      Edward: it shows me a welcome screen and is asking me to select my country
      Edward: aka, register the software
      Gokul: You can skip and launch it.
      Edward: LR catalog not found
      Gokul: Please select the catalog.
      Edward: my original catalog?
      Gokul: Yes.
      Edward: testing integrity of catalog
      Edward: loaded just fine
      Gokul: Okay.
      Gokul: Please check if you can re-launch it again.
      Edward: yes, it worked!
      Gokul: Excellent!
      Gokul: Since your preferences were corrupted you were facing issue so we renamed the preferences file to reset it.
      Edward: aha....ok
    All of my import/export presets were intact along with develop user presets. I'm happy as a clam for my $10/month!

  • When I attempt to open lightroom I recive this message: [ Lightroom encountered an error whenreading from itspreviw cache and needs to quit.Lightroom will atempt to fix this problem next time it launches.] I did this a few times but no resoulve

    When I attempt to open lightroom I recive this message: [ Lightroom encountered an error whenreading from itspreviw cache and needs to quit.Lightroom will atempt to fix this problem next time it launches.] I did this a few times but no resoulve

    It isn't a file, it's a folder. It will have the same name as your catalog, but will have the extension data. It will be in the same folder along with your catalog. If you need to use the search feature to search for *.lrdata.

Maybe you are looking for