Historical philosophical, theoretical, and legal foundations of special and i...
Biee importent steps
1. How to clear the BI Server cache using
command line script or via the Issue
SQL page
October 11, 2013 1 Comment
This post will explain how to clear the BI Server cache using either (1) a script, or (2) the user
interface.
You may need to clear your cache to allow the data in the cache to get refreshed.
(1) Clearing the cache using Command Line script …
This example is for Linux/Unix, but can be easily adjusted for Windows.
Create a file called purgecache.txt … and place it at …
[FMW_HOME]/instances/instance1/bifoundation/OracleBIApplication/coreapplication/set
up
In the file, enter the code “call SAPurgeAllCache()” – (without the quotes) – which is a special
BI Server command for clearing the entire cache.
Then create a shell script called purgecache.sh, located in a directory where you store your
custom scripts … which includes the following 2 commands …
(Note: there is a space after the dot in the below command)
.
/[FMW_HOME]/instances/instance1/bifoundation/OracleBIApplication/coreapplication/set
up/bi-init.sh
(Note: the below is ONE long command; not 2 commands)
[FMW_HOME]/Oracle_BI1/bifoundation/server/bin/nqcmd -d AnalyticsWeb -u
administrator -p pswd –s
[FMW_HOME]/instances/instance1/bifoundation/OracleBIApplication/coreapplication/set
up/purgecache.txt
Then you may execute the shell script just as you would any other script (for example
./purgecache.sh ) -or- you may add this new script to your crontab if desired – for example, to
run each night before your cache seeding reports run.
(2) Clearing the cache using the Issue SQL page …
Log into OBIEE Analytics using an ID that has the “Administration” link privilege.
http://server:9704/analytics
2. Click on the “Administration” link located at the top right of the page.
Click on the “Issue SQL” link at the bottom left of the page.
In the Issue SQL window, enter the command: “call SAPurgeAllCache()” (without the
quotes)
Click the “Issue SQL” button to execute the command.
You should see a message indicating that the command was executed successfully (assuming
you have caching turned on).
3. Your cache directory located at …
[FMW_HOME]/instances/instance1/bifoundation/OracleBIServerComponent/
coreapplication_obis1/cache
… should now be empty.