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.

Similar Messages

  • Oracle Forms table EXPORT into excel sheet

    Hi all,
    I have the following situation:
    I managed to export a table into an excel worksheet using OLE2 standard package, but sometimes I have to many records in the table and I was wondering if it's possible to show in Excel (while is loading the data into it) a Progress Bar or a message like "Still working...".
    Thank you in advance for your input.
    Best regards,
    Marius

    Hi guys,
    Watch this link:
    Re: Download from Oracle 10g Forms to Excell
    Regards,
    Marius

  • Oracle table export to Excle

    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.

    Excel can utilize ODBC to connect directly into Oracle DB & issue SQL

  • 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

  • Problem with numeric columns when ADF table exported to Excel

    Hi,
    We have a ADF table on a page which can be exported to excel spreadsheet using the <Af:ExportCollectionActionListener>. The adf table is within panel collection.
    There are many numeric columns in this table and there is <af:convertnumber> used on these columns. No other properties are changed on the <af:convertnumber> tag, everything is default. And no formatting is applied on the view object attributes as well. When a user from US is exporting the table to excel everything works well no issues. But a Netherlands or French user exports the excel, the numeric values which have decimal point are shown as left aligned and the whole numbers in the same column are right aligned. As a result when the user is trying to sum the entire column only the right aligned numbers are getting added.
    I am not sure what is the issue here ?
    HAs someone seen this scenario before ?
    Am I missing anything here - any property setting ?
    The numbers are shown like this in the excel exported from table.
    4,077.78
    3,555,34.12
                        1,234
                        19,219
    3,4445,33.22
    Jdev - 11.1.2.3
    Thanks

    Add a decimal to the whole number columns to make all columns left-aligned. Do all left-aligned columns get added?
    4,077.78
    3,555,34.12
    1,234.00
    19,219.00
    3,4445,33.22

  • 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.

  • Include Row/Column Headers in Pivot Table Export to Excel

    I am using JDeveloper version 11.1.2.3
    I am trying to export my pivot table to excel using dvt:exportPivotTableData. I'd like to include column/row headers in the export, but can't seem to find a way to do that. Is there a way to do this in my jdeveloper version?

    I am using JDeveloper version 11.1.2.3
    I am trying to export my pivot table to excel using dvt:exportPivotTableData. I'd like to include column/row headers in the export, but can't seem to find a way to do that. Is there a way to do this in my jdeveloper version?

  • HOw to convert Oracle Table data to Excel Sheet

    I need to convert Some of fields from my table to Excell sheet. I dont want to use 3rd party tools. Is there any querry to generate Excell sheet????

    There is no direct path to make Excel file from query, instead you may generate a CSV file (comma-separated-values) or TAB separated values file.
    On SQL*Plus
    SQL> set heading off
    SQL> set newpage none
    SQL> set linesize 255 --could be more
    SQL> spool /path/filename.txt
    SQL> select column1||chr(<ascii for Tab>)||column2||...||columnK
    from table
    SQL> spool off
    Hope it helps

  • 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

  • Upload data from excel to oracle table

    Hi,
    if i'm user and using an application and i want to upload data from excel to oracle table on button click . Is it possible by using sql loader.
    If yes then please clarify it .
    is it possible from client end.
    thanks
    kam

    Yes it is possible using SQL*LDR, External tables and ORCL Export Utility. Though I didn't try Export Utility to load the external files.
    SQLLdr sysntax:
    Create a control file.
    It looks like this
    Load data
    Infile 'source.dat' 
    Into Table tablename
    Fields terminated by ',' optionally enclosed by '"'
    {code}
    then use sqlldr command from your OS.
    {code}
    sqlldr userid/password@sid control = filename.ctl, data = source.dat, log = logname.log, bad = badname.log, discard = discardname.discard
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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.

  • Transfer data from MS Excel to Oracle table

    Hello,
    hope someone can help: What is the easiest way to transfer data from Excel sheet to a Oracle table and how ?
    An example of a row to transfer is given below
    Date Time Value 1 Value 2
    2004-02-02     03:47:39     9,62     3,62     
    Thanks in advance
    Regards
    Roar

    From Microsoft access , import data from Excel to an Access table.
    Format that Access Table properly in Design mode.
    Create a table as per your specification in oracle Database.
    Then export to oracle from access using approppriate ODBC driver.
    --Sayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Create a table in SQL Server, Export tables from Microsoft Excel to Microsoft SQL Server, Populate the created table

    Hello team,
    I have a project that I need to do, what is the best approach for each step?
    1- I have to create a table in Microsoft SQL Server.
    2- I have to import data/ tables from Microsoft Excel or Access to Microsoft SQL Server. Should I use Microsoft Visual Studio to move data from Excel or Access?
    3-I should populate the created table with the data from the exported data.
    4-How should I add the second and third imported table to the first table? Should I use union query?
    After I learn these, I will bring up the code to make sure what I do is right.
    Thanks for all,
    Guity
    GGGGGNNNNN

    Hello Naomi,
    I have imported all the tables into SQL Server,
    I created a table:
    CREATE
    TABLE dbo.Orders
    Now I want to populate this table with the values from imported tables, will this code take care of this task?
    INSERT INTO dbo.Orders(OrderId, OrderDate)
    SELECT OrderId, OrderDate
    FROM Sales.Orders
    UNION
    SELECT OrderId, OrderDate
    FROM Sales.Orders1
    Union
    SELECT OrderId, OrderDate
    FROM Sales.Orders2
    If not, what is the code?
    Please advise me.
    GGGGGNNNNN
    GGGGGNNNNN

  • Upload data from excel file to Oracle table

    Dear All,
    I have to upload data from excel file to Oracle table without using third party tools and without converting into CSV file.
    Could you tell me please how can i do this using PLSQl or SQL Loader.
    Thnaks in Advance..

    Dear All,
    I have to upload data from excel file to
    Oracle table without using third party tools and
    without converting into CSV file.
    Could you tell me please how can i do this
    using PLSQl or SQL Loader.
    Thnaks in Advance..As billy mentioned using ODBC interface ,the same HS service which is a layer over using traditional ODBC to access non oracle database.Here is link you can hit and trial and come out here if you have any problem.
    http://www.oracle-base.com/articles/9i/HSGenericConnectivity9i.php[pre]
    Khurram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • A single table line generating more than 2 lines when exporting to Excel

    Guys,
    I do have an interactive report on apex with a varchar2(4000) column that is generating more than 1 excel row per table row. In another words:
    Table my_report
    file_id number,
    file_comment varchar2(4000)
    Query on report
    select file_id, file_comment from my_report
    It generates 5 lines on report screen but, when I export to excel using csv or xls format, it generates more than 5 lines. On file_comments field on excel, some of them has a break in 2 or 3 lines. Seems to me a line feed problem with CHR(13) or chr(10).
    Anyone as a solution or a similar problem like this? Any idea?
    Andre.

    you could try to remove the linebreaks in the select.
    select file_id, file_comment, replace(replace(file_comment,CHR(13)),CHR(10)) file_comment_nobreak
    from my_reportThen depending on the type of report you could show one column, but export the other column in the excel/csv file. Not sure if this works with an interactive report too.

Maybe you are looking for

  • Creation of Assets master Data

    Dear All, Now we need to upload master data for Asset materials, which we are treating as UNBW Mat type (Non valuated materials). If we want to sell it after 1 Year & then what is the procedure ?  In UNBW mat type there is no sales views maintained.

  • Security Question Regarding Application Synchronization

    In the case of a user with one iTunes account being used on multiple iOS devices by multiple members of that users family, is there a way to specify one app on one device that should not replicate to other devices as it's business use and not for the

  • ITunes playlist not playing properly in slideshow

    I have an iPhoto slideshow that I have set to play an iTunes playlist. Within iTunes I've cropped off some of the deadspace in the songs, so that when I watch the slideshow I don't have slides passing by without sound. My problem is that when I play

  • Headphone jack iMac 2012

    I have a 21" 2012 iMac, and have experiencing problems with the headphone jack ever since the second week of buying it ( about 1.5 months ago). When I insert a headphone jack into the socket, the head phones, for the most part, will not pay sound. Th

  • Standard manager

    Hi, The standard manager is not coming up. Actual is 0 and Target is 3. How can i debug / fix this problem ? Thx.