Generating report problem

Hi all,
I have procedure for generating report as csv file.I n this procedure has several BEGIN..END pl/sql blocks and
SELECT...INTO..clauses .And i'm using UTL_FILE for generating csv report.
But problem is now this procedure is taking 12 hrs for 1 month date interval(3lacks records).I need to run this procedure every month .I need to reduce the execution time.could Some one give me a new idea for generating report.
Any new Idea?

What makes you think that "FOR ... IN (SELECT .....) LOOP" isn't looping through a cursor?
for below block code is entire block
BEGIN
            IF LN_COUNT > 0 THEN
                LS_RESTART_POSITION :=NULL;
                FOR LN_CNT IN (SELECT RESTART_POSITION FROM TEST_PROGRESS WHERE to_char(created_on,'dd/mm/yy hh24:mi:ss') >=(SELECT nvl(max(to_char(created_on,'dd/mm/yy hh24:mi:ss')),'00:00:00') FROM TEST_PROGRESS
                                WHERE TEST_SESSION_DETAIL_ID=TB_TYPE_DET_ID(TEST_TYP_ID_CNT).TEST_SESSION_DETAIL_ID AND
RESTART_TYPE = 1)
                            AND TEST_SESSION_DETAIL_ID=TB_TYPE_DET_ID(TEST_TYP_ID_CNT).TEST_SESSION_DETAIL_ID AND RESTART_TYPE<>1
                            ORDER BY CREATED_ON)
                    LOOP           
                        LS_RESTART_POSITION := LS_RESTART_POSITION||'\'||LN_CNT.RESTART_POSITION;       
                    END LOOP;
                    LS_RESTART_POSITION:= SUBSTR(LS_RESTART_POSITION,2,LENGTH(LS_RESTART_POSITION)-1);
            ELSE     
                LS_RESTART_POSITION :=NULL;
                FOR LN_CNT IN (SELECT  RESTART_POSITION FROM TEST_PROGRESS WHERE TEST_SESSION_DETAIL_ID=TB_TYPE_DET_ID(TEST_TYP_ID_CNT).TEST_SESSION_DETAIL_ID ORDER BY CREATED_ON)
                    LOOP           
                        LS_RESTART_POSITION := LS_RESTART_POSITION||'\'||LN_CNT.RESTART_POSITION;       
                    END LOOP;
                    LS_RESTART_POSITION:=SUBSTR(LS_RESTART_POSITION,2,LENGTH(LS_RESTART_POSITION)-1);
            END IF ;
            EXCEPTION
            WHEN OTHERS THEN
            Sp_Insert_Error_Log (LS_OBJECT_NAME,SYSDATE,'RESUME_FLAG','WHEN OTHERS TRIGGERED'||'-'||SQLERRM);
            END;
