DataPump to export some tables

Hi all

I would like to export some tables via datapump. For example, all the tables start with EMP, but not EMP_ADMIN. The following script does NOT work for me:

expdp / SCHEMAS = MYSCHEMA INCLUDE = TABLE: 'LIKE 'EMP %' ' EXCLUDE = TABLE: 'LIKE '% EMP_ADMIN' ' DUMPFILE = dpump_dir1:exp_inc.dmp NOLOGFILE = y

Any suggestion on how to use the name clause in the INCLUDE parameter?

Thank you!

Hello

I've updated by blog post link above - I responded to your comment here.

The problem is that you can't say

Select x from y

Union z

you have to say

Select x from y

Union

Select double z

The additional table names must be selected from somewhere.

See you soon,.

Rich

Tags: Database

Similar Questions

  • DRM for export missing some tables

    Hi all

    I use DRM 11.1.2.3.300 and I am trying to perform an export from an Oracle DRM schema by using the following command:

    exp FILE = userid=DRM_DB/Password@MYINSTANCE y = DRMAPP1_20130913.dmp direct statistics = none compress = n log = EXP_DRM_DB_20130913.log

    However, once the export is complete, I look in the log file and see that some tables were exported from not, such as RM_BOOK and RM_BOOK_ITEM.

    Am I missing something to order exp or something isn't here?

    Thank you

    Why don't you try utility Oracle Datapump to export Oracle database?

    See this: Data Pump Export

    The command is expdp.

    Thank you

    Santy.

  • Data Pump: export/import tables in different schemas

    Hi all

    I use Oracle 11.2 and I would like to use the data pump to export / import data into the tables between the different schemas. The table already exists in the source and target schemas. Here are the commands that I use:


    Script working export:

    expdp scott/tiger@db12 schema = source include = TABLE:------"IN (\'TB_TEST1 ', \'TB_ABC')\ 'directory = datapump_dir dumpfile = test.dump logfile = test_exp.log

    Script to import all the desks:

    Impdp scott/tiger@db12 remap_schemas = rΘpertoire source: target = datapump_dir dumpfile = test.dump logfile = test_imp.log content = data_only table_exists_action = truncate

    Script error for some tables to import:

    Impdp scott/tiger@db12 remap_schemas = source: target include = TABLE:------"IN (\'TB_TEST1')\' directory = datapump_dir dumpfile = test.dump logfile = test_imp.log content = data_only

    Export is good, I got the folling error when I try to import the table TB_TEST1 only: "ORA-31655: no metadata data_or objectsz selected for employment. The user scott is a DBA role, and it works fine when I try to import all tables being export without the include clause.

    It is possble to import some tables but not all tables in the export file?

    Thanks for the help!

    942572 wrote:

    It's good to import all tables exported through Scott, who do NOT have the clause 'include '.

    I have the error only when I try to import some tables with clause "include".

    Can I import only some table since the export dump file? Thank you!

    you use INCLUDE incorrectly!

    do below yourself

    Impdp help = yes

    INCLUDE

    Include the specific object types.

    For example, INCLUDE TABLE_DATA =.

  • export a table to share nfs location

    Dear all,

    Is it possible to export the table to the nfs share dumpfile?

    I try to export, but I met with under problem


    Connected to: Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - Production
    With partitioning, OLAP and Data Mining options
    ORA-39001: invalid argument value
    ORA-39000: bad dump file specification
    ORA-31641: failed to create the dump file ' / expdp/A.dmp.
    ORA-27086: impossible to the locking file - already in use
    Linux error: 37: no locks available
    Additional information: 10

    Thanks for your response

    Hello

    "nfslock" service do you have been started?

    http://msutic.blogspot.jp/2011/05/DataPump-fails-with-Ora-27086-on-NFS.html

  • Export specific tables, with or without data

    Hello
    I am writing a script to export some data tables and other tables WITHOUT. I want a reproducible process (script, procedure, or function) if I don't want to use the Wizard SQL Developer. Can I just run a command EXP in SQL Developer? I'm running just a simple export with the following command but get an error:

    Start
    tables test/test@prod exp is TMP_TEST FILE=C:\Oracle\test.dmp LOG=C:\Oracle\test.log ROWS = N;.
    end;
    /

    Any help is greatly appreciated.
    Thank you
    John

    You can call from PL/SQL is the DBMS_DATAPUMP package. Here's the documentation: http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_datpmp.htm

  • Unable to export specific tables in the schema.

    I created a schema duser, the data is imported and now I want to take some pictures from this scheme.
    the tables are (partyhdr, partyaddressdtl, partycontactdtl, partydsdtl, partytdsexcludedtl, partycurrencydtl)


    D:\ > EXP FILE DUSER/LOG@ORCL = 20121221PARTY0228PM. DMP TABLES = PARTYHDR, PARTYADDRESS
    DTL, PARTYCONTACTDTL, PARTYTDSDTL, PARTYTDSEXCLUDEDTL, PARTYCURRENCYDTL;

    Export: Release 10.1.0.2.0 - Production on Fri dec 21 14:30:21 2012
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Release 10.1.0.2.0 - Production
    Export performed WE8MSWIN1252 and AL16UTF16 NCHAR character set
    About to export specified tables by conventional means...
    . . export of table PARTYHDR 19387 rows exported
    . . export of table PARTYADDRESSDTL 20747 rows exported
    . . export the PARTYCONTACTDTL 226 exported table rows
    . . export the PARTYTDSDTL 53 exported table rows
    . . export the PARTYTDSEXCLUDEDTL 2 exported table rows
    EXP-00011: DUSER. PARTYCURRENCYDTL; There is no
    Export completed successfully with warnings.

    as I check table in schema partycurrencydtl is their AND MONTRANT RECORDS.

    SELECT OBJECT_TYPE OBJECT WHERE OWNER = 'DUSER' AND OBJECT_NAME = "PARTYCURRENCYDTL";

    OBJECT_TYPE
    -------------------
    TABLE

    I can understand why this particular table does not export.

    Kindly help.

    Please use the below command without semicolon

    EXP FILE = 20121221PARTY0228PM DUSER/LOG@ORCL. DMP TABLES = PARTYHDR, PARTYADDRESS
    DTL, PARTYCONTACTDTL, PARTYTDSDTL, PARTYTDSEXCLUDEDTL, PARTYCURRENCYDTL

  • is it possible to exclude some tables of data pump?

    Hello

    I want to exclude some tables while import/export to a single system using data pump. Is this all possible for this?

    If this isn't the case, please suggest me for all other ideas too.

    Iqbal

    Use the exclude parameter and check the link below.

    http://www.Oracle-base.com/articles/10G/Oracle-data-pump-10G.php

    Concerning
    Asif Kabir

  • Export all tables, triggers, sequences, etc. of the APEX-hosted application.

    Hello

    I'm sure this has been asked in several variations before, but the answers I keep seeing in the forums offer "alternatives" that are not applicable to what I need to accomplish. While I am an employee of Oracle for a long time, I am only recently entered APEX developing and meeting some annoyingly situations of "newbie". Namely:

    I created a fairly complex application in the hosted APEX internal server. Now, I want to make a backup of all the objects of schema associated with my request. More important, I want to save the data in the tables that I will be performing manipulations of data on it prior to import into the new schema/database.

    I have to assume that there is a smart way to save the data in an application without having to:
    (a) manually export each table in an Excel or XML file.
    (b) manually having to write the same todo script
    (c) having a direct access to the database to use data pump or exp (not possible in the hosted environment)
    (d) application to another schema located in the space as a substitute for the backup of the copy.

    There MUST be a way to take a backup external/export data and objects related-databasebase APEX 4.0.2.00.07 which does not require the tedious manual methods or direct access to internal site hosted DB.

    Can anyone suggest the best option to perform this task?

    Guess it will do badly then. There is NO way unless you have access to the Sql developer or another product to download the data for all the tables and objects of database in one fatal shot.

    What we have are the following:

    You can have the apex generate a file of all your objects in database sql (sql workshop, utility, generate DDL) and this will build a sql file that will build all your Oracle database objects.

    After that, I'd suggest the utility to download data: unload sql workshop, utilities, data, data workshop. This will allo wyou'llill to download your data to a local workstation to the file xml, csv or txt format.

    Thank you

    Tony Miller
    Webster, TX

    I don't know what your problem is, but I bet it's hard to pronounce.

  • Try to export a Table Alias via ODI

    I wanted initially extracted table Alias Essbase Maxl (original note below) - but not sure it's viable. Whoever did this by ODI?

    ===============================

    I'm having a hard time finding the correct MaxL to export and table alias - basically, I need to export the default table, shift some periods and years and then recharge it in a table different aliases. Any help is appreciated!

    [email protected]!

    Hello

    It is possible, but it takes a little effort, I did on this blog a bit backwards:-http://john-goodwin.blogspot.com/2008/10/odi-essbase-challenge-extracting.html

    The other option is to run some maxl running an OS of ODI command to extract of the alias, and then read information in the output file.
    MAXL statement would be:-database query 'Sample'.' Basic ' list of alias_names in table_alias "Default."

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • I need to export the table in "png" format, but continuied table also even exported to PDF...

    Dear all,

    I need to export the table as image format "png".

    in case any continuous table is there, sample suite table page 2. I need the same page by page (2 images) required.

    Please suggest how to handle these cases in javascript.

    Kind regards

    Sagna

    Thanks Laubender and uwe!

  • Export a table to an EPUB (a matter of beginners)

    Beginner EPUB.

    I'm trying to teach myself how to create an EPUB, I watched many tutorials

    Adobe and all very useful and educational.

    I use Indesign CS5.5

    Question 1:

    What is the best way to export a 'table' to an EPUB doc' who has dingbats, fleas/ticks in columns.

    when I create an EPUB dingbats/fleas/ticks change a font of. It would be preferable to a "jpeg"

    "table", and then re-import them in indesign via the Articles Panel?

    Question 2:

    As a secondary issue, is there a way just by using bullets to have only one ball and control without Word

    in order to use a table instead of using Wingdings etc.?

    Thanks in advance for your help.

    I create a jpg of the table and use it, and which would sort the issue of the ball too.

    About ammunition, rendering may vary in each device of reading/app.

  • Concerning the import and export of Table

    Hi team,

    My question is what is quick way to export and import the data in the table because most of the time I import and export data activate I usually

    If data less than 10 hundreds I'll use sql developer only export to insert the . script

    But my question if we lack 17 records dealing with import and export a table

    Note:-If we do not have conditional sys.

    Current version is using 9i and 10g

    Thank you

    Suman

    Data pump works only on 10g:

    ORACLE-BASE - Oracle Data Pump (expdp and impdp) in Oracle Database 10g

    Have a look here for more options 'pre - 10 g':

    Ask Tom & quot; export and import the best option to use in... & quot;

  • Trying to export a table from version 11.2.0.3 to 10.2.0.3. Get an IMP-0

    Trying to export a table from version 11.2.0.3 to 10.2.0.3. Get an IMP-00010: not an export file is valid, the header check failed
    How to export to another version in Oracle

    Use the VERSION parameter in expdp - http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#sthref150

    Then use impdp to import the file to 10.2.0.3 - http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_import.htm#i1007653

    HTH
    Srini

  • Export all tables of database in CSV

    I use Oracle 10 g Release 2

    I need to export all tables of database on an oracle schema to it's corrosponding to the CSV files.

    Can I use 'EXP U_name/pswd GRANTS = Y TABLES = (table_A, table_B, table_C)'. ?

    All advice is a plus.
    Thanks in advance
    Jay

    PL post OS and database versions.

    If you have access to run the export to database utilities, and then use the parameter TABLES as you pointed

    exp - http://docs.oracle.com/cd/E11882_01/server.112/e22490/original_export.htm#sthref1927
    expdp - http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#sthref135

    HTH
    Srini

  • Export a table present in the indesign file in PNG?

    Hi all

    I have 10 indd files and each file has a page and a table is the only element that is present on the page. So a few files indd a table present in a text box and few records a table in two text boxes, because the table has several rows as spiltted in two linked text boxes.

    I am able to select the two text boxes, but all somehow by exporting the table of the box text only get exported in png because of a bad code.

    Pls help.

    app.selection [0] .exportFile (ExportFormat.PNG_FORMAT, destFile, false);   / / here, I need to correct the code.

    indesign #target

    var sourceFolder = new file ("/ users/admin4/Desktop/INS ');

    myFiles var = sourceFolder.getFiles ();

    Alert (myFiles.length);

    var destFolder = new file ("/ users/admin4/Desktop/folder3");

    for (i = 0; i < myFiles.length; i ++)

    {

    If (myFiles [i] .name "! =".) DS_Store')

    {

    var sourceDoc = app.open (myFiles [i]);

    app.activeDocument.pageItems.everyItem () .select ();

    app.activeDocument.stories [0] .tables [0].parent.select ();

    var destFile = lead (destFolder + "/" + myFiles [i] .name + ".png");

    App.Selection [0] .exportFile (ExportFormat.PNG_FORMAT, destFile, false);

    Here, I need to fix the code.

    sourceDoc.close (SaveOptions.NO);

    }

    }

    Hello

    Group pageItems and export selected group:

    var sourceFolder = new Folder ("/Users/admin4/Desktop/INS"),
    destFolder = new Folder ("/Users/admin4/Desktop/folder3"),
    myFiles = sourceFolder.getFiles(/.indd$/),
    sourceDoc, i, destFile, mPItems, mTarget;
    
    for (i=0; i < myFiles.length; i++)
    {
         sourceDoc = app.open(myFiles[i]);
         if(sourceDoc) {
              mPItems = sourceDoc.spreads[0].pageItems.everyItem().getElements();
              switch (mPItems.length) {
                   case 0: alert("Empty file: " + sourceDoc.name); exit(0); break;
                   case 1: mTarget = sourceDoc.pageItems[0]; break;
                   default: mTarget = sourceDoc.groups.add(mPItems); break;
                   }
              mTarget.select();
              destFile = File(destFolder + "/" + sourceDoc.name + ".png");
              app.selection[0].exportFile(ExportFormat.PNG_FORMAT, destFile, false);
              }
         else alert("Can't open a file: " + sourceDoc.name);
    
         if(sourceDoc.spreads.length > 1)
              alert ("More than 1 spread in file: " + sourceDoc.name);
    
         sourceDoc.close(SaveOptions.NO);
    }
    

    Jarek

Maybe you are looking for