Purge cache by query SAPurgeCacheByQuery

Dear All,
I was trying to clear the cache for specific query entries using the nqcmd "SAPurgeCacheByQuery".
This command does not clear the cache for queries.
Below is the extract from the bat the launch the nqcmd (Clear_Cache_User.bat)
d:\Applications\SiebelAnalytics\server\bin\nQCmd.exe -d OBIEE -u Administrator -p Siebel7 -s D:\Staging\Clear_Cache_User.txt -o D:\Staging\Clear_Cache_Out_User.txt
Below is the query in Clear_Cache_User.txt
CALL SAPURGECACHEBYQUERY('SELECT Account."Account name" saw_0, Account."Parent account name" saw_1, Account."Account code" saw_2 FROM "1-2-1 Survey Analysis" ORDER BY saw_0, saw_1, saw_2');
Below is the output file after the nqcmd has completed (Clear_Cache_Out_User.txt)
CALL SAPURGECACHEBYQUERY('SELECT Account."Account name" saw_0 FROM "1-2-1 Survey Analysis"')
CALL SAPURGECACHEBYQUERY('SELECT Account."Account name" saw_0 FROM "1-2-1 Survey Analysis"')
RESULT_CODE RESULT_MESSAGE
1 [59118] Operation SAPurgeCacheByQuery succeeded!
Row count: 1
I have launched the bat file and in the output file it said that , Operation SAPurgeCacheByQuery succeeded! however the cache was not cleared.
Also note that we are using it in OBIEE version 10.1.3.4.
Kindly help.
Kind Regards
Anju
[email protected]

Dear All,
I was trying to clear the cache for specific query entries using the nqcmd "SAPurgeCacheByQuery".
This command does not clear the cache for queries.
Below is the extract from the bat the launch the nqcmd (Clear_Cache_User.bat)
d:\Applications\SiebelAnalytics\server\bin\nQCmd.exe -d OBIEE -u Administrator -p Siebel7 -s D:\Staging\Clear_Cache_User.txt -o D:\Staging\Clear_Cache_Out_User.txt
Below is the query in Clear_Cache_User.txt
CALL SAPURGECACHEBYQUERY('SELECT Account."Account name" saw_0, Account."Parent account name" saw_1, Account."Account code" saw_2 FROM "1-2-1 Survey Analysis" ORDER BY saw_0, saw_1, saw_2');
Below is the output file after the nqcmd has completed (Clear_Cache_Out_User.txt)
CALL SAPURGECACHEBYQUERY('SELECT Account."Account name" saw_0 FROM "1-2-1 Survey Analysis"')
CALL SAPURGECACHEBYQUERY('SELECT Account."Account name" saw_0 FROM "1-2-1 Survey Analysis"')
RESULT_CODE RESULT_MESSAGE
1 [59118] Operation SAPurgeCacheByQuery succeeded!
Row count: 1
I have launched the bat file and in the output file it said that , Operation SAPurgeCacheByQuery succeeded! however the cache was not cleared.
Also note that we are using it in OBIEE version 10.1.3.4.
Kindly help.
Kind Regards
Anju
[email protected]