How are you populating your collection? Via a bulk collect?
through  bulk collect
However, I would be willing to bet that this loop is inside another loop, right?
Yes your are correct it is inside of the loop.
I procedure is too big(800lines) hence i can't post entire procedure.If any possible plz let me know.
Yes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • A big problem of Generate report with PDF format....Urgent

    I want to generate a report with pdf format through one java file, it have two page 1)gen_report.jsp 2) report_gen.java , the compliation was failed. However, i don't what the problem is .... i hope anyone can help me as it is very argent for me ....Thanks a lot
    1)gen_report.jsp
    <table  id="AutoNumber1">
       <tr>
         <td background="images/top5movie.png">
         <p align="center"> </p>
        </td>
       </tr>
       <tr>
       <td >
          <div align="center">
            <table id="AutoNumber2" >
                  <form method="GET" action="../report_gen" name="report_gen" target="_blank" onSubmit="javascript:return checkr1(this)">
                    <tr>
                      <td ><b>Report Description:</b></td>
                      <td >This report is to show the top five popular movies in cinemix for a period </td>
                    </tr>
                    <tr>
                      <td><b>Data scope:</b></td>
                      <td >Start from
                      <input type="text" name="start" value="2003-1-1" >to
                      <input type="text" name="end" value="2006-1-1" ></td>
                     </tr>
                     <tr>
                      <td><b>Data processing:</b></td>
                      <td >Show
                        <select name="order_by">
                          <option value="desc" selected>top</option>
                          <option value="asc">bottom</option>
                        </select>
                      5 films</td>
                    </tr>
                    <tr>
                      <td> <p align="center">
                          <input type="submit" value="View_Report" name="subm">
                        </p></td>
                    </tr>
                    <input type="hidden" name="report" value="r1">
                  </form>
                  <form method="GET" action="../report_gen" name="report_gen" target="_blank" onSubmit="javascript:return checkr2(this)">
                    <input type="hidden" name="report" value="r2">
                  </form>
                </table>
         </div>
          </td>
        </tr>
      </table>Then my java code is here
    report_gen.java
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    // chart and pdf out
    import java.awt.Graphics2D;
    import java.awt.geom.Rectangle2D;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import org.jfree.chart.ChartFactory;
    import org.jfree.chart.JFreeChart;
    import org.jfree.chart.plot.PlotOrientation;
    import org.jfree.data.category.DefaultCategoryDataset;
    import org.jfree.data.xy.*;
    import org.jfree.data.xy.XYBarDataset;
    import org.jfree.data.general.DefaultPieDataset;
    import org.jfree.data.statistics.SimpleHistogramDataset;
    import org.jfree.data.xy.XYSeries;
    import org.jfree.data.xy.XYSeriesCollection;
    import com.lowagie.text.Document;
    import com.lowagie.text.DocumentException;
    import com.lowagie.text.Rectangle;
    import com.lowagie.text.pdf.DefaultFontMapper;
    import com.lowagie.text.pdf.PdfContentByte;
    import com.lowagie.text.pdf.PdfTemplate;
    import com.lowagie.text.pdf.PdfWriter;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.pdf.PdfPCell;
    public class report_gen extends HttpServlet
       private final String titles[] = {"Top Five popular movies ",
                        "Financial cirumstance of cinemas",
                        "Distribution of time segment",
                        "Distribution of favourite movie type"
       private final String descs[] = {"This report is to show the top five  popular movies in cinemix for a period ",
                   "This report is to show the financial circumstance of each cinema site ",
                   "This report is to analysis the customer when is the most visit time ",
                   "This report is to analysis the customer which type of movie do they watch the most"
        private final String bigTitle = "Cinemix";
        private final String driver = "org.gjt.mm.mysql.Driver";
        private final String url= "jdbc:mysql://localhost:3306/cinemix";
        private final String userID = "abc";
        private final String passwd = "abc";     
        public void init(ServletConfig config) throws ServletException
          super.init(config);
       protected void doGet(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException
          final int width = 550;
         final int height = 200;
    / title font (centre and report title)
         final Font fTitle0 = FontFactory.getFont("Helvetica", 42, Font.BOLD);
         final Font fTitle1 = FontFactory.getFont("Helvetica", 30, Font.BOLD);
              // centre name:
        final String title0 = bigTitle;
       // Default category for DefaultCategoryDataset
       final String cat = "data";
       Connection conn;
      JFreeChart chart;
       String title1     = "xyz Report";
       String chartDesc = "description";
       String notes[] = new String[4];
       String chartTitle = "so bad this is title";
       String chartXTitle = "this is x";
       String chartYTitle = "this is y.";
       String report = request.getParameter("report");     
       int max=-10000;
       int min=10000;
       int j=0;          
      // do some basic checking
       if (report == null || report.equals(""))
         report = "-1";  // this course unknow report error message
         String start   = request.getParameter("start");
         String end  = request.getParameter("end");
         String order_by  = request.getParameter("order_by");  // ToDo: check invalid string
           int topN  = 5;
        String order = (order_by.equals("desc")) ? "Top" : "Last";
       String inv[] = {"08:30", "09:30", "10:30", "11:30", "12:30", "11:30", "12:30", "13:30", "14:30", "15:30", "16:30", "17:30","18:30","19:30","20:30","21:30","22:30","23:30"};
         int inv_val[] = new int[inv.length - 1];
         try
            Class.forName(driver).newInstance();
             catch(Exception e)
            printE("Cannot load mysql database driver!", response);
              e.printStackTrace();
               return;
           try
                 conn = DriverManager.getConnection(url, userID, passwd);
                  if (report.equals("r1")) {  // report 1
               DefaultCategoryDataset dataset = new DefaultCategoryDataset();
              Statement stmt = conn.createStatement();
              String sql = "select *,count(f.Name),f.Name from film f, filmDetail fd, ticket t where f.startDate > '" + start + "' and f.endDate <  '" + end + "'and fd.filmID = f.filmID and fd.filmDetailID = t.filmDetailID group by f.name order by fd.filmDetailID asc limit '" +topN+"'";
              ResultSet rs = stmt.executeQuery(sql);
            while (rs.next())
           if (rs.getInt("fd.filmDetailID") > max) max = rs.getInt("fd.filmDetailID");
         if (rs.getInt("fd.filmDetailID") < min) min = rs.getInt("fd.filmDetailID");
          j++;
           ataset.setValue(rs.getInt("fd.filmDetailID"), cat,rs.getString("f.Name"));
           title1     = titles[0];
         chartDesc  = descs[0];
         chartTitle = order + " " + topN + " popular movie";
          chartYTitle = "Box Office record";
          chartXTitle = "Film Name";
          gender = " ";
          chart = ChartFactory.createBarChart(chartTitle, chartXTitle,   chartYTitle, dataset,PlotOrientation.VERTICAL, false, true, false);
        else
              print("Error: I don't inderstand your request!", response);
         return;
           catch (SQLException e)
         printE("Cannot open database connection? <br>", response);
         // printE(e.toString);
      e.printStackTrace();
      return;
         response.setContentType("application/pdf");
         Document document = new Document(PageSize.A4, 5, 5, 5, 5);
        try
             PdfWriter writer;
         writer = PdfWriter.getInstance(document, response.getOutputStream());
        HeaderFooter footer = new HeaderFooter(new Phrase("Page: "), true);
         footer.setBorder(Rectangle.NO_BORDER);
    document.setFooter(footer);
                   footer.setAlignment(Element.ALIGN_CENTER);
                   // step 3
                   document.open();
                   document.add(getHeader(title0, title1, start, end, gender, order, topN, chartDesc));
                   document.add(printChart(chart, writer));
                   document.add(getFooter(notes));
              catch(DocumentException de)
                   de.printStackTrace();
              // step 5
              document.close();
              return;
         }// end doGet()
         /** Handles the HTTP <code>POST</code> method.
          * @param request servlet request
          * @param response servlet response
         protected void doPost(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException
              // processRequest(request, response);
         /** Returns a short description of the servlet.
         public String getServletInfo()
              return "Generate reports for " + bigTitle;
         /* To print en error and exit(?) */
         private void printE(Object obj, HttpServletResponse response) throws IOException
              response.setContentType("text/html");
              PrintWriter out;
              out = response.getWriter();
              out.print(obj.toString());
              out.close();
              // To-Do: how to force exiting?
         // create data chart
         private PdfPTable getHeader(String title0, String title1, String start, String end, String sex, String order, int topN, String desc)
              Font fTitle0 = FontFactory.getFont("Helvetica", 42, Font.BOLD);
              Font fTitle1 = FontFactory.getFont("Helvetica", 24, Font.BOLD);
              Font fTitle3 = FontFactory.getFont("Helvetica", 12, Font.BOLD);
              Font fValue = FontFactory.getFont("Helvetica", 12, Font.UNDERLINE);
              Paragraph parStartEnd = new Paragraph();
              parStartEnd.add(new Phrase("Data start from:                  ", fTitle3));
              parStartEnd.add(new Phrase(start, fValue));
              parStartEnd.add(new Phrase("     to     ", fTitle3));
              parStartEnd.add(new Phrase(end, fValue));
              Paragraph parGenerateDate = new Paragraph();
              parGenerateDate.add(new Phrase("Report generated at:         ", fTitle3));
              parGenerateDate.add(new Phrase(new java.util.Date().toString(), fValue));
              Paragraph parGender = new Paragraph();
              parGender.add(new Phrase("Current show gender:       ", fTitle3));
              parGender.add(new Phrase(sex, fValue));
              Paragraph parTopN = new Paragraph();
              parTopN.add(new Phrase("Now is showing                 ", fTitle3));
              parTopN.add(new Phrase(order, fValue));
              parTopN.add(new Phrase("  ", fValue));
              parTopN.add(new Phrase(new Integer(topN).toString(), fValue));
              parTopN.add(new Phrase("   record(s)", fTitle3));
              // Start main table
              PdfPTable tblMain = new PdfPTable(1);
              tblMain.getDefaultCell().setBorder(0);
              // Print title
              tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
              tblMain.addCell(new Paragraph(title0, fTitle0));
              tblMain.addCell(new Paragraph(title1, fTitle1));
              tblMain.addCell("");
              tblMain.addCell("");
              tblMain.addCell("");
              // Print headers data
              //tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_RIGHT);
              //tblMain.addCell(parInvoiceNum);
              //tblMain.addCell("");
              tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
              tblMain.addCell(parStartEnd);
              tblMain.addCell("");
              tblMain.addCell(parGenerateDate);
              tblMain.addCell("");
              if (sex != " ")
                   tblMain.addCell(parGender);
              else if(order != null && topN > 0)
                   tblMain.addCell(parTopN);
              else
                   tblMain.addCell(" \n");
              tblMain.addCell("");
              tblMain.setWidthPercentage(96);
              tblMain.addCell(new Paragraph("Description of this report:", fTitle3));
              tblMain.addCell(desc);
              tblMain.addCell("\n");
              // Finish main table
              return tblMain;
         // print a chart _directly_ to pdf and return a empty Pdftable...
         public PdfPTable printChart(JFreeChart chart, PdfWriter writer)
              PdfContentByte cb = writer.getDirectContent();
              int width = 550;
              int height = 450;
              PdfTemplate tp = cb.createTemplate(width, height);
              Graphics2D g2d = tp.createGraphics(width, height, new DefaultFontMapper());
              Rectangle2D r2d = new Rectangle2D.Double(0, 0, width, height); //->,
              chart.draw(g2d, r2d);
              g2d.dispose();
              cb.addTemplate(tp, 20, 170);
              // quick method to push down the footer text
              // the only things this method return
              PdfPTable tblDownDown = new PdfPTable(1);
              tblDownDown.getDefaultCell().setBorder(0);
              tblDownDown.addCell(" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n");
              tblDownDown.addCell(" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n");
              tblDownDown.addCell(" \n \n \n \n \n \n");
              return tblDownDown;
         public PdfPTable getFooter(String notes[])
              Font fNote = FontFactory.getFont("Helvetica", 14, Font.UNDERLINE);
              Font fComment = FontFactory.getFont("Helvetica", 12, Font.ITALIC);
              Font fTitle1 = FontFactory.getFont("Helvetica", 30, Font.ITALIC);
              // Start footer table
              PdfPTable tblFooter = new PdfPTable(1);
              tblFooter.getDefaultCell().setBorder(0);
              if (notes != null)
                   tblFooter.addCell(new Paragraph("Notes:", fNote));
                   tblFooter.addCell("");
                   tblFooter.addCell("");
                   tblFooter.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
                   for (int i=0;i<notes.length;i++)
                        if (notes[i] != null)
                             tblFooter.addCell(new Paragraph("" + (i+1) + ". " + notes[i] + "", fComment));
                             tblFooter.addCell("");
                             tblFooter.addCell("");
                        tblFooter.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
                        tblFooter.addCell(new Paragraph("- End of report -", fComment));
                        return tblFooter;
    }

    Go to the cache directory and see if you can open the report directly from here (not in IE).
    I have seen posts on problems with Acrobat Reader Plugin for IE (I believe it was version 6 of Reader).

  • Problem while generating reports in BI

    Hi All ....
    I have created all the info objects and info cubes.... they are showing data which i have extracted from R\3 system ...all is correct ...
    But now i m facing problem when i am generating reports...then its showing fields in Excel sheet but not data... data is there in R/3 system ..but i am not getting any reason why this is not coming in reports.
    Please help me out
    Thanx
    Shivanjali

    Hi,
    You can check it through query designer.
    Just click the button on the top of the quesry designer it will have sign sqaure with a green circle on the top of square.The description says web.....
    It will take you the web adn then give your login and execute it.
    If you have authorization issue then it will say No AUthorization issue or everything is filtered out.
    If your cube doesn't data for the selections you are giving at the runtime of the report then it will just give a message no applicable data found.
    If you are not getting these messages then you should check the rows of the report as what have you put there has value in the cube or not.
    Thanks
    Ajeet
    Thanks

  • Problem generating report ouput to a file -REP0069 REP57054 REP 1849

    hi,
    I am working with oracle reports builder (9i). i hv created some reports.While trying to get the report in a file(.txt) by using "File->generate to file" ,i am not able to generate...
    i get error msgs as shown below...
    rep 0069 - internal error whil generating report
    REP-57054: In-proccess job terminated.
    rep 1849 - Failed while printing
    this poblem occurs only with the newly created reports(today n yesterday)...my old reports are running correctly....tats i am able to generate to file...Pls help me in this regard...
    Thanks in advance...

    Thank you for the reply. I'm trying to download the patch, but I can't seem to find it. I assume this is a patch for the Reports Developer, correct? I did a search on bug 2490826 in Metalink and I haven't been able to find it. If you have the number of the patch you're referring to, please let me know.
    Thank You,
    Adina

  • Generate report using Word Report Generation VIs error

    When I Generate report using Word Report Generation VIs  ,the error is generated.
    This is  my Vi
    can somebody  tell the error reason?
    The attaché is Vi (one is 2011,other is 8.6)
    Attachments:
    report-8.6.vi ‏16 KB
    report2.vi ‏33 KB
    template.doc ‏40 KB

    Hi Ben64
                 Thank you! The problem is solved.
       BUT when I use the Word Easy Graph vi  ,the result is
    I want the Graph (curve),like as:
    How Can I do get the picture.
    I have other problem. I want to get default name for the new word file.
    liang

  • Error While generating Report

    Hi ,
    I am facing 1 problem while generating Report.
    I am trying to generate a report based on one Users global attribute.
    I have customized the USER UI CONFIG and Uer Report task to generate a report like this.
    I created a new report to generate report and in that report I have given the condition as that attribute equals to some value "true" / "False".
    But there are some users who has this attribute value as true and whose accounts are not properly created in a resource LDAP So this User view is containing some error.
    Hence when I try to run the newly created report as it tries to iterate on the user objects whose view is containg some errors ,the report is not properly getting generated and giving exception as error in calling the method getResourceobjects on LDAP.
    What can I do now ? What is the alternative for me? I want to generate the report on that attribute only.....
    It is very urgent for me and Can anyone please help me out....
    it would be so great if there is any immediate reponse for this.

    >
    ... ORA-00932: inconsistent datatypes: expected DATE got NUMBER ...
    >
    I believe the above error message is very descriptive.
    HTH
    Srini

  • Issue while generating report using web.show_document with https

    Hi All,
    I am facing some issue while seeing the report using web.show_document as shown below:
    https://ucrmskr.apac.nsroot.net:10301/forms/html/001725032_gca.rtf_
    In this case the report opens directly without asking for me to save or open or cancel option
    whereas if I hit
    http://scrmskr.apac.nsroot.net:7801/forms/html/001725032_gca.rtf_
    it asks for save or open or cancel option
    so that I can save the report to my machine and open in wordpad format
    The report generated in the first case is not coming in proper format
    Below are my forms.conf mappings:
    # Name
    # forms.conf - Forms component Apache directives configuration file.
    # Purpose
    # It should include the weblogic managed server (routing) directives for
    # the servers where Forms applications are deployed and other miscellaneous
    # Forms component OHS directives.
    # Remarks
    # This file is included with the OHS configuration under
    # $OI/config/OHS/<OHS Node Name>/moduleconf sub-directory.
    # virtual mapping for the /forms/html mapping.
    RewriteEngine on
    RewriteRule ^/forms/html/(..*) /workaroundhtml/$1 [PT]
    AliasMatch ^/workaroundhtml/(..*) "/ucrmap1/weblogic/bea/ucrms/config/FormsComponent/forms/html/$1"
    RewriteRule ^/ucrms/icons/(..*) "/workaroundicons/$1" [PT]
    AliasMatch ^/workaroundicons/(..*) "/ucrmap1/weblogic/bea/ORA_PFRD/forms/java/$1"
    RewriteRule ^/forms/help/(..*) "/workaroundhelp/$1" [PT]
    AliasMatch ^/workaroundhelp/(..*) "/ucrmap1/ucrrgbg2/help/$1"
    <Location /forms>
    SetHandler weblogic-handler
    WebLogicCluster kauh0079:9001
    DynamicServerList OFF
    </Location>
    Please let me know what needs to be done additionally if we are trying to hit https because in the second case we were hitting http with similar mapping in diff environment and it was generating report successfully.
    Regards,
    Harish

    Thanks for answering,
    I changed the URL from
    http://nbotlaguduru.dms.local/export/FMSLaborChargesalcs20060829132645.pdf
    to
    http://nbotlaguduru.dms.local:8889/export/FMSLaborChargesalcs20060829132645.pdf
    and the same problem occured
    the file is located on my local C drive in:
    C:\lcs\export
    seems as though I am missing something else as well
    any ideas?

  • Not able to generate Report

    hi,
    In matrix report as the Number of column field and row field are not certain how do I get to know or point to each column field value for particular row.
    Other details:-
    In simple matrix report with column field as 'Division No' and Row field as 'Account No' and cell field as 'Credit_Amt' and summary field(name F_sumCreditAmt) for Account wise.
    'AccountNo' field repeating frame is down wards and 'division no' repeating field is accross.
    If the summary for 'accountNo' is ' 0' then I am able to supress the row, but the sum can be 'zero' if the total in that row for particular row and all the columns can be (-2000) and (1000,500,500) which will amount to be zero when you add up. But my problem is how do I generate report even if the summary column value is 'zero' but it has some value in the 'Credit_Amt' Field. I need to show the row whose summary is 'zero' but it has some value in the 'Cr_Amt' field for some of the column field(ie Division_no).
    Thanks
    Ram

    if you run your query against the repository database you will get the error while the user MGMT_VIEW in the repository database doesn't have any
    privileges on dba_data_files (I'm using OEM/GC 10g - at least in this version the user MGMT_VIEW is used).
    If you want to run your query against a target database you have only these choice: create a public database link for that target database.
    select tablespace_name as tbname, sum(bytes)/1024/1024 as size_mb from dba_data_files@target_db group by tablespace_name;
    On the other hand you could use the repository of the OEM/GC to get some informations about the tablespaces of a target database.
    Please check:
    http://download.oracle.com/docs/cd/E11857_01/em.111/e12135/toc.htm => Part II Reference => 7 Management Repository Views
    For your purpose the view MGMT$DB_DATAFILES in the SYSMAN repository might be a good choice...
    HTH

  • Best way to generate report on huge data table

    Hi,
    I am using Oracle11g.
    I want to generate reports on transaction tables containing huge amount of data, on which very frequently DMLs are performing in real time.
    i want to keep my report/result in RESULT_CACHE for 15 mins. active. whenever any insert/update runs on main tables the RESULT_CACHE is getting invalidated
    my question is can i control/stop RESULT_CACHE relies on(table_name) invalidating, as Oracle11g invalidating RESULT_CACHE automatically.
    my requirement is to not hit the main table again&again.
    pls help..
    Thanks in advance.
    Vinod

    910575 wrote:
    Hi,
    I am using Oracle11g.
    I want to generate reports on transaction tables containing huge amount of data, on which very frequently DMLs are performing in real time.
    i want to keep my report/result in RESULT_CACHE for 15 mins. active. whenever any insert/update runs on main tables the RESULT_CACHE is getting invalidated
    my question is can i control/stop RESULT_CACHE relies on(table_name) invalidating, as Oracle11g invalidating RESULT_CACHE automatically.
    my requirement is to not hit the main table again&again.
    pls help..
    It sounds as if you're trying to avoid contention on a very busy large table while users are experimenting with relatively small fractions of the total data set. The type of thing you're doing is probably about the best approach - though it sounds as if you are not using global temporary tables which could save you a bit of time and contention when refreshing each private data set.
    Ideally, though, you probably want a front end tool that does client-side caching - i.e. pulls the data into the front-end tool and lets the user rearrange it cosmetically there until the user explicitly requests a new trip to the database. I think Oracle Discoverer has (had) some capability in this area. What's the scale of the work the users are doing - can you give us a few scenarios about how much raw data they will extract and what they want to do with it before they refresh it ?
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    Author: <b><em>Oracle Core</em></b>
    P.S. Oracle does have client-side caching technology - but your ability to use it is dependent on the tools you use. You might want to go over to one of the developer or BI forums to see what they say about this problem; they may give you a different perspective on it.
    Edited by: Jonathan Lewis on Jan 31, 2012 6:55 PM

  • Generate XML report using MAX Generate report.vi

    Hi All,
    Caught in simple and wierd problem. I'm using a simle VI called MAX Generate Reoprt.vi to generate an XML report but getting error
    Error code -2147220553
     Error description :Incorrect report file extension provided.
    The image of the block diagram is attached. I'm able to generate HTML reoport from MAX(absolutely no probs).
    Thanks in advance
    Regards
    VDC
    Attachments:
    Error_in_MAX.JPG ‏7 KB

    You must have the correct file extention. Here's what is wirtten in the detailed help of the function:
    output filename specifies the filename of the generated report.
    You must have the correct extension for the type of report to generate (.xml, .htm, .html, or .zip).
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Crystal report problem

    Post Author: ranganadhkodali
    CA Forum: Authentication
    Dear Group Members,
    I have a vary big problem with crystal report XI edition, I am
    unable to find the cause of the problem actually.
    I am using Crystal Report XI Developer version to build
    reports in my development system, which I am, using SQL server 2005 as a
    backend database and u201CUn-Typedu201D Pull
    model for generate reports, in that my system those are working very good.
    For distribute those reports to the other clients, I was
    prepared one small windows application in .net and I placed one shared
    directory. Application will show all report files placed under the shared
    directory by the user selection.
    If User selects one report, I am taking the selected report
    from the shared directory and open with the .net embedded crystal report
    viewer, while opening I was filling the
    server login information(By code itself).
    Any way application also working very well in my development
    system, for deploys this application I added crystal report redist package that
    is came with the visual studio 2008.
    When I run the same application, in deployed
    system, it showing login database dialog with empty database name, and one more
    thing is that database text box also showing like disable. So even I unable to
    give database credential with in dialog. I donu2019t understood what is the cause
    of the problem?
    Almost same problem was happen before 4 months back for some
    other project, @ that time I rebuild my report with the PUSh model, and it
    working well. But this case, I donu2019t have a chance to do like that, because daily
    I should generate some kind of reports, needs of management. That management
    staff will check reports from with that my distributed application. For these
    all things, I canu2019t rebuild and redistribute my application every time if I add
    new report. So that I placed one shared folder and, I keep update all changed
    reports files in that shared folder, my application will show them.
    What is the cause of the problem?
    Is it problem with connection? Then it should not work with
    in my development system also
    Then it probably problem with the deployment? Then I am able
    to view the initial report, problem came only when I refresh the data?
    If problems with deployment, then how it is works for push type reports, it giving problem
    for only pull type reports?
    thanks and regards Ranganadh Kodali

    Please visit:
    www.geocities.com/pmk16
    Regards,
    pmk16

  • Generate Report with BI Publisher can't completed

    Hi all,
    I am new in oracle.
    Can anyone help me to solve this problem when I want to generate report by using XML publisher.
    I have made my template for my report in Microsoft Word and I am using BIPublisherDesktop to generate my report.
    Actually I want to make a conditional formatting and I always prompted with this error :
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 100, Column 86>: XML-22047: (Error) Invalid instantiation of 'Attribute' in 'Element' context.
    Can anyone help me to solve this problem. I have read on this forum and I got not solution with it. Thanks a lot.

    It all depends on your XML file structure. Can you help us with a sample XML file. You can also mail me [email protected]
    Cheers,
    ND
    Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered.

  • BI Publisher - PO_DISPATCH Error generating report output

    Hi everyone,
    Sorry for my bad english... having said that...
    I need to modify the Purchase Order print. First, I wanted to see the standard version to get an idea of how much different it was. Well, I don't know because it doesn't work.
    Error:
    Error generating report output: (235,2309)
    Error occurred during the process of generating the output file from template file, XML data file, and translation XLIFF file.
    I know there are several topics on the web, but all of them are about new or custom reports, this is a standard one. When I preview the report on the report definition it works fine, so I assume there's a problem with the XML file generated. When I preview the report specifying an alternative XML I get the same error. The XML file I choose was the one generated by PeopleSoft when trying to view the printable version of the PO online.
    So, I start cutting portions of the XML File. I started leaving only de Header Data and it works OK, when I add the Lines it failed. I add the Line Fields one by one to detect what was the problem... And finally it failed when I add AMT_LINE_MAX. Why? No idea, is it because its value is '0,000' instead of '0.000'? I don't think that should be the problem since there are other numeric fields on the header, all with ',' as a decimal separator...
    Am I missing some configuration?
    Thanks in advance.
    Regards,
    Veronica.

    Have a look at the following doc:
    "Error generating report output. (235,2309)" When Running the "PO XMLP Dispatch" XML Publisher Report (PO_DISPATCH) for a Purchase Order with a Ship To Location with Special Characters in the Address [ID 1299876.1]
    https://support.oracle.com/epmos/faces/DocContentDisplay?id=1299876.1
    Stating this happens for example when there is a location with special characters.

  • Error generating report job with the task name 'FSRM_Report_Task

    Since this morning we have been having a problem with FSRM on Windows Server 2008 R2, it is no longer running storage reports (both scheduled and on-demand).
    We get the following in the event logs:
    Log Name:      Application
    Source:        SRMREPORTS
    Date:          09/06/2014 08:09:55
    Event ID:      752
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      FILESERVER2.curriculum.riddlesdown.local
    Description:
    Error generating report job with the task name 'FSRM_Report_Task{3add1760-4e79-4141-baba-cb53391bef3e}'.
    Context:
     - Exception encountered = Invalid argument: StorageType = '101'
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="SRMREPORTS" />
        <EventID Qualifiers="0">752</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-06-09T07:09:55.000000000Z" />
        <EventRecordID>42920</EventRecordID>
        <Channel>Application</Channel>
        <Computer>FILESERVER2.curriculum.riddlesdown.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>Error generating report job with the task name 'FSRM_Report_Task{3add1760-4e79-4141-baba-cb53391bef3e}'.
    Context:
     - Exception encountered = Invalid argument: StorageType = '101'
    </Data>
      </EventData>
    </Event>
    We have uninstalled and reinstalled the FSRM role service but are still having the same problem.
    Anybody have any ideas?

    Hi,
    From the error message, it failed because of "invalid argument: storagetype = '101' ".
    101 means the storage type is "system" + "cache". Is there any change on your storage before the issue occurs? For example whether the source storage is changed?
    FsrmStorageModuleType enumeration
    http://msdn.microsoft.com/en-us/library/dd392346(v=vs.85).aspx
    If you have any feedback on our support, please send to [email protected]

  • Error while generating Report through XL Reporter.

    Hello..
    I am using microsoft excel 2003.I have installed XL Reporter 2005SP1. While i am trying to generate report throgh excel reporter i get the following error.
    Security setting in microsoft excel prohibit XL Reporter from running.
    For more information click Help.
    I also tried by making security level low in microsoft excel -->Tools > Macros> Security.But still problem there.
    Thanks,
    Arpit

    Hi Arpit,
    As well as setting the macro security to Medium or lower, you need to tick the options 'Trust all installed add-ins and templates' and 'Trust access to Visual Basic Projects'. These options appear at the bottom of the Trusted Publishers tab in the Macro Security window.
    Hope this helps,
    Owen

Maybe you are looking for