Implications/side effects of changing cache size of sequence

Hi Experts,
We are on Oracle 11.2.0.2 on Solaris 10. I have a question about sequences. They are defined as NOCACHE in my database and we are seeing a lot of "row cache lock". So I am thinking of changing the sequences to cache 20 values. Does this have any other implication -except that during db restart the cached values can be lost.
Thanks,

@VenkatB, when you get a value from sequence, to provide consistency, sequence execute an internal commit, works like kind of autonomous transaction.edit: this is also how, after a crash sequence still get his last value.
that is because if you dont set cache and use in a loop the sequence, that cause to log file sync event. (of course you must get many values from sequence)
>
Prove it.
Log file sync may only be incidental but may happen only from the application code when they get sequence and then do a commit within a loop. In fact, log file sync need not happen just because it's committed in loop.
When user process gets sequence value, Oracle updates SEQ$ with the value to update the value. In fact, Oracle does it for almost all of the foreground code. When Oracle has to add an extent, when Oracle has to update a new datafile header, when Oracle has to autoextend a file, etc...it always inserts/updates one of the dictionary views all the time. So it's nothing new or just with sequence.
And don't confuse yourself with a timed event with a wait.
I have tested on a 11g and 10g and I don't see any log file sync waits in tkprof or v$session_event
SQL> create sequence seq_test start with 1 nomaxvalue nocache;
Sequence created.
SQL> Declare
  2   v_cnt number;
  3  Begin
  4   For i in 1..10000
  5   Loop
  6     select seq_test.nextval into v_cnt from dual;
  7   End Loop;
  8  End;
  9  /
PL/SQL procedure successfully completed.

