Oracle - export to excel - Urgent

dear all :
i am using oracle 11g ,
and i write PLSQL code to export data from data base to excel and it run successfully ,
but i have data must be inserted to excel cell but in diffrent lines ,
so how i can enter to new line in the same excel cell to fill my data
   UTL_FILE.put_line (output,
                               ' my name '
                               || ','
                              'first line , second line,third line '
                               || ','
                                9889
                               ||   'last column '
                              );is there is any thing help me to wrape excel sheet cell and add multiple line on it .
thanks in advance

i need to put v_dn_informations in excel cell and it is in loop :
is it true in this way :
v_dn_informations := v_parameter_code_info || ' : ' ||
                             v_parameter_value_info || '\n'||v_dn_informationsi try it and this is the result in excel cell :
LINE EQUIPMENT NUMBER : \nPM NODE NUMBER : \nNCOS : \nSUBGRP : \nCUSTGRP : \nLINE CLASS CODE : \nCARDCODE : \nTYPE : \nMNO : \nGND : \nIBN TYPE : \nPADGRP : \nSNPA : \nSIG : \nPM TERMINAL NUMBER : \nBNV : \nLNATTIDX : \n

Similar Messages

  • Import data from table,export to excel----URGENT

    Dear all ,
    I have a requirement of importing data from database table and then export those data to excel. that means irrespective of column number and row number present in the table,i have to export that table's records to excel. In my from i have text field, by which user will enter table name, it will validate whether DB have that table....if that table present in DB , i have to export it's data to excel..............
    any kind of help and suggestion is welcome

    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>Announcement: Forums Etiquette / Reward Points
    </ul>
    Please provide us with your Forms version, Java version and Client OS version. This information is needed in order to offer you potential solutions. Performing this task in Forms 6i (Client/Server) is completly different than in Forms 9i/10g/11g.
    With respects to your "Urgent!" request. You have to understand that forum contributers are all volunteers - this is not our full-time job. If your issue is truely urgent, it is always best to open a Service Request (SR) with Oracle Support than to rely on the forum for an urgent reply! ;-)
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Oracle table export ot Excel

    Dear folks,
    I am looking to export some oracle tables into excel format. I tried using sql developer but since the table has huge rows (>12L), it is taking too much time. I tried to export it in csv format also but not getting enough benefit. We do not have any licenced third party tool to use this facility.
    Could you please let me know the best way to accomplish this task.
    -- Can we do it using expdmp, if yes plz share the steps.
    -- Can a dmp file be converted to xls file, if yes plz share the steps.
    -- Any other way you think is the best.
    I would appreciate if you reply me.
    Regards.

    There are open source modules from cpan.org called Text-CSV-1.20 and Spreadsheet::WriteExcel which look cool for perlmongers, though I haven't had time to dig into them myself. hoopercharles.wordpress.com has some interesting excel examples. If "L" means something like 100,000, I'd question why you even want to do something like this, importing a straight csv file into Excel won't work because it doesn't know about multiple worksheets. Whatever you do, I expect it will take a long time. Anything that has a million rows needs a database. See if whatever tool you use has an arraysize adjustment.
    expdmp has a proprietary format, not suitable.

  • Oracle Applications 11i Export to Excel does not work.

    The export button does not work. When I click on export it says complete but does not bring up a window asking me to save. I have pop up blocker off and the site added to trusted sites. I have tried everything I have found so far but no luck. Help would be much appreciated.....thanks!!!!

    Please post the details of the application release, database version and OS.
    The export button does not work. When I click on export it says complete but does not bring up a window asking me to save. I have pop up blocker off and the site added to trusted sites. I have tried everything I have found so far but no luck. Help would be much appreciated.....thanks!!!!Was this working before? If yes, any changes been done recently?
    Can you reproduce the issue from other browsers/machines?
    Can you find any errors in the database log file?
    Please see these docs/links.
    Troubleshooting Export and Attachment issues in Oracle Applications 11i [ID 338651.1]
    Attachments and Exports, a Troubleshooting Guide [ID 135444.1]
    Export To Excel: How To Activate Debugging? [ID 464469.1]
    How to Troubleshoot Forms Hanging Using Export Functionality [ID 423261.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Troubleshoot+AND+Export&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Troubleshooting+AND+Export&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Export+AND+Excel&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Oracle BIEE export to excel

    Hello everyone.
    I'm having troubles exporting an excel file from an oracle BIEE analysis.
    Once the file is saved, the data have nothing to do with what I see in the analysis.
    Could it be an issue due to the combination of commas, percent symbol and dots
    that have a different meaning in BIEE and excel?
    Is there a way to change some settings? Because so far the only thing I did is to hit export->excel
    Thanks in advance for your help. Have a good one.
    Agata

    Please post the details of OBIEE version and the Excel version you are using.
    Is the issue with one file or all files?
    There are many issues with Excel AND OBIEE reported on MOS website (as you see below) so it would be more helpful if you could provide more details.
    Downloading to Excel 2007 from OBIEE 10.1.3.4 The File you are Trying to Open is in a Different Format than Specified by the File Extension - Contains Features not Compatible [ID 980627.1]
    Obiee 11.1.1.5 - Export To Excel Issue [ID 1333391.1]
    OBIEE 11g: When you Export a Pivot Table to Excel, the Decimal Format is Lost [ID 1479859.1]
    OBIEE 11g: When Exporting OBIEE Reports to Excel, Numeric Columns with Action Links Have a Trailing Space [ID 1363474.1]
    Thanks,
    Hussein

  • Export oracle table to excel

    Dear sirs,
    now i want to send oracle table to excel that is through forms 6i
    and i used ole2 package but i can send the column fields name and i want to put as 3 lines as a header for the table name and date
    anybody help me please
    Thanks in advance
    Yasser

    hi
    try this code.
    PROCEDURE test IS
    i_reporttitle VARCHAR2(200) := 'My excel';
    dno number(2);
    dn varchar2(14);
    dl varchar2(13);
    r number := 2;
    c number := 1;
    i_orientation VARCHAR2(200) := '1';
    i number :=1;
    /* definiton for commonly used variables and constants and exceptions */
    ExcelID ole2.obj_type;
    ExcelWorkBooksID ole2.obj_type;
    ExcelWorkBookID ole2.obj_type;
    ExcelWorkSheetsID ole2.obj_type;
    ExcelWorkSheetID ole2.obj_type;
    ExcelCellID ole2.obj_type;
    ExcelFontID ole2.obj_type;
    ExcelPageSetupID ole2.obj_type;
    ExcelArgs ole2.list_type;
    BEGIN
    ExcelID := ole2.create_obj('Excel.Application');
    ExcelWorkBooksID := ole2.get_obj_property(ExcelID, 'Workbooks');
    ExcelWorkBookID := ole2.invoke_obj(ExcelWorkBooksID, 'Add');
    ExcelWorkSheetsID := ole2.get_obj_property(ExcelWorkBookID, 'Worksheets');
    ExcelWorkSheetID := ole2.invoke_obj(ExcelWorkSheetsID, 'Add');
    ExcelPageSetupID := ole2.get_obj_property(ExcelWorkSheetID, 'PageSetup');
    ole2.set_property(ExcelPageSetupID, 'Orientation',i_orientation);
    ole2.release_obj(ExcelPageSetupID);
      loop
         go_block('dept');
    ExcelArgs := ole2.create_arglist;
    ole2.add_arg(ExcelArgs,i);
    ole2.add_arg(ExcelArgs,c);
    ExcelCellId := ole2.get_obj_property(ExcelWorkSheetId,'cells',ExcelArgs);
    ole2.destroy_arglist(ExcelArgs);
    ole2.set_property(ExcelCellId, 'Value', :dept.deptno);
    ExcelFontId := ole2.get_obj_property(ExcelCellId, 'Font');
    ole2.set_property(ExcelFontId, 'Bold', 'True');
    ole2.set_property(ExcelFontId, 'Size', '10');
    ole2.release_obj(ExcelFontId);
    ole2.release_obj(ExcelCellId);
    ExcelArgs := ole2.create_arglist;
    ole2.add_arg(ExcelArgs,i);
    ole2.add_arg(ExcelArgs,c+1);
    ExcelCellId := ole2.get_obj_property(ExcelWorkSheetId,'cells',ExcelArgs);
    ole2.destroy_arglist(ExcelArgs);
    ole2.set_property(ExcelCellId, 'Value', :dept.dname);
    ExcelFontId := ole2.get_obj_property(ExcelCellId, 'Font');
    ole2.set_property(ExcelFontId, 'Bold', 'True');
    ole2.set_property(ExcelFontId, 'Size', '10');
    ole2.release_obj(ExcelFontId);
    ole2.release_obj(ExcelCellId);
    ExcelArgs := ole2.create_arglist;
    ole2.add_arg(ExcelArgs,i);
    ole2.add_arg(ExcelArgs,c+2);
    ExcelCellId := ole2.get_obj_property(ExcelWorkSheetId,'cells',ExcelArgs);
    ole2.destroy_arglist(ExcelArgs);
    ole2.set_property(ExcelCellId, 'Value', :dept.loc);
    ExcelFontId := ole2.get_obj_property(ExcelCellId, 'Font');
    ole2.set_property(ExcelFontId, 'Bold', 'True');
    ole2.set_property(ExcelFontId, 'Size', '10');
    ole2.release_obj(ExcelFontId);
    ole2.release_obj(ExcelCellId);
         exit when :SYSTEM.LAST_RECORD = 'TRUE';
    next_record;
    i := i+1;
    end loop;
    ExcelArgs := ole2.create_arglist;
    ole2.add_arg(ExcelArgs,i+1);
    ole2.add_arg(ExcelArgs,1);
    ExcelCellId := ole2.get_obj_property(ExcelWorkSheetId,'cells',ExcelArgs);
    ole2.destroy_arglist(ExcelArgs);
    ole2.set_property(ExcelCellId, 'Value', 'END');
    ExcelFontId := ole2.get_obj_property(ExcelCellId, 'Font');
    ole2.set_property(ExcelFontId, 'Bold', 'True');
    ole2.set_property(ExcelFontId, 'Size', '10');
    ole2.release_obj(ExcelFontId);
    ole2.release_obj(ExcelCellId);
    ole2.set_property(ExcelID, 'Visible','TRUE');
    -- ... and release the allocated resources because they are no longer used by forms
    ole2.release_obj(ExcelWorkSheetID);
    ole2.release_obj(ExcelWorkSheetsID);
    ole2.release_obj(ExcelWorkBookID);
    ole2.release_obj(ExcelWorkBooksID);
    ole2.release_obj(ExcelID);
    END;try this code too.
    PROCEDURE FormToExcel IS
    i_reporttitle VARCHAR2(200) := 'My excel';
    dno number(2);
    dn varchar2(14);
    dl varchar2(13);
    r number := 2;
    c number := 1;
    i_orientation VARCHAR2(200) := '1';
    i number :=1;
    /* definiton for commonly used variables and constants and exceptions */
    ExcelID ole2.obj_type;
    ExcelWorkBooksID ole2.obj_type;
    ExcelWorkBookID ole2.obj_type;
    ExcelWorkSheetsID ole2.obj_type;
    ExcelWorkSheetID ole2.obj_type;
    ExcelCellID ole2.obj_type;
    ExcelFontID ole2.obj_type;
    ExcelPageSetupID ole2.obj_type;
    ExcelArgs ole2.list_type;
    BEGIN
    ExcelID := ole2.create_obj('Excel.Application');
    ExcelWorkBooksID := ole2.get_obj_property(ExcelID, 'Workbooks');
    ExcelWorkBookID := ole2.invoke_obj(ExcelWorkBooksID, 'Add');
    ExcelWorkSheetsID := ole2.get_obj_property(ExcelWorkBookID, 'Worksheets');
    ExcelWorkSheetID := ole2.invoke_obj(ExcelWorkSheetsID, 'Add');
    ExcelPageSetupID := ole2.get_obj_property(ExcelWorkSheetID, 'PageSetup');
    ole2.set_property(ExcelPageSetupID, 'Orientation',i_orientation);
    ole2.release_obj(ExcelPageSetupID);
      loop
    go_block('t');
    ExcelArgs := ole2.create_arglist;
    ole2.add_arg(ExcelArgs,i);
    ole2.add_arg(ExcelArgs,c);
    ExcelCellId := ole2.get_obj_property(ExcelWorkSheetId,'cells',ExcelArgs);
    ole2.destroy_arglist(ExcelArgs);
    ole2.set_property(ExcelCellId, 'Value', :t.a_number);
    ExcelFontId := ole2.get_obj_property(ExcelCellId, 'Font');
    ole2.set_property(ExcelFontId, 'Bold', 'True');
    ole2.set_property(ExcelFontId, 'Size', '10');
    ole2.release_obj(ExcelFontId);
    ole2.release_obj(ExcelCellId);
         exit when :SYSTEM.LAST_RECORD = 'TRUE';
    next_record;
    i := i+1;
    end loop;
    ExcelArgs := ole2.create_arglist;
    ole2.add_arg(ExcelArgs,i+1);
    ole2.add_arg(ExcelArgs,1);
    ExcelCellId := ole2.get_obj_property(ExcelWorkSheetId,'cells',ExcelArgs);
    ole2.destroy_arglist(ExcelArgs);
    ole2.set_property(ExcelCellId, 'Value', 'END');
    ExcelFontId := ole2.get_obj_property(ExcelCellId, 'Font');
    ole2.set_property(ExcelFontId, 'Bold', 'True');
    ole2.set_property(ExcelFontId, 'Size', '10');
    ole2.release_obj(ExcelFontId);
    ole2.release_obj(ExcelCellId);
    ole2.set_property(ExcelID, 'Visible','TRUE');
    -- ... and release the allocated resources because they are no longer used by forms
    ole2.release_obj(ExcelWorkSheetID);
    ole2.release_obj(ExcelWorkSheetsID);
    ole2.release_obj(ExcelWorkBookID);
    ole2.release_obj(ExcelWorkBooksID);
    ole2.release_obj(ExcelID);
    END;sarah
    Edited by: QGIRCO on Jan 20, 2010 12:59 AM

  • Urgent (Export to Excel issue)

    Hello Experts,
    I am trying to execute one of the BW report via portal. I have a following issue when I am trying to use Export to excel option from the context menu.
    The first part of Export to Excel works ok. but if I choose either the Save or the Open option it appears to work but I get a file with only c20 lines, instead of the 20,000+ lines in the report. If I then go back to the BW report and try to do anything it tells me that the session has timed out message attached
    Can someone please help me to fix this issue.
    Thanks and Regards,
    Apparao

    There are several. Here's one of them:
    1) Click on the fx button of the column in question. Enter the following:
    '<span style "display:none">&nbsp</span>'|| columnanme NOTE: Put an "equal sign" after the word "style." I could not get this to display with the operand in. Sigh.
    2) Change the Data Format to HTML on the Data Format tab.
    3) Export in the usual manner.

  • Exporting to Excel from Aria People Search

    Is it possible to export to Excel from Aria People Search.
    I would like to output the Org Chart (built in) and the Tree (I created) to an Excel file.
    Does anyone know how to do this?
    Thanks,
    Tom

    Hi,
    If you are using 10g, then OLE2 is supported. However, it will be executed in the App Server Machine.
    If you want to do the operation in the Client machine (as how it was done in the Client / Server), you need to use Client_OLE (Which is part of WebUtil).
    Look at
    http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
    for more details on WebUtil.
    HTH.
    Regards,
    Arun

  • Export to excel with javascript/vbscript or with plsql(html table)

    i have searched for a way to export data from OracleXe to excel without losing formatting .
    So far i have found 2 possible relatively easy ways that i am still researching
    (i do not include the ask tom sylk format way of exporting )
    1 to export the query to a html table, while using stylesheets for formatting
    (using microsoft specific styles)
    2. use of javascript/vbscript to fill an array and write this array to excel with use
    of visual basic for applications in excel.This also provides charting capabilities.
    I am still researching this two ways, and have
    encountered a few obstacles (help would be appreciated)
    1 the first way:
    a. create a button " export to excel"
    b. create the following pl/sql procedure:
    owa_util.mime_header('application/vnd.ms-excel');
    owa_util.http_header_close;
      HTP.PRINT('<html>');
      HTP.PRINT('<head>');
      HTP.PRINT('<meta http-equiv="Content-Type" content="text/html">');
      HTP.PRINT('<title>Title of the HTML File</title>');
      HTP.PRINT('</head>');
      HTP.PRINT('<body TEXT="#000000" BGCOLOR="#FFFFFF">');
      HTP.PRINT('<h1>Heading in the HTML File</h1>');
      HTP.PRINT('<p>Some text in the HTML file.');
      HTP.PRINT('</body>');
      HTP.PRINT('</html>');
    htmldb_application.g_page_text_generated := true;
    htmldb_application.g_unrecoverable_error := true;
    c: run the procedure conditionally based on the button  "export to excel"
    the problem with this way is that using htmldb_application.g_unrecoverable_error := true; is not the ideal way, because it
    stops further processing, but if i leave it out, the export doesn't happen.
    To export to excel while retaining data formatting  you have to use microsoft excel
    specific styles(Seedocumentation on the microsoft site)
    2.The second way:
    a create a pl/sql procedure or sql query.
    b use this query to fill a vbscript/javascript array with values
    c write these values to excel with use of vba in excel :
    the obstacle i encountered here was that i dont know how to export the result of a
    query to a visual basic script or javascript array.

    Using approach 1) works fine for me.
    the problem with this way is that using htmldb_application.g_unrecoverable_error := true;
    is not the ideal way, because it
    stops further processing, but if i leave it out, the export doesn't happen. Why is this a problem?
    I created the button to export the excel file on page 1 and created your pl/sql procedure on page 2 using an onload process.
    Works fine.
    Other approaches for exporting to excel are:
    http://www.oracle.com/technology/pub/articles/saternos_broadcast.html
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:5685133631021176591::::P54_ID:1962
    ~Dietmar.

  • How can I schedule an export to excel format of an OBIEE Analysis or Dashboard to a local directory ?

    Hello,
    I would like to schedule with an agent some reports in OBIEE 11g that must be exported in excel format to a specific local directory.
    There is a need for a group of OBIEE users to have a set of reports ready (exported in .xlsx) every morning.
    Furthermore, if the previous scenario is possible then could I deliver a whole OBIEE Dashboard with the same way?
    Any input will be appreciated.
    Thank you in advance.

    Hi,
    As of now , we are not able to save the report in shared location in Linux /Unix.
    Windows it is possible.
    http://satyaobieesolutions.blogspot.com/2013/03/oracle-bi-ee-11g-calling-vb-scripts-to.html
    http://satyaobieesolutions.blogspot.com/2013/03/oracle-bi-ee-11g-calling-js-scripts-how.html
    Thanks,
    Satya Ranki Reddy

  • Any ideas on how to merge 2 reports on page to export to Excel or PDF?

    This is for OBIEE 11g (we are currently running 11.1.1.6.8). We have a user requirement to put the prompt selections on each report that is exported to Excel or exported to PDF. This requirement has to do with auditors. We cannot use the Filter Criteria view because we have saved filters that contain other saved filters so not all of the filters are shown. What the users want is to just have the ability to Export to Excel or PDF for one report and add the prompt criteria so that it also shows in Excel or PDF. We know we can use presentation variables and create a narrative view to show all of the prompt criteria. But we don't want to have this in a view in the compound layout of every report on the page (we have many pages with many reports on them). What we would like to do is have the Export (to Excel or PDF) download the prompt criteria (like when you use the printable HTML and printable PDF functionality only we want this for one report). So think of merging the report that is being Exported to Excel or PDF with another report that is built to show the prompt criteria. Is anyone else doing this kind of functionality? Any ideas on how to do this with javascript?
    We created an SR on this to find out if Oracle had some ideas but they did not and said that this is already an enhancement request ( Bug 8242921: ALLOW PROMPTS TO BE DISPLAYED WHEN DOWNLOAD TO EXCEL)
    Any help would be appreciated. Marybeth

    Did u tried the first method? i.e directly exporting the analysis to excel?
    Thanks.

  • Export To Excel - Missing IN or OUT parameter at index:: 1

    Hi All,
    I have designed new OAF search page along with Export to Excel button on Result table but after search event when i try to export the data into Excel using inbuilt "Export to Excel" btn feature, I am getting below exception. How can I resolve this exception ..I have added search parameters programmatically in code and it also wrking.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT DISTINCT CONTRACT_ID, SERIAL_NUM,
    SITE_NAME, MODEL_ID,
    MODEL_VER, PROCESS_STATUS,
    DECODE(PROCESS_STATUS,'ERRORED','OraErrorText', 'SUCCESS', 'OraTipLabel' )AS FONT_COLOR
    FROM GEPS_ICAM_SCHEDULE) QRSLT WHERE (CONTRACT_ID = :1 AND MODEL_ID = :2 AND SERIAL_NUM = :3 AND SITE_NAME = :4 AND PROCESS_STATUS = :5)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2680)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1683)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:82)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.driver.OracleStatement.checkBindsInAndOut(OracleStatement.java:2000)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2924)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4481)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:613)
         at oracle.apps.fnd.framework.webui.OAExportHelper.getRegionResults(OAExportHelper.java:737)
         at oracle.apps.fnd.framework.webui.OAExportHelper.getPageResults(OAExportHelper.java:454)
         at oracle.apps.fnd.framework.webui.OAExportHelper.processFormRequest(OAExportHelper.java:306)
         at oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean.processFormRequest(OASubmitButtonBean.java:515)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAFlowLayoutBean.processFormRequest(OAFlowLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1037)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OATableHelper.processFormRequest(OATableHelper.java:404)
         at oracle.apps.fnd.framework.webui.beans.table.OATableBean.processFormRequest(OATableBean.java:1053)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2676)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1683)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:82)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:619)
    Thanks
    Yogesh

    Thanks Kumar for reply ..but I already handled it thru programmatically and we dont do this for "Export to Excel" button.. It automatically extract result data from the attached VO ....The thing that I dont understand is the binding exception upon "Export to excel" button selection..
    Just fyi .. have used below query to get result data in VOImpl ..
    public void initScheduleSearch(String strContractNum,
    String strModelId,
    String strSerialNum,
    String strSiteName,
    String strScheduleStatus
    this.setQuery("");
    StringBuffer whereClause = null;
    try
    whereClause = new StringBuffer(1000);
    Vector parameters = new Vector(6);
    int clauseCount = 0;
    int bindCount = 0;
    setWhereClauseParams(null); // Always reset
    if ((strContractNum != null) && (!("".equals(strContractNum.trim()))))
    whereClause.append(" CONTRACT_ID = :");
    whereClause.append(++bindCount);
    parameters.addElement(strContractNum);
    clauseCount++;
    else
    whereClause.append(" CONTRACT_ID IS NULL");
    clauseCount++;
    if((strModelId != null) && (!("".equals(strModelId.trim()))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" MODEL_ID = :");
    whereClause.append(++bindCount);
    parameters.addElement(strModelId);
    clauseCount++;
    } else
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" MODEL_ID IS NULL");
    clauseCount++;
    if ((strSerialNum != null) && (!("".equals(strSerialNum.trim()))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" SERIAL_NUM = :");
    whereClause.append(++bindCount);
    parameters.addElement(strSerialNum);
    clauseCount++;
    }else
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" SERIAL_NUM IS NULL");
    clauseCount++;
    if ((strSiteName != null) && (!("".equals(strSiteName.trim()))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" SITE_NAME = :");
    whereClause.append(++bindCount);
    parameters.addElement(strSiteName);
    clauseCount++;
    else
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" SITE_NAME IS NULL");
    clauseCount++;
    if (!"ALL".equals(strScheduleStatus) && !"".equals(strScheduleStatus) &&
    null!= strScheduleStatus)
    System.out.println(" After strScheduleStatus" + strScheduleStatus );
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" PROCESS_STATUS = :");
    whereClause.append(++bindCount);
    parameters.addElement(strScheduleStatus);
    clauseCount++;
    setWhereClause(whereClause.toString());
    if (bindCount > 0)
    Object[] params = new Object[bindCount];
    parameters.copyInto(params);
    setWhereClauseParams(params);
    this.executeQuery();
    catch(OAException e)
    if(isLoggingEnabled(1))
    return;
    finally
    whereClause.delete(0,whereClause.length());
    whereClause = null;
    setWhereClauseParams(null);
    this.setQuery("");
    }

  • Export to Excel from Database using JSP

    Hi Experts,
    I'm using below jsp code to export from an Oracle table to Excel using JSP.
    Every time I run this code I get the exception - "java.lang.OutOfMemoryError: Java heap space".
    I need to download around 8000+ records of the table containing 60 columns.
    I have increased Heap space but still the exception. Below is the code for your reference (I have mentioned only 30 columns where as there are 60 columns in actual). Pls help me what could be the other possible ways or suggest me any alternate code.
    Pls note - Some of the terms like "<serverip>", MySchema, myfile, COL names are changed for confidentiality.
    "D:\\Myfolder\\Excelfolder\\Final.xls" exists my the local machine.
    The code works until some 4000 records & after that throws the exception.
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection connection = DriverManager.getConnection("jdbc:oracle:thin:@<serverip>:1521:WISTGDEV", "user", "user@123");
    Statement statement = connection.createStatement();
    String filename = "C:\\Myfolder\\Excelfolder\\Final.xls";
    String strQuery1 = ("select * from Myschema.myfile");
    ResultSet rs = statement.executeQuery(strQuery1);
    HSSFWorkbook hwb = new HSSFWorkbook();
    HSSFSheet sheet = hwb.createSheet("sheet1");
    HSSFRow rowhead = sheet.createRow((short)0);
    rowhead.createCell((short) 0).setCellValue("COL1");
    rowhead.createCell((short) 1).setCellValue("COL2");
    rowhead.createCell((short) 2).setCellValue("COL3");
    rowhead.createCell((short) 3).setCellValue("COL4");
    rowhead.createCell((short) 4).setCellValue("COL5");
    rowhead.createCell((short) 5).setCellValue("COL6");
    rowhead.createCell((short) 6).setCellValue("COL7");
    rowhead.createCell((short) 7).setCellValue("COL8");
    rowhead.createCell((short) 8).setCellValue("COL9");
    rowhead.createCell((short) 9).setCellValue("COL10");
    rowhead.createCell((short) 10).setCellValue("COL11");
    rowhead.createCell((short) 11).setCellValue("COL12");
    rowhead.createCell((short) 12).setCellValue("COL13");
    rowhead.createCell((short) 13).setCellValue("COL14");
    rowhead.createCell((short) 14).setCellValue("COL15");
    rowhead.createCell((short) 15).setCellValue("COL16");
    rowhead.createCell((short) 16).setCellValue("COL17");
    rowhead.createCell((short) 17).setCellValue("COL18");
    rowhead.createCell((short) 18).setCellValue("COL19");
    rowhead.createCell((short) 19).setCellValue("COL20");
    rowhead.createCell((short) 20).setCellValue("COL21");
    rowhead.createCell((short) 21).setCellValue("COL22");
    rowhead.createCell((short) 22).setCellValue("COL23");
    rowhead.createCell((short) 23).setCellValue("COL24");
    rowhead.createCell((short) 24).setCellValue("COL25");
    rowhead.createCell((short) 25).setCellValue("COL26");
    rowhead.createCell((short) 26).setCellValue("COL27");
    rowhead.createCell((short) 27).setCellValue("COL28");
    rowhead.createCell((short) 28).setCellValue("COL29");
    rowhead.createCell((short) 29).setCellValue("COL30");
    int index=1
    String name="";
    while(rs.next())
    System.out.println("Inside while");
    HSSFRow row = sheet.createRow((short)index);
    row.createCell((short) 0).setCellValue(rs.getString(2));
    row.createCell((short) 1).setCellValue(rs.getString(3));
    row.createCell((short) 2).setCellValue(rs.getString(4));
    row.createCell((short) 13).setCellValue(rs.getFloat(5));
    row.createCell((short) 4).setCellValue(rs.getString(6));
    row.createCell((short) 5).setCellValue(rs.getString(7));
    row.createCell((short) 6).setCellValue(rs.getInt(8));
    row.createCell((short) 7).setCellValue(rs.getString(9));
    row.createCell((short) 8).setCellValue(rs.getString(10));
    row.createCell((short) 9).setCellValue(rs.getString(11));
    row.createCell((short) 10).setCellValue(rs.getString(12));
    row.createCell((short) 11).setCellValue(rs.getFloat(13));
    row.createCell((short) 12).setCellValue(rs.getFloat(14));
    row.createCell((short) 13).setCellValue(rs.getFloat(15));
    row.createCell((short) 14).setCellValue(rs.getFloat(16));
    row.createCell((short) 15).setCellValue(rs.getFloat(17));
    row.createCell((short) 16).setCellValue(rs.getFloat(18));
    row.createCell((short) 17).setCellValue(rs.getFloat(19));
    row.createCell((short) 18).setCellValue(rs.getFloat(20));
    row.createCell((short) 19).setCellValue(rs.getFloat(21));
    row.createCell((short) 20).setCellValue(rs.getFloat(22));
    row.createCell((short) 21).setCellValue(rs.getString(23));
    row.createCell((short) 22).setCellValue(rs.getString(24));
    row.createCell((short) 23).setCellValue(rs.getString(25));
    row.createCell((short) 24).setCellValue(rs.getString(26));
    row.createCell((short) 25).setCellValue(rs.getString(27));
    row.createCell((short) 26).setCellValue(rs.getString(28));
    row.createCell((short) 27).setCellValue(rs.getString(29));
    row.createCell((short) 28).setCellValue(rs.getString(30));
    index++;
    rs.close();
    FileOutputStream fileOut = new FileOutputStream(filename);
    hwb.write(fileOut);
    fileOut.close();
    connection.close();
    catch(Exception e)
    System.out.println(e.getMessage());
    e.printStackTrace();
    Thanks in advance,
    Venky
    Edited by: Venky_86 on Apr 15, 2009 12:06 AM

    Its is an obvious thing...POI is known to need a lot of memory (the reason for that is most likely the OLE document format, which is quite complex).
    I would have used something like the below to see if that can address my client's requirement.
    public exportExcel(String fileName){
       Connection connection = null;
       Statement statement = null;
       ResultSet rs = null;
       PrintWriter out = null;
       int index=1;
       try{
         out = new PrintWrite(new FileWriter(fileName));
         connection = DbUtils.getConnection();
         statement = connection.createStatement();
         rs = statement.executeQuery("select * from Myschema.myfile");
         out.prinln("<table>");
         out.println("<th>COL1</th>");
         out.println("<th>COL2</th>");
         out.println("<th>COL3</th>");
         out.println("<th>COL4</th>");
         out.println("<th>COL5</th>");
         out.println("<th>COL6</th>");
         out.println("<th>COL7</th>");
         out.println("<th>COL8</th>");
         out.println("<th>COL9</th>");
        out.println("<th>COL30</th>");
         out.println("<thead>");
         out.println("<tbody>");
         while(rs.next()){
              out.println("<td>"+index+"</td>");
              out.println("<td>"+rs.getString(2)+"<td>");        
              out.println("<td>"+rs.getString(3)+"<td>");        
              out.println("<td>"+rs.getString(4)+"<td>");        
              out.println("<td>"+rs.getString(5)+"<td>");        
              out.println("<td>"+rs.getString(6)+"<td>");        
              out.println("<td>"+rs.getString(7)+"<td>");        
              out.println("<td>"+rs.getString(8)+"<td>");        
              out.println("<td>"+rs.getString(9)+"<td>");        
              out.println("<td>"+rs.getString(30)+"<td>");        
         out.println("</tbody>")     
         out.println("</table>");    
         out.flush(); 
       }catch(Exception exp){
           exp.printStackTrace();
       }finally{
           if(out != null)
            try{out.close();}catch(Exception e){}
             if(rs != null)
               try{rs.close();}catch(Exception e){}
            if(statement != null)
               try{statement.close();}catch(Exception e){}
             if(connection != null)
               try{connection.close();}catch(Exception e){}
    }and you can simply export the file using the method
    ApplicationUtils.getInstance().exportExcel("c:/export/myapp/ApplicationTable.xls");If you are using Office 2000 and above you should able open it as an excel worksheet without any problems.
    Hope that help :)
    REGARDS,
    RaHuL

  • Best way to create dataset to be exported in Excel for further elaboration

    Hello experts!
    I need help with some of my custormers, that perform their work in a way that I partially disagree.  They work in BOXI R3.1 SP3.
    They use webi on top of relational universes (DWH layer in Oracle DB).
    We created reports in webi that cover their standard analysis, but for their spot analysis they find difficult to work in webi.
    I think that it partially depends on lack of known of the tool (even if they have been trained).
    Anyway they need a solution to this issue:
    they wont create in webi a basic set of information inserting reclassifications of information and some calculation in webi. Then they need to export information in excel to do their on spot calculations. Those dataset are often big, so they find following issues:
    1)they tried to use Live Office to import the table they need but the limit of the datastream size is reached quickly (currently limit is 50Mb in our settings , but is reached even from report that exported with Save to my computer As Excel are not more than 10Mb ). I discussed with B.O. administrator and increasing much more this treashold affects general  performances of other services.
    2)Exporting in excel with Save As is quite cumbersome and they can't use .xlsx format as it is only supported by BI4.0 .So they get tables with more than 64K rows splitted over many sheets.
    3)They also tried to export in CSV format to eventually further elaborate in Access, but .CSV only retrieve the information of the Microcube extracted by the query, not the data elaborated in the report.
    Anyone can suggest further ways to behave?
    Kind regards.
    Roberto.

    there are 3 options I see :
    1. Learn to use webi, it can do everything excel can and more
    2. I question ability of anyone to deal with that much data in excel, you should agregate data on DB side and push most of calculations there. Then your exports will be much smaller.
    Better designed semantic layer will allow your users to get needed data quicker and in less volume, making their work in webi or in excel easier.
    3. Use DF/DI products as ETL tools into your Excel users.

  • JHS: Export to Excel doesn't work when having leading zeros

    Oracle JHeadstart Release 11.1.1.2.29
    We are using the Export to excel option, but when we have leading zeros it doesn't export it as text so the data is incorrect.
    Can any one please tell how doe we configure JHeadstart/ADF to have the leading zeros and export it as text rather than as number.
    Regards
    Ram

    Ram,
    Export to excel is native ADF feature,not related to JHeadstart. Please post your question on the JDeveloper forum.
    Steven davelaar,
    JHeadstart team.

