The datapump export table structure

Hello

Oracle Version: 10.2.0.1 and 11.2.0.1
Operating system: Linux

I need a help about export only the structure of the table in 10g.

11 g when I tried to export the table structure for tables starting with ST_LO_ % it works fine and here is the result for the export declaration.
[oracle@vtlsys2-209 dbdump]$ expdp CNGSTORES_TEST_DEC1610/CNGSTORES_TEST_DEC1610 directory=dbdump dumpfile=chala_feb2111.dmp logfile=chala_feb2111.log tables="ST_IL_%","ST_LO_%","SCM%","ARCH%" exclude=statistics,grants job_name=tablesfil parallel=4 version=10.2  content=metadata_only

Export: Release 11.2.0.1.0 - Production on Mon Feb 21 14:34:16 2011

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

UDE-01017: operation generated ORACLE error 1017
ORA-01017: invalid username/password; logon denied

Username: cngstores_test_dec1610/cngstores_test_dec1610

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "CNGSTORES_TEST_DEC1610"."TABLESFIL":  cngstores_test_dec1610/******** directory=dbdump dumpfile=chala_feb2111.dmp logfile=chala_feb2111.log tables=ST_IL_%,ST_LO_%,SCM%,ARCH% exclude=statistics,grants job_name=tablesfil parallel=4 version=10.2 content=metadata_only
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/COMMENT
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
Master table "CNGSTORES_TEST_DEC1610"."TABLESFIL" successfully loaded/unloaded
******************************************************************************
Dump file set for CNGSTORES_TEST_DEC1610.TABLESFIL is:
  /u05/dbdump/chala_feb2111.dmp
Job "CNGSTORES_TEST_DEC1610"."TABLESFIL" successfully completed at 14:34:37
But when I tried in 10g it throws errors and here are the export script.
[oracle@VTL1253AD dbdump]$  expdp aa_test/aa_test directory=dbdump dumpfile=st_LO_IL_EMPTYTABLES.dmp logfile=st_LO_IL_EMPTYTABLES.log content=metadata_only job_name=aa_empty tables="ST_LO_%","ST_IL_%"

Export: Release 10.2.0.1.0 - Production on Monday, 21 February, 2011 14:03:18

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Starting "AA_TEST"."AA_EMPTY":  aa_test/******** directory=dbdump dumpfile=st_LO_IL_EMPTYTABLES.dmp logfile=st_LO_IL_EMPTYTABLES.log content=metadata_only job_name=aa_empty tables=ST_LO_%,ST_IL_%
ORA-39166: Object ST_IL_% was not found.
ORA-39166: Object ST_LO_% was not found.
ORA-31655: no data or metadata objects selected for job
Job "AA_TEST"."AA_EMPTY" completed with 3 error(s) at 14:03:24
Can someone help me please how to export the structure of the table that begin with ST_LO_ % and ST_IL_ %.

Please help me.

Thank you and best regards,
Kahina Prasad.S

Use a settings file, and you will have no problem with these backslashes to use on the command line:

oracle@:/home/oracle(o10)# more p.par
include=table:" in (select table_name from all_tables where owner='SYSADM' and (table_name like 'PSACCESS%' or table_name like 'PSOPR%')) "
oracle@:/home/oracle(o10)# expdp sysadm/****** parfile=p.par dumpfile=test3.dmp nologfile=y

Export: Release 10.2.0.4.0 - 64bit Production on Monday, 21 February, 2011 12:33:37

Copyright (c) 2003, 2007, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining
and Real Application Testing options
Starting "SYSADM"."SYS_EXPORT_SCHEMA_02":  sysadm/******** parfile=p.par dumpfile=test3.dmp nologfile=y
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 21.06 MB
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/FGA_POLICY
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
Processing object type SCHEMA_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "SYSADM"."PSOPRDEFN"                        8.536 MB   49826 rows
. . exported "SYSADM"."PSOPRCLS"                         4.736 MB  242923 rows
. . exported "SYSADM"."PSOPRALIAS"                       1.964 MB   49908 rows
. . exported "SYSADM"."PSOPRDEL"                         630.0 KB   44517 rows
. . exported "SYSADM"."PSACCESSPRFL"                     6.226 KB       1 rows
. . exported "SYSADM"."PSOPRALIASFIELD"                  6.515 KB      10 rows
. . exported "SYSADM"."PSOPRALIASTYPE"                   6.765 KB       7 rows
. . exported "SYSADM"."PSOPROBJ"                         9.546 KB     144 rows
. . exported "SYSADM"."PSOPRALSTYPLANG"                      0 KB       0 rows
Master table "SYSADM"."SYS_EXPORT_SCHEMA_02" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSADM.SYS_EXPORT_SCHEMA_02 is:
  /appl/oracle/product/10.2.0/rdbms/log/test3.dmp
Job "SYSADM"."SYS_EXPORT_SCHEMA_02" successfully completed at 12:34:35

oracle@:/home/oracle(o10)#

Replace the names of tables above with anything you want.

Nicolas.

Tags: Database

Similar Questions

  • DataPump: can dumpfiles copied during the datapump export still work?

    Hello

    Let's define that a datapump export settings

    DUMPFILE=exportdp_DUMPFILE_%U.dmp
    FILE SIZE = 2G
    PARALLEL = 2

    will generate 20 dumpfiles size 2G each. The datapump worker will create two dumpfiles in parallel and write on the two parallel lines. As soon as a dumpfile has a size of 2G, the next file will be created and data will be written in.
    My question now is:
    can you files, which are the size of 2 GB already copied to another server? This would have the advantage that I don't have to wait until the end of the export of datapump before starting the transfer of files to another server. This ability would certainly save little time and speedup the datapump export - / import process...
    Or should I wait until the end of the export of datapump above can get copied files - simply because that the datapump will update the files with 'something '?

    Any help will be appreciated

    Rgds
    JH

    You could start when the file appear full and then you may need to copy a bit more if they are updated the copy. This only happens if your main table that spans the dump files.

    Dean

  • By comparing the remote database Table structure?

    Is it possible to compare two struture of remote database table in Sql Developer.
    As for example two DB loacted in different IP location like
    Db1 DB2 in IP.02 and IP.01
    both have the same structure and schema. connected with sql developer.

    My Question is I need to compare both of the database table structure and display don't miss you things,.,.
    A third-party tool is available, but it is possible in Sql Developer...

    You are welcome. As k. pointed out, it did not work properly in older versions.

  • Specify the tablespace for table main expdp?

    Is it possible to specify what the main table tablespace will be created in an expdp job?

    I'm carrying the default tablespace for the user who runs expdp and obviously expdp cannot create the main table because the tablespace is read only for transport. I am looking for a way to specify a different tablespace for the main table without changing the user's default tablespace. Such a thing exists in 10g or 11g? TIA

    Chuck1958 wrote:
    Is it possible to specify what the main table tablespace will be created in an expdp job?

    I'm carrying the default tablespace for the user who runs expdp and obviously expdp cannot create the main table because the tablespace is read only for transport. I am looking for a way to specify a different tablespace for the main table without changing the user's default tablespace. Such a thing exists in 10g or 11g? TIA

    Chuck1958,

    I don't know that such a setting Exit (or not)... On the other hand, here's another way:

    You can create a new user, give him required privileges and, on the other hand, starts the datapump export by this new user using the parameter "schema".

    Best regards

    Gokhan Atil

    -------------------------------------------------------
    If you answer this question, please mark appropriate as correct/useful messages and the thread as closed. Thank you

  • Advantage of the import and export of datapump during the first export and import

    Hello

    Let me know the advantage of datapump export (expdm) and (impdm) on export (exp) import and import (imp) of origin.

    Hello

    Let me know the advantage of datapump export (expdm) and (impdm) on export (exp) import and import (imp) of origin.

    There are many advantages over the use of DATAPUMP.

    For example, to INCLUDE / EXCLUDE the settings you can filter exactly what object and / or type you intend to export or import. Which is not easy with the Original Export / Import (with the exception of Tables, indexes, constraints,...).

    You can import directly in to a NETWORK_LINK without using a Dump.

    You have many interesting features like COMPRESSION, FLASHBACK_SCN / _TIME *,...

    You can use the API in PL/SQL to perform your export / import instead of using the command line Interface.

    Increasingly, the DATAPUMP is much more optimized than the Original Export/Import and use path Direct or external Tables,... and what to say about REMAP_ % settings that allow you to rename files of data, schema, storage...

    There are a lot of things to tell about DATAPUMP. You will find an overview of this tool very good on the following links:

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

    http://www.Oracle-base.com/articles/11g/DataPumpEnhancements_11gR1.php

    Hope this helps.
    Best regards
    Jean Valentine

  • How to exclude table as % of AUDIT using the Datapump API

    Hello
    I try to use the datapump API to import the table into a database link, excluding the table with a name like % AUDIT. I have it working all except running the table. I use Oracle 11.1.0.6.

    It works in my application
    in DB R11.2
    in job_mode = "TABLE".

    () dbms_datapump.metadata_filter
    handle-online job_handle,
    name-online "NAME_EXPR."
    value => "NOT IN ("TABLENAME_1","TABLENAME_2","TABLE_NAME_3")"
    );

    Try this works for you

    () dbms_datapump.metadata_filter
    handle-online job_handle,
    name-online "NAME_EXPR."
    value-online "LOVE NOT"AUDIT %""
    );

    Published by: astramare on July 7, 2011 14:57

  • the table structure

    How to copy the table structure in oracle without constraints?

    Some constraints are copied in whole;

    create table w (order_type varchar2(1));
    insert into w values ('N');
    insert into w values ('C');
    insert into w values ('D');
    insert into w values ('X');
    
    alter table w add constraint pk_w primary key (order_type);
    
    create table t (x number, order_type varchar2(1) constraint t_fk references w (order_type) );
    
    insert into t values (1, 'X');
    
    commit;
    
    create table t2 as (select * from t where rownum < 1);
    
      1  select table_name, constraint_name from all_constraints
      2* where table_name in ('T', 'T2')
    SQL>
    SQL> /
    
    TABLE_NAME                     CONSTRAINT_NAME
    ------------------------------ ------------------------------
    T                              T_FK
    
  • Table structured site showing all white in the preview.

    Hey everybody,
    I'm relatively new to DW so this question may have an easy solution, but for the life of me I can't understand it.
    I did design a site in photoshop, follow the instructions for creating slices, to save for web, etc.
    I then opened and created the correct table structure in a new html document. I then placed the coordination background images in each of the tables. Everything is great in dreamweaver! Here is my problem... when I go to preview the site in my browser (as I do with all the other sites I've done) all I see is white. It seems as if there is a default layer of white covering the whole page, even though I tried many variants with and without a background image 'page properties '. Anyone have any ideas as to what is happening? Thank you!

    you use relative paths from the root of the site.

    Background="/images/topmenu_space_1.jpg

    the image is not downloaded and won't be where you thought it was
    even if it has been loaded.

    In the dw preferences - > Preview in the browser allow using temporary files for F12.

    Understand the paths.

    --
    Alan
    Adobe Community Expert, dreamweaver

    http://www.Adobe.com/communities/experts/

  • content of an export file using the datapump

    How can we see the contents of an export file using the datapump.
    As in the normal exp/imp method, if we use the parameter show = o during import, it displays the script/content of the dump file.

    Is there a method to do this in the datapump method?

    Use the Option SQLFILE

    Directory system/passwd Impdp = directory_name dumpfile = filename.dmp logfile = logfile.log sqlfile = export_scripts.sql full = y

  • Import the table structure

    Hai everybody

    is it possible to import just the structure of the Table from a backup oracle dump file. After you import the table structure to new possibility to import the data in the tables of the same/other backup dump file.

    What I wanted to say - I will first import the structure of the table from the dump file. After you import the structure of the table, I want to check the constraints. Finally, I want to import the data from the same dump file.

    Thank you

    Christiane

    Hello

    Discover this .

    Arun-

  • See the table structure

    Hey,.

    I don't have access to the back-end server. Is there a way I can view the tables through the front-end server using Oracle 11i?

    Prakash

    You cannot access it from the end before (request). Display table structure is referring to the eTRM.

    Oracle technical reference manual electronic Applications (eTRM)
    http://ETRM.Oracle.com

  • Who checks this exported table?

    Hi all

    11.2.0.1

    I created a table EMP as SYSTEM

    create table EMP in select * from HR. EMP;

    Then I expdp SYSTEM. EMP and import to a different database.

    But I got some warnings like:

    ORA-39083: Type as pre_table_action cannot be created with the object error:

    ORA-23327: imported data delayed CPP does not match NAME GLOBAL to db import

    Because sql is:

    BEGIN

    SYS. DBMS_DEFER_IMPORT_INTERNAL. QUEUE_IMPORT_CHECK ('BORONEUTROTHERAPIE', ' IBM AIX64/RS6000 V4 - 8.1.0');

    END;

    ORA-39083: Type as pre_table_action cannot be created with the object error:

    ORA-23327: imported data delayed CPP does not match NAME GLOBAL to db import

    Because sql is:

    BEGIN

    SYS. DBMS_DEFER_IMPORT_INTERNAL. QUEUE_IMPORT_CHECK ('BORONEUTROTHERAPIE', ' IBM AIX64/RS6000 V4 - 8.1.0');

    END;

    ORA-39083: Type as pre_table_action cannot be created with the object error:

    ORA-23327: imported data delayed CPP does not match NAME GLOBAL to db import

    Because sql is:

    BEGIN

    SYS. DBMS_DEFER_IMPORT_INTERNAL. QUEUE_IMPORT_CHECK ('BORONEUTROTHERAPIE', ' IBM AIX64/RS6000 V4 - 8.1.0');

    END;

    ORA-39083: Type as pre_table_action cannot be created with the object error:

    ORA-23327: imported data delayed CPP does not match NAME GLOBAL to db import

    Because sql is:

    BEGIN

    SYS. DBMS_DEFER_IMPORT_INTERNAL. QUEUE_IMPORT_CHECK ('BORONEUTROTHERAPIE', ' IBM AIX64/RS6000 V4 - 8.1.0');

    END;

    ORA-39083: Type as pre_table_action cannot be created with the object error:

    ORA-23327: imported data delayed CPP does not match NAME GLOBAL to db import

    Because sql is:

    BEGIN

    SYS. DBMS_DEFER_IMPORT_INTERNAL. QUEUE_IMPORT_CHECK ('BORONEUTROTHERAPIE', ' IBM AIX64/RS6000 V4 - 8.1.0');

    END;

    ORA-39083: Type as pre_table_action cannot be created with the object error:

    ORA-23327: imported data delayed CPP does not match NAME GLOBAL to db import

    Because sql is:

    BEGIN

    SYS. DBMS_DEFER_IMPORT_INTERNAL. QUEUE_IMPORT_CHECK ('BORONEUTROTHERAPIE', ' IBM AIX64/RS6000 V4 - 8.1.0');

    END;

    ==========

    My question is, who is the audit this table? is it integrated in the table itself, or it's because I recreated as SYSTEM?

    -new path of object type: TABLE_EXPORT/TABLE/PRE_TABLE_ACTION

    BEGIN

    SYS. DBMS_DEFER_IMPORT_INTERNAL. QUEUE_IMPORT_CHECK ('BORONEUTROTHERAPIE', ' IBM AIX64/RS6000 V4 - 8.1.0');

    END;

    /

    BEGIN

    SYS. DBMS_DEFER_IMPORT_INTERNAL. QUEUE_IMPORT_CHECK ('BORONEUTROTHERAPIE', ' IBM AIX64/RS6000 V4 - 8.1.0');

    END;

    /

    BEGIN

    SYS. DBMS_DEFER_IMPORT_INTERNAL. QUEUE_IMPORT_CHECK ('BORONEUTROTHERAPIE', ' IBM AIX64/RS6000 V4 - 8.1.0');

    END;

    /

    BEGIN

    SYS. DBMS_DEFER_IMPORT_INTERNAL. QUEUE_IMPORT_CHECK ('BORONEUTROTHERAPIE', ' IBM AIX64/RS6000 V4 - 8.1.0');

    END;

    /

    BEGIN

    SYS. DBMS_DEFER_IMPORT_INTERNAL. QUEUE_IMPORT_CHECK ('BORONEUTROTHERAPIE', ' IBM AIX64/RS6000 V4 - 8.1.0');

    END;

    /

    BEGIN

    SYS. DBMS_DEFER_IMPORT_INTERNAL. QUEUE_IMPORT_CHECK ('BORONEUTROTHERAPIE', ' IBM AIX64/RS6000 V4 - 8.1.0');

    END;

    /

    Thank you

    pK

    Hello

    There is no trigger. You could audit using fine selects audit grain of the original table in the HR schema to see when it was read and in 12 c There are various options around datapump audits.

    In this case, however, there is some data related to the progress of replication that has nothing to do with the table you import / export - you get it just because you use the diagram of the system. As others have suggested just put it somewhere other than system and it will be fine.

    Kind regards

    Rich

  • Circumvention of the Import/Export API?

    Hello

    I want to generate a pl/sql procedure to perform export and import (not datapump) table!
    It appeas that Such a thing doesn't exist.
    Or
    I don't know it. Can anybody help me to find it or shows me a similar workaround ?
    Thanks and greetings

    hqt200475

    Hello

    I want to generate a pl/sql procedure to perform export and import (not datapump) table!

    Original Export/import is not API.

    If you intend to launch Original Import/Export of PL/SQL. I think you can use the DBMS_SCHEDULER that allow you to run Scripts a BONE (which could run the export / import of orders).

    There are other ways detailed below:

    http://www.orafaq.com/wiki/PL/SQL_FAQ#Can_one_execute_an_operating_system_command_from_PL.2FSQL.3f

    However, I think you should rather use DATAPUMP as all of the API are already built for this utility. More on the original export/import is deprecated in current releases.

    Hope this helps.
    Best regards
    Jean Valentine

  • Strategies for bridge (structs) containers to the c dll table ++

    Does anyone have any suggestions for the passage of tables of containers (C structs) between TS and c ++ dll? I have exhausted my understanding here. I noticed that when I create a type which is an array of containers (size = 1), allow to move like a C struct but exclude the container as C struct, and then type presents itself as a struct rather than an array ref in the C++ dll parameters dialog box. I was hoping that I could exploit something here, but not luck.

    As a last resort, I could try to flatten the structures in an array of double, pass it as a VARIANT and rebuild on the other side - yuck!  I have hundreds of different transfers to manage that way, so I'm still holding hope for something better.

    In C/C++, I think that if you define a structure with a table like this:

    struct {Topic2

    int sizeVar;

    Topic1 array [size];

    }

    Then, the size is fixed. It doesn't really change because the compiler whenever you allocate a variable of the type of structure, must allocate enough space to store all the items that you have declared in the definition of struct. In other sizeof (Topic2) includes the full size of the array defined using the constant of 'size' that must be a constant, not a variable. If you want something more dynamic, you declare your structure as follows:

    struct {Topic2

    int size;

    Topic1 * array;

    }

    you dynamically allocate the memory for the array pointer and release it dynamically when you're finished with it.

    A simpler approach, that you can take, if the size range is quite small, is to make the Board as large as size max you will ever need and add another Member to say how many items in the table is actually being used. And it seems that your def struct is close to that, but not quite right. For example, I'm sure that you can not use the size for the variable field and the size of the array. Instead, you probably need something more like this

    struct {Topic2

    int numElements.

    Topic1 table [taille_max];

    }

    Hope this helps,

    -Doug

  • Several problems with a simple replacement of the subset of table

    I'm new to LabVIEW and I try to teach me how to use it.  As you can imagine, I'm running into a few barriers.  The code that I'm including embodies many of my problems.  If someone can explain to me how to improve this code, I would be grateful.

    Copy the following code is a simplified version of a more complex code, that I'm writing.  In the simplified code, I have a control ('VALUE') that I would like to register at different locations in my table of 5 x 3.  To do this, I tried to make a 5 x 3 constant I could replace it with the value of the control.  The code does not work as expected and this is my specific problems:

    1. I can't initialize the array constant (the one I intend to crush).  I can only initialize the first row.  Based on the help files, I thought I should be able to initialize it by clicking on the boxes in the chart on the block diagram and entering values.  But it doesn't seem to let me do this.  Don't know if there is a special way to open when more than 1 dimension is involved?

    2. my slider controls are intended to establish where in the table to place the element.  But is not no longer works.

    3. I can't understand how properly to a code which has a while loop integrated in a while loop.  Someone recommended using a structure of the event, but as a beginner, I will have trouble to know how I would enact who.  I tried to play with the settings of locking/switching the button stop, but that did not work, either. The problem seems to be that, if I am inside the while loop, the program does not see my stop command.  Is there a way to connect as the stop button works, regardless if I'm inside the another while loop?  If not, is there a way to accomplish what I want in the smallest loop without using a while loop?  If I used a structure of the event, how would I created an 'event' to tell the program to store a new data point in the array?

    Thank you.

    Jessica

    Jessica,

    Also note that in LabVIEW array indices are zero-based.  If the values of the row index can be 0, 1, or 2.  If you want your users to see 1, 2, and 3, then put a function decrement between the terminals of the cursor and the function replace table subset.

    Lynn

Maybe you are looking for