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

Similar Messages

  • 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

  • How to seed n clear cache of obiee

    Hi,
    Is it possible to seed n clear cache of obiee 10g using pl/sql code? wht are other method except ibot to seed cache?
    ETL is based on pl/sql..so how to manage cache after etl load?
    Thanks,

    OBIEE has NQCMD utility to handle the cache best. Use this utility to Purge & Seed the cache. You will have to copy the report sql which you want to seed into a text pad and use that as source to NQCMD utility to run query and populate the cache entry.
    Purging is very easy here...and same goes for seeding.
    Like SeedTableCache.txt which will have your SQL scripts. Once this is used via NQCMD which can be scheduled using Job Manager or any other job.
    nqcmd -d AnalyticsWeb -u Administrator -p Administrator -s c:\obiee\SeedTableCache.txt
    Refer
    http://obiee101.blogspot.com/2008/03/obiee-manage-cache-part-1.html
    Hope this helps

  • Report not hitting pre seed cahe created using iBot by Admin

    Hi,
    We created an iBot to pre seed the cache using Administrator and it is creating the cache but when normal user run this particular report for the 1st time it's not hitting the cache(created using iBot). all the subsequest users request hitting the cache created by normal user. I still dont understand why it is not hitting the cache.
    Did anyone comeacross this issue before?
    what are the reasons not hitting cache with above scenario??
    does cache created by administrator using ibot work for other users? we actually running whole query with no filters on it using admin and normal users run the same report with some filters on it. as per oracle cache strategy it should work but it's not.
    any help appreciated.
    Thanks
    Jay.
    Edited by: Jay on May 16, 2012 7:23 PM
    Edited by: Jay on May 17, 2012 5:42 AM

    Hi Jay,
    I have given some inputs.
    The way the OBIEE server creates the SQL (both logical and physical) for a request can be a bit funky sometimes, the cache seeding only really works in fairly simple cases. Does your request have a pivot table in it by any chance? These are notorious for not caching properly, if you look at the log for the request you can see why as the server adds this strange "aggregate by" to the request (why this can't be done at the presentation level since the only change you are asling for is in the presentation of the content is beyond me). Those "aggregate by"s tend to stop a request being a cache hit unless it is identical to the one that seeded that cache, any change in parameters, columns etc (even if a logical subset) will not get a cache hit.
    2. "Oracle BI Server Cache" Cache Seeding option present in Destination tab of Delivers -- Please check this option.
    3. Caching is one of the many approaches to improve performance but it's not a magic solution. You need to understand that you can't cache everything. In particular you won't be able to cache reports that are driven by parameters and have facts that are too granular and exceed the number of rows each cache entry can have. If your fact is of a small size then you can get around the parameters issue by caching a report without any filters. The BI Server should able to derive subsequent queries as long as they meet the cache hit criteria. Have a look at the administration manual for all the rules a cache hit must meet.
    Hope it helps.
    Thanks,
    Satya

  • OBIEE 10g - Ragged & Skip Level Hierarchy

    Hi Frnds,
    I'm aware of the fact that OBIEE 11g supports Ragged & Skip Level Hierarchy. But I'm looking for some heads up while implementing the same on OBIEE 10g using Oracle DB as source. I have done this before for Essbase Data Source but now waiting for my Oracle dataset for design.
    Has anyone actually implemented in Real Time Project? Pls share your challenges like:
    - Dimensional Hierarchies Challenges
    - Drill Down Challenges
    - Report Challenges
    Thanks,
    Deepak
    Edited by: Deepak Gupta on Aug 11, 2011 5:18 AM

    Deepak,
    10g does not handle the idea of Skip hierarchies and the ragged hierarchies definitely has its limitations.
    We've implemented several projects using Essbase and SAP BW for Oracle BI 10g. The biggest issue is that in Answers creates a new column for each drill down selection when attempting to navigate down a hierarchy. Though this is klugy it does work and provides the data the user is looking for. It is however, not aesthetically please when compared to other tools or now Oracle BI 11g which satisfies this issue with a native drill-down tree folder structure.
    My opinion and advice would be to upgrade to 11g as soon as possible to enjoy these new features.

  • PURGE CACHE MESSAGE-.ugggh!

    I keep getting a message that says I need to purge the Cache. When I go to preferences and try, the window freezes. Nothing happens. I have to force quite out of Bridges. Also, ever since I started using the creative cloud my photoshop freezes up. Never had that issue before. Any suggestions? I have 100 photos to process so any help would be GREATLY appreciated. Thanks in advance.
    Tamera Ford

    When I go to preferences and try, the window freezes. Nothing happens. I have to force quite out of Bridges.
    Could you provide details about what exact version of Bridge and OS you are using on what computer?
    Meanwhile if you have pointed Bridge to a folder you can also purge cache for that folder using menu tools / cache/ purge cache for folders to see if that helps.

  • Scheduling Oracle OBIEE reports using Tidal scheduler 5.3.1.X

    Hi,
    Is it possible to schedule OBIEE reports using the Tidal Scheduler? I have reviewed the documentation for Oracle Adapter/Application Adapter, and didn't find any information there. However, I did find some references with scheduling OBIEE reports using Ibots. Can I Ibots be called from the commandline? I would appreciate any information on this topic.
    Thanks,
    Derrick Au

    Derrick,
              At the current time we do not have an Oracle Business Intelligence adpater and the Product Manager has indicated that this is not currenlty on the Product Road Map.  I am from what I am reading on the internet it appears that Ibots can be ran from the commandline.  I will check with our Professional Services group to see if they have a solution connector that allows OBIEE to be ran through TIDAL.
    Thanks,
    Kenneth Kuchynka
    CISCO Systems Technical Support

  • OBIEE 10g: Presentation Cache in Second Instance of Presentation Server

    Hi everyone,
    I've been having an issue with my presentation cache disappearing every couple of minutes.
    I'm working with OBIEE 10.1.3.4, on Oracle Application Server on a Linux RHEL 5.4 32bit. I've spun up a second instance of the presentation service using the commands from RNM1978's blog here (http://rnm1978.wordpress.com/2009/08/25/multiple-rpds-on-one-server-part-2-presentation-services/). The reason why I have a second instance of the presentation service is for mobile reporting purposes. We have lots of executives using iPhones and the Oracle Business Intelligence Indicators application. The second instance defaults all charts to be PNGs, it also uses a separate, clean catalog, so that the executives don't get lost in all of the out of the box BI Applications content that is in our main catalog.
    Everything is setup and working properly, both presentation services are accessible and use the same RPD but different catalogs. The only thing that isn't working is the presentation service cache. A lot of these reports are QTD or YTD so it takes a few minutes to run some. We were hoping to use iBots to create BI Server cache at the beginning of the day. That seemed to help a bit but it seems to clear after a few minutes.
    Additionally, before we went to do demos to end users, we would run all the reports from a demo iPhone. Go to do the demo and within five minutes, the presentation cache would have already cleared. I confirmed the same by looking in the Session Manager of the second presentation service.
    Does anyone know why this would be happening? I have cache turned on in the bi server and I also have the following settings in my instanceconfigMobile.XML:
    <Cache>
    <Query>
    <CacheMaxEntries>1000</CacheMaxEntries>
    <CacheMaxExpireMinutes>720</CacheMaxExpireMinutes>
    <CacheMinExpireMinutes>720</CacheMinExpireMinutes>
    <CacheMinUserExpireMinutes>720</CacheMinUserExpireMinutes>
    </Query>
    </Cache>
    Are there other settings I need to investigate?
    Is this just additional commands I need to run when launching the additional presentation service? Here's the command I'm using:
    . ./common.sh
    . ./sa-init.sh
    sawserver -c /home/oracle/OracleBIData/web/config/instanceconfigMobile.xml >> /home/oracle/OracleBIData/web/log/sawserverMobile.out.log 2>&1 &
    Thanks!
    -=Joe

    Hi Joe
    I can't say I've tried Robin's technique to run two presentation servers but from my basic understanding of it, both versions will share the same cache as defined in a single nqsconfig.ini file. Maybe these 2 are conflicting somehow?
    I see that a separate instanceconfig.xml is used for each presentation server. I know there are a bunch of advanced, largely undocumented, cache properties you can set in there. I can send you a document listing the various properties if you want to play with it - contact me via my website.
    Paul
    http://total-bi.com

  • IBot Creation in OBIEE 10G

    Hi All,
    I have OBIEE 10G installed in a unix server and BI client in windows XP. Now when I configure the scheduler via BI client, under the general tab in which format can i mention the unix server path for the scheduler script, default script and temporary file path. As these paths are defaulted to my local machice D: drive.
    Actually my problem is, I was able to login to Delivers using Administrator but unable to save a iBot. It says Authentication failed.
    Please help.
    Thanks

    Please find my config values below. I guess something is wrong and hence I am still unable to save an iBot. Please help
    instanceconfig.xml - (Already present)
    <CredentialStore>
    <CredentialStorage type="file" path="/u00/webadmin/product/10.1.3_OBI/OracleBI_1/web/config/credentialstore.xml" passphrase="obiee"/>
    </CredentialStore>
    Credentialstore.xml - (Newly added)
    <sawcs:credential type="usernamePassword" alias="admin">
    <sawcs:username>Administrator</sawcs:username>
    <sawcs:password passphrase="PMADMIN">
    <xenc:EncryptedData>
    <xenc:EncryptionMethod Algorithm="http://www.rsasecurity.com/rsalabs/pkcs/schemas/pkcs-5#pbes2">
    <pkcs-5:PBES2-params Algorithm="http://www.rsasecurity.com/rsalabs/pkcs/schemas/pkcs-5#pbkdf2">
    <pkcs-5:KeyDerivationFunc>
    <pkcs-5:Parameters>
    <pkcs-5:IterationCount>1024</pkcs-5:IterationCount>
    </pkcs-5:Parameters>
    </pkcs-5:KeyDerivationFunc>
    <pkcs-5:EncryptionScheme Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
    </pkcs-5:PBES2-params>
    </xenc:EncryptionMethod>
    <xenc:CipherData>
    <xenc:CipherValue>t/kuivSpJztX3qINS9v/VA==</xenc:CipherValue>
    </xenc:CipherData>
    </xenc:EncryptedData>
    </sawcs:password>
    </sawcs:credential>
    Sceduler Config via BI client - (Manage ->Jobs-> Configuration Options->General)
    Schedular Script path - /u00/webadmin/product/10.1.3_OBI/OracleBI_1/server/Scripts/Scheduler
    Default Script Path - /u00/webadmin/product/10.1.3_OBI/OracleBI_1/server/Scripts/Common
    Temporary file path - /u00/webadmin/product/10.1.3_OBI/OracleBIData_1/tmp
    Administrator Name: Administrator
    Password: XXXXXX
    Note:
    I have Doubt in the format of the script paths. Please note that the password for Administrator in both Shconfig and Credential store is same.
    Please help.
    Regards
    GJ

  • IBot results in Shared location is over writing  with no results (OBIEE 10g

    Hi Dudes,
    We are saving iBot results in shared location using java script at 8.am in morning everyday and files looks good. but the same file is overwriting in afternoon time with no results.
    actually we are not overwriting file in shared location but it is happening automatically.
    please suggest me.
    Thank,
    Raji.

    Thank you very much for your detailed inputs regarding Point #2 Prakash.
    You are right in saying that I've this requirement to improve performance and users don't need to execute the reports again and again by hitting database or from cache. Because data per day is bit large to store in the table or to caching the data.
    Regaring point #3 I want to use BFILE datatype to store the location of the file so that I'm planning to display hyperlink of the files to the users in OBIEE dashboard accordingly users will download the required report data.
    Files I can store anywhere by using Ibots as suggested. Could you please suggest any approach in OBIEE to highlight a link to the files in a report or dashboard to download the required files data?
    I found that I couldn't able to select BFILE data type column in Physical layer to see the data. and also its throwing error when I select this presentaion column in the report.
    Below error message I'm getting:
    View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46036] Internal Assertion: Condition m_CountFields == static_cast<int32>(m_ColumnNameVector.size()), file .\Src\SQCSCacheStorageListStream.cpp, line 222. (HY000)
    SQL Issued: SELECT "IBOT_DATA#1".IBOT_FILE saw_0 FROM IBOT_DATA ORDER BY saw_0
    Please advice solution if you come across this issue eralier to resolve.
    Kind Regards
    Murali.
    Edited by: Muralidhar b on Oct 29, 2009 5:16 PM

  • Filter on the reports created using DIRECT DATABASE ACCESS in obiee 10g

    How do i filter on the report that is created by using DIRECT DATABASE ACCESS in obiee 10g?
    I have reprot A with link to report B, report B is created using DIRECT DATABASE ACCESS. so it is just a table, but i need to filter out 2 columns.
    here is the query in REPORT B:
    select strm, acad_group, crse_id, class_section, count(emplid) from v_crse_enrl
    group by crse_id, strm, class_section, acad_group;
    the link in REPORT A:
    '<a target="_blank" href="'||VALUEOF("bi_link")||'Go&Path=CF_CROSS_TEACHING_LIST&ACTION=Navigate&col1=STRM&val1='||view1_DIMEN.STRM||'&col2=CLASS_SECTION&val2='||TRIM(view1_DIMEN.CLASS_SECTION)||'">' ||view1_dimen.class_id||'</a>'
    from this link to report B.
    thank you!!

    I didnt tested using url, but the same works with using presentation variables.
    To your direct sql add where clause for those two columns like WHERE col='@{col1}' and col ='@{col2}'
    and try to run from url.
    let me know updates

  • OBIEE 10g How ADD new report and use outer join

    Hi,
    I have to add a new report that use a new view...(just created in db)
    I'm new in OBIEE.. can you explain how can i do it?
    Actually:
    1. I opened administrator tool and import new view (and created an alias) in physical
    2. I built a logical table in BMM
    3. I built a new presentation table in presentation
    problem: the table in BMM have yellow icon like a fact table.. why??
    can you explain me what i have to do?
    thank you
    Edited by: 1006028 on 15-mag-2013 2.54

    By default OBIEE 10g considers a table as fact table that is dragged from physical to BMM layer. That's why you see the yellow color icon.
    If it is a dimension table, you will have to join this table with a fact table in BMM layer. After this the yellow color icon will go away.
    Pls mark correct/helpful.

  • Cache Seed using iBOTs

    I have a requirement to use iBOTs- Cache Seeding
    The Dashboard is designed in a way that it has some global filters and then, multiple pages with reports.
    When ever user logs in, user selects the global filters and then goes to desired 'page->report'.
    Based on that, user gets the details.
    Now, I have the requirement for Cache Seeding for those reports using iBOTs. Using iBOTs I was able to get the report seeded in the Cache. But, for that report, I am not able to apply the global filter and hence the am not able to seed the required Cache results. I am clueless at this point on what to do. Can someone help me out in this.
    Thanks.

    Caching is one of the many approaches to improve performance but it's not a magic solution. You need to understand that you can't cache everything. In particular you won't be able to cache reports that are driven by parameters and have facts that are too granular and exceed the number of rows each cache entry can have. If your fact is of a small size then you can get around the parameters issue by caching a report without any filters. The BI Server should able to derive subsequent queries as long as they meet the cache hit criteria. Have a look at the administration manual for all the rules a cache hit must meet.

  • Seeding Cache using iBots

    Hi,
    I am trying to seed the cache by using iBots. I am checking OBI Server seeding cache option in the destination tab and also i am selecting the report which i want to seed the cache in the content tab. iBot is executing but the report result is not seeding into the cache. I have checked all the tables in the physical layer the cacheable check box is selected. In instance config.ini file cache is enabled.
    when i check the iBot log file it is saying NoData.
    I have followed the steps in the documentation but its not working.
    Is there any thing i am missing out here? if any one the solutions please let me know as soon as possible.
    Thanks,
    Sankar

    What if you just run the request normally does it cache the query? Also we have seen on our end that the query results exceed the INI limits (# of rows, size, etc.). Verify that too.

  • Using nqcmd command to purge cache

    Hi,
    I'd like to ask a question,
    in OBIEE11G, I need to use nqcmd command to purge cache,
    in server I run below commond:
    nqcmd -d coreapplication_OH1568635987 -u weblogic -p weblogic1 -s C:\purgecache.txt
    in purgecache.txt is following command:
    call sapurgeallcache()
    it's ok in server,
    now I want to run this command in other machine,like I want to use informatica to invoke this commant to purge cache in schedule time.
    how to do it?
    thank you in advance!

    lets assume the column name is etl_end_time
    Agents can be controlled using reports(analysis in 11g). There is a Condition tab while creating agents which can be used to control agents based on output of the report.
    Lets say u create a dummy report. In that you are putting some dummy column. In the Edit formula dialog, use the TIMESTAMPDIFF function to compare your etl_end_time and current_time.
    Lets say you are setting the TIMESTAMPDIFF function to return the difference in minutes. Then create a filter on this column with operator as greater than or equal to and value as say 1 minute( this is ur choice)
    So this report will now return true when the difference between the time stamps is greater than 1 minute (which means it will become true 1 minute after the etl is over). Suppose you configure the agent to check the condition every 1 minute then at one point when the agent runs, this report will return true and agent is triggered
    This agent will then call you purge command
    You can of course add another filter to the dummy report as less than or equal to 5 minutes because the timestamp difference of the current time and the previous etl runs will also be greater than 1 minute ;) So to make sure only the latest etl end time is used you can add a second filter as just said.
    Phew.. :) hope I made myself clear

Maybe you are looking for