Clear a table from cache

hi there,
I am currently trying to analyse the number of physical reads needed to perform certain queries to see which one is best.
I am not getting accurate results because the table is being cached after the first query.
Basically, my question is how can I remove the table from the cache, so I can read the table from the disk with each query?
I have tried the nocache paremeter an i do not have permissions to do:
alter system flush buffer_cache;
or
alter system flush shared_pool;
Any help here would be much appreciated.
Cheers

Hi,
you should tune your query regarding consistent gets and CPU time, because disk reads may change and it's simply not real running a DB without Buffercache.
Shared Pool has nothing todo with bufferchache. You store parsed SQLs, PL/SQL and the Data Dictionary in it.
To get your table out of the buffercache drop and recreate it if you don't have dba rights.
Dim

Similar Messages

  • How to clear the report from Cache.

    Hello all,,,
    In my project iam using crystsal report for eclipse to generate reports.
    Iam using a .jsp page to call my report.(which i got it from the examples of CRE).
    The name of my jsp page is poi.jsp
    The name of my Crystal report is Department.rpt
    My problem is this....
    when i run the report first time i can see my poi.jsp page and user can submit
    the parameter and based on the users parameter the report is generated..(ITs working absoultely fine)
    but when the user runs the report again, its not showing the parameter page (i.e user cannot see poi.jsp)
    rather its showing the old generated report.
    When i tried using session.invalidate and session.removeAttribute it was showing me the poi.jsp page
    but the problem is when the user clicks on the print icon or any icon on the report its just
    showing the poi.jsp page...
    When the user closes the report or when the clicks on the button to generate the report it should
    show the parameter page (poi.jsp).how can i solve this problem???
    the code what i am using is as follows
    try {
              String reportName = "C:/workspace/Reports/WebContent/Department.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // ****** BEGIN SET RUNTIME DATABASE CREDENTIALS **************** 
                        String connectString = "jdbc:oracle:thin:@192.168.1.4:1521:orcl";
                        String driverName = "oracle.jdbc.driver.OracleDriver";
                        String JNDIName = "orcl";
                        String userName = "act_db";               // TODO: Fill in database user
                        String password = "act_db";          // TODO: Fill in password
                        // Switch all tables on the main report and sub reports
                        CRJavaHelper.changeDataSource(clientDoc, userName, password, connectString, driverName, JNDIName);
                        // logon to database
                        CRJavaHelper.logonDataSource(clientDoc, userName, password);
                   // ****** END SET RUNTIME DATABASE CREDENTIALS ****************           
                   // ****** BEGIN CONNECT PARAMETERS SNIPPET ****************          
                        // STRING VALUE PARAMETER. 
                        String stringValue = request.getParameter("DeptId");;     // TODO: Fill in value
                        CRJavaHelper.addDiscreteParameterValue(clientDoc, "", "DeptId", stringValue);
                   // ****** END CONNECT PARAMETERS SNIPPET ****************     
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
              // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                   // Create the CrystalReportViewer object
                   CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                   String reportSourceSessionKey = reportName+"ReportSource";
                   session.removeAttribute("reportSource");
                   Object reportSource = session.getAttribute(reportSourceSessionKey);
                   if (reportSource == null)
                        reportSource = clientDoc.getReportSource();
                        session.setAttribute(reportSourceSessionKey, reportSource);
                   //     set the reportsource property of the viewer
                   crystalReportPageViewer.setReportSource(reportSource);
                   crystalReportPageViewer.setDisplayGroupTree(false);
                 session.removeValue("reportSource");
                   crystalReportPageViewer.setHasRefreshButton(true);
                   // Apply the viewer preference attributes
                   // Process the report
                   crystalReportPageViewer.processHttpRequest(request, response, application, null);
              // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    Thanks In advance
    Regards,
    Amol Patil

    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setReportSource(reportSource);
         viewer.setReportSource(reportSource);
         viewer.setHasRefreshButton(true);
         viewer.setOwnPage(true);
         viewer.setOwnForm(true);
         viewer.setHasExportButton(true);
         viewer.setZoomFactor(100);
         viewer.setPrintMode(CrPrintMode.ACTIVEX);
        viewer.setParameterFields(fields);
    viewer.setEnableParameterPrompt(true); --this line will prompt

  • Clearing the report from cache....

    Hello all,,,
    In my project iam using crystsal report for eclipse to generate reports.
    Iam using a .jsp page to call my report.(which i got it from the examples of CRE).
    The name of my jsp page is poi.jsp
    The name of my Crystal report is CrystalReport2.rpt
    My problem is this....
    when i run the report first time i can see my poi.jsp page and user can submit
    the parameter and based on the users parameter the report is generated..(ITs working absoultely fine)but when the user runs the report again, its not showing the parameter page (i.e user cannot see poi.jsp) rather its showing the old generated report.
    When i tried using session.invalidate and session.removeAttribute it was showing me the poi.jsp page but the problem is when the user clicks on the print icon or any icon on the report its just showing the poi.jsp page...
    When the user closes the report or when the clicks on the button to generate the report it should show the parameter page (poi.jsp).how can i solve this problem???
    the code what iam using is as follows..( got it from the examples of CRE - database login )
              response.setHeader("Cache-Control","no-cache");
              response.setHeader("Pragma","no-cache");
              response.setDateHeader("Expires",-1);
              response.setHeader("Cache-Control","no-store");
              Object reportSource = session.getAttribute("reportSource");
            if (reportSource == null )
                String report = "CrystalReport2.rpt";
                ReportClientDocument reportClientDoc = new ReportClientDocument();
                reportClientDoc.open(report, 0);
                reportSource = reportClientDoc.getReportSource();
                session.setAttribute("reportSource", reportSource);
            ConnectionInfos connInfos = new ConnectionInfos();
            IConnectionInfo connInfo1 = new ConnectionInfo();         
            connInfo1.setUserName("CS22USER");
            connInfo1.setPassword("CS22USER");
            connInfos.add(connInfo1);
            CrystalReportViewer viewer = new CrystalReportViewer();
            viewer.setReportSource(reportSource);          
              viewer.setEnableLogonPrompt(false);
            viewer.setDatabaseLogonInfos(connInfos);
            if (session.getAttribute("refreshed") == null)                  
                 viewer.refresh();               
                 session.setAttribute("refreshed", "true");           
                 //response.sendRedirect("Test.jsp");
                  //session.removeAttribute("refreshed");    
                  //session.invalidate();
                  //session.removeAttribute("refreshed");       
            viewer.setOwnPage(true);
            viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);                     
            //session.invalidate();

    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setReportSource(reportSource);
         viewer.setReportSource(reportSource);
         viewer.setHasRefreshButton(true);
         viewer.setOwnPage(true);
         viewer.setOwnForm(true);
         viewer.setHasExportButton(true);
         viewer.setZoomFactor(100);
         viewer.setPrintMode(CrPrintMode.ACTIVEX);
        viewer.setParameterFields(fields);
    viewer.setEnableParameterPrompt(true); --this line will prompt

  • Clear the applet from cache

    Hello,
    I use the following html code to open my signed java applet.
    <APPLET CODE="Applet.class" ARCHIVE="applet.jar" WIDTH=100 HEIGHT=100>However if I make some changes into the applet code and open the HTML file in the browser, I see that the applet is being picked up from the applet cache. Thus if users have caching enabled on their systems they will not be able to retrieve the new version that I have made.
    Is there a way to trigger the browser to download not to use the applet from the cache whenever an updated copy is available on the server.
    I need this fix for IE, Mozilla, Netscape..
    Thanks in advance.

    Hello,
    the easiest solution (for me, at least, it was): when you want to reload an applet type x in the java console (it openes when you load the applet; if it doesn't open you may find it in the icons bar at the bottom of your screen) and then reload the applet
    Hope it helps, good luck!

  • Help neede very very urgently ... to clear the report from Cache.....

    Hello all,,,
    In my project iam using crystsal report for eclipse to generate reports.
    Iam using a .jsp page to call my report.(which i got it from the examples of CRE).
    The name of my jsp page is poi.jsp
    The name of my Crystal report is CrystalReport2.rpt
    My problem is this....
    when i run the report first time i can see my poi.jsp page and user can submit
    the parameter and based on the users parameter the report is generated..(ITs working absoultely fine)
    but when the user runs the report again, its not showing the parameter page (i.e user cannot see poi.jsp)
    rather its showing the old generated report.
    When i tried using session.invalidate and session.removeAttribute it was showing me the poi.jsp page
    but the problem is when the user clicks on the print icon or any icon on the report its just
    showing the poi.jsp page...
    When the user closes the report or when the clicks on the button to generate the report it should
    show the parameter page (poi.jsp).how can i solve this problem???
    the code what iam using is as follows..( got it from the examples of CRE - database login )
    Object reportSource = session.getAttribute("reportSource");
    if (reportSource == null)
    String report = "CrystalReport2.rpt";
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(report, 0);
    reportSource = reportClientDoc.getReportSource();
    session.setAttribute("reportSource", reportSource);
    ConnectionInfos connInfos = new ConnectionInfos();
    IConnectionInfo connInfo1 = new ConnectionInfo();
    connInfo1.setUserName("USER");
    connInfo1.setPassword("USER");
    connInfos.add(connInfo1);
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setReportSource(reportSource);
    viewer.setEnableLogonPrompt(false);
    viewer.setDatabaseLogonInfos(connInfos);
    if (session.getAttribute("refreshed") == null)
    viewer.refresh();
    session.setAttribute("refreshed", "true");
    viewer.setOwnPage(true);
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    //session.removeAttribute("refreshed");
    //session.invalidate();
    thanks in advance
    regards
    jack

    As far as parameter refresh is concerned add in your code
    viewer.setHasRefreshButton(true)
    refresh button is appeared on crystal report toolbar and you can use this button instead of explorer refrsh button and every time you can add new parameters values.
    Also, if you want to update reportsource in session object. means if user wants to view more than one different reports and want to invalidate reportsource form session.
    add in jsp.
    session.removeAttribute("reportSource");
    Happy programming
    Uzma

  • Unable to clear $(CFBundleIdentifier) from cache

    Unable to clear $(CFBundleIdentifier) from cache.  Goes to trash but can't be emptied even after restart, says it's in use.  What is it and how do I get rid of it.

    It's normal. Leave it alone.

  • Locked-up at "Uploading file to Adobe ExportPDF online...", even after closing, exiting, clearing browser cache, clearing all documents from online library.

    Locked-up at "Uploading file to Adobe ExportPDF online...", even after closing, exiting, clearing browser cache, clearing all documents from online library.  Ctrl-Alt-Del EndTask also had no effect.  Upon opening, searches for current status and then locks up...  Any help?

    Any advice would be helpful. Thanks

  • Can not insert or update [TABLE] from internal table in method

    I've faced a problem with OO abap. I've tried to insert into [ TABLE ] from internal table, but i've got error msg after i compiled.
    "An explicit work area is necessary in the OO context. Use "INSERT wa INTO [TABLE] itab""
    After  i changed to loop in work area and INSERT INTO  [TABLE] VALUES gw_data., everything is fine, can compile and run.
    This is error code.
      METHOD set_data_to_table.
        REFRESH gi_data.
        CLEAR gi_data.
        IF gi_file[] IS NOT INITIAL.
    * Set data for modify table
          LOOP AT gi_file INTO gw_file.
            MOVE-CORRESPONDING gw_file TO gw_data.
            me->conversion_input( EXPORTING im_vendor = gw_data-vendor
                                  CHANGING  ch_vendor = gw_data-vendor ).
            APPEND gw_data TO gi_data.
          ENDLOOP.
          INSERT [TABLE] FROM TABLE gi_data.
    *      LOOP AT gi_data INTO gw_data.
    *        INSERT INTO  [TABLE] VALUES gw_data.
    *        IF sy-subrc = 0.
    *          COMMIT WORK.
    *        ELSE.
    *          ROLLBACK WORK.
    *        ENDIF.
    *      ENDLOOP.
        ELSE.
          MESSAGE 'No data found' TYPE 'I'.
        ENDIF.
      ENDMETHOD.                    "set_data_to_table

    Hi Matthew,
    I think there is no difference in database insert between OO and non-OO.
    The correct syntax according to ECC600 online documentation is
    [Inserting Several Lines|http://help.sap.com/saphelp_erp2005vp/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm]
    To insert several lines into a database table, use the following:
    INSERT target FROM TABLE itab \[ACCEPTING DUPLICATE KEYS].
    This writes all lines of the internal table itabto the database table in one single operation. If one or more lines cannot be inserted because the database already contains a line with the same primary key, a runtime error occurs. You can prevent the runtime error occurring by using the addition ACCEPTING DUPLICATE KEYS.
    Whenever you want to insert more than one line into a database table, it is more efficient to work with an internal table than to insert the lines one by one.
    I think the syntax
    INSERT my_dbtable FROM TABLE gi_data.
    should work, your suggestion may lead to syntax error.
    Regards,
    Clemens

  • How does one remove temporary files from Safari?  A friend logged on to her Facebook account using my iMac.  Now I can't remove her e-mail address from Facebook.  It was suggested to me that I try clearing temporary files from Safari but I can't find

    How does one remove temporary files from Safari?  A friend logged on to her Facebook account using my iMac running Mac OSX 10.7.5 and Safari 6.1.6.  Now I can't remove her e-mail address from my computer.  When I open Facebook her address shows in the user button.  I do not have a Facebook account.  It was suggested to me that I try clearing temporary files from Safari but I can't find anything that tells me how to do this.  Are temporary files the same as the cache?  It also was suggested that I try clearing Safari cache.  How do I do that?

    Check Safari/Preferences/Passwords to see if the Facebook account is there. If so, select it and remove it. If you are still having problems, Safari/Preferences/Advanced - enable the Develop menu, then go there and Empty Caches. Quit/reopen Safari and test. If that doesn't work, Safari/Reset Safari.

  • How do I insert/Delete/Update a row to the DB Table from Business Component Browser

    I am using the wizard and created a project containing Business component which contain some table.
    When I run the project I could see "Oracle Business Component Browser(local)" and when I select some table from "View Object Member" I get a window displaying all the field of that table and I could browse all the info.
    My Problem is when I try to insert a new record/Delete the existing record or update some record it never gets reflected to the DataBase.
    When I try to insert a new row I did save and there was a dialog box displayed saying "Transaction ID is 1". But finally It's not reflected in the Database.
    Can some one guide me how can I do insert/delete/update operation from Oracle Component Business Browser so that the changes reflect to the Original DataBase.
    Thanks in advance
    Jitendra

    Jitendra,
    This may be a problem of caching. If you do an update,insert, or delete, and do not receive an error, then the transaction should indeed be posted.
    I assume you are hitting the Save icon after your changes if you are getting a transaction ID. Are you checking for the updates through another session (i.e. SQL*Plus), or do you then requery the View Object in the tester? Do you exit the tester and come back in and not see the changes?

  • Power Query; How do I reference a Power Pivot table from a Power Query query

    Hi,
    It's pretty awesome how you can define Extract Transform and Load processes within Power Query without having to type in a single line of code. However how do I reference a Power Pivot table from a Power Query query to avoid me repeatedly accessing
    the same data source (CSV) file with a view to increasing performance?
    We are aware of the reference sub menu option with Power Query. However the new query created by the "reference" option still seems to refresh data from the data source (CSV) rather than just referencing the base query. Is this understanding
    correct? There does seem to be a lot of hard disk activity when re-running the new query which is based on a base query rather than a data source.  So we were hoping the new query would just need to reference the base query in memory rather than rescanning
    the hard disk. Is there any way to ensure that the reference query just rescans the base query in memory?
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Hi Kieran,
    This sounds like something to be suggested for a future release. At the present time, Power Query will always re-run the entire Power Query query when refreshed. The Reference feature is analogous to a SQL view whereby the underlying query is always re-executed
    when it's queried, or in this case refreshed. Even something like using the Power Query cache to minimise the amount of data re-read from the disk would be helpful for performance but the cache is only used for the preview data and stored locally.
    It would be a good idea to suggest this feature to the Power BI team via the feedback smiley face.
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com, Twitter:
    @nimblelearn
    Hi Michael, 
    Glad to hear from you about this.  And thanks to Kieran for bringing a very good valid point to debate. Will be glad to see this in future release. 
    - please mark correct answers

  • How to update value in internal table from cdpos taking fname n value_new?

    hello everyone,
              i want to insert  value in internal table from cdpos table taking field name  from fname and value from value_new.but the problem is i am not getting how to map the corresponding field of internal table with fname value  which is the field name.
    for example
    i
    fieldname
    value
    name1
    raj
    name2
    sharma
    i want to update field name1. this name1 is there in fname with updated value in value_new  how to make name1 with fname value
    thanks and regards
    laxmikant soni

    Hi Laxmikant,
    If I have understood your requirement correctly, you need to update an internal table with latest 'value_new' from cdpos table where  'fname' = 'fieldname' .
    Hope the below logic will help you:
    FIELD-SYMBOLS: <wa_intab> LIKE LINE OF lt_intab.  "the internal table you want to change
    LOOP AT lt_intab ASSIGNING <wa_intab> .
       READ TABLE lt_cdpos INTO wa_cdpos           "lt_cdpos contains latest data selected from CDPOS
        WITH KEY fname = <wa_intab>-fieldname.
       IF sy-subrc = 0.
         <wa_intab>-value = wa_cdpos-value_new.    
       ELSE.
         "//logic if the name is not there in CDPOS
       ENDIF.
       CLEAR  wa_cdpos.
    ENDLOOP.
    If you wish to improve performance, I suggest using
    1. "transporting value_new" addition in READ TABLE,
    2.  select only the data which you require from CDPOS,
    3.  create the internal tables with only fields which you require,
    4.  when you are using SELECT,LOOP AT statements, limit records by using WHERE condition
    Regards,
    Kavya

  • How do I run a database procedure that inserts data into a table from withi

    How do I run a database procedure that inserts data into a table from within a Crystal report?
    I'm using CR 2008 with an Oracle 10i database containing a number of database tables, procedures and packages that provide the data for the reports I'm developing for my department.  However, I'd like to know when a particular report is run and by whom.  To do this I have created a database table called Report_Log and an associated procedure called prc_Insert_Entry that inserts a new line in the table each time it's called.  The procedure has 2 imput parameters (Report_Name & Username), the report name is just text and I'd like the username to be the account name of the person logged onto the PC.  How can I call this procedure from within a report when it's run and provide it with the 2 parameters?  I know the procedure works, I just can't figure out how to call it from with a report.
    I'd be grateful for any help.
    Colin

    Hi Colin, 
    Just so I'm clear about what you want: 
    You have a Stored procedure in your report.  When the report runs, you want that same procedure to write to a table called Report_Log. 
    If this is what you want the simple answer is cannot be done.  Crystal's fundamental prupose is to read only, not write.  That being said, there are ways around this. 
    One way is to have a trigger in your database that updates the Report_Log table when the Stored Procedure is executed.  This would be the most efficient.
    The other way would be to have an application run the report and manage the entry. 
    Good luck,
    Brian

  • Another modif  tcode clearing open item from MM without use F-51

    all Guru ,
    Please help. Is there any way for another new modif  tcode clearing open item from MM without use F-51. So i can use copy transparent from main table MM, for item like plant, vendor, material,price, oty, plus add new field for calculation method in order to post this result formula through FI posting without F-51 but also can clear open item dan clearing line item ? or only can clear open item ? ...it's oke. For line item can be done maybe can be run with F-03 ir F13E
    I am trying to observe table BSIK (open item) and relation with BSAK(clear item)...is it right way ?
    Case :
    i want to clear open item for GL account inv.of.promises from transaction MM, with jurnal :
    inv.of prom (Db)
             Inventory (Cr)
    Then this inv.of prom must be calculated again with raise price. And then this cummulate in the of month.
    After that we want to clear with posting FI by searching any open item for that GL with jurnal :
           Other receiv.(Db)
           Accrued exp (Db)
                      Inv.of.prom (Cr)

    Hi PK,
    1. Should we maintain OIM for all Excise G/Ls (BED, ECess, SHECess)?
    - Please DO NOT maintain OIM on BED, ECESS and HECESS, only to be maintained for Cenvat Clearing Account. Also note that clearing of Cenvat Clearing is not easy, as in standard SAP, the assignment field is not updated with the same information for the Dr. and cr. line items of Cenvat Clearing Account. You need to use an exit in Substitution for it to populate the P.O. no. and line item at the time of MIRO.
    2. How to clear the BED Excise GLs which is with OIM in our system, it is thru F.13 only?
    You can use F.13 only if the entries are matching not otherwise, else clear all of them manually if you have good control of your account balances.
    3. Can we activate or deactivate OIM any point of time, I mean can it be activated in case the G/L balance amount is not ZERO?
    OIM activation for a GL - Refer Note No.1356457.
    OIM Deactivation :  You can deactivate OIM after making the balance Zero on that Account and by changing the Message No. FH 190 to warning in OBA5.
    4. What is the use of T Code J2IUN, I have gone thru the SDN links, but I am not able to execute the screen. What parameter should we select while executing J2IUN, when we use Pay cenvat from ser tax cr and Pay ser tax from cenvat cr.
    J2IUN is to utllize Excise Duty. The liability of Excise duty is utilized from Excise balances of BED, PLA , Service tax etc.. as per business requirements.
    Hope this helps you.
    Regards,
    SAPFICO

  • How do I paste a table from Numbers or Excel into Ibook Author exactly as the original?

    I am new to iMac and Ibook Author.
    I am writing a statistical paper in Ibooks Author.
    I have Chapter heading, now section heading and body.  I want to paste a table from numbers or excel into my iBook as this has the results of my analysis.
    As part of my analysis, I want to copy a 5 column table with 633 rows, which is essentially my table of data.  I have the table in numbers and excel.
    When I copy the table in numbers or excel, followed by pasting (CmD V) into iBooks, I get the first 20 rows in a table format and the remainder of the table is missing.  The table appears to end at the end of the page.
    I can not figure out how to paste the entire data as my table.
    Its holding me back...
    Any ideas?

    Hello Loquitir,
    I am not fully sure if I understand but I gather since there are so many rows only a certain amount fits on a single page.
    How many rows does actually fit on a page in iBooks Author?
    There is a method that would look pretty cool that is used to create a double page spread that would look great but instead of having a double page you could maybe have three or four pages.
    Here is a quick idea that I stuck together, additionally when you are copying and pasting form Numbers to iBooks Author just select the cells that you want.
    Copy and paste within iBooks Author and then go back and get the next row of the table that you want.
    I hope I am clear in what I am describing.
    Regards,
    Nigel

Maybe you are looking for