Exit SQL query more than 65000 rows in excel

Hello

I have a SQL file attached to my simultaneous program. The query in the SQL file returns output separate tab I need to e-mail as a CSV via the same SQL file.

The issue I'm facing is that the query returns the records about 157000 but only 65536 are displayed in the excel worksheet.

How can I get all the records by welcoming them in several worksheets in the same excel file?

Help, please!

I use EBS 11i.

The code I use in the SQL file:

set of 3000 pages
fixed-line 300
set the position
fixed term off
Set feedback off
set verify off
trigger the echo
off Set serverout

coil /tmp/TEST.csv

Select 'head '.
of the double
/

SELECT column1 | CHR (9) | Column2
OF staging_table
/

spool off


fixed lines 1000 pages 40 Parry echo off veri off
Select ' cd/tmp; Cat $XX_TOP/install/sql/disclaimer.txt > x.dat; Cat ' |' /tmp/test.csv'||' | UUEncode ' |' /tmp/test.csv'
||' > '|| substr('/tmp/test.csv',1,length('/tmp/test.csv')-4) |'. DAT > > x.dat'
||' ; mail-s "' |' & 1' |" ' ' |' & 2' |' < x.dat'
||' ; RM ' | substr('/tmp/test.csv',1,length('/tmp/test.csv')-4) |'. dat' | ' ;'
of the double

list
coil /tmp/email.txt
/
spool off
host chmod 777 /tmp/email.txt
Home /tmp/email.txt

Thank you

Published by: user10648285 on May 13, 2011 05:27

{message: id = 9360007}

You can also upgrade your version of Excel as the latest versions contain more than 65K lines

Tags: Database