Maybe you are looking for

  • Re-order components in JPanel using Drag and Drop

    Hi, I have a JPanel that contains some more JPanels (the Layout is GridBagLayout - one column, each row - 1 JPanel). I would like to drag one JPanel (1) and after dropping it on some other JPanel (2), the (1) should be inserted at (2)'s position. I r

  • BW solution for ABAP Reports

    Hi All, I have a client which implemented SAP R/3 and they have certain standard reports like MB5B, VA05 and certain zreports. Now my task is to propose a BW solution for that client. What will be the steps that needs to be done to accomplish this ta

  • How to include another partition in tape backup

    Hi I use a shell script written by my sysadmin to take backup of our oracle system on tape. now i moved some datafiles on another partition and hence want to include that partition also in tape backup. for fs in $(cat /tmp/dailybkupfs | awk '{print $

  • Syntax Error in obiee 10g

    I am getting syntax error [nQSError: 27002] Near <)>: Syntax error [nQSError: 26012] . Please help me to identify for below code CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution

  • Selected Keywords do NOT all get written to selected files. bug

    have discovered and confirmed with adobe tech support a bug with adobe bridge cs4 not writing keyword metadata tags to multiple selected files.. PSD files and raw,jpegs when selected with PSDs fail to write metadata keywords to file. If you select a