Obiee 10g - schedule to clear cursor cache

hi, experts, I applied the command line to clear cache.
I found that it only clears cache at bi server level (cache entries in rpd).
it does not clear the cursor cache (those are viewed in Web , Manage Session)
can I set any schedule to clear cursor cache?

Hi,
OBIEE Cursor Cache clear from Dashboard Java Script
OBIEE Cursor cache is normally cleared from the Administration - Manage Sessions Screen...
Here is a way that a piece of java can be embedded into a dashboard and call an xframe so you cant see it being called and clear the OBIEE Cursor cache - Presentation cache in effect.
1. Just insert a text box into Dashboard - Tick the "Contains HTML Markup"
2. Paste the script below into the text box
<script language="javascript">
document.write(
"<iframe width=0px height=0px src=" +
document.location.href.match(/^[^?]+/) +
"?ManageSessions" +
document.location.href.match(/&_scid=[^&]+/) +
"&Action=CloseAllCursors&Done=saw.dll%3fSessions',{ensureFreshUrl:true});return false;')></iframe>"
</script>
Voila - when ever you click on the dashboard or refresh it the cursor cache will get cleared.
Please refer the below links for more information on this.
What Is Presentation Services Cache In Fact?
http://prolynxuk.com/blog/?p=496
how to seed n clear cache of obiee
http://obiee101.blogspot.in/2008/03/obiee-manage-cache-part-1.html
How to clear the cache daily automatically
http://obiee10grevisited.blogspot.in/2012/02/cache-in-obiee.html
Award points it is useful.
Thanks,
Satya

Similar Messages

  • OBIEE 10g Cache clear every day

    Hi,
    How to clear the cache in OBI every night? as we run the ETL every night.
    Testers are still getting the data from cache which is rebuilt 2 days back.
    Now I have disabled the cache in Config file for the time being, so the testers will not raise new defects based on cache data.
    Production config and test config files are same. But production does not have this problem. Am i missing anything? i am new in the admin team so plz help.
    Please help.
    Regards
    Suresh

    Thanks for very useful info. Its definitely a good solution we will look into. :)
    But my main concern is, if all the reports in dashboards are using the cache as we enabled the cache. what is the use of every night's ETL?. If all the reports are not refreshing the data we would have got complaints from user, but there are no cases as such.
    or is there a setting which refreshes the reports in Dashboards everyday?
    The only difference i see in the nqsconfig is "SESSION_TIME_OUT_SECONDS = 3000;" (exist in prod) but not exist in SIT.
    Production*
    [ CACHE ]
    ENABLE = YES;
    // A comma separated list of <directory maxSize> pair(s)
    // e.g. DATA_STORAGE_PATHS = "d:\OracleBIData\nQSCache" 500 MB;
    DATA_STORAGE_PATHS = "E:\Installations\OracleBIData\cache" 500 MB;
    MAX_ROWS_PER_CACHE_ENTRY = 100000; // 0 is unlimited size
    MAX_CACHE_ENTRY_SIZE = 10 MB;
    MAX_CACHE_ENTRIES = 1000000;
    POPULATE_AGGREGATE_ROLLUP_HITS = NO;
    USE_ADVANCED_HIT_DETECTION = NO;
    MAX_SUBEXPR_SEARCH_DEPTH = 7;
    SIT*
    [ CACHE ]
    ENABLE = YES;
    // A comma separated list of <directory maxSize> pair(s)
    // e.g. DATA_STORAGE_PATHS = "d:\OracleBIData\nQSCache" 500 MB;
    DATA_STORAGE_PATHS = "E:\Installations\OracleBIData\cache" 500 MB;
    MAX_ROWS_PER_CACHE_ENTRY = 100000; // 0 is unlimited size
    MAX_CACHE_ENTRY_SIZE = 1 MB;
    MAX_CACHE_ENTRIES = 1000;
    POPULATE_AGGREGATE_ROLLUP_HITS = NO;
    USE_ADVANCED_HIT_DETECTION = NO;
    MAX_SUBEXPR_SEARCH_DEPTH = 7;
    Regards
    Suresh
    Edited by: slella on 20-Feb-2013 08:46
    Edited by: slella on 20-Feb-2013 08:48

  • Administration Tool Cache vs. Cursor Cache

    Hi everyone,
    Someone asked me what's the difference between the cache in the administration tool ( Manage->Cache) versus cursor cache (Settings -> Administrator -> Manage Sessions), and even though I've cleared them both many-a-time, I still am not sure the difference.
    Can someone explain to me the difference between the two?
    Thanks!
    -Joe

    Hi,
    The cache in the administration tool is a file based cache on the OBIEE server which stores the results of database requests. This means that if a user makes a request the OBIEE server first checks the cache to see if the query has already been run and cached, or if a superset of the query has been run and cached (i.e. a less restrictive query that the current query can be satisfied from). If it finds there is a cache entry then it will return the results from here instead of issuing any SQL to the database, thereby speeding up getting the results back to the user.
    The cache shown in the cusrsor cache is the cache on the presentation server, this is a cache of the content which is being returned to the user's browser, this means if the user goes back to see results for a query they have already made then the presentation server can just return the same content to them without even having to go to the OBIEE server again at all.
    So basically 2 levels of caching, one on the OBIEE server and one on the presentation server.
    Regards,
    Matt

  • The SQL has aged out of the cursor cache.

    Hi,
    on 10g R2, Ihave the following :
    The SQL has aged out of the cursor cache.
    Does-it mean that undo_retention is not enough big?
    For the moment it is 10800, 3 hours.
    Thanks.

    Hi,
    The issue is that when in sql advisory I click on "Schedule SQL tunning advisor" it gives me "The SQL has aged out of the cursor cache".
    If shared_pool is =0 , (automatic management) would it be usefull to define shared_pool_reserved_size value ?
    In documentation it is said :
    7.3.8.2 When SHARED_POOL_RESERVED_SIZE Is Too Small
    The reserved pool is too small when the value for REQUEST_FAILURES is more than zero and increasing. To resolve this, increase the
    value for the SHARED_POOL_RESERVED_SIZE and SHARED_POOL_SIZE accordingly. The settings you select for these parameters
    depend on your system's SGA size constraints.
    Increasing the value of SHARED_POOL_RESERVED_SIZE increases the amount of memory available on the reserved
    list without having an effect on users who do not allocate memory from the reserved list.And actually I have REQUEST_FAILURES =15.
    Thank you.

  • Cursor Cache

    Hi All,
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    I will not be able to share the query due to company policy.
    OEM plan showing as Merge cartesain for the query, I know the plan is not correct, as the query has incorrect number of cardinality. I have SQL profile set on this query:
    OEM shows as :
    Data Source : Cursor Cache
    Additional Information : 'SYS_SQL_PROFXXXXXX' (X is some number)
    Here is what is happening:
    1. The table where the merge join is purged Daily (EOD i.e. 12 AM ), that means it has no rows.
    2.Morning around 4 am one process will populate this table, and the same process further uses this table in a query, the query plan has merge Join cartesain (MJC), and it comes out as the number of rows is very less.
    3. Next around 6am again that process is triggered, this time it has huge number of rows, and again the query picks up the same MJC plan, and this time query executes for hours, as it has incorrect cardinality. When I again run SQL advisory on this query, it shows up an optimized plan, I kill the process and re-run the process again, and it works fine (query is out within 3 seconds)
    Guess it still picks up the previous plan of merge join @6am where the number of rows are less, from the cursor cache, and the OEM also shows data source as Cursor Cache. Can we invalidate the session cache if this is the case.
    Please help how can we handle this one?

    I think you are addressing a common problem in datawarehouses... there are staging tables, some times empty, some times with millions of rows... so, maybe the statistics are not reallistic... What is the result of the following query:
    select num_rows, last_analyzed from dba_tables where table_name = '<your_table>';
    If this is the problem, you should to consider one of the following strategies:
    1) Analize the table when is "full" and assure that never runs an analize table (or a gather_schema_stats) over this table. This strategy works fine if all days the table is populated with similar data... but maybe you need to change a gather_schema_stats job schedule... you should be aware of when and how the statistics are updated
    2) Populate the table, then run a gather_table_stats over the table, wait for the completion of the gathertable_stats_, and finally trigger the 6am process... maybe you need to schedule the process before 6am because the statistics gather process
    I hope this helps
    Regards,
    Alfonso

  • Challenges while Upgrading from OBIEE 10g to 11g

    Hi Gurus,
    This is Kiran again. This time I am back with the upgradation issues. We have a client which is currently on OBIEE 10g. All components are already configured in OBIEE 10g with client on RPD, Catalog and implemented all security levels for those.
    Now the challenge is to upgrade all activities which we have configured in OBIEE 10g. I have seen lot of stuff online and understood how to upgrade from OBIEE 10g to OBIEE 11g by simply clicking on ua.bat file. But I am unable to understand the process how it is upgrading the securities and environments.
    Can anyone help me out by providing necessary stuff I need to take care of before taking the decision to upgrade from OBIEE 10g to 11g.
    And also please clear me whether we will have any challenges in upgrading process. If yes, then what kind of challenges we will face and what kind of necessary steps we need to implement to resolve it.
    What kind of Architecture we need to follow?
    How Schedulers will get upgraded?
    Please help me out with your real experiences (Not the online websites). Your response will be highly appreciated and it will help lot of OBIEE professionals who are in the process of upgradation.
    Thanks in Advance to all OBIEE GURUS.
    Kiran

    Hi Valli,
    There is really great information available in this link. But I would like to know whether any one faced any issues while upgrading from OBIEE 10g to 11g. Please do share us few issues....
    Edited by: 949144 on Nov 27, 2012 9:44 AM

  • How to stop a running job in 10g Scheduler?

    The following is a duplicate post. I posted the following to the general database forum before seeing that otn has a new scheduler forum:
    I am not able to find in the Admin Guide a method to stop a currently running instance of a job in the 10g scheduler.
    In 9i, I run the following script calling DBMS_JOB.broken and DBMS_JOB.remove to shut down currently running jobs:
    DECLARE
    jobid NUMBER;
    CURSOR c1
    IS
    SELECT job
    FROM dba_jobs
    WHERE priv_user = 'ME';
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1
    INTO jobid;
    EXIT WHEN c1%NOTFOUND;
    DBMS_JOB.broken (jobid, TRUE);
    COMMIT;
    DBMS_JOB.remove (jobid);
    COMMIT;
    END LOOP;
    CLOSE c1;
    END;
    How may I create similar code to shut down currently running jobs using DBMS_SCHEDULER in 10g? According to the Admin Guide, disabling jobs with the force option will still allow the job to finish.
    How can I terminate a running job in 10g?

    You can stop a currently running job using the STOP_JOB api.
    STOP_JOB Procedure
    This procedure stops currently running jobs or all jobs in a job class. Any instance of the job will be stopped. After stopping the job, the state of a one-time job will be set to SUCCEEDED whereas the state of a repeating job will be set to SCHEDULED or COMPLETED depending on whether the next run of the job is scheduled.
    Syntax
    DBMS_SCHEDULER.STOP_JOB (
    job_name IN VARCHAR2
    force IN BOOLEAN DEFAULT FALSE);
    Parameters
    Table 83-44 STOP_JOB Procedure Parameters
    Parameter Description
    job_name
    The name of the job or job class. Can be a comma-delimited list. For a job class, the SYS schema should be specified.
    If the name of a job class is specified, the jobs that belong to that job class are stopped. The job class is not affected by this call.
    force
    If force is set to FALSE, the Scheduler tries to gracefully stop the job using an interrupt mechanism. This method gives control back to the slave process, which can update the status of the job in the job queue to stopped. If this fails, an error is returned.
    If force is set to TRUE, the Scheduler will immediately terminate the job slave. Oracle recommends that STOP_JOB with force set to TRUE be used only after a STOP_JOB with force set to FALSE has failed.
    Use of the force option requires the MANAGE SCHEDULER system privilege.
    Setting force to TRUE is not supported for jobs of type executable.
    Usage Notes
    STOP_JOB without the force option requires that you be the owner of the job or have ALTER privileges on that job. You can also stop a job if you have the CREATE ANY JOB or MANAGE SCHEDULER privilege.
    STOP_JOB with the force option requires that have the MANAGE SCHEDULER privilege.

  • Problem in navigating from one report to another in OBIEE 10g

    Hi,
    I am facing an issue with OBIEE 10g while applying navigation on my reports.
    Lets suppose I made a report showing list of all items(in broad categories) sold on a particular day, say Dairy, Frozen Foods, Chocolates etc.In this report there is a date prompt showing the date of sale.
    Now there are certain items that are distributed within these categories, like dairy includes milk, cheese, butter etc.
    Hence, my navigation should be like when I click on a particular item category, the control should move on to the report which has all items under that particular category and the prompt for this report should show the same date as passed in the previous report.
    But sometimes what happens is that on clicking the navigation from first report to the second one, the date is not persisting in the prompt. I say sometimes because at times the navigation does work correctly. This is a bug of Obiee or something which is giving unexpected results.
    Kindly help with your suggestions.
    Thanks
    Ankita

    Ankita,
    This is not a bug in OBIEE...I'm sure something is missing. If this is working for some cases and not working for some other case then you will need to find the root cause. Try in bits and pieces...Step by Step with some dates (unit testing). Ideally this shud work properly.
    For an instance try with OBIEE drilldown feature and not with navigation with a single sale date and observe the behavior.
    Hope its clear...

  • BI Publisher (Obiee 11g) Scheduled jobs start randomly after services restarting

    Hi everybody,
    I've a problem with scheduled jobs on BI Publisher that start randomly after server restarting.
    For example if there's a job scheduled every day at 8.00 am it works fine until the server is not restarted but when I restart it next job running start at 9.28 am (it is an example because the real start time is very unpredictable).
    In my case bi publisher is integrated with obiee 11g (11.1.1.6.2) and I've scheduled jobs with administrative user (weblogic). For this user I've set the Bi Publisher Preferences (report locale = Italiano-Italia, Report Time Zone = GMT +1:00) from obiee analytics user account preferencies.
    Can anyone have this problem too and help me?
    Thanks
    Annalisa

    These are not helpful. The first link is to OBIEE 10g and the second is just an install guide. I am having the same issue with BI Publisher returning java.lang.NullPointerException in OBIEE 11g. Any help would be appreciated. Thanks,
    Paul
    Edited by: pneedleman on Nov 17, 2010 10:15 AM

  • OBIEE 10g - high compilation time

    Hi All,
    While doing performance tuning for one of the request in OBIEE 10g, I realized that the compilation time for the request is very high (almost 50% of total time). Is there any way I can reduce it?
    Here's summary stats from the log.
    +++administrator:111e0000:111e0024:----2012/02/22 15:28:29
    -------------------- Logical Query Summary Stats: Elapsed time 105, Response time 105, Compilation time 50 (seconds)
    Thanks in advance.

    Hi,
    Check for the indexes. And if its there then try to change the order(ie the order of the columns in the index) with which the query uses the indexes.
    Otherwise you can also make the report run by default in any of the default pages(making it hidden). So what happens is the report gets cached, so when the user tries to view the report, it happens to come fast.
    Regards
    MuRam.
    NOTE-Please mention if this worked/ still facing issue, so that it could be useful for others will similar issue.

  • Clear KM Cache using API

    Hi All,
    We have a requirement to clear the KM cache every day in the morning for two of the items in Cache Monitor.  I would like to know if we could clear the cache for the selected items using some API or any and schedule a job so that it runs every day to clear the cache.
    Appreciate any suggestions for the same.
    Regards,
    Aruna.

    check out this one:
    http://help.sap.com/javadocs/NW04S/current/km/com/sapportals/wcm/util/cache/package-summary.html
    something like
    CacheFactory.getCache(id).clearCache()
      should do the trick

  • Clearing map cache in Dashboard

    Hi All..
    I have customized my obiee to display a map(using static text) which is based on one of the table(an Answer created for the same).
    I am using pl/sql procedures to update my table data.
    Each time I want the table and map to refresh with the latest data.
    So I have bypassed all the cache ..
    Updated tables in physical layer to disable cache
    Disabled in NQSConfig.ini
    On the Advanced Tab of answers, checked the bypass cache
    Added SET VARIABLE DISABLE_CACHE_HIT=1; as Prefix.
    After all this I see that table data gets reflected but map still shows old data :(
    When I look at the cursor cache on Manage sessions, I see table query running twice. The first one with correct records and second one with old records.
    I am not sure if one is from Map server and second from obiee.
    When its the same answer, I don't know why 2 different outputs.
    Did any one face such issue ? Or can any one suggest what can be done ??

    Na.. Bouncing din't work either.. I re-started all the bi servers including web logic.Thanks anyways
    Edited by: user638087 on Sep 14, 2010 7:09 AM

  • Cascaded Prompts in OBIEE 10g

    Hello friends,
    Can some help me to understand how to implement cascaded prompts in OBIEE 10g? My situation is:
    I have three Prompts P1,P2 and P3
    P1: Values are comming from a table
    P2: Shows the value from a Stored Procedure, such that one stored procedure takes input parameter from P1
    P3: Shows the value from a stored procedure , such that one stored procedure takes input parameter from P2
    After selecting value from P3 , I will run the report. So here P2 is based on P1 , P3 is based on P2, ie cascaded.
    I have tried this by checking the box Constrain for P2 and P3 (red some where that if we make a prompt with checked the Constrain box then its value depends on the previous prompt)
    But for me this is not working even if check the Constrain box.
    Can I some one help me to do this.
    Thanks,
    Mithun

    Hi Krish,
    Value of P1 Im passing to a stored procedure (say SP1) to populate P2, same way values in the P2 (which is the result from SP1) I'm passing to SP2 which in turn gives the values in P3.
    I'm using the SP1 and SP2 in the Physical layer as
    EXEC SP_NAME @parameter1 = 'VALUEOF(NQ_SESSION.ID)'
    Here ID is the session variable I have created.
    And in the Dashboard, I have created the prompt P1 (on a field which is from a table), then the value is passed to the variable ID by choosing the 'Request Variable' option in the Set Variable drop down.
    Same way I did for other SP by passing the value from P2..
    Here for P2 and P3 I have checked the box for constrain so that value of P2 is depended on P1 and value of P3 is depended on P2.
    But my problem is this method of cascading is not working.. that is P2 value is not changing based on the value I'm selecting in P1 ans same way for P3...
    Hope my issue is clear to you..
    Thanks,
    Mithun

  • OBIEE 10G sheduler configuration -email

    I am trying to set up an answer report to be scheduled to users by emails.
    So far I have followed this OBIEE 10G - BI Scheduler Configuration (for Delivers) | GerardNico.com (BI, OBIEE, OWB, DataWarehouse)
    And I have created a iBOT for an answer report and tested it work OK to deliver the report to dashboard.
    Now for deliver through email, I have followed this OBIEE 10G/11G - How to configure the Mail server of Scheduler/Delivers | GerardNico.com (BI, OBIEE, OWB, DataWare…
    So I have set up an email smtp in Job manager -  scheduler configuration. It's a non SSL smtp and I have tested the smtp information on another application to make sure it's correct. I restarted presentation server and scheduler in windows - service. But when I test the iBOT, I got following error message:
    [nQSError: 75005] Failed to send AUTH command. 5.7.3 Authentication unsuccessful.
    Any idea? I am sure the smtp server, port,  username, password are correct because they work in another application. Thanks.

    check this OBIEE 10g: Error: "[nQSError: 75005] Failed to Send AUTH Command. 5.7.3 Authentication Unsuccessful" Running iBots and no Email Message is Sent by Them (Doc ID 796842.1)

  • 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

Maybe you are looking for