Export data from several tables

Hello

I use the Data Export utility in SQL Developer 4.0.1. There is an option to choose a list of tables I want to understand, however in my case, I can get the list of tables by running a query against the USER_TABLES and applying some NOT LIKE filters. How to move this list to the export utility.

Is it possible to do so.

for example

SELECT table_name 
from user_tables
WHERE NOT (table_name LIKE 'DOD%' OR table_name LIKE 'DAY%' OR table_name LIKE '%_HIST');

Whatever the result I get is a list of the tables, that I need to export.

Kind regards

Vikram R

You can not.

But you can add these tables to a cart (see view > Cart) and passing to the export utility.

Tags: Database

Similar Questions

  • Export data from the table

    Hello. Is it possible to export data from a table in Oracle using SQL Loader? If Yes, can you tell a good examples?

    Hello

    Hello. Is it possible to export data from a table in Oracle using SQL Loader?

    No, with SQL * Loader, you can load data from external files into tables not export.

    coil c:\temp\empdata.txt
    sqlplus abc.sql (assumes that abc.sql runs select * from emp)
    spool off

    It cannot work like this, because the declaration of the COIL is not recognized outside the SQL * Plus the term.

    But, you can include the statement of the COIL in abc.sql like this:

    spool c:\temp\empdata.txt
    select * from emp;
    spool off
    

    Then, you just have to run the SQL script as follows:

    sqlplus  @abc.sql 
    

    However, I advise you to use Oracle SQL Developer, this is a free tool and with it you can export a Table in several types of format (html, xml, csv, xls,...).

    Please find attached a link to this tool:

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/Overview/index.html

    Hope this helps.
    Best regards
    Jean Valentine

  • How to export data from the table with the colouring of cells according to value.

    Hi all

    I use jdeveloper 11.1.1.6

    I want to export data from the table with a lot of formatting. as for color cells based on value and so much. How to do this?

    You can find us apache POI-http://poi.apache.org/

    See this http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html

  • export data from the table in xml files

    Hello

    This thread to get your opinion on how export data tables in a file xml containing the data and another (xsd) that contains a structure of the table.
    For example, I have a datamart with 3 dimensions and a fact table. The idea is to have an xml file with data from the fact table, a file xsd with the structure of the fact table, an xml file that contains the data of the 3 dimensions and an xsd file that contains the definition of all the 3 dimensions. So a xml file fact table, a single file xml combining all of the dimension, the fact table in the file a xsd and an xsd file combining all of the dimension.

    I never have an idea on how to do it, but I would like to have for your advise on how you would.

    Thank you in advance.

    You are more or less in the same situation as me, I guess, about the "ORA-01426 digital infinity. I tried to export through UTL_FILE, content of the relational table with 998 columns. You get very quickly in this case in these ORA-errors, even if you work with solutions CLOB, while trying to concatinate the column into a CSV string data. Oracle has the nasty habbit in some of its packages / code to "assume" intelligent solutions and converts data types implicitly temporarily while trying to concatinate these data in the column to 1 string.

    The second part in the Kingdom of PL/SQL, it is he's trying to put everything in a buffer, which has a maximum of 65 k or 32 k, so break things up. In the end I just solved it via see all as a BLOB and writing to file as such. I'm guessing that the ORA-error is related to these problems of conversion/datatype buffer / implicit in the official packages of Oracle DBMS.

    Fun here is that this table 998 column came from XML source (aka "how SOA can make things very complicated and non-performing"). I have now 2 different solutions 'write data to CSV' in my packages, I use this situation to 998 column (but no idea if ever I get this performance, for example, using table collections in this scenario will explode the PGA in this case). The only solution that would work in my case is a better physical design of the environment, but currently I wonder not, engaged, as an architect so do not have a position to impose it.

    -- ---------------------------------------------------------------------------
    -- PROCEDURE CREATE_LARGE_CSV
    -- ---------------------------------------------------------------------------
    PROCEDURE create_large_csv(
        p_sql         IN VARCHAR2 ,
        p_dir         IN VARCHAR2 ,
        p_header_file IN VARCHAR2 ,
        p_gen_header  IN BOOLEAN := FALSE,
        p_prefix      IN VARCHAR2 := NULL,
        p_delimiter   IN VARCHAR2 DEFAULT '|',
        p_dateformat  IN VARCHAR2 DEFAULT 'YYYYMMDD',
        p_data_file   IN VARCHAR2 := NULL,
        p_utl_wra     IN VARCHAR2 := 'wb')
    IS
      v_finaltxt CLOB;
      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_filehandle UTL_FILE.FILE_TYPE;
      v_samefile BOOLEAN      := (NVL(p_data_file,p_header_file) = p_header_file);
      v_CRLF raw(2)           := HEXTORAW('0D0A');
      v_chunksize pls_integer := 8191 - UTL_RAW.LENGTH( v_CRLF );
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      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,4000);
        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,4000);
        END CASE;
      END LOOP;
      -- --------------------------------------
      -- This part outputs the HEADER if needed
      -- --------------------------------------
      v_filehandle := UTL_FILE.FOPEN(upper(p_dir),p_header_file,p_utl_wra,32767);
      --
      IF p_gen_header = TRUE THEN
        FOR j        IN 1..col_cnt
        LOOP
          v_finaltxt := ltrim(v_finaltxt||p_delimiter||lower(rec_tab(j).col_name),p_delimiter);
        END LOOP;
        --
        -- Adding prefix if needed
        IF p_prefix IS NULL THEN
          UTL_FILE.PUT_LINE(v_filehandle, v_finaltxt);
        ELSE
          v_finaltxt := 'p_prefix'||p_delimiter||v_finaltxt;
          UTL_FILE.PUT_LINE(v_filehandle, v_finaltxt);
        END IF;
        --
        -- Creating creating seperate header file if requested
        IF NOT v_samefile THEN
          UTL_FILE.FCLOSE(v_filehandle);
        END IF;
      END IF;
      -- --------------------------------------
      -- This part outputs the DATA to file
      -- --------------------------------------
      IF NOT v_samefile THEN
        v_filehandle := UTL_FILE.FOPEN(upper(p_dir),p_data_file,p_utl_wra,32767);
      END IF;
      --
      d := DBMS_SQL.EXECUTE(c);
      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
            -- VARCHAR2
            DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
            v_finaltxt := v_finaltxt || p_delimiter || v_v_val;
          WHEN 2 THEN
            -- NUMBER
            DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
            v_finaltxt := v_finaltxt || p_delimiter || TO_CHAR(v_n_val);
          WHEN 12 THEN
            -- DATE
            DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
            v_finaltxt := v_finaltxt || p_delimiter || TO_CHAR(v_d_val,p_dateformat);
          ELSE
            v_finaltxt := v_finaltxt || p_delimiter || v_v_val;
          END CASE;
        END LOOP;
        --
        v_finaltxt               := p_prefix || v_finaltxt;
        IF SUBSTR(v_finaltxt,1,1) = p_delimiter THEN
          v_finaltxt             := SUBSTR(v_finaltxt,2);
        END IF;
        --
        FOR i IN 1 .. ceil( LENGTH( v_finaltxt ) / v_chunksize )
        LOOP
          UTL_FILE.PUT_RAW( v_filehandle, utl_raw.cast_to_raw( SUBSTR( v_finaltxt, ( i - 1 ) * v_chunksize + 1, v_chunksize ) ), TRUE );
        END LOOP;
        UTL_FILE.PUT_RAW( v_filehandle, v_CRLF );
        --
      END LOOP;
      UTL_FILE.FCLOSE(v_filehandle);
      DBMS_SQL.CLOSE_CURSOR(c);
    END create_large_csv;
    
  • Remove data from several tables

    I want to delete the data of all tables in this database which having device_id = "A1".
    How to do it. 2 questions heres
    (1) there are about 40 tables of the database and do not know what table contained the device_id field.
    (2) we have several such deviced_id should be deleted, for example device_id = 'A1', or device _id = "A2", "A3". can sql read this info from a table and the process?  Thank you

    Look at this example

    SQL> create table t1 (device_id varchar2(2));
    
    Table created.
    
    SQL> create table t3 (device_id varchar2(2));
    
    Table created.
    
    SQL> insert into t1 values('A1');
    
    1 row created.
    
    SQL> insert into t1 values('A');
    
    1 row created.
    
    SQL> insert into t3 values('A1');
    
    1 row created.
    
    SQL> insert into t3 values('B');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from t1;
    
    DE
    --
    A1
    A
    
    SQL> select * from t3;
    
    DE
    --
    A1
    B
    
    SQL> select table_name from all_tab_columns where column_name='DEVICE_ID';
    
    TABLE_NAME
    ------------------------------
    T1
    T3
    
    SQL> DECLARE
      2     CURSOR my_cur
      3     IS
      4        SELECT table_name
      5          FROM all_tab_columns
      6         WHERE column_name = 'DEVICE_ID';
      7  BEGIN
      8  FOR MY_REC IN MY_CUR LOOP
      9      --DBMS_OUTPUT.PUT_LINE('delete from '||my_rec.table_name||' where device_id=''A1''');
     10      EXECUTE IMMEDIATE 'DELETE FROM '||my_rec.table_name||' WHERE device_id=''A1''';
     11  END LOOP;
     12
     13  END;
     14  /
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from t1;
    
    DE
    --
    A
    
    SQL> select * from t3;
    
    DE
    --
    B
    
    SQL>
    

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com

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

  • Reading data from several tables on Apex

    Hi all

    My apologies if the below question has been answered already, just that I couldn't find the relevant discussion.

    I have an interactive report I want to use to display data in 2 tables:

    Table 1 about 10 columns but I want to just see 3 columns, Field1 and Field2 field3.

    Table 2 has about 5 columns and I want only showing 2 of these columns (Column1 and Column2) on the same report with columns in table 1 above.

    I need my report to look like this: field1, Field2 field3 Column1 Column2

    FROM table1, table2

    I tried the example above and it seems to not work, can I please get assistance on how to achieve this.

    Thanks in advance.

    Hello

    Thanks for your reply, I actually found and answer the question.

    I wanted to display the data in 2 tables (views) distinct have no joints, and so therefore I couldn't join them with a join condition.

    What I did was created a dummy field on the two tables with similar values attached tables using these dummy fields and it works perfectly.

    Thank you.

  • Getting data from several tables

    Hello

    I started a few days working with Oracle TopLink, and since yesterday, I came across a problem that I can not find a solution, so I hope that someone will direct me in the right direction with this one... I'm using the tutorial provided by Oracle [http://www.oracle.com/technology/products/ias/toplink/doc/11110/tutorial/index.htm].

    Assuming I want to get the most effective possible , the following data (* only * these data): first_name_of_employee, last_name_of_employee, number_of_phones_of_employee.
    The Employee and phone tables are involved, table phone has an EMP_ID field that points to the field of the employee EMP_ID. How could I get such data for all employees? The first two pieces of data are pretty easy to get, but get one final turned out to be more difficult than I imagined...

    Any help will be most appreciated.

    Thank you
    Vlad

    You can probably use a ReportQuery and Expressions for this query. In TopLink you can do something you can do in JPQL using Expressions, like our support JPQL uses Expressions. To get the number of phones, you can use a count() on the id of the employee's phone with a groupBy to id of the employee. Get back the name and the name can be tricky depending on your database because I think that you can select return values that groupBy, you might try grouping by first and last name as well.

    that is something like:
    The ExpressionBuilder builder = new ExpressionBuilder();
    Query ReportQuery = new ReportQuery (Builder, Employee.class);
    query.addAttribute ("firstName");
    query.addAttribute ("lastName");
    query.addCount (builder.anyOf("phones").get ("id"));
    query.addGrouping ("id");
    query.addGrouping ("firstName");
    query.addGrouping ("lastName");

    ---
    James: http://www.eclipselink.org

  • 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

  • Question about exporting data from Virtualbench.

    Hello

    I am new to the forums and VirtualBench and hoped that someone might be able to help.

    When I export data from the VirtualBench, I get 4 columns of data for the 2 channels. They are "1 Min", "1Max", "2 Min", "2Max.

    Example:







































    Timestamps (ns) 1 min 1 Max 2 min Max 2
    -3000600000 -0.205761317 0.12345679 -0.013168724 -0.001646091
    -2990598000 -0.205761317 0.12345679 -0.013168724 -0.003292181
    -2980596000 -0.205761317 0.12345679 -0.013168724 -0.003292181
    -2970594000 -0.205761317 0.12345679 -0.013168724 -0.001646091

    I don't understand what means min/max. I have not any spread. VirtualBench takes in fact several samples at each point?

    Thank you.

    In some places, VirtualBench application will automatically the peak of detection equipment.

    Peak - detect mode, over-samples scope and returns the minutes and the maximum voltage in each period the sample.

    You can manually control the sample mode by going to the settings of acquisition:

  • How do I export data from one day to backup disk.

    Hi all

    Here we have a requirement like, we need to download the data from one day to the external drive and we must compire the exported data and the data in the table.
    I googled and I have discovered that using expdp command we can export the table content, but my Question is how do I export data from one day. My table having 2 years of data and I need download the data of only one day.

    expdp scott/tiger@db10g tables = EMP, DEPT = TEST_DIR dumpfile = EMP_DEPT.dmp expdpEMP_DEPT.log = logfile directory

    Can someone tell me how to download data from one day to the table & compare data exported with the data in the table. (I know both exported and data of the table data will be the same that we are downloading data of the actual table, but for tests, I need to know how to compare).


    Thank you
    Sree

    However, I do not understand the scenario but here is a way to compare:
    (1) change the name of the table newly created in another name
    (2) import the exported file once again

    you will have the same data in both tables

  • Does anyone have a good experience, export data from cubesavvy?

    Merry Christmas / Happy holidays everyone.

    Does anyone have a good experience, export data from ASO using cubesavvy?

    I tried but the filters don't seem to work.  I entered about 9 filters - with the members and parents to 9 dimensions.  However, the native text file that it created does not seem to use these filters.  I select 'Member = FY15' but it has exported the native file, had FY12.  I think this tool takes the native text file it generates and create a report of the column from it.

    http://www.cubesavvy.com/parse-ASO-export-to-columns/

    We use it because our financial report and the Smartview crashes when we tried to explore the zero level for Dept (we have more than 5 thousand), projects (more than 5,000) and accounts (more than 200).  It looks like a simple report.  Our report EN used to support 20 minutes now it crashes.  We must perhaps compact contour and use the motion tracking.

    R,

    David

    Hi David,

    Harry Gates here, the developer of cubeSavvy. Dozens of people successfully using the export ASO Analyzer feature, with and without filters. This includes a few very large companies with big data and the large contours (100s of exports of GBs and hundreds of thousands of members). If the filters are not limit the written lines, it has been my experience that the names of typical members in do not match those of the file.

    You can reach me at [email protected] if you have any other questions. You can also send me your otl and export, if they are not too sensitive and I'll take a look.

    Kind regards

    Harry

  • How to export data from user information in ACS 5.5?

    Hi all

    You can see the photo, how to export data from user information in ACS 5.5? Thank you!

    Sincerely yours

    Hello

    Yes you are right.

    Kind regards

    Aditya

    Please evaluate the useful messages and mark the correct answers.

  • I want to export data from a scanned online in the same form in my printer form

    I want to export data from a scanned online in the same form in my printer form

    Something digital is an image. A picture in itself has no data. It's just the picture of things.

    Thus, you can not export or transfer, what is not there.

    Be well...

  • Is it possible to see/get the data from the table to a dump file

    I have files dmp generated using expdp on oracle 11 g...

    expdp_schemas_18MAY2013_1.dmp

    expdp_schemas_18MAY2013_2.dmp

    expdp_schemas_18MAY2013_3.dmp

    Can I use a settings file given below to get the data from the table in the file sql or impdp the only option to load the data of table in database.

    VI test1.par

    USERID = "/ as sysdba".

    DIRECTORY = DATA

    dumpfile=expdp_schemas_18MAY2013%S.dmp

    SCHEMAS = USER1, USER2

    LOGFILE = user_dump_data.log

    SQLFILE = user_dump_data. SQL

    and impdp parfile = test1.par.

    No,

    DataPump cannot retrieve a dumpfile data in a flat file.

    Dean

Maybe you are looking for