Oracle Business Intelligence Application Architect
☎ +91 9994883085
Don't miss

Wednesday, 14 May 2014

Cache Management in OBIEE 11g

By on 13:22:00

1)    In OBIEE we have two types of cache

1.    Oracle BI Presentation Server Cache

2.    Oracle Bi Server Cache 

1.  Oracle BI Presentation Server Cache

1)    It is a temporary cache , it will be stored in below location C:\OBI11g.6\instances\instance2\tmp\OracleBIPresentationServicesComponent\


2)    It will be unique per particular user and session

3)     OBIEE we have two types of cache

2.  Oracle BI Server Cache

4)    In OBIEE 11g cache parameters are managed using EM.

5)    EM initially will change nqsocnfig.INI file.

6)    In Nqsconfig file enable = ‘yes’ then cache is enabled else cache is disabled.

7)    By default cache files will be stored in below path

8)    E:/bi11g/instances/instance1/bifoundation/oracleBIservercomponenets/coreapplic


Advantage of cache:

1)    Less network traffic.

2)    Huge performance improvement. 

Disadvantage of cache: 

1)    There is a chance to get stale data.

2)    Hard disk memory is wasted.

3)    Maintenance of cache by admin.

Cache architecture:

Cache Management in OBIEE 11g

Report logical sql will be compared with cache database logical sqls, if anything is matching then corresponding cache output will be shown to the user else it will execute from the db.

Enabling cache:

1)    Open EM --> capacity management --> performance --> lock & edit --> select cache enabled --> apply --> activate changes --> close --> restart oracle BI server. 

2)    Go to NQSconfig file & notice that enable =’yes’. Run any one report & go to the cache location & observe a file is created. 

3)    Open RPD in online mode --> go to manage --> cache --> observe all the parameters. 

4)    Sign out from analysis --> sign in as abell --> password: Admin123 --> run same above report in the RPD --> manage --> cache --> notice that use count is updated

to ‘1’.

Stale data:

Old data is called as stale data.

A report ran from DB & stored that result into cache & the DB is updated with new values then we run the same above report we will get output from cache that means old data --> to eliminate this problem we need to do purging followed by seeding.


Cleaning cache files is called as purging.

We have four types of  purging.


Persistency time.

Event pooling table.

4.  ODBC functions.


After enabling cache -->run any one report. Then cache will be created -->open RPD in online mode -->manage --> cache --> right click on the entry --> click on purge --> ok close.


It is useful to purge cache based on fixed time. To provide this setting we need to know accurately the table updated frequency.


Open RPD in online mode --> double click on D1_products --> go to general tab --> select cache persistence time --> type 2 mins --> ok --> check in --> save --> reload server metadata --> develop a report with specific columns & notice that cache is created --> after 2 mins automatically cache will be purged.

Note: we can control cache at table level in physical layer double click on any table --> general tab enable/disable cache. Revert to cacheable --> cache never expires.

Event pooling table:

Step1: creating event pooling table:

Login to DB as supplier2 user create table s-nq-ept as select * from dev-bi plat form s-nq-ept.

‘Select * from s-nq-ept’.

Step2: creating a triggers:

To monitor D1-products create (or) replace trigger EVENT-TABLE-UPDATE-TRIGGER after insert or update or delete on D1-products for each row.


Insert into s-nq-ept (update type, update-TS, table-name) values (‘sysdate’,’D1-products’);



Confirm trigger is working or not by executing below statement.

Update d1-products set genericdescription =’potato chip’ where genericdescription =’potato chips’

Select * from s-nq-ept.

Hence trigger is working.

Configuring EPT table:

In physical layer right click on supplier2 --> connection pool --> import metadata --> import s-nq-ept table --> finish.

Tools menu --> utilities --> select oracle BI event tables --> execute --> select s-nq-ept --> provide pooling frequency as 2 mins --> ok --> check in changes --> ok.


Develop a report with specific description & make sure cache is created.