Similar Messages

  • SBS2011 (Exchange 2010 SP2) - limiting cache size doesn't appear to work

    Hi All,
    Hoping for some clarification here, or extra input at least.  I know there are other posts about this topic such as
    http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/thread/5acb6e29-13b3-4e70-95d9-1a62fc9304ac but these have been
    incorrectly marked as answer in my opinion.
    To recap the issue.  The Exchange 2010 store.exe process uses a lot of memory.  So much in fact it has a negative performance impact on the server (sluggish access to the desktop etc).  You can argue about this all day - it's by design
    and shouldn't be messed with etc but the bottom line is that it does use too much memory and it does need tweaked.  I know this because if you simply restart the Information Store process (or reboot the server) it frees up the memory and the performance
    returns (until its cache is fully rebuilt that is).  I have verified this on 4 different fresh builds of SBS2011 over the last 6 months. (all on servers with 16GB RAM)
    I have scoured the internet for information on limiting how much memory exchange uses to cache the information store and most articles point back to the same two articles (http://eightwone.com/2011/04/06/limiting-exchange-2010-sp1-database-cache/
    and
    http://eightwone.com/2010/03/25/limiting-exchange-2010-database-cache) that deal with exchange 2010 and exchange 2010 SP1, notably not exchange 2010 SP2.  Ergo most articles are out of date since exchange 2010 SP2 has been released since these articles
    were posted.
    When testing with our own in house SBS2011 server (with exchange 2010 SP2) I have found that specifying the min, max and cache sizes in ADSIEDIT has varying results that are not in line with the results documented in the articles I mentioned above. 
    I suspect the behaviour of these settings has changed with the release of exchange 2010 SP2 (as it did between the initial release and SP1).
    Specifically here's what I have found using ADSIEDIT;
    If you set the msExchESEParamCacheSize to a value - it doesn't have any effect.
    If you set the msExchESEParamCacheSizeMax to a value - it doesn't have any effect.
    If you set the msExchESEParamCacheSizeMin to a value - it always locks the store.exe process to using exactly this value.
    I have also tested using combinations of these settings with the result that the size and max size values are always ignored (and the store.exe process uses the maximum available amount of memory - thus causing the performance degradation) but as soon as
    you specify the min value it locks it to this value and it doesn't change.
    As a temporary solution on our in-house SBS2011 I have set the min value to 4GB and it appears to be running fine (only 15 mailboxes though).
    Anyone got some input on this ? thank you for your time.

    I concur with Erin. I'm seeing the same behaviour across all SBS2011 boxes, whether running SP1, SP2 or SP3.
    If a minimum value is set, the store cache size barely rises above the minumum. I have one server with 32GB RAM. Store.exe was using 20GB of RAM, plus all the other Exchange services which total 4GB+. That left virtually no free RAM and trying to do
    anything else on the server was sluggish at best.
    All the advise is that setting a maximum alone has no effect and a minimum must be set too. But when set, the store cache size barely rises above the minimum. I have set a 4GB minimum and 16GB max, but 5 days later it's still using only slightly more than
    4GB and there's 8GB free. Now the server as a whole is responsive, but doing anything with Exchange is sluggish.
    Just saying leave Exchange to manage itself is not an answer. The clue is in the name - Small Business Server. It's not Exchange Only Server - there are other tasks an SBS must handle so leaving Exchange to run rampant is not an option. Besides, there are
    allegedly means to manage the Exchange cache size - they just don't apparently work!
    I'm guessing nobody has an answer to this so the only solution is to effectively fix the cache size to a sensible value by setting min and max to the same value.
    Adam@Regis IT

  • Switching from HTTP to HTTPS - adverse side effects???

    Hi everybody,
    what are the possible adverse side effects when changing from HTTP to HTTPS? 
    I could imagine that previously saved web bookmarks would not work, correct?
    Links saved in roles will have to be adjusted in roles, correct?
    Anything else?
    Does anybody have knowledge/experience in this area and how do you recommend to proceed when switching a productive system from HTTP to HTTPS?
    Martin

    The web bookmarks stored on IE browser will still point to the HTTP service, not HTTPS, you will have to make the changes manually.
    The URLS for BW Reports are generated dynamically, you should be able to maintain an entry in table HTTPURLLOC and get this switched to HTTPS. see OSS note 805344 for the same.
    Thanks.

  • Page & cache size performance tuneup

    Hi
    I am doing performance evaluation on BDB. Please help me in find answer to below queries.
    1. page size: Do I need to give the page size based on my XML document size. Is there any relation(formula) between page size & XML document size to get optimum memory usage?
    2. cache size: Is cache size needs to be equal/more than the doc size to minimize the query response time? Could you please suggests a optimum cache size for 1MB XML document?
    3. I have stared with BDB version 2.3.10, but i read in this forum there is some performance improvement in BDB version 2.3.10. What version i should use for my evaluation? Is the latest(4.6.21) is best(stable)?
    4. Is any other parameters ( other than page & cache size) I need to tuneup to get optimum memory usage & minimal CPU utilization?
    Is there any reference document I can get more details on BDB performace?
    Thanks,
    Santhosh

    Hi Santhosh,
    It’s hard to give solid suggestions without knowing more about your application, what you are measuring and what your performance requirements are. What language are you implementing in?
    Is query response time most important, or document insertion or updates?
    I am going to request that you respond to this Performance Questionaire and answer as many questions as you can at this time. Send the questionaire to me at Ron dot Cohen at Oracle.
    http://forums.oracle.com/forums/ann.jspa?annID=426
    In addition to the information requested, you can see from the questionaire that the utility
    Db_stat –m is useful to look at a number of things including the effectiveness of the cache size you have.
    Have you taken any measurements yet? I would suggest going with the default pagesize but using a cachesize larger than the default. I don’t know how much real memory you have but for a first measurement you could try a cachesize of 100MB-500MB (or larger) depending on your workload and how much memory you have available. I am not recommending that as a final cache size, just giving you a number to start with.
    http://tinyurl.com/2mfn6f
    You will likely find a lot of improvements in performance can be obtained by your indexing strategy. This may be where you get the best results. You may want to spend some time reviewing that and the documentation on indexes:
    http://tinyurl.com/2522sc
    Also, take a look in the same document at the indexing sections.
    Berkeley DB XML 2.3 (Berkeley DB 4.5.20) should be fine to start (though you may have read on this forum about the speed improvements in Berkeley DB XML 2.4 which is currently in test mode).
    Please do respond to the survey, send it to me and we will try to help you further.
    Ron

  • Change font size in side bar

    How do I change the font size for the side bar? I can change icon sizes and font sizes for desktop and folder items, but I do not see where the setting is for the side bar.
    Thanks in advance

    A few people mention seeing a sidebar option in Tiger but nowhere in 20 minutes web searching could I find anybody saying where they could do this in Tiger (and usually that kind of tip is very quickly found on many websites). They just bemoan missing this in Leopard. Maybe they remember an even earlier incarnation of OSX, or it may involve a pretty serious hack of the system.
    http://www.straitmac.com/jforum/posts/list/502.page
    I looked at preference lists for Finder and com.apple.sidebarlists.plist and nowhere does it list sidebar font preferences.
    Good luck searching, and report back if you do find it.

  • Trying to change the cache size of FF3.6 from 75meg to a larger size, it only applies on a per session basis. i check the about:config and the changes have applied but when i restart FF it has reset itself to 75 :(

    as per the question, tried to up the cache from 75meg to 300meg but it resets after i restart firefox, have tried to change to various cache sizes but to no avail.
    -=EDIT=-
    it must be something to do with the profile, as when i set up a new profile in the manager, the cache size problem no longer appears. but now, how to repair my profile

    ok, nothing in that text file helped but the original file that it was based on pointed me in the direction that it might be an extension. The only extensions i have are NoScript and FasterFox Lite version....
    I have now traced the fault to lie with FasterFox... if you are not familiar with fasterfox it speeds up internet connections in firefox... several of the options are presets... but when i selected custom it gave me the option of a cache setting, which was set to 75megs.
    I have now changed that cache setting in fasterfox to 300 Megs and it is now persistant in firefox on restart.
    hopefully this information will be helpful to other people in the future that suffer the same problem.
    Thanks for your help TonyE, its greatly appreciated

  • How do I Change the Cache size?

    I have an iBook G4 and am trying to change the cache size for this screen saver I downloaded.
    iBook G4   Mac OS X (10.4.9)  

    Hi
    Curious which screensaver you are referring to?
    Screensavers can be processor intensive, requiring a certain level of computing power to avoid flicker or stuttering. The G4 iBook is not that type of machine.
    Some Screen Savers have a preference file (accessed through the Desktop and Screen Saver System Pref Panel - highlight the saver, and select "options" if one is available) where you can adjust the operating speeds and other parameters. Otherwise, I don't believe there is anything more you can do.
    I notice a big difference in certain screen savers running on my G5 iMac vs. my iBook, with the former handling the screen movement much more easily.
    Post back
    iMac G5 Rev C 20" 2.5gb RAM 250 gb HD/iBook G4 1.33 ghz 1.5gb RAM 40 gb HD   Mac OS X (10.4.9)   Seagate 300 gb ext. HD Canon i960 printer, Airport Express (2 units)

  • Any side effects on JRE/JVM when setting Desktop Heap Size?

    In Win2003 we experience a limitation of about 70 java.exe's. By setting the Desktop Heap Size we can increase this limit to more than double. Link showing more info on Desktop Heap Size:
    http://blogs.msdn.com/ntdebugging/archive/2007/01/04/desktop-heap-overview.aspx
    Does this give any side effects to the running java.exe's?
    Has anyone experimented with this?

    Hi Bobo
    It seems to be a bit small. I have close the same configuration like you and set the
    maxMemory to 512 MB/server
    Regards Ruedi :-)
    Bob Krause schrieb:
    Hello,
    I have a customer that is running WLS 6.1 sp4 and they have set the JVM max memory
    value to 64M on a Sun Solaris box with over 6 meg of memory and 4 CPUs.
    We have an application on it that makes use of connection pooling, session objects,
    over 30+ stateless session beans, and has 100-200 users connected to the application
    for 4-8 hours at a time.
    Does this value of 64M make any sense??? This is the default out of the box setting
    that we have setup on our development PCs.
    Also as a side note, can any point me in the direction of any formulas for the
    calculation of this number and also the number of execute threads.
    Thank you,
    Bob

  • Is there any side effect despite in 'sharing' when I change the computername in os x 10.6

    Hi,
    I'm not sure about any side effect if I change my computer's name (currently like 'first name last name MacbookPro'), e.g will time machine have any trouble with that? Would like to change to a shorter name.
    Computer is in use since 2 years and everything works fine. Just tried to integrate sonos music system with my mac and have trouble sharing iTunes library with sonos. Therefore sonos support asked me to shorten the computers name and see if that helps.
    To me seems more sth like permission problem on one of the folders above iTunes. Is there any logfile I could check to find out about access to files which permission settings don't allow?
    Tia and kind regards
    Manu

    trimanu wrote:
    will time machine have any trouble with that?
    no.
    you can safely change your computer's name as often as you like.

  • Statement cache size - application changes withouth restart

    Hi, I would like to ask, how can I disable statement cache withouth restart.
    If I set statement cache size to "0" and push button "Apply chanes", I got
    message "No restart are necessary". Does it mean, that statement cache is
    flushed? There is production environment and I would like to make sure
    about it.
    Thank you in advance.
    Vladislav Rames, WLS 10.3.4

    Yes, setting the statement cache size is dynamic. A running server will close all cached
    statements and do no more caching, as soon as you set the cache size to zero.

  • Dynamically changing SCCM Cache Size

    Has anyone come up with a 'clean' method to increase the SCCM Cache size as part of a large application deployment?
    For example, we have a 8GB adobe application that is larger than our default client cache size - 5GB. We have made the switch to all SSDs, so preserving disk space is a necessity.
    The option of increasing the cache on all clients is not appetizing. We attempted to make a dependance on another application that will increase the cache size, but the client will not run the dependency if the size of the first application is larger than
    the cache.
    We COULD run the application as part of a task sequence, but this would mean our software portal users would need to know to shop for a task sequence rather than software for these few applications that exceed cache size.
    Anyone come up with a better solution for this?
    Will
    Will

    Jorgen,
    Many of our users are over remote WAN links, and we use 1e Nomad to alleviate network contention. Doing as you suggested would work, once - then my network administrators would kill me.
    We have made the strategic decision to try and avoid the use of packages, but this may have to fall into the ugly 'exception' bucket. Unfortunately doing so would make it unavailable during OSD. (We are using a MDT BCD integrated task sequence.. there is
    no good way to do 2 packages and then 2 application and then a package and then an application so we just cut the cord and said anything in OSD has to be an application used by the coalescedApplications variable)...
    But appreciate the thought.
    Will

  • Change browser cache size on BlackBerry Z10

    I love Z10 browser that support flash.
    But I can't find setting to modify browser cache size.
    On the Device monitor>storage, i see that browser use space only 124MB, maybe the cache is 120MB.
    Currently I need cache size around 1GB to play a game.
    Is there a way to increase the browser disk cache size?

    Behavior of OBIEE in using cache is (both in 10g as well as 11g),
    When you select a specific dashboard or analysis, Presentation Services checks its cache to determine if the identical results have recently been requested.
    If so, Presentation Services returns the most recent results, thereby avoiding unnecessary processing by the Oracle BI Server and the back-end database. If not, the analysis is issued to the Oracle BI Server for processing.
    If the Oracle BI Server has cached results that can satisfy your request, the resutls are returned from that cache. If not, Oracle BI Server issues the request to the back-end database.
    There are some ways to bypass Oracle BI Presentation Services cache but you cannot force your request past the Oracle BI Server's cache.
    So, you need to clear both the caches to get the updated data.
    Thanks,
    PP

  • Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).

    Hi,
    Our Environment is Essbase 11.1.2.2 and working on Essbase EAS and Shared Services components.One of our user tried to run the Cal Script of one Application and faced this error.
    Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).
    I have done some Google and found that we need to add something in Essbase.cfg file like below.
    1012704 Dynamic Calc processor cannot lock more than number ESM blocks during the calculation, please increase CalcLockBlock setting and then retry (a small data cache setting could also cause this problem, please check the data cache size setting).
    Possible Problems
    Analytic Services could not lock enough blocks to perform the calculation.
    Possible Solutions
    Increase the number of blocks that Analytic Services can allocate for a calculation:
    Set the maximum number of blocks that Analytic Services can allocate to at least 500. 
    If you do not have an $ARBORPATH/bin/essbase.cfg file on the server computer, create one using a text editor.
    In the essbase.cfg file on the server computer, set CALCLOCKBLOCKHIGH to 500.
    Stop and restart Analytic Server.
    Add the SET LOCKBLOCK HIGH command to the beginning of the calculation script.
    Set the data cache large enough to hold all the blocks specified in the CALCLOCKBLOCKHIGH setting. 
    Determine the block size.
    Set the data catche size.
    Actually in our Server Config file(essbase.cfg) we dont have below data  added.
    CalcLockBlockHigh 2000
    CalcLockBlockDefault 200
    CalcLockBlocklow 50
    So my doubt is if we edit the Essbase.cfg file and add the above settings and restart the services will it work?  and if so why should we change the Server config file if the problem is with one application Cal Script. Please guide me how to proceed.
    Regards,
    Naveen

    Your calculation needs to hold more blocks in memory than your current set up allows.
    From the docs (quoting so I don't have to write it, not to be a smarta***:
    CALCLOCKBLOCK specifies the number of blocks that can be fixed at each level of the SET LOCKBLOCK HIGH | DEFAULT | LOW calculation script command.
    When a block is calculated, Essbase fixes (gets addressability to) the block along with the blocks containing its children. Essbase calculates the block and then releases it along with the blocks containing its children. By default, Essbase allows up to 100 blocks to be fixed concurrently when calculating a block. This is sufficient for most database calculations. However, you may want to set a number higher than 100 if you are consolidating very large numbers of children in a formula calculation. This ensures that Essbase can fix all the required blocks when calculating a data block and that performance will not be impaired.
    Example
    If the essbase.cfg file contains the following settings:
    CALCLOCKBLOCKHIGH 500  CALCLOCKBLOCKDEFAULT 200  CALCLOCKBLOCKLOW 50 
    then you can use the following SET LOCKBLOCK setting commands in a calculation script:
    SET LOCKBLOCK HIGH; 
    means that Essbase can fix up to 500 data blocks when calculating one block.
    Support doc is saying to change your config file so those settings can be made available for any calc script to use.
    On a side note, if this was working previously and now isn't then it is worth investigating if this is simply due to standard growth or a recent change that has made an unexpected significant impact.

  • Client cache size reverts to default

    (SCCM 2012 SP1 with CU5)
    I've used a powershell script to set the client cache size to 20GB, using get-wmiobject and the Put() function.  I've deployed this to a test collection of PCs using a CI with remediation, and it's both checking and remediating correctly.
    However, while the 'compliance' is reported at near 100%, when manually checking the clients, many have reset to 5120MB. This affects both Windows 7 and 8.x based clients.
    To take one client specifically, at the time of writing this the CI reports it ran and remediated at 11:45am - it is now 8pm, and the cache is back to 5120.
    Triggering the CI to evaluate again sets the cache to 20GB (verified via get-wmiobject), but I'm sure if I check again at some point tomorrow it will have reverted to 5120 again.
    I can't see any evidence in any client log that indicates what could be causing this.  I've looked into how I can see what has made the change in WMI via the Analytic/Debug logs in Event Viewer, but the tracing available needs to be run at the
    time the change is made - and I don't know exactly when that is.
    Any ideas?!
    Thanks, Bob
    Edit:  CI is set to evaluate every day at 9am.  Client push properties on primary site now include SMSCACHESIZE=20480, but this is recent change - when the existing clients were installed this was not present so they installed at 5120MB.

    Changing the value directly in WMI is unsupported. You need to use the UIResource.UIResourceMgr COM object to perform this task on the client side:
    http://msdn.microsoft.com/en-us/library/cc145211.aspx
    PowerShell examples are available at
    http://www.david-obrien.net/2013/02/07/how-to-configure-the-configmgr-client/
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Changing Brush size in ACR 7.2 - bug oder feature?

    The update to ACR 7.2 changed the way the adjustment of the brush size is behaving. Before one pressed the right mouse button and moved left or right to change the size. Now it's not just left to right but right to left or up and down depending on where the tiny mouse indicatior on the outmost circle is placed. The has as an effect that it's not immediately clear in which direction the mouse has to be moved to change the size. Also the brush circle is move to the side while adjusting and is not congruent with the brushcircle after releasing the mouse botton.
    Any ideas if this is a feature or a bug?

    The ACR7.3 update did not fix the brush resize problem on my system either - also Win7x64 Ultimate, Ps 13.0.1 (currently I use only the x64 install but the problem exists with ACR hosted in the 32-bit install as well) and ACR 7.3.0.71.
    Another annoying thing I've noticed with 7.3 (maybe it was there before 7.3 but I never noticed it) is that even if you set the Feather slider to zero pixels, as soon as you set the brush size to 10 pixels or more, the brush is shown as being feathered. Maybe the 10 pixel cutoff is related to my screen size and resolution: 1920x1200 and 88ppi (NEC MultiSync LCD 2690 WUXi2) but it is still disconcerting at any size.
    The unexpected movement of the centre of the brush when you right click reported by the OP, another annoying characteristic, is always towards the centre point of your screen. If you are left of centre, it moves right and vice versa. If you are above centre it moves down and vice versa. Combinations move diagonally towards the centre.
    Eric Chan seemed to acknowledge the mouse right-click brush resize and brush centre movement problems with ACR 7.2 in his post #1. Looks like he's forgotten us or has been too busy with other matters. Either way , it would be nice to hear from him again with an update.

Maybe you are looking for