BW 3.5 cache ( RSRCACHE)

Hello!!
When an instance BW is stopped , the query cache is deleted because it is part of the RAM memory.
Thus  , after a restart , the queries are no more cached before a new launch .
Is it possible to save the whole  cache into a file system  ,  to reload it immediatly when the system is restarted ??
With the cache monitor  RSRCACHE , it is possible to use a flat file or a table to save a part of the cache when the memory is exhausted , but it doesn't contain the whole cache.
I will precise that with we are using  a BW 3.5 SP20.
Thanks for your answer !!

Hi, please check the following link regarding this transaction.
[OLAP: Cache Monitor|http://help.sap.com/saphelp_nw70/helpdata/en/41/b987eb1443534ba78a793f4beed9d5/frameset.htm]
[Global Cache Parameters|http://help.sap.com/saphelp_nw70/helpdata/EN/00/241da12ef84f40bb6ecd3ae73d8b58/frameset.htm]
[Cache structure|http://help.sap.com/saphelp_nw70/helpdata/en/43/a2323dff83d228e10000000a114084/frameset.htm]
It is possible to save the cache in flat files.
Thanks,
Walter Oliveira.
Edited by: Walter Oliveira on Feb 19, 2009 6:38 PM

Similar Messages

  • Query executes in RSRT but not in BEx Analyzer

    Hi Everyone,
    I have a query for an infocube and ods object, in the bex analyzer for the infocube the query executes which has around 5000 records but for the ods object which has also 5000 records comes up with this error.
    <b>An exception with the type CX_SY_EXPORT_NO_SHARED_MEMORY occurred, but was
    neither handled locally, nor declared in a RAISING                                                                               
    Message no. RS_EXCEPTION000</b> 
    when I execute the query in RSRT it comes up.
    After closing and re logging into bex analyzer executes the query for the first but for the second time again it throws up this error.
    What could be the problem? Can anyone please let me know. Its really really urgent.
    Thanks,
    Prashant.

    hi Prashant,
    try check in RSRT, after choose your query, click 'properties' and set cache mode to 'main memory cache without swapping'.
    also check oss note 656060-OLAP: Cache main memory displacement not functioning.   
    hope this helps.
    Symptom
    Although one of the following two cache modes
    Main Memory Cache Without Swapping (mode 1)
    Main Memory Cache With Swapping (mode 2)
    is set for a query, long runtimes occur when you execute the query. The statistics (table RSDDSTAT) display the database times.
    If there is a heavy system load, the following message can also appear: RS_EXCEPTION000: No left space in shared memory.
    Other terms
    Cache, performance, displacement, shared buffer
    Reason and Prerequisites
    This problem occurs because the shared memory is insufficiently dimensioned.
    <b>Solution</b>
    Increase the amount of shared memory. The size of the shared memory should be at least 200 MB. You can refer to transaction RSRCACHE for the amount of memory reserved by the main memory cache (RSRCACHE -> Main Memory: Shared Memory/Buffer Reserved).
    The corresponding settings are (at least):
    rsdb/esm/buffersize_kb = 200000
    and, as a precaution, also
    rsdb/esm/max_objects = 10000.
    Alternatively, for queries with large resulting quantities, you can convert the Cache Mode in transaction RSRT1 to
    Cluster/Flat File Cache for Each Application Server (mode 3)
    Cluster/Flat File Cache Across Each Application Server (mode 4)

  • How to clear old CACHE entries -- RSRCACHE

    Hello Gurus: What is the suggested menthod to clear the Cache entries of yesterday in RSRCACHE.
    We r still using 3.1 & will be upgrading soon.
    I will be happy to assign points & thanks for your help.

    Hi
    You can go to RSRT
    Select the cache Monitor
    There on the top you can find option Delete.
    So from there you can delete the main memory cache, or what ever its required.
    Regards
    M.A
    Edited by: M.A on May 21, 2008 4:15 PM

  • How to fill the application cache by scheduling a Bex report

    Hi Experts,
    I have a Query which take about 4 minutes to execute for the first time and when the same query is executed for the 2nd time it takes about just few seconds.
    I tried using the broadcasting setting in portal to fill the OLAP cache for this query and executed it manually before executing the query in the morning, The Fill OLAP cache has run successfully but apparently the query executing for the first time takes the same time as it was taking earlier. There is not difference even after introducing the fill OLAP cache setting for this query.
    On further analysis I see from the from the "Statistic Data for Query Runtime" that DBTRANS & DBSEL entries are available when the report was executed for the first time, this means the cache is getting filled only when the report is executed for the first time but not through the fill OLAP cache from Portal.
    Can any one please let me know is there any other option available to execute the query before any user executes it, so that the entire report is available in the cache and the user doesn't have any complaints of performance. The report is executed only in Analyzer we do not have any web report.
    Please provide your valuable input to over come this performance issue.
    Thanks

    Hi sam
    You can broadcaste the report... and fill the cache...
    Before setting up the broadcasting settings -- you need to enable the cache property for that particular query or info provider.
    you can enable cache using the RSRCACHE or RSRT transaction ...
    Check the below LInk
    [Performance Optimization of Long Running Queries Using OLAP Cache|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f048c590-31a4-2c10-8599-bd01fabb93d4]
    Regards
    KP

  • What is a cache monitoring? and what it is used for?

    what is a cache monitoring? and what it is used for? how safe it is to execute the transaction RSRCACHE in development?
    Thank you,
    York

    Hi Les,
    Cache is a temporary storage for recently accessed data.
    Used to enhance query performance.
    Use t-code RSRT to view more on cache.
    Please see this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/41/b987eb1443534ba78a793f4beed9d5/content.htm
    Cache helps to improve query performance. As it can save data in memory, flatfile, cluster table or BLOB.
    You can remove cache per query or inactivate it for perticular info provider or inactivate it overall.
    But which is not recommended. Yes if u know that certain queries you dont use often and its not accessing large number of records then you can inactivate it for those queries. you can manage cache via three t-codes RSRT or RSRCACHE or SPRO>SAP Reference IMG>SAP Busines Wearhouse--> Reporting relevent setting -->General Reporting Setting in BEX -->Global Cache Setting.
    please follow the link which has few good documents on cache. which will clear your complete concept for cache.
    https://service.sap.com/bi -->Product information previous releases -->BI InfoIndex --> OLAP --> you will get bunch of documents in that.
    Look at the following threads :
    OLAP Cache
    what is cache?
    also check RSRT and OLAP cahce docs
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/afc59790-0201-0010-9f99-940f7c3934fc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9f4a452b-0301-0010-8ca6-ef25a095834a
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7c361b95-0501-0010-c0ab-897c5aa14504
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/31b6b490-0201-0010-e4b6-a1523327025e
    Hope this helps.
    ****Assign Points if Helpful****
    Regards,
    Ravikanth.

  • How to clear Local-Cache Entries for a Query in BW?

    Hi There,
    i`m student und i need please your help for my Thesis!!
    I execute the same Query many times in BEx Web Analyzer und note a Query Response Time under ST03N using each time a different READ Mode and Cache Mode is inactiv (Query Monitor RSRT).
    First time i exectue the Query, it reads also from database, second time it uses the local Cache and  that `s okay!
    My problem is:
    When i change the Read mode and execute the Query again, it uses for the first run also the old entries from the Cache so i get wrong response time for the first run!!
    I know that while the mode cache inactiv , the local cache will still be used, so how can i delete the local cache entries each
    time i change the read mode and execute the Query? In Cache monitor (rsrcache) i find only entries for Global cache etc..
    I've already tried to close the session and login in to the System again but it doesn`t solve the Problem!!
    i don't have a permission (access rights) to switch off the complete Cache (local and global ).
    Any idea please??
    Thanks und Best Regards,
    Rachidoo
    P.S: sorry for my bad english!! i have to refresh it soon:)

    Hi Praba,
    the entries stored in RSRCACHE are for global cache, there is no entry for my query in Cache monitor!
    i execute the query in RSRT using java web button and cache mode inactiv so, the results will be stored in local cache.
    this is as below what i want to do for my performance tests in my Thesis:
    1. run a query for the first time with cache inactiv and note runtime of it
    2. run the query again with cache inactiv and note runtime of it
    3. clear the local cache (i don't know how to do it??)
    4. change the read mode of query in RSRT then run the same query for the first time and note runtime of it
    5. run the query again and note runtime of it.
    i'm doing the same procedure for each Read mode.
    the problem is in step 4 , The olap Processor gets the old results form the cache so i get wrong runtime for my tests.
    Generate the report doesn't help, any idea please?

  • Query not picking up Cache

    Guys
    I am probably misunderstanding but would appreciate some explaination.
    I have run an OLAP Cache pre-populate Bex Broadcast, which sets up (as I can see in RSRCACHE) a cache setting of:
    Fixed Forecast EQ 01.07.2014
    Calendar Week EQ 01.2014
    Calendar Week EQ 02.2014
    Material Group EQ 182
    Material Group EQ 183
    Material Group EQ 184
    So as you can see the OLAP Cache populate variant sets up 2 weeks in  alist, and 3 Material Groups in a list.
    I then manually run the same query with the following selection:
    Fixed Forecast = 01.07.2014
    Calendar Week = 01.2014
    Material Group = 182
    I expected this to use the cache I had populated, but it appears it didn't because I now have a new setting showing in RSRCACHE:
    Fixed Forecast EQ 01.07.2014
    Calendar Week EQ 01.2014
    Material Group EQ 182
    Effectively this new cache is a full subset of the pre-populate cache I initially setup.
    I want to pre-populate cache for a range of selection that the customer typically does, but there are far too may Week/Material combinations to set each one up individually. Am I setting something wrong?
    I also tried the initial cache pre-populate as a range rather than a list, and saw the same behaviour (the only difference being the initial cache used a BT rather than 2 EQ lines.
    By the way, globally and for InfoProvider we are set as Cache Mode=1, but this specific uery is using cache mode 4 (this is a test as we are multiple application server environment)
    Regards
    Simon

    I know that this is an old post, but in case someone else wants to use this code I wanted to point out that this code assumes that only invoices are included in payments.  If other types such as deposits or credits are included in the payment, then you will get the wrong results.
    Need to change the link to OINV slightly to check the document type for Invoices
    JOIN
    OINV T1 ON T1.DocEntry = T4.DocEntry AND T4.InvType = 13 -- AR Invoice Hdr
    Then need to do this same for the other possible document types.

  • Parallel Caching Issue

    We have found issues with the parallel loading of the OLAP cache using reporting agent jobs where entries are not populated correctly.We rely on the OLAP cache for delivering the very high levels of concurrency during the peak times.
    Once the main batch data loading has been completed we run some background reporting agent jobs to pre-populate the OLAP cach.Each job contains a web application template that holds 1 or more queries and will process 1500+ stores for each run.
    We have different reporting agent jobs for the different web application templates, but we have discovered that if we run these jobs in parallel we do not get the full benefit of the OLAP cache compared to if we run them sequentially.
    If we run the jobs in parallel, when we look in RSRCACHE for these queries it would appear to have populated correctly, but when we check RSDDSTATS for the query performance the following day, we can see that a large number of the
    stores still hit the database and did not benefit from the cache entries. Sometime this can be as much as 60% failure to hit the cache.
    If we run the same job sequentially, then check RSDDSTATS the following
    day, we can see 100% success rate with every store hitting the OLAP cache.
    Is anyone able to advise how we can resolve this parallel caching issue?

    Hi Ganesh,
    I am currently having similar trouble with TBB1 where I receive error message below:
    TRL intialization for MM, FX, Derivatives, co. code WTRD, valn area 003 is not yet complete
    Message no. TPM_TRL052
    Are you familiar with this issue? any help would be greatly appreciated! i hope that you can help..

  • Wrong cache for input-ready query

    Dear Expert,
    I encountered some issues about input-ready query. When I first open one input-ready query and input some plan data, I can save the data successfully. But after I saved data for the first query, if I don't re-connect the analyzer and open a new query, usually the plan data in the new query can not be saved successfully. After re-connect the analyzer, it works well. When I debug it, if I do not re-connect analyzer, I found the new query I opened still got some data which belong to the first query (Such as variable value). I guess it probably caused by some Bex cache? (It's not OLAP cache in RSCACHE, as we have disabled the cache for planning query in RSRT).
    Could you please help me with this? Is there any way we can disable this kind of cache for the input-ready query? Or if we have any solution to clear this kind of cache without re-connect bex analyzer every time when I open a new input-ready query.
    Thank you in advance.
    Best Regards,
    Fuyang

    Hi Fuyang,
    We are facing similar problem.
    1st problem:
    (1) When we run workbook that time variable values are automatically filled up.
    (2) Variable values for version, year is filled up and then query output is displaying.
    (3) There is no personalization or variant used. Its looks to me Values are coming from Cache.
    (4) Cleared RSRCACHE and there is no cache used for this query.
    (5) If we enter version = u201CZ2010u201D and Year = u201C2010u201D and after running workbook (input query) and then closing and reopening same variable values are coming. If we change version from u201CZ2010u201D to u201CZ2011u201D and run/save query and again reopening version variable values are coming again to u201CZ2010u201D.
    2nd problem:
    (1) We have planning sequence which is using below variables.
    (2) Version, Year, Plant.
    (3) Version and Year is input ready variables
    (4) Plant is Userexit variable.
    (5) Plant Dropdown is used.
    (6)When we execute planning sequence first time without filtering plant then it is working fine. Receiving message u201C100 records read,100 records changedu201D u2013 This is working fine.
    (7) When we use plant dropdown and filtering u201CABCu201D plant then planning sequence working fine and receiving message u201C20 records read, 20 records changedu201D u2013 This is working fine.
    (8)When we clear drop down/filter using CMD - REMOVE FILTER which is used in button clear plant u201CABCu201D filter. u2013 This is working fine.
    (9) Then we again apply planning sequence for all the records and receiving message u201C20 records read, 20 records changedu201D.  This is not working. The message should come u201C100 records read,100 records changedu201D
    This time plant variable has still with value u201CABCu201D and not clearing in variable cache.
    We are on below BI 7 level and above application is Excel based.
    SAP_ABA u2013 701-SAPKA70104
    SAP_BASIS-701-SAPKB70104
    SAP_BW-701-SAPKW70104
    BI_CONT-701-SAPK-70403INBICONT
    SAP GUI  7.1 patch 17
    SAP BI BEx AddOn 7.1 patch 10 (1000)
    Any help will be greatly appreciated.
    Thanks in advance.

  • Web template image cache

    goodmorning everybody,
    does anybody know where I can clear the image cache when running a web template.. It keeps displaying the old image even though I replaced the image with a new one in the mime repository...

    hi Joris,
    try
    - WAD menu tools -> setting -> delete cache -> delete cache
    - delete browser cache (Internet Explorer or other)
    and
    - SMICM->go to->HTTP server cache->invalidate->golbal in system
    or transaction rsrt -> cache monitor -> delete
    - transaction RSRCACHE
    oss note 456068
    Mime Repository Icons
    How to clear Cache in SAP BW
    hope this helps.

  • How to empty out Olap Cache for a query?

    Hi experts,
    I think the olap cache for a query should be resetted to zero after a data load (right?), if i have understood well how it works. Where can i check the olap cache for the query?  I'd like to ckeck the change of the Olap Cache for a specific query.
    I checkt in the Cache Monitor but I haven't found any data.
    Francesco

    Hi
    You can use the Transaction code RSRCACHE
    Regards
    N Ganesh

  • How to clear Cache in SAP BW

    Hi All,
    i changed 1 .js file in mime repository, but the changes are not getting reflected when i run 1 of the WAD templates. it still picks the old .js file. i guess there is some problem related to clearing of cache memory.
    Any ideas about how to clear cache in BW?
    Thnx in advance
    Godhuli

    Hi Godhuli,
    You can call transaction <b>RSRCACHE</b> and you can delete all; In OSS Note 456068, you can find all the issues related to this kind of problem
    You can also refer oss notes 679609,779015 for OLAP cache invalidation.
    Awarding points is the way of saying thanks in SDN!!!
    Regards,
    Balaji

  • Automation of Pre-Caching of Web Templates.

    Hi all,
    In our project where the BW version is BI7.0 we run cache jobs manually by triggering them through sm37. These jobs cache the web-templates for a set of queries to improve the query performance. The steps we follow are:
    1. Delete Cache from rsrcache tcode
    2. Trigger first job through sm37
    3. On completion of first job trigger second job through sm37 only.
    Now to avoid this manual intervention we have automate the process. Our aim is to atleast automate steps 2 and 3 of above 3 steps.
    Can anyone please give me a few pointers on how I can automate these jobs in a process chain?
    Thanks and Regards,
    Nishant.

    Nishant,
    can you pls tell me how are you caching the web templates in BI 7.0? I am trying a lot but not able to find any good solution to cache my entire web template. my WAD report is a dashboard wth lots of good graphics features. Using lots of web items. My query is very fast but WAD report is slow for the 1st time.....any suggestions here????
    Thanks,
    Rahul.

  • Cache Mode 5 - BLOB/ Cluster Enhanced - Variables

    Hello,
    I have a very large query that I need to cache for performance.
    I'm using cache mode 5 - BLOB/Cluster Enhanced.
    I see that for variables in Char Restrictions area, it creates a new entry in RSRCACHE under my query under new Variables/Hierarchies section. But for variables in default values section it creates new selection entry in cache.
    Therefore, I have moved all my variables (mandatory + optional) into default values section. Now when I run query with say single company code (which is single mandatory variable), it builds cache as required. Now when i rerun query for same company code and specific material type (optional variable) (which is actually subset of first cache that we just built), it actually doesn't hit the cache, instead creates new cache entry as selection under our query name.
    Any ideas why subset of "Optional variables" are not hitting cache in my case? Any guidelines regarding how variables should be placed for cache query?
    Thanks.
    Abhijeet

    I think I found my own answer. Here are the findings:
    1. Subset of navigation will hit cache ONLY IF we are running for variables / fields that are in rows. In my case I was adding a value for variable which was in free chars and not in rows.
    2. If I have built two cache objects - say for plants 1 - 1000 and plants 1001 - 2000...and then I run for plants 500 - 1500, then it won't utilize both cache objects...Instead it will create a new one. BI is not intelligent enough to consolidate two cache objects at this moment.

  • Priming cache by reporting agent problem

    Hello All,
    I have few questions regarding article on bwexpertonline for priming the cache.
    The article is really great and big help....but i am not getting out put the way it should be.
    1) I created a query  - which doesnt have any variable/selection screen.
        (question here is will it work for those kind of queries which dont have any selection screen/ variant ? ) --> client wants to prime the cache for few queries which dont have variable screen.
    2) created web template and which refers the same query and save it in favourite.
    3) went to RSA1--> Reporting Agent --> web template --> new setting
        gave technical name, in parameter tab i selected two options "data" and "HTML for browser" by selecting the checkbox.
    4) i dont have any selection screen so couldnt create any variants
    5) mark the check box "fill olap cache if possible"
    6) Save it and activated it
    7) created scheduling package and drag and drop the reporting agent (which is on the left sideunder the webtemplate)
    8) schedule it
    9) sm37--> released the job and ran it.
    10) job finished successfully
    now my question is i dont see any entries for that perticular query in RSRCACHE (TCODE). i tired to run query on web, rsrt but still i dont see any entries in cache.
    can you pleasse tell me where i m making mistakes ?? also, if i want to prime cache for lets say 6 queries do i have to create web template for each...and repeat the whole process for each ? how do i do that ? And will need to attach it in process chain so it can be run on daily basis.
    Any guidance will be appreciated. I will come back and give points for help.
    Thank You in advance...
    KSMITH
    Message was edited by: Keral Smith

    On my system (BW 3.5 SP15) if I have Cache Mode 1 (Main Memory Cache Without Swapping) selected, I don't even have a Persistence Mode setting available - it only becomes available if I choose Cache Modes 2 - 4.  Perhaps that's a support package difference.
    At any rate, Persistence Mode of 0 - Inactive means:
    When the cache memory has been exhausted, data is removed, that is deleted, from the memory (corresponds to cache mode Main Memory Cache Without Swapping).
    So one option is that the cache area is simply filling up and the system is purging your Rpt Agent results.  I also thought I remembered a setting (or maybe it's a fixed value) that said a cached result could not exceed a % of th ecache size, to avoid having a large single query result flush all others out of the cache.
    I would check to see how large the OLAP Cache is on your sandbox.  maybe it just needs to be larger.
    Also worth checking timestamps  (from SAP Help)
    <i>- Query generation time (corresponds to the specification under OLAP-Relevant Data)
    - Time of the last loading of data into the InfoProvider (last data change)
    - Last change to data value set (pre-calculated value set)
    - Last master data change for navigation attributes
    This time stamp influences the invalidation of the cache. If the last time stamp for a cache entry for the selected query is older than one of the above-named time stamps, then the cache is rebuilt.</i>
    Could you be loading Master Data somewhere after the Reporting Agent has run?
    Might also be worth telling your client that Information Broadcasting is intended to replace Reporting Agent.  RA will not be enhanced.

Maybe you are looking for

  • List of PO's related to Condition record_tax amount

    Hi MM gurus Scenario ; Import scenario - there is a list of PO's created with Tax condition.But the tax will be applied during the invoice. Before creating the invoice need to the list of PO's and its tax amount. Is there any standard SAP transaction

  • Blue question mark on some web pages

    hi i am getting blue questions marks on some web pages. like..... TheAVENUE.com i see the start page, and i see the pictures there, but when i go to click an link like sweaters, and the sweaters are suppose to pop up i see the blue question marks. th

  • Startup woes

    I have a wireless keyboard attached to my iMac. Occasionally on power up, two things happen which are probably not related, but always seem to occur together: My wireless keyboard takes a good 30 seconds to respond after the appearance of the login b

  • Update is taking more time

    Hi update TBLMCUSTOMERUSAGEDETAIL set UNUSEDVALUE=0 where CUSTOMERUSAGEDETAILID is not null; in this table only 440 record is there but is taking more time and not execute? what is the reason for this. your early response is appericated. Thanks in ad

  • How to deliver EJB to iPlanet6.5

    My IDE is Jdeveloper903 ,how to deliver EJB to iPlanet6.5 iAs?