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/setup
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/setup/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/setup/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
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).
Your cache directory located at …
[FMW_HOME]/instances/instance1/bifoundation/OracleBIServerComponent/ coreapplication_obis1/cache
… should now be empty.
Thanks !!
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/setup
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/setup/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/setup/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
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).
Your cache directory located at …
[FMW_HOME]/instances/instance1/bifoundation/OracleBIServerComponent/ coreapplication_obis1/cache
… should now be empty.
Thanks !!
No comments:
Post a Comment