Similar Messages

  • Purge Cache for a Specific Business Model

    Hi everyone,
    I have a obiee(11) report purging all cache entries (as Call SAPurgeAllCache()). Is there a method to purge cache partially for specific business model entries and not to purge all the cache ?
    Thanks ...

    Hi,
    To selectively purge, you could use SAPurgeCacheByQuery, SAPurgeCacheByTable or SAPurgeCacheByDatabase. Alternatively, Event Polling Tables may help. See http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/querycaching.htm#i1005542 and http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/querycaching.htm#i1010207.
    Also see the section on BI Server caching here : http://www.rittmanmead.com/2013/03/optimising-obiee-performance-tuning/
    SET VARIABLE DISABLE_CACHE_HIT = 1
    It will purge the cache for that report.This is just wrong. DISABLE_CACHE_HIT only DISABLES cache use for the query execution, it does not PURGE it
    You may go for this DISABLE_CACHE_SEED for more info http://docs.oracle.com/cd/E23549_01/bi.1111/e10540/variables.htm
    What's the point of DISABLING use of the cache, if the OP wants to use the cache?
    set the cache persistence time for the related physical tables. so based on the time interval u set, at that time specific tables only will get cache purged.This is only the time from which the entry got loaded into the cache, so is not a good way to manage the purging of the cache usually - because it has no relation to when the data got loaded to the database

  • Purge Cache in OBIEE 10g using IBOT

    Hi All,
    I follwed the below steps to purge cache.
    Created below java script.
    var nqCmd = “D:\\OracleBI\\server\\Bin\\nqcmd.exe”;
    var dsn = “AnalyticsWeb”;
    var user = “Administrator”;
    var pswd = “SADMIN”;
    var tempInFileName = “D:\\SQL.txt”;
    var tempOutFileName = “D:\\Output.txt”;
    var wshShell = new ActiveXObject(“WScript.Shell”);
    var dosCmd = nqCmd + ” -d \”" + dsn + “\” -u \”" + user+ “\” -p \”" + pswd + “\” -s \”" + tempInFileName + “\”" +” -o \”" + tempOutFileName + “\”";
    try
    wshShell.Run(dosCmd, 0, true);
    catch(e)
    throw e;
    2. created a file SQL.txt in D drive with contents.
    {Call SAPurgeAllCache()};
    3. created an IBOT with advance tab:
    using custom script.
    I run the ibot imideately. but still my cache is not purging.
    If i m missing any steps.?

    Hi,
    Please copy the below script and save it c drive location.
    var nqCmd = "C:\\OracleBI\\server\\Bin\\nqcmd.exe";
    var dsn = "AnalyticsWeb";
    var user = "Administrator";
    var pswd = "Administrator";
    var tempInFileName = "C:\\SQL.txt";
    var tempOutFileName = "C:\\Output.txt";
    var wshShell = new ActiveXObject("WScript.Shell");
    var dosCmd = nqCmd + " -d \"" + dsn + "\" -u \"" + user + "\" -p \"" + pswd + "\" -s \"" + tempInFileName + "\"" +" -o \"" + tempOutFileName + "\"";
    try
    wshShell.Run(dosCmd,0,true);
    catch(e)
    throw e;
    Note: While save this file plz give name like purge.js then it will store js format then create ibot and go to advance tab --> select Custom Script --> give name like purge.js then run the ibot .
    Follow the below steps.
    1. create one note and put the query inside the note pad like below and save file name is SQL.txt.
    {Call SAPurgeAllCache()};
    Save this file is C drive location.
    It will purge all the cache.
    Hope this help's
    Thanks
    Satya

  • Purge Cache from Admin tool

    Hi Experts,
    I am using security filters for groups. I am devolving my S&V. when ever I am changing my conditions it is not reflecting. I think I have issue with cache. When ever I am taking query from log always where condition is showing previous table which one I used two days ago.
    My question is how can purge cache from security filters ? I don’t want keep any cache for any user.
    Please let me know. Thanks for your time.

    Hi user10441472,
    Hi,
    When you setup your session variable for your row level security, are you doing row-wise initialization? If so, did you remember to un-check the Use caching box?
    If that is your problem, follow these steps to fix it
    1) Open the RPD as Administrator
    2) Go to Manage -> Variables
    3) Double click on your initialization block
    4) Click on the edit target button
    !http://i47.tinypic.com/ddzwjt.png!
    5) Un-check the Use Caching check box
    !http://i48.tinypic.com/2qi01sm.png!
    The other thing you can do is completely disable caching on your physical tables. Do the follow to do this:
    1) Open your RPD as Administrator
    2) Double click on a physical table
    3) Un-check Cachable
    !http://i47.tinypic.com/1r7xcp.png!
    A final place you can turn off caching is a report.
    1) Open you Answer report
    2) Click on the advanced tab
    3) Check the Bypass presentation service cache
    !http://i48.tinypic.com/xaqclc.png!
    Good luck and if you found this post useful, please award points!
    Best regards,
    -Joe

  • Purge Cache by user

    Is there a command available to purge cache by user? something like "SAPurgeCacheByUser"
    In the documentation the following comands are available for purging the cache
    1. SAPurgeCacheByQuery
    2. SAPurgeCacheByTable
    3. SAPurgeAllCache
    4. SAPurgeCacheByDatabase
    The cache entries can be viewed by user in the cache Manager from Adminisdtrator tool... I wonder why there is no command available to do the same from the scripts...
    Currently I have setup the purge at the physical table level using the UET table (Event Polling table) that gets inserted with entries based on ETL jobs.
    We have requirements to purge cache entries for specific requests (that take lot of time to run) monthly, and still continue to clear cache generated from adhoc analysis requests on a daily basis...
    I seems like I'm left with only one appraoch to clear the cache using "SAPurgeCacheByQuery" by generating scripts that will capture the queries for which the cache needs to be purged...
    If anyone has an alternative (easier) method... please suggest..
    Thanks
    Sundar

    Okay, let me try to explain what I'm looking for...
    Current setup...
    We are purging the entire cache daily at a physical table level using the Event Poll table that is setup to get inserted with physical table names based on the ETL routines. If the Dim or Fact is inserted/updated by the daily loads then I insert a row into the event polling "UET" table with the physical table name of the dim or fact. OBIEE server is set to poll the UET every hour and when it finds an entry for a physical table, it clears all the caches associated with the physical table.
    I'm looking for....
    I have some fact tables that are very large and few queries to report at monthly or yearly level are not performaning well, so I'm looking for ways to retain the cache for specific requests which does not need the incremental daily changes to the facts/dims. Rest of the cache entries created by adhoc quering through answers can continue to be purged on a daily basis.
    To be able to achive this flexibility, I need to do the following
    1. Remove the cache purging based on physical table that is setup now based on UET table polling from OBIEE server...
    2. Identify those requests that need to be retained for a month or a week (typically these are used in dashboards and some monthly or weekly runs identified by users) These reports need not change until the next month or week... even though the fact and dims are loaded on a daily basis...
    3. Purge all the cache entries except for those request that are identified as weekly or monthly refresh rates...
    I was thinking that if I schedule and run those monthly or weekly request for seeding the cache with Administrator login then all I have to do is purge rest of the cache entries that are run by Non Administrators....
    Ofcourse this is not a complete solution as I need to be able to differntiate between a weekly and monthly requests...
    Hope this explaination helps, if not, let me know, I can try to provide more details....
    I appreciate you taking time to understand the question and try to help...
    Thanks
    Sundar

  • New update 8.7.1 CS6 ACR not working---(I own hard copy not a Trial or part of CC), I purged cache in bridge, and photoshop. NO photos will open when I double clik, or  will not open again in ACR alone.  When I double clik on raw file I get Sign In requir

    I purged cache in bridge, and photoshop. NO photos will open when I double clik, or  will not open again in ACR alone.  When I double clik on raw file I get Sign In required Notice--We will now register your TRIAL to your Adobe ID-------I am alread a SUBSCRIBER-------------Yes I get this same issue in Creative Cloud and same issue. error: Camera Raw editing is not enabled-----Camera Raw editing requires that a qualifying product has been launched at least once to enable this feature. These errors are happening inside both CS6 Bridge and CCphotoshop Bridge------NOTE----I am ALREADY signed into Creative Cloud and still get those message errors.........Need to fix ASAP.

    When you sign in to Adobe.com with the user ID and Password your using in the Creative Cloud and Photoshop does this link  https://www.adobe.com/account/my-products-services.html show that the account has a subscription?
    Also this is a user forum not a Adobe Customer Services web site.

  • I have problem with adobe bridge cs6. Every time I open it Bridge tells me to Purge Cache. I have CS

    I have problem with adobe bridge cs6. Every time I open it Bridge tells me to Purge Cache. I have CS6 on two computers and it works fine on one of them. I have tried to reinstall it without succeeding to fix the problem. Does anyone have the same problem and a solution to it?
    "Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation."

    You must have a Mac.  Try this.
    Quit Bridge, from user library (NOT system and root library) preferences folder find and delete the com.adobe.bridge5.plist file manual. Do this also in same user library caches folder (Caches/Adobe/Bridge CS6) and inhere find and the folder called 'cache' and drag it to the trash.
    restart Bridge holding down option key and choose reset preferences, then try again.

  • Bridge CC is asking my to 'purge cache'. When I do this doesn't work and freezes my mac. Bridge is unable to work at all. Please help?

    When I start up Bridge CC I get a error message instructing me to purge cache in preferences which I do but it doesn't work and freezes my mac. I cannot curretnly use Bridge CC. PLease help as this is costing me time and money - thank you in advance....

    Hold down the Option key as you launch Bridge, keep it down until you see a dialog box, then click all three options in the re-set box that comes up.
    If you don't see that re-set box, you're doing it wrong, i.e., you're not holding the Option key down fast enough.

  • Bridge CC asks to Purge Cache but freezes when I try to do so

    Am using Bridge on a MAC. Each time I open Bridge an error message comes up requesting to Purge Cache via preferences - But when I try to do this, it freezes.
    In fact, even before trying to purge cache, if I try navigating to another folder on Bridge it also freezes.
    Have trashed Bridge, downloaded it again and reinstalled - problem continues.
    What should I do?

    Yes that worked - THANKS.
    I created a new cache folder and deleted the other - and now it works!
    I had to show hidden files via terminal to delete the previous cache folder.

  • Bridge CC. on opening message says unable to read cache, purge cache. This does not help.

    On opening message says unable to read cache, purge cache. Purging the cache does not help and Bridge continues to hang. Was working fine before.

    Mac?  REad this http://forums.adobe.com/thread/1237168

  • Purge Cache Error in OBIEE 11g (11.1.1.5.0) in Linux Env.

    Hi all,
    I following the following blog to purge cache in Linux.
    http://shivabizint.wordpress.com/2010/12/22/purge-bi-server-cache-in-obiee11g/
    When I excute I get the following error message. Can someone help me to fix this issue? Thanks
              Oracle BI ODBC Client
              Copyright (c) 1997-2011 Oracle Corporation, All rights reserved
    [0][State: IM002] [DataDirect][ODBC lib] System information file not found. Please check the ODBCINI environment variable.
    Connect open failed
    Connection open failed:
    [0][State: IM002] [DataDirect][ODBC lib] System information file not found. Please check the ODBCINI environment variable.
    Connection open failed

    I have exported ODBC path manually.
    export ODBCINI=$ORACLE_INSTANCE/bifoundation/OracleBIApplication/$ORACLE_BI_APPLICATION/setup/odbc.iniAnd then executed the nqcmd command. Now I am getting the different error.
               Oracle BI ODBC Client
               Copyright (c) 1997-2011 Oracle Corporation, All rights reserved
    Initialize client environment failed, possibly caused by incomplete installation
    [nQSError: 47001] Invalid Oracle BI Bin directory:
    /oracle/home/bifoundation/server/bin.
    Initialize client environment failed, possibly caused by incomplete installation
    [nQSError: 47001] Invalid Oracle BI Bin directory:
    /oracle/home/bifoundation/server/bin.
    [0][State: IM004] [DataDirect][ODBC lib] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed Connect open failed

  • Bridge CC hangs upon opening, suggests purging cache which dies nothing except make issue worse

    Have had issues with Bridge becoming increasingly and painfully slow in loading/previewing its thumbnails on all machines in the studio.
    We have purged cache as per suggestions from the opening error messages but this has only made matters worse to the extent that now it wont load its previews at all.
    Ive reinstalled Bridge three times now. Even after reinstalling Bridge still retains last folder browsed information and will attempt to navigate to that folder regardless what you are trying to select.

    Have had issues with Bridge becoming increasingly and painfully slow in loading/previewing its thumbnails on all machines in the studio.
    We have purged cache as per suggestions from the opening error messages but this has only made matters worse to the extent that now it wont load its previews at all.
    Ive reinstalled Bridge three times now. Even after reinstalling Bridge still retains last folder browsed information and will attempt to navigate to that folder regardless what you are trying to select.

  • When opening Bridge (CS6) I get the following message: "Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation" I tried and after selecting purge cache it does not a

    When opening Bridge (CS6) I get the following message: "Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation" I tried and after selecting purge cache it does not allow me to select OK. Also Bridge keeps saying "Building Criteria" with the spinning wheel and nothing happens. I tried uninstalling and reinstalling to no avail. Please help:)

    Maybe a Preferences reset can help:
    Numerous program settings are stored in the Adobe Bridge preferences file, including display, Adobe Photo Downloader, performance, and file-handling options.
    Restoring preferences returns settings to their defaults and can often correct unusual application behavior.
    Press and hold the Ctrl key (Windows) or the Option key (Mac OS) while starting Adobe Bridge.  
    In the Reset Settings dialog box, select one or more of the following options:  
      Reset Preferences 
    Returns preferences to their factory defaults. Some labels and ratings may be lost. Adobe Bridge creates a new preferences file when it starts.
    Purge Entire Thumbnail Cache
    Purging the thumbnail cache can help if Adobe Bridge is not displaying thumbnails properly. Adobe Bridge re-creates the thumbnail cache when it starts.
    Reset Standard Workspaces
    Returns Adobe predefined workspaces to their factory default configurations.
    Click OK, or click Cancel to open Adobe Bridge without resetting preferences.   

  • PS6: get message, purge cache in preference while using Bridge, everything freezes.

    message says: please try purging the central Cache preference to correct situation. This comes up in Bridge.
    I tried the purge, but nothing happens, Bridge freezes, and I can't exit out.

    Restart Bridge holding down Ctrl (win) or Cmd (mac) and choose reset preferences and purge cache.
    If that doesn't work, try looking through this other thread: Cache issue with CS6 Bridge

  • CS6 Bridge says encountered problem, purge cache

    Hi there Forum Room,  Please can anyone help.
    I have been running photoshop CS6 for about 2yrs on my iMac running with 6gb Ram. Whenever I open Bridge I get this message and then it locks.
    "Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation"
    The only way to close the program is to force quit
    I have tried purging, through Tools > Cache > Purge cache >  But it still locks up, the little circle in the bottom left corner keeps going round and never stops this has been going all night and nothing has changed.
    I have tried uninstall and reinstall but bridge has this problem again, Photoshop works good but I have no preview area to view photos before editing !......Please Please can anyone help

    hnz5758 wrote:
    i attempt to open preferences, and clear out cache, it does not work.@
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

