Export table structure in datapump

Hi,
Oracle Version : 10.2.0.1 and 11.2.0.1
Operating system:Linux
I need an help regarding to export only the table structure in 10g.
In 11g when i tried to export table structure for the tables which starts with ST_LO_% it works fine and here is the output for that export statement.
[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:37But when i tried in 10g it is throwing errors and below is 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:24Can any one please help me how to export table structure that are starting with ST_LO_% and ST_IL_%.
Please help me.
Thanks & Regards,
Poorna Prasad.S

Hi N Gasparotto ,
Thanks for your quick replay .
Here when i use to export tables ST_LO% in the include parameter it is working fine .
[oracle@VTL1253AD ~]$ expdp aa_test/aa_test directory=dbdump dumpfile=aa_test_feb2111_st_loil.dmp logfile=aa_test_feb2111_st_LO.log   parallel=4 job_name=aa_test1 content=metadata_only include=table:\"like \'ST_LO_%\'\"
Export: Release 10.2.0.1.0 - Production on Monday, 21 February, 2011 15:10:30
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_TEST1":  aa_test/******** directory=dbdump dumpfile=aa_test_feb2111_st_loil.dmp logfile=aa_test_feb2111_st_LO.log parallel=4 job_name=aa_test1 content=metadata_only include=table:"like 'ST_LO_%'"
Processing object type SCHEMA_EXPORT/TABLE/TABLE
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/COMMENT
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
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
Master table "AA_TEST"."AA_TEST1" successfully loaded/unloaded
Dump file set for AA_TEST.AA_TEST1 is:
  /u04/dbdump/aa_test_feb2111_st_loil.dmp
Job "AA_TEST"."AA_TEST1" successfully completed at 15:10:39but when i tried to export tables that start ST_LO_% and ST_IL_% the export is failing.
[oracle@VTL1253AD ~]$ expdp aa_test/aa_test directory=dbdump dumpfile=aa_test_feb2111_st_loil.dmp logfile=aa_test_feb2111_st_LO.log   parallel=4 job_name=aa_test1 content=metadata_only include=table:\"like \'ST_LO_%\'\",table:\"like \'ST_IL_%\'\"
Export: Release 10.2.0.1.0 - Production on Monday, 21 February, 2011 15:07:35
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_TEST1":  aa_test/******** directory=dbdump dumpfile=aa_test_feb2111_st_loil.dmp logfile=aa_test_feb2111_st_LO.log parallel=4 job_name=aa_test1 content=metadata_only include=table:"like 'ST_LO_%'",table:"like 'ST_IL_%'"
ORA-39168: Object path TABLE was not found.
ORA-31655: no data or metadata objects selected for job
Job "AA_TEST"."AA_TEST1" completed with 2 error(s) at 15:07:41
[oracle@VTL1253AD ~]$ expdp aa_test/aa_test directory=dbdump dumpfile=aa_test_feb2111_st_loil.dmp logfile=aa_test_feb2111_st_LO.log   parallel=4 job_name=aa_test1 content=metadata_only include=table:\"like \'ST_LO_%\',\'ST_IL_%\'\"
Export: Release 10.2.0.1.0 - Production on Monday, 21 February, 2011 15:08:56
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
ORA-39001: invalid argument value
ORA-39071: Value for INCLUDE is badly formed.
ORA-00933: SQL command not properly endedCan you please help me what was the mistake i am doing in my export script when trying to export ST_LO_%,ST_IL_%.
Regards,
Poorna Prasad.S

Similar Messages

  • Howto export table structure as sql script.

    is there any way to export the table structure and thier linkage from oracle db into standard sql script?
    thanks

    Sorry, this is the Oracle Repository forum.
    However, Perform an oracle export from the schema i.e.
    exp un/pw rows=n
    and then perform an import:
    imp un/pw indexfile=afile.txt
    This will will have all the structure you need but will need editing to create a runnable script.
    Alternatively use Oracle Designer to reverse engineer your schema, the DDL can then be generated.
    David

  • Export tables/structure from FM

    Hi SAPMASTER,
    Please, I need your help!!!!
    Forgive my stupid doubt.
    I need to export a table from FM.
    Below is my FM:
    FUNCTION ZZEXPORTA.
    ""Local Interface:
    *"  EXPORTING
    *"     VALUE(OUT1) TYPE  ZZSTRU_ZZQTDMAT
    DATA: itab TYPE TABLE OF ZZSTRU_ZZQTDMAT,
               wa LIKE LINE OF itab.
    wa-material   = '123'.
    wa-descricao  = 'nothing'.
    wa-unidade    = 'ea'.
    wa-quantidade = 123.
    MOVE-CORRESPONDING wa to out1.
    CLEAR wa.
    wa-material   = '234'.
    wa-descricao  = 'all'.
    wa-unidade    = 'xyz'.
    wa-quantidade = 456.
    MOVE-CORRESPONDING wa to out1.
    CLEAR wa.
    ENDFUNCTION.
    The result is just the "last" data that I put in wa (this is right).
    Please, how can I add 2 "registers" to structure ?
    I tried APPEND but I got an error message:
    "out1 is not a internal table".
    I appreciate your help.
    Regards,
    Edson Luiz

    Hi Krishnendu Laha,
    Thank you for your help but I have already put in TABLES tab.
    SAP did not permit. I got the error message:
    "TABLE is OBSOLETE".
    So, I put in Export tab.
    Please, is there any way to put in the TABLES tab?
    Regards,
    Edson Luiz

  • Export and import only table structure

    Hi ,
    I have two schema scott and scott2. scott schema is having table index and procedure and scott2 schema is fully empty.
    Now i want the table structure, indexes and procedure from scott schema to scott2 schema. No DATA needed.
    What is the query to export table structure, indexes and procedure from scott schema and import in scott2 schema.
    Once this done, i want scott schema should have full access to scott2 schema.
    Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
    Please help...

    Pravin wrote:
    I used rows=n
    it giving me below error while importing dump file:-
    IMP-00003: ORACLE error 604 encountered
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01013: user requested cancel of current operation^CYou are getting this error because you hit "Ctrl C" during the import, which essentially cancels the import.
    IMP-00017: following statement failed with ORACLE error 604:
    "CREATE TABLE "INVESTMENT_DETAILS_BK210509" ("EMP_NO" VARCHAR2(15), "INFOTYP"
    "E" VARCHAR2(10), "SBSEC" NUMBER(*,0), "SBDIV" NUMBER(*,0), "AMOUNT" NUMBER("
    "*,0), "CREATE_DATE" DATE, "MODIFY_DATE" DATE, "FROM_DATE" DATE, "TO_DATE" D"
    "ATE) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 6684672"
    " FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DMSTG" LOGG"
    "ING NOCOMPRESS"Srini

  • Export tables and data

    Hi everybody,
    I'm new in SQL Developer and I would like to know if I could use it to export some tables (and the data in them) and import these on another machine (with Windows OS) that has the same versions of Oracle Database (10 G R2) and SQL Developer(last I have found on the Oracle download page).
    If this can be done, could you guide me with some steps?
    Thanks a lot!
    Cristina

    To export tables (structure), it is enough to go to the menu Tools > Export and to choose a path and name for the archive, to select the connection and the objects (in the case = TABLES) that will be exported.
    How much to the data, I do not know if a skill exists to export all the data of several (or all) of an only time, without having that to make one to one.

  • BI 7 : Command to export a table structure of SAP R/3 into a script/text ?

    Hi All.
    Greetings.
    Am New to SAP R/3 system.  And request help.
    We are trying to pull data from SAP R/3 thro Bussiness Objects Data Services into Oracle.
    For now : we create a target oracle table looking at the table structure of SAP R/3 from SE 11.
    In BODS, We then do the query transformation, and use the oracle target table created by us manually.
    This works absolutely fine.
    We would like to know the command by which we could export the table structure of any existing table
    in SAP R/3 into a script / or to text file,
    which we could use to create the same table structure in oracle.
    Rather than manually typing some 200 field names for each tables.
    Can anyone advise on this.
    Thanks
    Indu

    Hello,
    The problem is caused due to the spaces in your directories
    C:\SAP Dumps\Core Release SR1 Export_CD1_51019634/DB/ADA/DBSIZE.XML
    Replace the spaces with underscores and restart the installation from from scratch.
    Cheers
    Bert

  • How to write export dump commad with no datable data only table structure.

    How to write export dump commad with no datable data only table structure will there and command for hole schma.
    e.g. export dump command for scott schema and all table within scott schema in it no table data should be exported.

    If I understand the question, it sounds like you just need to add the flag "ROWS=N" to your export command (I assume that you're talking about the old export utility, not the Data Pump version).
    Justin

  • How to export and import only data not table structure

    Hi Guys,
    I am not much aware about import ,export utility please help me ..
    I have two schema .. Schema1, Schema2
    i used to use Schema1 in that my valuable data is present . now i want to move this data from Schema1 to Schema2 ..
    In schema2 , i have only table structure , not any data ..

    user1118517 wrote:
    Hi Guys,
    I am not much aware about import ,export utility please help me ..
    I have two schema .. Schema1, Schema2
    i used to use Schema1 in that my valuable data is present . now i want to move this data from Schema1 to Schema2 ..
    In schema2 , i have only table structure , not any data ..Nothing wrong with exporting the structure. Just use 'ignore=y' on the import. When it tries to do the CREATE TABLE it (the CREATE statement) will fail because the table already exists, but the ignore=y means "ignore failures of CREATE", and it will then proceed to INSERT the data.

  • How can we use IMPORT-EXPORT as structure and TABLES parameters?

    Hello Sir,
    I have used SAPRFC with single IMPORT and EXPORT parameter.
    Could anybody give me an example in I can use IMPORT/EXPORT as structure and TABLE parameter as input?
    of course from/to PHP.
    Regards,
    RH

    Thanks

  • Export schema table structure only- no procedures

    Hi Friends,
    I try to export a schema structure with rows=n option in exp command. As log records show the procedures had exported too.
    Do we have any way to export a schema tables only?
    Thanks for help!
    Jin

    user589812 wrote:
    Database is 10.2.04 I are not able to use data pump based on system configuration.Please elaborate on what you mean by "I are not able to use data pump based on system configuration"
    We have more one hundred tables. that needs to be include tables option.
    Do you have any simple way to export a schema tables structure without list 120 table's name in exp command?
    Edited by: user589812 on Jan 4, 2012 10:19 AMI do not believe you have a choice. One method could be to get a list of all needed tables (SELECT TABLE_NAME FROM USER_TABLES) and create a par file with this list.
    HTH
    Srini

  • I'm getting a "The procedure entrypoint ssSr192x__​ssSr192drv​ssSrReset could no be located in the dynamic link library ssSR192x.d​ll" because the ActiveX instrument driver DLL doesn't have the function names in the export table.

    Is there a way for my CVI project to reference the functions in the ActiveX without including the instrument .fp in the project?
    Thanks much.
    I'm confused on how CVI uses ActiveX components and hope someone can help.
    I'm using an ActiveX driver from an instrument manufacturer and I use the .TLB to generate a .fp, .c, and .h file. If I register the .dll and load the .fp in my project, all is well. Unfortunately in my application the functions to control this instrument are in another DLL whose .lib I include in my CVI projec
    t. Running the CVI project this way gives me "The procedure entrypoint ssSr192x__ssSr192drvssSrReset could no be located in the dynamic link library ssSR192x.dll" because the instrument function names aren't in the export table in the instrument DLL. Non-ActiveX DLLs have the export tables so everything works for them.
    Program structure with non-ActiveX DLLs:
    CVI project (.exe with common.lib in project list)
    |
    V
    Common DLL (MeasDMM() with hp1234.lib in project list)
    |
    V
    Instrument DLL (hp1234_measure())
    Since I get a .c and .h file from the .TLB, I've tried recompiling the DLL (.dll and .lib produced) and the functions seem to work, but I get "Class not registered" errors unless I play games with the registry so I'm obviously violating numerous Microsoft rules!
    Is there a way for my CVI project to reference the functions in the ActiveX without including the instrument .fp in the project? Thanks much.
    Jeff Fish
    Advisory Test Engineer
    StorageTek

    Hello Jeff,
    Where were your getting the .lib file for the ActiveX DLL? Did you use the "hp1234"
    ActiveX driver generated by the "Create ActiveX Automation Controller" CVI Tool to build a static library? If you open an include file and choose Options >> Generate DLL..., it will generate source code or a static import library to load the specified DLL and load functions specified in the include file (this only works if the functions are exported from a DLL). However, in the case of our ActiveX Automation Controllers, ActiveX calls are used to access a DLL. This means that you do not need an import library. You should be able to open the "hp1234" source file and click Options >> Create Object File. Simply #include "hp1234.h" and add "hp1234.obj" to your Common DLL project;
    the .fp file is not necessary. If this does not answer your questions or if you experience further difficulty, please post further details on what you are doing and the errors that are being encountered ("play games with the registry" and "recompiling 'the' DLL" are a bit vague in this case).
    Jeremiah
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Dynamic Export table of a function Module

    Hi Friends,
    I have a requirement where fields of  Export table of my function Module is dynamic. It is like the Fields to be expoerted by the Function Module would be stored in a seperate Z table
    The Z table would contain the records as follows .
    Table Name              FieldName
    =========     
    MARA                      MATNR
    MARC                      WERKS
    and So on..
    . How can I define my Export table in Function module dynamically so that the structure of my Export Function Module would be same as that of the Fieldnames in Z table..
    Thanks

    Just declare the associate type as "ANY TABLE" in the exporting parameter.
    FUNCTION ZTEST.
    *"*"Local Interface:
    *"  EXPORTING
    *"     REFERENCE(IT_TAB) TYPE  ANY TABLE

  • Export tables from one database in other.

    hi,
    I want to export the all tables and views (only structure) from remote database in my local database. How can i do the same?
    Is ther anyay to export only 5 rows of each table as export of all rows from table will take lot of space..
    Ashish

    But i dont knw where to write that code.. Can u explain me a bit?I have to say that I don't underdand... Didn't you want export the table structure from one database ? If so, I send you a link to the documentation about the option on the command line which you waited for.
    Moreover, there is an example. I don't know what can I say more ?
    Ah yeah, expdp is an OS prompt command, not sql*plus.
    Nicolas.

  • How to fill a hashed table structure

    Hi,
    In my last thread i had asked about the ways of deleting the cube contents selectively using a job/FM and i was suggested this by one of you.
    CALL FUNCTION 'RSDRD_SEL_DELETION'
    EXPORTING
    I_DATATARGET = 'YOUR_CUBE'
    I_THX_SEL = L_THX_SEL
    I_AUTHORITY_CHECK = 'X'
    I_THRESHOLD = '1.0000E-01'
    I_MODE = 'C'
    I_NO_LOGGING = ''
    I_PARALLEL_DEGREE = 1
    I_NO_COMMIT = ''
    CHANGING
    C_T_MSG = L_T_MSG.
    Although the FM is the correct one the structure L_THX_SEL is a hashed table structure and i am not aware how to fill values into it. My requirement is to give a condition for the 0CALDAY info-object i.e 0CALDAY < 30 days. Please suggest me.
    Regadrs,
    Pramod M

    Hello,
    I will recommend you to use the program 'RSDRD_DELETE_FACTS'. This is easier and is generated for individual cubes and u can specify condition for the same with help of variants.  Just follow the below steps
    Goto SA38 and execute the program RSDRD_DELETE_FACTS. Then give your cube name and select the generate selection program radiobutton and give the name for the program. Execute and the program for selective deletion will be generated for that cube.
    Now goto SE38 and select ur generated program for editing. You will see at the end that individual characteristic have a set of code as below:
    IF NOT C011[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = '0CALDAY'.
      LOOP AT C011 .
        CLEAR L_S_RANGE.
        MOVE C011-SIGN TO L_S_RANGE-SIGN.
        MOVE C011-OPTION TO L_S_RANGE-OPTION.
        MOVE C011-LOW TO L_S_RANGE-LOW.
        MOVE C011-HIGH TO L_S_RANGE-HIGH.
        MOVE RS_C_TRUE TO L_S_RANGE-KEYFL.
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
    You need to search for 0CALDAY Code. It will look like above.
    Now above all this IFs for characteristics, you can write the code for selective deletion.
    The code will be like below.
    DATA: date TYPE D,
          date1 TYPE D,
          RUN_MN1 TYPE /BI0/OICALDAY,
          LE_CO11 LIKE LINE OF C011.
    date = sy-datum.
    date1 = date - 30.
    RUN_MN1 = date1.
    LE_CO11-SIGN = 'I'.
    LE_CO11-OPTION = 'LT'.
    LE_CO11-LOW = RUN_MN1.
    CLEAR C011.
    APPEND LE_CO11 TO C011.
    Hope this helps.
    Regds,
    Shashank

  • Exporting table from methode

    Hi experts,
    how can I handle it to exporting a table from a structure from a methode?
    At the moment I export the structure in the methode but I need to export a table.
    At the moment:
    Parameter    Type           Typing Methode  Associated Type
    param_1      Exporting    Type                    structure
    I need something like that:
    Parameter    Type           Typing Methode  Associated Type
    param_1      Exporting    Type Table of      structure
    ... but that is not possible

    I think he meant something like this
    CLASS lcl_test DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS: get_tab EXPORTING gen_table TYPE table.
    ENDCLASS.                  
    CLASS lcl_test IMPLEMENTATION.
      METHOD get_tab.
        SELECT * FROM sflight INTO TABLE gen_table UP TO 10 ROWS.
      ENDMETHOD.                   
    ENDCLASS.                   
    START-OF-SELECTION.
      DATA: it_sflight TYPE TABLE OF sflight.
      lcl_test=>get_tab( IMPORTING gen_table = it_sflight ).
      "here IT_SFLIGHT holds what you want
    Of course you could make it more generic, meaning query dynamic DB table inside get_tab and create dynamic table outside the method call to get returned data to that table. But basically it shows the idea.
    Regards
    Marcin

Maybe you are looking for