Export tables to a (csv) several worksheets in a workbook

Hello
I have a script for users of the audit and parameters and so far I have exported arrays of different csv files.
Is it possible to export, for example, two tables for two worksheet to a csv file?

Thank you! :)

Hello
A CSV in not an excel document - it can be opened as is it it an Excel but there is no way to convert a .csv into a multi spreadsheet file.

You need a tool that can wtire this natively do this or something or some vba within excel to extract the data and fill several sheets?

Kind regards
Harry

Tags: Database

Similar Questions

  • Several worksheets in a workbook

    Hello world

    Hope all is well,

    When a workbook has several data sheets,
    the tabs are: table layout, the conditions, calc
    specific to each datasheet?


    I created a second data sheet, right on the first data sheet
    then clicking on duplicate as table

    It seems that the calculations and conditions has copied, too.
    I didn't need the calculations on the second data sheet, therefore deleted,.
    without having a negative impact on the first sheet of data...

    can you please confirm this? THX, sandra

    Uh, you may have created yourself a bit of a waste. I hope that you are working with a test copy. When you have several worksheets in a workbook, each datasheet may be unique, but all the worksheets share conditions, calculations and settings. If you want to be very careful about deleting something, because it will remove off the entirety of a workbook. What you want to do is to UNCHECK the item (calculation, condition, etc.) you want to use for the specific data sheet. Therefore, do not delete, but deselect. Who maintains the State, say, active in the workbook, but not active for that particular sheet. Even with the presentation of the map. You can have different items in a spreadsheet, but you want to deselect all the items in the other worksheets you want to use in this journal. Therefore be a little careful with multiple sheets in a workbook. You can have uniqueness between the sheets, but need attention spoil other sheets, during the creation of this singularity. I learned this the hard way, as it seems that you have, but at least I was playing with a binder of test when I did my learning through experience. I hope this helps a little.

    John Dickey

  • Export data from the database Table in the CSV file with OWB mapping

    Hello

    is it possible to export data from a database table in a CSV with an owb mapping. I think that it should be possible, but I didn't yet. Then someone can give me some tips how to handle this? Someone has a good article on the internet or a book where such a problem is described.

    Thank you

    Greetings Daniel

    Hi Daniel,.

    But how do I set the variable data file names in the mapping?

    Look at this article on blog OWB
    http://blogs.Oracle.com/warehousebuilder/2007/07/dynamically_generating_target.html

    Kind regards
    Oleg

  • How to extract data from an arbitrary xml file and export it to a CSV friendly?

    Hallo,
    I am facing big problems in the use of XML files. I have a
    application that generates XML files with clusters containing arrays
    and scalars as in the example pasted below. My task is to
    Read it and export the data into a CSV document readable by a human.
    Since I do not know the actual content of the cluster, I need some sort
    Smart VI through the XML looking for berries
    and other data structures for export properly in the CSV file
    format (columns with headers).
    Thank you



    3


    6


    0



    1



    2



    3



    4



    5




    3.14159265358979



    Ciao

    Rather than to get the

    node, you can just go directly to the node since ' one that really interests you. Basically what it means to determine the elements of table how much you have, and it depends on if you have 1 or 2 knots . The rest is just of the child nodes and the next siblings. See attachment as a starting point. The attached XML file is a table 2D (change the .xml extension).

    Notes on the example:

    • I did not close properly references, so it's something you need to do.
    • It is limited to tables 1 d or 2D.
    • I suggest using a control path of the file to specify the input XML file and path of the file/folder control to specify the location of the output file.

  • Export tables to flat files

    Hello

    Can I export tables to flat files (csv) using pl/sql. I mean suppose I have 2 paintings "student" and "topic" and I want to create two files student.csv and subject.csv please let me know, if I can do using pl/sql for tables at once.

    Even if I can do it for a single table, I can write a script to automate for all tables. Please let me know with your suggestions. Appreciate your help.

    Thank you

    As user sys:

    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    /
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    /
    

    As myuser:

    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),',');
      END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      --
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT WHEN v_ret = 0;
        v_finaltxt := NULL;
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := ltrim(v_finaltxt||','||v_n_val,',');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
          ELSE
            v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
          END CASE;
        END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;
    

    This allows the header line and the data to write into files separate if necessary.

    for example

    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    
    PL/SQL procedure successfully completed.
    

    Output.txt file contains:

    empno,ename,job,mgr,hiredate,sal,comm,deptno
    7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20
    7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30
    7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30
    7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20
    7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30
    7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30
    7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10
    7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20
    7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10
    7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30
    7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20
    7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30
    7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20
    7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10
    

    The procedure allows for the header and the data to separate files if necessary. Just by specifying the file name "header" will put the header and the data in a single file.

    Adapt to the exit of styles and different types of data are needed.

  • Export of data to CSV

    Hello

    I have a problem with export report in CSV format. Report about 100,000 rows and 50 columns from multiple tables and views. It is generated long enough, but the table is displayed on the page (after approx. 3 minutes). Unfortunately, when I want to export all data to CSV format, the process takes much, much longer and after 30 minutes is still unfinished, which means for me - the blowing process. The problem does not occur when the amount of data is small (e.g. 30000 lines, takes about 5 minutes).

    To export the data in CSV format, I use second report with model "Export: CSV" invoking the button click. I do not use the option to export in a report that displays data on the page related to the use of apex_items.

    How can I solve this problem? Handy is the export process? It is a matter of slow server and connection or maybe the ability of the APEX problem?

    You have never exported a similar amount of data?

    Kind regards
    Przemek

    Hello

    OK - this sounds like it could be a server problem. You should ask your DBA to see what is happening while the process is running. You try to build approximately 5 million pieces of data, so he could have trouble with the CPU, ram and/or tempdb space

    Andy

  • Export tables bit!

    Hi all

    I have a database that has 50000 tables. Now I want to export only 6000 paintings out of it.

    Generally in command exp, we will use the identifier "Tables" to export tables that we want. But above scenario, we need to mention the names of all the 6000 tables tables?

    Is there another way to do this?

    Kind regards

    Pradeep. V

    Hello

    You can use something like that to use the results of a query to drive what is exported:

    http://dbaharrison.blogspot.de/2013/05/expdp-dynamic-list-of-tables.html

    See you soon,.

    Harry

  • How can I export table and cell styles to use in another InDesign document?

    I've been looking for... and looking but cannot find out how to export table styles in InDesign CC. If there is an option of the control panel load table styles, it goes without saying that there should be an export. Any help would be appreciated, thanks.

    Frank.GRG wrote:

    If there is an option of the control panel load table styles, it goes without saying that there should be an export.

    I understand your logic, but you think too much of it. Charge function Styles opposes the need for an export feature. When you call the function of load, you simply select the source document, then the individual styles that exist already in it. They need not be implemented beforehand.

  • Create an external table to import csv to dynamic action

    Hello

    I'm trying to import data from a csv file into a table. The csv is located on the server and I try to do an external table to copy its contents to the master data table.
    I can't even save the code, without this error:
    PLS-00103: Encountered the symbol "CREATE" when expecting one of the following:
    ( begin case declare exit for goto if loop mod null pragma raise return select update
    while with <an identifier> <a double-quoted delimited-identifier> <a bind variable>
    << continue close current delete fetch lock insert open rollback savepoint set sql execute
    commit forall merge pipe purge
    It works very well in the SQL Developer.
    CREATE TABLE  "DATA_CSV" 
       (     "C1" VARCHAR2(255), 
         "C2" VARCHAR2(255), 
         "C3" VARCHAR2(255), 
         "C4" VARCHAR2(255), 
         "C5" VARCHAR2(255), 
         "C6" VARCHAR2(255), 
         "C7" VARCHAR2(255), 
         "C8" VARCHAR2(255), 
         "C9" VARCHAR2(255), 
         "C10" VARCHAR2(255), 
         "C11" VARCHAR2(255), 
         "C12" VARCHAR2(255), 
         "C13" VARCHAR2(255), 
         "C14" VARCHAR2(255), 
         "C15" VARCHAR2(255), 
         "C16" VARCHAR2(255), 
         "C17" VARCHAR2(255), 
         "C18" VARCHAR2(255), 
         "C19" VARCHAR2(255), 
         "C20" VARCHAR2(255)
       )
        ORGANIZATION EXTERNAL
        (
          TYPE ORACLE_LOADER
          DEFAULT DIRECTORY FTP_FOLDER
          ACCESS PARAMETERS (
            records delimited BY newline
            fields terminated BY ';'
            optionally enclosed BY '"'
            lrtrim
            missing field VALUES are NULL
          )
        LOCATION ('foo.csv')
        );
    {code}
    
    The server I work on, runs on Apex 4.2.2.
    
    Thanks in advance, for your help
    Skirnir                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

  • Export tables selected when running

    Hello

    We expect to write export query table in our database to oracle 11 g 2 using EXPDP. We want to include only a set of tables, in the export dump file. This series of paintings, are stored in the main table.

    So, at any time, we do export tables that are out of select table_name from master_table

    Ex: aa/aa@aa expdp tables = "select table_name from tables_to_exp '...

    Yat - der a way to achieve this?


    Thank you!

    851602 wrote:

    Still the same result...

    You cannot use the parameter TABLES in such a way. Use INCLUDE:

    expdp aa/aa@aa include="table:\" in (select table_name from tables_to_exp_owner.tables_to_exp)\""
    

    SY.

  • How to create a table of contents of several levels?

    How to create a table of contents of several levels, or at least a TOC of two levels, so that when you click on the sign '+' or something similar to the first level, the second level will increase?

    Select the item/s from the list Table of contents, and then use the arrows that will apear at the bottom of the skin Editor to move them to the right.  This will cause a new point TOC to appear as a cap for all items indented beneath it.

    Be aware that during the execution by clicking on this article of the topic does not operate the game to slide under him.  There is no that expand the group to show slides of the child. You will then need to click on the first slide of the child in the group to trigger playback.  Personally I don't like the way it works, but that's how it is.  Register a feature (like me) request if you want that it works differently in a future version of Captivate.

  • export table from oracle 10g with oracle 8i exp utlity

    Hello

    I export table from oracle 10g with oracle 8i exp the binaries:
    bash-2.05$ exp pin/pin file=prakash.dmp tables=prakash@APPSDB
    
    Export: Release 8.1.7.0.0 - Production on Tue Aug 4 09:58:18 2009
    
    (c) Copyright 2000 Oracle Corporation.  All rights reserved.
    
    
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - 64bit Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - 64bit Production
    Export done in UTF8 character set and UTF8 NCHAR character set
    
    About to export specified tables via Conventional Path ...
    EXP-00011: PIN.PRAKASH@APPSDB does not exist
    Export terminated successfully with warnings.
    I can't please inputs appreciated.

    axis/axis here is the user and pwd to oracle 8i
    Prakash is the name of a table in oracle 10g

    appsdb is the link of database

    Thank you

    Prakash GR

    axis/axis here is the user and pwd to oracle 8i

    Prakash is the name of a table in oracle 10g >

    To export the database 10g PRAKASH table, use the 8i export utility.

    log tables = prakash.log file = prakash.dmp exp = feedback = 100000 PRAKASH

    Who is the owner of the table? You have the TNS entry for the 10g database in your NET80 folder. If this isn't the case, then put an entry in there. Then, when you are prompted for the user name

    username:newcolsys@tns_alias/password

    HTH
    Anand

  • Export to Excel or CSV

    Hi all

    Please help me on the following.

    I am generating a report and would like to export to Excel or CSV, which is easier. Please let me know how I can do.

    Thank you very much in advance

    Published by: user639035 on November 4, 2008 05:54

    Hello

    You have enabled output CSV?

    Go to report > report attributes > export report > "Activate CSV Output": Yes

    I hope this helps.

    -Chris

  • Export-Csv several files

    It is asked that we list all powered on virtual machines in a cluster to backup purposes.  I am able to get this information into a CSV file.  However, the backup engineer want a single file for each proxy server that uses this file to save these list of virtual machines.

    A simple way to do this is the same as this:

    # Author: Rhys Campbell
    # 2009-09-22
    # Split csv files
    # Path to the csv file. Must contain a sequential unique whole ID column
    $csvFile = "$Env:USERPROFILE\bigcsvFile.csv";
    # Slot in how many files?
    $split = 10;
    # Get the content of the csv file
    $content = import-Csv $csvFile.
    # If we start with Id = 1 in the csv file
    $start = 1;
    $end = 0;
    documents calc # per file
    $records_per_file = [ent] [Math]: ceiling ($content.) Count / $split);
    for ($i = 1; $i - $split; $i ++)
    {
    # Set the value of end of selection of records
    $end += $records_per_file;
    # Need to cast to int or we get an alphabetical comparison when we want a digital
    $content | Where-Object {[int] $_.} ID - ge $start - and [int] $_. ID - the $end} | Export-Csv-Path "$Env:USERPROFILE\file$ i.csv '-NoTypeInformation;
    # Update the starting value for record selection
    $start = $end + 1;
    }

    Credit source: http://www.youdidwhatwithtsql.com/splitting-csv-files-with-powershell/374

    I think that the next PowerCLI script will do the job.

    param($Cluster,
          $NumberOfProxyServers = 3,
          $FileName = 'proxy')
    
    $VMs = Get-Cluster $Cluster |
           Get-VM |
           Sort-Object -Property Name
    
    $NumberOfVMs =$VMs.Count
    $NumberOfVMsPerProxyServer = $NumberOfVMs/$NumberOfProxyServers
    
    for($i = 0; $i -lt $NumberOfProxyServers; $i++)
    {
      $Range = (($i*$NumberOfVMsPerProxyServer)..(($i+1)*$NumberOfVMsPerProxyServer-1))
      $VMs |
      Select-Object -Property Name |
      Select-Object -Index $Range |
      Export-Csv -Path "$FileName$i.csv" -NoTypeInformation -UseCulture
    }
    

    Save the script as a .ps1 file, for example, New - VMProxyFile.ps1 and run it as:

    . \New-VMProxyFile-cluster "YourClustername".

    Proxy file numbers starting by 0. I hope this isn't a problem.

  • Export data from Oracle table to a .csv file by putting a condition on the value of a column

    Hello gurus,

    I have the following data in my table

    ROWID name version date

    1 oracle 11.1 20/12/2013

    Java 2 7 12/10/2011

    1 oracle 12.1 28/12/2013

    1 oracle 10.2 12/06/2010

    Now I need a general sql/plsql code who wrote the columns with a specific value to the rowid.

    My output should look like

    1,Oracle,11.1,12/20/2013

    1,Oracle,12.1,12/28/2013

    1,Oracle,10.2,06/12/2010

    Here, I want to pass the value as a parameter dynamically

    Can someone help me with the sql/plsql.

    Hello

    If you use the IN operator:

    Select rowid_col

    || ',' || name_col

    || ',' || version_col

    || ',' || To_char (date_col, 'HH24:MI:SS of Mon-DD-YYYY') AS csv_text

    from your_table

    where rowid_col IN (& input_values);

    then & input_values can be a unique number (e.g. 1) or a list separated by commas (for example, 1,2,3) numbers.  Don't put NO space around the comma.

Maybe you are looking for