Obiee cache

Hi gurus,
I am using Obiee 11.1.1.5. Some times in Answers I am getting stale values, like if I apply prompt for a particular year I am getting the results for all the years.
Later I taught like it might be due to cache, So I cleared the Presentation Server cache after clearing it sometimes i got expected results. In that also even I clear the Presentation Server cache sometimes I didn't get expected results, So, I have to clear the Repository cache manually then I got results.
So, my question when I fire a query in presentation Services, Is it possible to know whether the fired query hit the database or cache (Presentation server cache or repository cache).
Please help me on this,
Regards,
sai.

Yes we can know. Using 'Session Management'->View log or NQQuery.log
When Cache is enabled in NQSConfig.ini we can see the cache entries in NQQuery.log
For Cache in the log, section something like
*------------------ Cache Hit on query
For database in the log, section something like
*------------ Sending query to database named
Ignore * in above lines
Pls mark correct/helpful

Similar Messages

  • Questions on OBIEE Cache maintenance

    Hi Experts,
    I have few questions regarding the OBIEE cache.
    1. How to clean the cache ? Is there any method to clean the cache using Unix scripts.
    2. Is there any way to call an unix script using the iBots ?
    Thanks in Advance.
    svr

    Hy,
    To purge the cache, you have several way :
    http://gerardnico.com/wiki/dat/obiee/bi_server/cache/obiee_purging_query_cache
    The classic way is to use the ODBC function :
    http://download.oracle.com/docs/cd/E12103_01/books/admintool/admintool_QueryCaching6.html
    And to insert them in a script :
    http://download.oracle.com/docs/cd/E12096_01/books/AnySched/AnySched_Scripts2.html
    That you can call with the job Manager.
    Cheers
    Nico

  • OBIEE Cache Purge  in Unix Environment

    Hi,
    We are trying to purge OBIEE cache using unix shell script and purgecache.txt which contains call to SAPurgeAllCache().
    We are using below script
    export MW_HOME=/qa/middleware/
    . $MW_HOME/instances/instance1/bifoundation/OracleBIApplication/coreapplication/setup/bi-init.sh
    $MW_HOME/Oracle_BI1/bifoundation/server/bin/nqcmd -d AnalyticsWeb -u weblogic -p weblogic1 -s /users/home/test/purgecache.txt
    We are gettting below error message After executing script
    /qa/middleware/instances/instance1/tmp/OracleBIODBCComponent/coreapplication_obiodbc1/obis_temp is not a valid Oracle BItemp directory path
    is it required to call sa-init64.sh ?? Are we missing anything?? What could be another way to purge cache from command line?
    # it is required to run bi-init.sh (UNIX) or bi-init.bat before launching any command line utilities. This sets the environment variables like ORACLE_HOME and ORACLE_INSTANCE correctly. We have used it.
    # Commented sa-init64.sh
    # as it is giving below error
    # syntax error at line 7: `(' unexpected
    Thanks in advance

    You can try this
    Create a text file with a name e.g: say purgecache.txt with below code in it
    Call SAPurgeAllCache() and save the file in /<MW_HOME>/Oracle_BI1/bifoundation/server/bin directory.
    Before running nqcmd, you must first run bi-init.cmd (or bi-init.sh on UNIX) to launch a command prompt or shell window that is initialized to your Oracle instance. You can find this utility in:
    <MW_HOME>/ORACLE_INSTANCE/bifoundation/OracleBIApplication/coreapplication/setup
    Then, run nqcmd from the resulting shell window with the desired options.
    For example:
    nqcmd –d my_dsn –u my_username [-p my_password] –s sql_input_file –o my_result_file
    You can pass a text file with SQL statements to the utility (script mode), or you can enter SQL at the command line (interactive mode). Queries are run against the default subject area, unless the object names used in the query are fully qualified.
    For example to purge BI Server cache run below command
    In windows:
    nqcmd -d AnalyticsWeb -u <weblogic_admin user> -p <weblogic_admin password>-s purgecache.txt
    In Unix:
    ./nqcmd -d AnalyticsWeb -u <weblogic_admin user> -p <weblogic_admin password>-s purgecache.txt

  • OBIEE Cache clear and refresh of reports from DAC

    Hi All,
    I have an existing process where OBIEE cache clear and Dashboard report refresh is happened from DAC.
    But the issue is both do not happen parallely, the both tasks are kept in single text file and they are called from a batch file from DAC. Below is the code
    nqcmd -d AnalyticsWeb -u Administrator -p SADMIN -s D:\OracleBI\server\Bin\PurgeAllCache.txt
    So I want to make them run parellely so that Cache clear and refresh of reports happen parellely. In order to achieve do I need to create seperate batch files or can I manage by changing the above code.
    Please Suggest.

    Can you share the code in the file PurgeAllCache.txt
    There might be some issue with code, make sure you use ';' for each statement.
    or else use 2 files and 2 commands to execute them.
    Pls mark if helps

  • Purge OBIEE cache from ODI

    Hello experts,
    I have ETL running on an ODI server, and OBIEE running on another server (both Windows Server 2008 R2). I want to purge the OBIEE cache by calling a batch file after all the ETL loads are done.
    What would be the best way to accomplish this? Please advise.
    Thanks in advance!

    Hi.
    I hope is not that late to help on this.
    You may try to use the Event Polling table.
    Refer to this: http://gerardnico.com/wiki/dat/obiee/event_table
    You just need to implement an ODI interface to load this table with the proper information to clear the cache (check Gerardnico post to properly insert into the Event Polling Table)
    I spotted one issue with this.
    The attribute UPDATE_TS in this table must be unique or you must guarantee in your ETL that no duplicate datetime will be inserted in this table. This attribute is the key for the Cache Purging. It may sound silly to say that, but if you are using a bulk insert and a variable with the date time information all your records in the Event Polling Table may end with the same date time. This will cause a problem and your cache will not be deleted.
    Cheers.

  • OBIEE:Cache is not clearing

    Hi
    cache is not clearing in obiee setup.I did the following things
    1.open rpd in online mode and purged all the cache entries
    2.opened obiee answers(session log) .clicked on "close all cursors", cache entries are removed.but if i again opened the session log "same cache entries are still there"
    pls help to resolve the problem
    regards
    mervin

    Hi mervin,
    This would solve your problem.
    http://www.oraclenerd.com/2010/02/obiee-call-sapurgeallcache.html
    http://obiee101.blogspot.com/2008/03/obiee-manage-cache-part-1.html
    Hope it helps you,
    By,
    KK

  • OBIEE Cache mangement in cluster enviornment

    Hi all,
    We have cluster env in OBIEE(Two OBIEE server)
    Node1 primary node
    Node2 secondary node.
    now I want to seed the cache using IBOT(In single env we got it)
    And purge the cache.
    1. Do we need to do it on both the node.
    or how we can do this?

    Looks like you haven't looked at Oracle BI servers' DSN, just see how it is configured and the other options.
    DSN is configured based on environment no matters if it is single server or cluster.
    Pls mark correct/helpful.

  • Oracle Web Cache and OBIEE 11g

    Anyone using Oracle Web Cache with OBIEE 11g?
    Can I get an insight into whether this solution is beneficial? Or I shouldn't even bother.

    No iam not using oracle web cache
    Can I get an insight into whether this solution is beneficial? Or I shouldn't even bother.I dont have idea about it,but i think its not beneficial ,anyways there is OBIEE cache that is more than sufficient.
    hope answered your question.
    Cheers,
    KK

  • Caching in OBIEE/OBISE1

    Here is list of my research that corresponds to the Caching issue in OBISE1 well its similar to OBIEE atleast in this aspect,this list pretty much covers caching that can occur different levels.I would suggest to start one by one and see how caching is corresponding in the Dashboard and please do contact me if you need further help
    A.Cache Management
    For this release of the OBIEE, if you run an initial or incremental load without first
    clearing the query cache, it is possible that reports that you run after the load process will reuse the cache that existed prior to the load process. This can result in inconsistencies between reports. There are several alternatives to mitigate this situation,
    such as:
    • Configure the query cache to expire daily.
    • Clear the cache tables manually as needed; for example, after you complete a load process.
    • Schedule the system to clear the cache tables at the same frequency as the
    incremental load process.
    To clear cached queries:
    1. Open the Oracle BI Administration Tool in online mode.
    2. Click Manage, Cache to access the Cache Manager page and select all cache entries.
    3. Click Action, Refresh.
    To disable the cache:
    1. Locate this configuration file: <root
    directory>\OracleBI\server\Config\NQSConfig.INI.
    2. In the Query Result Cache Section, change the [ CACHE ] setting from ENABLE =YES; to ENABLE = NO;.
    3. Save the NQSConfig.INI configuration file and restart the Oracle BI Server service.
    See: Oracle Business Intelligence Server Administration Guide, "Query Caching in the OracleBI Server" chapter for more information on query caching in OBIEE.,
    B. After running an Answers report, check the SQL NQQUERY.log (on Windows, usually located in, :\OracleBI\Server\log\)
    TIP:
    Turn off caching in the NSQConfig.ini (and restart the server service) or at the physical table level in the .rpd, to ensure you get the un-cached results, and can therefore see the SQL being generated each run, or drill down in Answers.
    C.Found this in documentation(if using OBISE1,for OBIEE refer to OBIEE documentation on CACHING)
    http://download-west.oracle.com/docs/cd/B40078_02/doc/bi.1013/b31770.pdf
    all about caching in OBISE1
    But important thing to note is that Caching occurs at different levels
    Server (NQSConfig file ,look for ENABLE parameter)
    Administration(if you click on the TOOL in the MENU bar ,there you would some options related to OBJECT in the physical layer )
    OBIEE Dashboard Query level (in answers when making the ad-hoc query ,there is a check box which can checked or unchecked depending on whats desired in terms of caching).
    This is to the best of my Knowledge but please free to add some more details if you feel If I missed something.
    Four logs to check are as follows
    NQServer.log
    NQQuery.log
    NQSAdminTool.log
    NQScheduler.log
    I hope this covers some ground as to Caching in OBISE1/OBIEE
    Thank you,
    Mohammad Alam

    Hi Mohammed,
    Thank you for the VERY thorough and useful digest of OBIEE Caching!
    We've found that caching to be less-than-satisfactory. We've enabled caching at the NQSConfig level, and set the max time out to 5 minutes, but for some reason our users are not seeing data refreshed.
    For example, we have a report that shows Sales Order shipments. The order status can go from "Booked" to "Picked" to "Shipped" all within 1 day. However, the report will show "Booked" when the transaction actually has been "Picked".
    I've tried unchecking By pass server cache in the report's Advanced tab, but to no avail.
    Any suggestions or comments? Our current workaround is NO caching at all.
    irene

  • Firefox Browsing caching issues when using OBIEE

    We have experience a problem when using Firefox. It seems the browser caches the results, of an analysis for example, and even though we have made changes to the data, flushed the OBIEE cache, we still see older results because the older results were cached in the browser. We have to go to options -> history -> clear recent history to get the new results. (And sometimes this doesn't seem to do the trick.)
    Anybody else seen this problem or have a resolution?
    Thanks,
    Brian

    There are different caches in OBIEE. Probably you hit stale entries in "Presentation Server Cache".
    This can be controlled by adding the following to your instanceconfig.xml
    <CacheMaxExpireMinutes>5</CacheMaxExpireMinutes>
    see also here:
    http://obiee101.blogspot.ie/2008/11/obiee-presentation-services-cache.html
    or here:
    http://unleashobiee.wordpress.com/2011/01/12/purging-obi-server-and-presentation-server-cache/

  • OBIEE Server crash

    Hello Gurus:
    I am having a server crash problem.
    OBIEE server crashes around afternoon almost everyday.
    error is "An error occurred contacting Oracle BI Presentation Services. If this problem persists, contact your ssytem admin. Error Codes: GDO7WNZA"
    I tried to see the server log, it says
    nQSError: 16001] ODBC error state: 28000 code: 18456 message: [Microsoft][SQL Native Client][SQL Server]Login failed for user 'ETL_OLAP'..
    Few minutes before server crash.
    I cant even restart the services.
    And after I bounce the server, it says
    [nQSError: 58030] The specified cache entry could not be loaded during initialization.
    [nQSError: 52020] Cache entry, 'C:\OracleBIData\cache\NQS_733394_47613_00006309.TBL', is invlaid due to either non-existing file name, size does not match, exceeding maximum space limit nor exceeding maximum entry limit, and it's been removed.
    2008-12-16 14:06:55
    So Is it because Users are trying to run BIG LONG reports?
    also memory usage is very high in like 2 GBs or something.
    PLease help me with it.
    Thanks.
    ~Vinay

    It's probalbly the running out of chache space.
    It's not a good idea to have your cache file residing on the same drive as your OS. When it runs into disk size problem in can make your OS corrupt. Have a look here on cache management:
    http://obiee101.blogspot.com/2008/07/obiee-cache-management.html
    regards
    John
    http://obiee101.blogspot.com

  • Oracle BI Cache

    Hi all,
    We are using OBI 11G and repository caching, this is great for performance but I have one problem, I don't want any cache to be used unless the logical query created is exactly the same. When I retrieve a result set, sometimes OBI is using that result set and aggregates it without sending new query to the database. Is there any way to change this behavior?
    Thanks in advance..

    Hi seth,
    I don't want any cache to be used unless the logical query created is exactly the sameExactly the same of what.
    When I retrieve a result set, sometimes OBI is using that result set and aggregates it without sending new query to the databaseThe concept of cache is to shorten or give less burden to again go back and hit the database and get the results back to you which takes huge time.
    Instead if you use cache as enabled then it will directly check the cache and build the changes you have applied and stitches it with the existing one to retrieve the results fast.
    More information on cache by john :- http://obiee101.blogspot.com/2008/07/obiee-cache-management.html
    Hope helps you.
    Cheers,
    KK

  • 10g - cache, report contains oracle user defined function

    hi, experts,
    from http://obiee101.blogspot.com/2008/07/obiee-cache-management.html
    Reasons Why a Query is Not Added to the Cache:
    •Non-cacheable SQL element. If a SQL request contains Current_Timestamp, Current_Time, Rand, Populate, or a parameter marker then it is not added to the cache.
    •Non-cacheable table. Physical tables in the Oracle BI Server repository can be marked 'noncacheable'. If a query references any non-cacheable table then the query results will not be added to the cache.
    •Cache hit. In general, if the query gets a cache hit on a previously cached query, then the results of the current query are not added to the cache. The exception is query hits that are aggregate roll-up hits.
    •Result set is too big.
    Query is cancelled. This can happen by explicit cancellation from Oracle BI Presentation Services or the Administration Tool, or implicitly through timeout.
    •Oracle BI Server is clustered. Queries that fall into the ‘cache seeding’ family are propagated throughout the cluster. Other queries continue to be stored locally. Therefore, even though a query may be put into the cache on Oracle BI Server node 1, it may not be on Oracle BI Server node 2.
    I would like to know
    if the request (report on dashboard) calls an oracle user defined function,  can the cache be created and saved for this report?
    thank you very much!

    Hi stephen,
    if the request (report on dashboard) calls an oracle user defined function, can the cache be created and saved for this report?Yes,it is cached.....function defined in database is called in OBIEE is cached and saved.
    More information and example can be found here http://oraclebizint.wordpress.com/2007/09/10/oracle-bi-ee-10133-support-for-native-database-functions-and-aggregates/
    Hope it helps you.Check all other questions you posted are answered?
    By,
    KK

  • Charts and pivot tables are not generated in Seed Cache using iBots

    Hi,
    I have been working on OBIEE cache. I encountered few issues.
    1. We scheduled ibots to run daily and deliver dashboards to seeding cache. But the cache is not getting created for some reports which have charts and pivot tables in the dashboards .
    We are using OBIEE 10.1.3.3.1.
    2. When an end user logs in and access dashboard, the query is hitting the database.
    3. The sql query for reports which got created in server cache are not the same as sql query generated when an end user logs in to access dashboard. The difference being query generated when an end user is accessing dashboard is using aggregates.
    4. Please let me know if anyone has faced same issue and any solutions.
    Any help is appreciated
    Thanks,
    Swetha

    Hi,
    I have been working on OBIEE cache. I encountered few issues.
    1. We scheduled ibots to run daily and deliver dashboards to seeding cache. But the cache is not getting created for some reports which have charts and pivot tables in the dashboards .
    We are using OBIEE 10.1.3.3.1.
    2. When an end user logs in and access dashboard, the query is hitting the database.
    3. The sql query for reports which got created in server cache are not the same as sql query generated when an end user logs in to access dashboard. The difference being query generated when an end user is accessing dashboard is using aggregates.
    4. Please let me know if anyone has faced same issue and any solutions.
    Any help is appreciated
    Thanks,
    Swetha

  • Query not cached in BIServerCache

    Hi,
    I am trying to seed to the cache using an agent. I see from the log file nqquery.log that a query is fired at the database when ever the agent is run. Also, the presentation cache is populated. So, if I try to use the analysis again without clearing the presentation cache it opens up fast and I dont see any entry in the nqquery.log. But if I clear the presentation cache from administration by using
    "clear all cursors" and try to access the analysis again, I see that a query is again fired at the database instead of using the BI server cache.
    Any help is greatly appreciated.
    Thanks,
    KK

    Hi,
    Can you check the points in the below URL to ensure that your queries are actually getting cached in BI Server:
    http://obieeblog.wordpress.com/2009/01/19/obiee-cache-is-enabled-but-why-is-the-query-not-cached/
    Thanks

Maybe you are looking for