Update some data in D1-products, then after 2 mins(pooling frequencies) --> cache will be cleaned as well s-nq-ept table will be truncated.

Odbc functions:

We have four types of ODBC functions, those are useful to purge cache programmatically & those functions are

1.    SA purge all cache.

2.    SA purge cache by db.

3.    SA purge cache by table.

4.    SA purge cache by query.

It is a accurate method to purge the cache. Normally these functions will be executed by ET-team using their post load option.

Process for understanding:

Develop a report --> make sure cache is created --> administration --> under maintenance & trouble shooting --> issue sql --> type call SA purge all cache --> issue sql --> go & see in cache folder. --> cache is removed.


Inserting cache into cache folder is called as seeding.

Seedings are two types.

1.    Manual seeding. 

2.    By using schedule. 

1. Manual seeding:

Navigate to the report in the catalog --> click on that report --> then automatically cache will be created.

2. By using schedule:

Log in to analytics --> develop a report with vs dollars --> save --> name: seeding report --> new --> agent --> schedule --> frequency : once -->data & type 2 min. forward to current time. Click on delay content --> select content as analysis --> browse --> select seeding report --> click on destinations --> oracle BI server cache --> save --> name: seed agent --> after 2 mins go to cache folder & notice that a cache file is available.


  1. Awesome Bro..Finally i cleared my all doubts..

    1. nice blog...very usefull

  2. Hi,
    I have made small changes in moth prompt in analytics page and ran the report. I got the physical query from cache. Without using “SAPurgeAllCache()” how/From where to get the physical query for the modified one. Can u please help with a solution

  3. my ques is nqsconfig file is enable = yes.and already cache is created in folder.when an ran a report cache cannot? give me suggestion

  4. how to purge cache from report level?

    1. To purge cache at report level, Go to Advance tab. In the prefix field, you can add Set variable disable_cache_hit=1;

  5. how to purge cache from report level?

  6. nice blog
    plz tell me
    detail info about aggregation and fragmentation.......



1z0-482 Dumps (2) 1Z0-525 Dumps (1) BI Apps Installation (1) BI Publisher Interview Questions (1) BICS (2) Business Intelligence (1) DATA WAREHOUSE ADMINISTRATOR CONSOLE (18) Data Warehousing (48) E-BIZ R12 (1) E-BIZ R12 INSTALLATION (1) Essbase (1) hmailserver (1) Hyperion (1) Hyperion Essbase (2) Hyperion Essbase Interview Questions (1) Hyperion financial management (1) Informatica (163) Informatica Installation 9.6.1 (2) Informatica Interview Question (46) Informatica Online Training (1) Informatica Training (1) Informatica Training Chennai (1) JAVA (1) linux (1) Normalization in Oracle (1) OBIA (1) OBIA (3) OBIA Installation (33) OBIEE (1) OBIEE 10G (8) OBIEE 11G (137) OBIEE 11g dumps (2) OBIEE 11g Interview Questions (1) OBIEE 12c (20) OBIEE 12c Architecture (1) OBIEE 12C TRAINING (1) OBIEE certification (2) OBIEE Interview Question (1) OBIEE Publisher Interview Questions (1) OBIEE TRAINING CHENNAI (1) OBIEE TRAINING ONLINE (1) ODI (Oracle data integrator) (2) odi 11g certification (1) ODI dumps (2) Oracle Administrator (20) Oracle Business Intelligence Application (3) Oracle Data Integrator (2) Oracle Data Integrator Interview questions for experience (1) Oracle Database (3) Oracle Database 12c Installation steps (3) Oracle Database Installation in Linux 6 (2) Oracle E-Business R 12.3 (1) Oracle Hyperion Planning and Budgeting Questionnaire (2) oracle Joins (1) RCU INSTALLATION (1) scorecard in obiee 11g (1) SQL (3) SQL Interview Questions (1) sql server 2008 (2) Sql server installation (1) WinSCP (1)