Maybe you are looking for

  • In LSMW, what is diff between LSMW-BAPI and LSMW-IDOC

    hello all In LSMW, what is diff between LSMW-BAPI and LSMW-IDOC

  • Help needed with FormCalc scripting in LiveCylce 8.0

    I am new to the whole form design functionality in Adobe.  I have a form that I have created that has multiple fields calculating off each other.  I have managed to get all the fields to calculate correctly, but I'm having trouble figuring out the co

  • Do Java Stored Proc support GUI

    Calling Java stored procedure from database Trigger I tried three things individually in Java Stored proc after trigger is fired: 1. Do SQL statement (Insert into ... ) 2. Execute a command to open notepad screen. 3. Open a new Frame and display it.

  • DVD Created with IDVD Will Play on Computer, But Not in DVD Player

    I loaded some video into IMovie, then went to IDVD to create a DVD. It previews fine and the disk burned fine. I can play the disk back in the computer, but when I drop it in a Panasonic DVD Player, it won't play. I've been burning for some time now

  • Vmlinux file in lib/modules/ kernel /build

    Wasn't really sure if this should be in newbie forum, or kernel forum to be honest! It should be a simple question to answer for someone who compiles their own kernel etc Can someone please confirm or explain the purpose of this file: -rw-r--r-- 1 ro