Similar Questions

  • A row of Sub query returns more than 1 row!

    I'm trying to update the values in one table from another table and get the error: void line query returns More Than 1 row.

    I want to PRV_NAME B chart updated in the table A PRV_NAME where A.PRVID = B.PRVID where B.PRV_TYPE = M"

    The two paintings were all unique PRVID, however, table B has PRVID that have the same name. So the data in table B can look like this:

    PRVID PRV_NAME
    1234 PHOENIX MED
    1235 MED BAG
    1236 MED BAG
    1237 OVERLAND
    etc...

    So, as you can see are the unique PRVID, but not the PRV_NAME. Is this the reason why I get this error?

    I do not build the tables and have no control over what is put in them. If this is the reason for the error, is there a way to fix this?

    For reference, here's the request. Maybe there's something wrong with that?


    Update msb_prv_source ps
    Set ps.prv_name =

    (select prv00.prv00_prv_name
    of prv00_prv prv00
    Join msb_prv_source ps
    On prv00.prv00_prv_id = ps.prvid
    where prv00.prv00_prv_type = am')

    Published by: user12296489 on April 19, 2013 10:46
    /* Formatted on 4/19/2013 2:00:43 PM (QP5 v5.185.11230.41888) */
    MERGE INTO msb_prv_source a
         USING (SELECT *
                  FROM prv00_prv
                 WHERE prv00_prv_type = 'M') b
            ON (a.prv00_prv_id = b.prvi)
    WHEN MATCHED
    THEN
       UPDATE SET a.prv_name = prv00_prv_name
    
  • Export of more than 65000 record from oracle's 10 g to Excel

    I try to export more than 65000 record from oracle 10g to Excel, formulas using the report execution as a form of the oracle spreadsheet, but if note the limeted and increase when I found error.

    Gently, I found solution for this error without use package in the database and the directory in the server

    Thank you very much for the cooperation.

    I got a solution to my problem I using webutil and who is as follows:

    DECLARE

    A CURSOR IS

    SELECT column_1, column_2, column_3

    Of

    your table;

    path varchar2 (200);

    IN_FILE CLIENT_TEXT_IO. TYPE_DE_FICHIER;

    BEGIN

    -----------------------------------------------------------------------

    Path: = webutil_file.file_save_dialog (", file_name-online 'Summary': sysdate |'.) CSV ', File_Filter => ' CSV (*.csv) files. (* .csv |') ;

    IF file_name IS NULL

    THEN

    TAKE A BREAK;

    ON THE OTHER

    IN_FILE: = CLIENT_TEXT_IO. FOPEN (PATH: '.) CSV', 'a');

    CLIENT_TEXT_IO. Put_line (IN_FILE, 'title_1; title_2; title_3');

    I'M IN A LOOP

    : HAND. COUNT: = A % ROWCOUNT; -counter

    CLIENT_TEXT_IO. Put_line (IN_FILE, I.column_1 | ';' |) I.column_1 | ';' | I.column_1);

    Synchronize;

    END LOOP;

    CLIENT_TEXT_IO. FCLOSE (IN_FILE);

    IF Form_Success THEN

    END IF;

    END IF;

    END;

    Thanks again

    concerning

    ELIE SAID

  • More than 1 file open Excel, Aero Peek will show not miniature, only circles

    Since the critical update from Microsoft last week (26/02/13), when I have more than one file opened in Excel, all I get in the vignettes are circles.  I restored in time before the update and the Aero Peek normally carried out with more than one Excel file is open.  The feature works with more open file in Word, MapPoint and Outlook (all open at the same time).  If there is only a single Excel file open, the Aero Peek thumbnail runs as it should.  The file names appear again, but only spinning circles on the tile.

    Hello

    Thanks for the reply.

    I would like to create a new user account and check if that helps.

    Create a user account: http://windows.microsoft.com/en-IN/windows7/Create-a-user-account

    If the problem does not occur in the new user account, you can transfer the files from the damaged to the new user account by using the article user account "difficulty a user profile is corrupted.

    Difficulty a user profile is corrupted: http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

    Thank you.

  • Problem with LDAP in the APEX and not in sql query * more

    Hello everyone.

    Hereby, I refer to an existing thread: Query LDAP APEX

    I have a problem using LDAP in the APEX (DB version: 11.2.0.2.0;) APEX version: 4.0)

    I get "Authentication failed" by their SUMMIT. However, when I run it in SQL * more (SQL Developer) (I created it as seen in the referenced forum thread) it works! Can I use my own function, but that looks like reinventing the wheel.
        l_ldap_host := 'oursite.be';
        l_ldap_port := '389';
        l_ldap_domn := 'oursite';
        l_ldap_user := i_username;
        l_ldap_pass := i_pw;
        l_ldap_base := 'ou=oursite,dc=oursite,dc=be';
    
    
        dbms_ldap.use_exception := true;
        
        l_session  := dbms_ldap.init(l_ldap_host,l_ldap_port);
        l_retval   := dbms_ldap.simple_bind_s(l_session, l_ldap_domn||'\'||l_ldap_user, l_ldap_pass);    
        l_attrs(1) := 'name';
        l_attrs(2) := 'title';
        l_retval   := dbms_ldap.search_s(
                        l_session, 
                        l_ldap_base, 
                        dbms_ldap.scope_subtree, 
                        '(sAMAccountName='||l_ldap_user||')',
                        l_attrs,
                        0,
                        l_message
                      );
    
        l_retval := dbms_ldap.count_entries(l_session, l_message);
    We must search the sAMAccountName because that contains our login credentials (dennis.surname). The common name is just our full name (Dennis Surname)


    At the SUMMIT, I have these settings:

    * LDAP host: oursite.be
    * Port: 389
    Use SSL: No SSL
    Use exact DN: No.
    * String DN: ou = oursite, dc = oursite, dc = be
    * Search filter: sAMAccountName = % LDAP_USER %


    When I try to test it I get "Authentication failed" but I don't know why. It works very well in sql * more (in the the same pattern of course!) so I have really no idea what I'm doing wrong. In addition, the message comes instantly and sql * more it takes about a second to authenticate.

    I tried so many things! remove the 'or '. Connect with my name, change 'cn = % LDAP_USER %' filter, connect with dennis.surname and Dennis Surname, using exact DN,... and all the possible combinations of them... Nothing works.

    I can go further by using my own function, but I really want to use the settings of the APEX, because it's so much easier.

    Thanks in advance for help out me!
    Dennis

    Hi Dennis,

    Try this

    The exact use DN Yes value
    Change your DN string to

    %LDAP_USER%@domain
    

    or

    domain\%LDAP_USER%
    

    The authentication uses a simple_bind_s. You must use the same syntax in these text boxes. You actually do a single with bond

    dbms_ldap.simple_bind_s(l_session, 'sAMAccountName=' || l_ldap_user, l_ldap_pass);
    

    It does not work. It's the syntax to use in the search for search_s filter.

    Please keep in mind that the apex_040100 (for apex 4.1) user must connect the rights on the domain server.

  • EXTRACTVALUE returns more than one row error

    Hi gurus

    I have XML file, now I would like to write an SQL to convert tabular. Whne I try to use

    EXTRACTVALUE
    (XML_MESSAGE,
    ' / ATMWithDrawTrans/Trans/Tran/TranDate.

    I'm ExtractValue returns multiple rows. Could you please help me find a query that retrieves these sub table form.

    < ATMWithDrawTrans >
    < Trans >
    < Tran >
    < TranDate > 2001 - 09 - 10 < / TranDate >
    < amount > 105 < / amount >
    < / Tran >
    < Tran >
    < TranDate > 2002 - 03 - 10 < / TranDate >
    < amount > 105 < / amount >
    < / Tran >
    < Tran >
    < TranDate > 2002 - 09 - 10 < / TranDate >
    < amount > 104 < / amount >
    < / Tran >
    < Tran >
    < TranDate > 2003 - 03 - 10 < / TranDate >
    < amount > 104 < / amount >
    < / Tran >
    < Tran >
    < TranDate > 2003 - 09 - 10 < / TranDate >
    < amount > 103 < / amount >
    < / Tran >
    < / Trans >
    < / ATMWithDrawTrans >

    TIA

    Published by: 870046 on July 25, 2011 08:50

    XMLTable will do what you want.

    For example, assuming XML_MESSAGE is a database of XMLType column:

    select x.*
    from your_table t
       , xmltable('/ATMWithDrawTrans/Trans/Tran'
           passing t.xml_message
           columns tran_date date   path 'TranDate'
                 , amount    number path 'amount'
         ) x
    ;
    

    If your version does not support, see XMLSequence in the documentation.

  • ADF Mobile more than 2 rows using ListView

    For my needs, I need 3 ranks instead of 2 in the ListView component.

    I tried to add a new line of page layout and tried the other options as well as in the 2nd rowLayout, I added a panelGroup etc. available.

    But it looks like Dimensions overall component ListView is rigid. So, what's the way to get 3 rows.

    Thanks and greetings

    Vik

    never mind got it works. I had to add more cellLayouts to make it work. and each cellLayout has a height property.

  • single row subquery returns more than 1 row

    UPDATE Rftm_Pidwise_Revenue_Dtls
    SET cost_prior_qtr = (select cost_forecast_end
    of rftm_time_entry_calc
    where rftm_time_entry_calc.pid = Rftm_Pidwise_Revenue_Dtls.pid
    AND rftm_time_entry_calc.ideal_ref_no = Rftm_Pidwise_Revenue_Dtls.ideal_ref_no
    )
    WHERE ideal_ref_no = '140014';

    Hi all
    I have a requirement where I have to update a table (Rftm_Pidwise_Revenue_Dtls) and the value of the column 'cost' to the ' 140014 ideal_ref_no'. for this issue, there are several records in the tables that I use in my application. I want to match the corresponding 'pid' and update the cost for each "pid".
    Please help me with a correct query.

    Kind regards
    Belin
    Try once...(untested)
    
    MERGE INTO Rftm_Pidwise_Revenue_Dtls TRG
    using
    (
    select DISTINCT A.cost_forecast_end cost_forecast_end,B.ROWID RI
    from rftm_time_entry_calc A,Rftm_Pidwise_Revenue_Dtls B
    where A.pid=B.pid
    AND A.ideal_ref_no=B.ideal_ref_no
    AND B.ideal_ref_no='140014';
    ) SRC
    on
    (TRG.ROWID=SRC.RI)
    WHEN MATCHED THEN UPDATE
    SET TRG.cost_prior_qtr =SRC.cost_forecast_end;
    
  • How to display more than 200 lines in the table?

    Hi Experts,

    Is it possible to display more than 200 rows in a Table.
    When I query table, it has 1000 rows, I want to display all 1000 rows in the table.

    When I have a query, the values are displayed up to 201 lines only,
    When I then click on 200 and 201 he throws Exception says
    * "The query exceeded 200 lines. Potentially more rows exist, please restrict your query. » *

    I would like to know how to display every 1000 lines in a table without Exception.

    Any idea will be highly appreciated.

    Thank you
    Pascaline

    The number of rows retrieved is controlled by the option to profile ' FND: view object Fetch Size Max. I think that 200 is the default value. PL see these Docs MOS

    386402.1 - query exceeded 200 lines
    275876.1 - oracle Application Framework profile Options version 11i (11.5.10)

    HTH
    Srini

  • Results more than 200 lines.

    Hi all:
    I have a problem with a query that results from more than 200 lines.
    Only show in a table rows 201 and put caution regarding this message: "the request exceeded 200 lines. Potentially more rows exist, please restrict your query. »

    Is possible that the query shows all results?

    Thank you!

    If you want to query more than 200 lines in the original version, you can add '(how MUCH of ROWS) setMaxFetchSize;' before executeQuery();
    If you want to query all the rows in the original version, you can add 'setMaxFetchSize(-1);' before executeQuery();

    Thank you.

  • More than 15 lines in a report

    Hello

    I use a report and you want to display more than 15 rows without using pagination. I already tried to increase the number of lines of 15 to a higher value, but I does not work.

    And is there a way to avoid to reload the entire page after clicking on the button of pagination in the report?

    Thanks in advance...

    Tarek says:

    I use a report and you want to display more than 15 rows without using pagination. I already tried to increase the number of lines of 15 to a higher value, but I does not work.

    Pagination settings are cached for the duration of the session. After changing the lines by the value of the page in the report attributes, log off, restart the brower and connect again or manually re - request the page from the browser's address bar, adding 'RP' in the ClearCache position in the URL.

    And is there a way to avoid to reload the entire page after clicking on the button of pagination in the report?

    For regions classic report and tabular forms, use the report property allow partial Page Refresh to specify that only the lines of the report for each set of pagination are requested, rather than refreshing the whole page.

  • Apex4.2 - interactive report shows more than 15 lines

    How is it possible to show more than 15 rows?
    If I put in place in the repoert attributes the line number less than 15 it works, but for example 100
    It shows me only 15 and the page on the next page button.

    How is it possible to work with 120 records so that 100 will be shown
    and 20 on the next page?

    Hello

    When you run your page where IR, you can in the action menu control how many lines is displayed per page
    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35125/ir_using.htm#sthref1354

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • more than 10000 lines excellent download interactive report

    Dear all,

    I am havig a lot of data in the table and on this basis I created an interactive report. Now the user wants to download more than 10000 records in excellent.
    How to do this?

    When I tried to download, it comes only 10000 records in excel. Please help me solve this problem?


    Concerning
    Dhanush.R

    Hello

    Change the interactive report.

    Under report attributes... Select the paging tab, you will find number of Maximum lines TextBox... change of 10000 for all what you want to be maximum

    Kind regards
    Shijesh

  • More than 1 SQL query with checkbox and error invalid number report

    Hi all

    I have two SQL query reports that each has an apex_item.checkbox and two processes for each report.  A report/process works very well.  It gives me an error of invalid number.

    In addition, another query SQL (editable report) gives me the following error when using the Multi line process, delete.

    ORA-06502: PL/SQL: digital or value error: character number conversion
    error ORA-06502: PL/SQL: digital or value error: character number conversion
    error
    Ok

    When I got a report from SQL query (with box and a process) and the query SQL (editable report) everything worked.  It stopped working when I added another SQL query report (with box and a process).

    A SQL query has the following in my query: apex_item.checkbox(3,email_id,'UNCHECKED') ""

    The other SQL query has the following: apex_item.checkbox(2,b.file_id,'UNCHECKED') ""

    Any help will be greatly appreciated,

    Sylvia

    Hi Reema,

    I've recreated the region and now it works!

    Thank you for this, looking at

    Sylvia

  • Add more than 2 lines for a select statement without inserting rows in the base table

    Hi all

    I have a below a simple select statement that is querying a table.

    Select * from STUDY_SCHED_INTERVAL_TEMP
    where STUDY_KEY = 1063;

    but here's the situation. As you can see its return 7 ranks. But I must add
    2 rows more... with everything else, default or what exist... except the adding more than 2 lines.
    I can't insert in the base table. I want my results to end incrementing by 2 days in
    measurement_date_Taken on 01-APR-09... so big measurement_date_taken expected to
    end at study_end_Date...



    IS IT STILL POSSIBLE WITHOUT INSERT ROWS IN THE TABLE AND PLAYIHY ALL AROUND WITH
    THE SELECT STATEMENT?

    Sorry if this is confusing... I'm on 10.2.0.3

    Published by: S2K on August 13, 2009 14:19

    Well, I don't know if this request is as beautiful as my lawn, but seems to work even when ;)
    I used the "simplified" version, but the principle should work for your table, S2K.
    As Frank has already pointed out (and I fell on it while clunging): simply select your already existing lines and union them with the 'missing documents', you calculate the number of days that you are "missing" based on the study_end_date:

    MHO%xe> alter session set nls_date_language='AMERICAN';
    
    Sessie is gewijzigd.
    
    Verstreken: 00:00:00.01
    MHO%xe> with t as ( -- generating your data here, simplified by me due to cat and lawn
      2  select 1063 study_key
      3  ,      to_date('01-MAR-09', 'dd-mon-rr') phase_start_date
      4  ,      to_date('02-MAR-09', 'dd-mon-rr') measurement_date_taken
      5  ,      to_date('01-APR-09', 'dd-mon-rr') study_end_date
      6  from dual union all
      7  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('04-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
      8  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('09-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
      9  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('14-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
     10  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('19-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
     11  select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('23-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
     12  select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('30-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual
     13  ) -- actual query:
     14  select study_key
     15  ,      phase_start_date
     16  ,      measurement_date_taken
     17  ,      study_end_date
     18  from   t
     19  union all
     20  select study_key
     21  ,      phase_start_date
     22  ,      measurement_date_taken + level -- or rownum
     23  ,      study_end_date
     24  from ( select study_key
     25         ,      phase_start_date
     26         ,      measurement_date_taken
     27         ,      study_end_date
     28         ,      add_up
     29         from (
     30                select study_key
     31                ,      phase_start_date
     32                ,      measurement_date_taken
     33                ,      study_end_date
     34                ,      study_end_date - max(measurement_date_taken) over (partition by study_key
     35                                                                          order by measurement_date_taken ) add_up
     36                ,      lead(measurement_date_taken) over (partition by study_key
     37                                                          order by measurement_date_taken ) last_rec
     38                from   t
     39              )
     40         where last_rec is null
     41       )
     42  where rownum <= add_up
     43  connect by level <= add_up;
    
     STUDY_KEY PHASE_START_DATE    MEASUREMENT_DATE_TA STUDY_END_DATE
    ---------- ------------------- ------------------- -------------------
          1063 01-03-2009 00:00:00 02-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 04-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 09-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 14-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 19-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 23-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 30-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 31-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 01-04-2009 00:00:00 01-04-2009 00:00:00
    
    9 rijen zijn geselecteerd.
    

    Is there a simpler way (in SQL), I hope that others join, and share their ideas/example/thoughts.
    I feel that it is using more resources there.
    But I have to cut the daisies before now, they interfere my 'grass-green-ess";)

Maybe you are looking for

  • How to set homepage as Firefox 10 bookmarks

    How can I put my homepage as my favorites, 10 of Firefox? I'm also just switch to Linux, but the documentation I see the platform isn't the problem.The problem is that Firefox has made bookmarks in the folder a moving target.So I can't put the home p

  • Equium A100-306: cannot set resolution 1440 x 900 on external monitor

    Has anyone encountered this problem? I searched the web without success and it doesn't seem to be all programs that will force the graphics in this resolution. Is only shown for linux-based systems which have a complex solution for this. I have a new

  • The issue of the coverage of the application update

    Hello.I have a problem with my active frame.Please look at my code bellow. main.cpp: #include "applicationui.hpp" #include #include #include #include #include using namespace bb::cascades; Q_DECL_EXPORT int main(int argc, char **argv) { qmlRegisterTy

  • Email to Smartphones blackBerry on PC

    Is there a view 2 see my email @blackberry.net on my PC at home on outlook express or a web page.had if this can be done on outlook express, how do I put in place.

  • I can't find the inDesign right tools to produce my bike map.

    I produce a mountain BIKE-trail map that has several different trails in the same area. In order to make a trail on top of the underlying image of the map, I used the pen tool and the path left open. I then turn off the fill color, choose a proper st