Exporting while excluding table

Hi!
i am trying to export a schema and exclude 2 tables. I am working on 10g on RHEL5.
I am using
expdp schemas=BARRY exclude=TABLE:"IN ('TBL1','TBL2')" dumpfile=barry.dmp logfile=barry.log
and i get the following errors:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
ORA-39001: invalid argument value
ORA-39071: Value for EXCLUDE is badly formed.
ORA-00936: missing expression
Where am i going wrong?

Thanks Satish!
I created the parameter file and just moved all the attributes to that. It worked like a charm.
Aman!
Thanks for your input. I had to use IN as i have to exclude two tables.
Anyways, Thansk for your advices!

Similar Messages

  • How to exclude tables while doing import in Traditional import/export

    Hi OTN,
    Please suggest me, while using Oracle Datapump we can exclude tables as below i mentioned.... if i will use Traditional export/import how can i exclude tables.
    impdp tech_test10/[email protected] directory=EAMS04_DP_DIR dumpfile=EXP_DEV6_05092012.dmp logfile=IMP_TECH_TEST10_29MAY.log REMAP_SCHEMA=DEV6:TECH_TEST10 remap_tablespace=DEV6_DATA ATA_TECH_TEST10 remap_tablespace=DEV6_INDX:INDEX_TECH_TEST10 EXCLUDE=TABLE:\"IN \(\'R5WSMESSAGES_ARCHIVE\',\'R5WSMESSAGES\',\'R5AUDVALUES\'\)\"
    Your suggestions will be helpful to me find the way.

    you cannot exclude. But you can use tables parameter to list all the tables needs to be exported.
    exp scott/tiger file=emp.dmp tables=(emp,dept)
    similarly for import
    Edited by: Kiran on Jul 18, 2012 2:20 AM

  • How to do a full export and exclude user specific tables

    Hi all,
    Is it possible to export all objects but one (or more) tables with expdp when doing a full export?
    This is what I've to in mind: (parfile)
    directory=expdp
    dumpfile=full.dmp
    logfile=full.elog
    full=y
    exclude=table:"IN('userA.table_A')"
    This par-file does not encounter any error messages but it doesn't exclude table_A in schema userA either.
    I guess that's because the the term userA is not interpreted as an owner.
    It's not a big deal to filter out a table when doing a schema export.
    I wonder whether it is at all possible do except a table from a full export. If so, I'd value your suggestions.
    Regards,
    Louis

    Louis,
    The exclude parameter in DataPump takes only the object name, not the schema name. So, if you only have one table called 'TableA', then you can just use:
    exclude=table:"IN('table_A')"
    If you have more than one table called 'table_A', then the exclude will exclude all of them. There is no way to specify user_1.table_a with an exclude parameter.
    Dean

  • Datapump Export - multiple EXCLUDE patterns for TABLE

    I'm performing an export and I have two classes of tables (as in LIKE filters) that I wish to exclude. I've tried using multiple LIKE statements:
    EXCLUDE=TABLE:"LIKE 'FILTER1%'"
    EXCLUDE=TABLE:"LIKE 'FILTER2%'"
    However this way it appears the second EXCLUDE overwrites the first and only tables matching FILTER2% are excluded.
    Doing it like this has the same behavior and only tables matching FILTER2 are excluded
    EXCLUDE=TABLE:"LIKE 'FILTER1%'",TABLE:"LIKE 'FILTER2%'"
    The following are not syntactically correct but seemed worth trying
    EXCLUDE=TABLE:"LIKE 'FILTER1%' OR 'FILTER2%'"
    EXCLUDE=TABLE:"LIKE 'FILTER1%' OR LIKE 'FILTER2%'"
    Is there any way to accomplish what I'm trying to do here? This is 10.2.0.2.
    Thanks

    Hi,
    I can figure out a way for export, but not for import. If this is a user doing it's own tables, then you could use this
    exclude=table:'IN(select table_name from user_tables where table_name like ''TAB1%'' OR TABLE_NAME LIKE ''TAB2%'';
    If you are doing this for multiple schemas, then you need to use something like:
    exclude=table:'IN(select table_name from dba_tables where table_name like ''TAB1%'' OR TABLE_NAME LIKE ''TAB2%'';
    This does not work for import since chances are, the tables don't exist, so the query will return no rows found.
    Dean

  • Object Open Error while trying to export the vDataFact table

    I am getting an error when trying to export the vDataFact table to a flat file.  I have been able to do this several time before with the segment tables but would like to run this against vDataFact
    The error in the error log is:
       ERROR:
           Code............ -2147217915
           Description..... Object was open.
    The screen error is:
          The connection cannot be used to perform this operation.  It is either closed or invalid in this context.
    The line that appears to cause the issue is: Set rssql = API.DataWindow.DataAccess.farsKeySet(CStr(strSQL))
    Here is my complete script:
    Sub webdatafacts()
    'Declare Variables
       Dim objFileSystem 'File System
       Dim strFileName 'File name
       Dim ObjTextFile
    'SQL variables
      Dim strSQL ' Placehold for SQL Query
      Dim rssql 'Placeholder for result set for sql query execution
    'SQL Statement
                strSQL = "SELECT PartitionKey, Account, AccountX, Entity, EntityX, ICP, ICPX, UD1, UD1X, UD2, UD2X, UD3, UD3X, UD4, UD4X, Amount  FROM vDataFact" 
                set rsSQL = DW.DataAccess.farsFireHose(strSQL,False)
    'Create the filesystem object
                Set objFileSystem = CreateObject("Scripting.FileSystemObject")
                Set ObjTextFile = objFileSystem.OpenTextFile(DW.Connection.PstrDirInbox & "\VDataFactExport.txt", 2, TRUE, 0)  
                ObjTextFile.Close
                If Not rssql.EOF and Not rssql.BOF Then
                Set objTextFile = objFileSystem.OpenTextFile(DW.Connection.PstrDirInbox & "\VDataFactExport.txt", 2, FALSE, 0)
                Do Until rssql.EOF
    'Loop across all fields in recordset delimiting them with a tab key
                For i = 0 To rssql.Fields.Count -1
               strString = StrString & rssql(i) & vbTab
               Next
    'Output the resulting string to the text file
              ObjTextFile.WriteLine (strString)
    'Reset the string to empty for the next record
             strString = ""
    'Move to the next record in the recordset
                  rssql.MoveNext
                  Loop
    'Close the recordset and the text file
                 rssql.Close
                 ObjTextFile.Close
        End If
    'Destroy the instance of the recordset from memory
          Set rssql = Nothing
    End Sub

    Thanks, that was one of my suspicions, however, i was able to get the script to work by changing:
    set rsSQL = DW.DataAccess.farsFireHose(strSQL,False)
    to
    set rsSQL = DW.DataAccess.farsFireHose(strSQL,True)
    ...to be honest though, i'm not entirely sure why that fixed my issue

  • Shell Creation Modify Control Files with Exclude Table Information  Step er

    I am try to create Shell using TDMS  I  am gettingbelow error while executing step Modify Control Files with Exclude Table Information.
    I am getting error saying that    //No such file or direcroty  Message no.: CNV_TDMS_13_SHELL000
    I am using NFS common mount as my install directory between CI & DB, please can you help me.
    Please can help me.
    Thanks
    Ramesh

    It appears that the directory for shell installation is not accessible from CI (TDMS execution server). Do the following -
    Copy the entire Shell installation directory (having TPL files) temporarily to the CI app. server and maintain the path of this directory in the TDMS package.
    Then execute the activity which is currently failing. Most probably it will finish successfully.
    Now copy the DDLORA.TPL file from this directory to the original directory on the DB app server and continue with your exports.
    I hope this helps.

  • Exclude tables list kink option in exp/imp ????

    Hi,
    Is there any option to exclude tables while exp/imp, if so from which version?
    Thanks.

    Actually, in 10.1 and later, the Data Pump versions of export and import allow you to specify an EXClUDE parameter to exclude one or more tables.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Html error while downloading table entries to Excel.

    Hi,
    I am getting an error while downloading table entries from webdynpro to excel. After some entries below error script comes and  this is not comming all the times.
    Is this because of large size?Can anyone please suggest me on this?
    <u>Here is the dump:</u>
    [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>                                   
    <head>                                   
         <title>Error Report</title>                              
    <style>                                   
    td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}                                   
    A:link                                    
    A:visited                                    
    A:active                                    
    </style>                                   
    </head>                                   
    <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">                                   
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">                                   
    <tr bgcolor="#FFFFFF">     
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  500   Internal Server Error</b></font></td>     
    </tr>     
    <tr bgcolor="#3F73A3">     
        <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>     
        <td height="23"><img width=1 height=1 border=0 alt=""></td>     
        <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/6.40 </b></font></td>     
    </tr>     
    <tr bgcolor="#9DCDFD">     
        <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>     
    </tr>     
    </table>     
    <br><br><br><br><br><br>     
    <p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  Application error occurs during processing the request.</b></font></p>     
    <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table><tr><td valign="top"><b> Details:</b></td><td valign="top"><PRE><pre>com.sap.engine.services.servlets_jsp.server.exceptions.WebIllegalStateException: The stream has already been committed.     
         at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:792)
         at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:780)
         at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:768)
         at com.sap.tc.webdynpro.serverimpl.core.url.WebDynproExchangeHandler.responseCachedWebResource(WebDynproExchangeHandler.java:98)
         at com.sap.tc.webdynpro.serverimpl.core.url.WebDynproExchangeHandler.doExchange(WebDynproExchangeHandler.java:189)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doExchangeProcessing(DispatcherServlet.java:164)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:119)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    </pre></PRE></font></td></tr></table></font></p>     
    </body>     
    </html>[/code]
    Thanks,
    Sanjeev

    Hallo Sanjeev,
    How do you exactly "download the table entries from Web Dynpro to Excel?"
    I wrote a new <b>Wiki Code Tutorial </b>which demonstrates how to download an Excel file from a Web Dynpro <i>Table </i>UI element <b>on-demand</b>. In this scenario the resource gets re-created on every request. The solution is based on re-initializing the context with a new  0-byte resource object within the calculated context attribute getter method.
    See <a href="https://wiki.sdn.sap.com/wiki/display/Snippets/ExportingTableDatainWebDynproJava-SAPNetWeaver04s">Exporting Table Data in Web Dynpro Java - SAP NetWeaver 04s</a>
    Regards, Bertram

  • Error while importing table having ctxcat index

    Hi
    I created a table and ctxcat index on the same. I exported the same. While importing, table got imported but for index creation it gave error imp-00017 with ora-29855.
    Though the index have been created but with some errors. I can see the index in all_indexes table but if i try to see the entry in dba_segments, record is not found.
    Seems that index is not created properly.
    Pls suggest ASAP.
    Regards
    Rajiv

    What's your source and target Oracle version ?
    1) make sure context option is installed on target DB
    2) create a user ctxsys, the schema where the context related objects resides

  • Doubt in  export, import and table para when creating Function Module

    Dear fellow ABAPers,
    I have a doubt in defining export, import and table parameter while creating a function module.
    I am calling a function module inside a user exit. Now in the user exit the SAP fills an internal table called i_lfa1 with all the data user has eneterd.
    Now I want to pass this whole internal table to function module and the perform some checks on the values of internal table.
    After that function module fills an error structure with values depending on some check.
    1)
    How do I pass this internal table to function module ? 
    When I am creating function module in se37 where do I define this iternal table type ? Is it in Import or Table parameter during function module creation?
    2)
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Please clear my doubt..
    Relevant points will be awarded.
    Regards,
    Tushar.

    Hi Tushar,
    1. How do I pass this internal table to function module ?
       I assume u are creating your own Y/Z FM.
       Pass it thru TABLES parameter.
    2. When I am creating function module in se37 where do I define this iternal table type
       Define this in TABLES interface.
       What Type ?
       THE SAME TYPE WHICH HAS BEEN DEFINED
        WHILE PASSING IN THE USER-EXIT FUNCTION MODULE.
       IF U SEE THE FM OF THE USER-EXIT,
       U WILL COME TO KNOW.
    3.
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Define it in TABLES interace. (not in export, import)
      (Since what u are going to return is an internal table)
      U can take for eg. BDCMSGCOLL.
      OR u can create your own Y/Z structure
    for the same purpose.
      (or u can use the structure type T100)
    I hope it helps.
    Regards,
    Amit M.

  • Exporting a single table from an acrobat created form

    I created a 5 page document InDesign (CS5.5), On one page I created a table that is 4 columns x 25 rows (with the first row being a header), using the table feature. I then exported to pdf and finalized the form in Acrobat 9.2 Pro. After running the Form Field Recognition the table was populated with the appropriate fields. I finalized the form and distributed. When the form is returned to me, I am trying to export JUST the information in this table to a spreadsheet (employee name, title, phone, email, ) and do not seem to be able to do so. Is this possible from a form? It doesn't seem like the pdf recognizes this table as a table any longer. It is a list of attendees, so I want to take this list from each returned form and combine them all into a master list.
    With the selection tool I have tried to select all the text > right click > Open Table in Spreadsheet and only the header rows appear. If I choose just the text and not the headers, then nothing appears. If I export the entire document then each cell of the table is its own column in excel, which makes sense since they all have different field names, but this doesn't make the spreadsheet useful. The only thing I have been able to do is select all the cells, copy into notepad, place a tab between each piece of information > save and open that document in excel. I am hoping there is an easier way. Basically all I am trying to do is have that table appear in excel as it does the pdf. I have searched several websites and have not been able to find anything that specifically deals with exporting a single table from a completed form.
    Perhaps I need to set the table field names differently? Any assistance would be greatly appreciated.

    The "table" idea here is just a design idea, the identity as a table no longer exists in a PDF.  The feature you're trying to use is for tables which are part of the regular PDF, not form fields.
    You can export form data. All fields, but then process to exclude the ones you don't want.

  • Problem while importing table with blob datatype

    hi i am having a database 9i on windows xp and dev database 9i on AIX 5.2
    while i am taking export of normal tables and trying to import i am successful.but when i am trying to import a table with blob datatype it is throwing "tablespace <tablespace_name> doesn't exist" error
    here how i followed.
    SQL*Plus: Release 9.2.0.1.0 - Production on Mon Oct 8 14:08:29 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Enter user-name: test@test
    Enter password: ****
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL> create table x(photo blob);
    Table created.
    exporting:
    D:\>exp file=x.dmp log=x.log tables='TEST.X'
    Export: Release 9.2.0.1.0 - Production on Mon Oct 8 14:09:40 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Username: pavan@test
    Password:
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export specified tables via Conventional Path ...
    Current user changed to TEST
    . . exporting table X 0 rows exported
    Export terminated successfully without warnings.
    importing:
    D:\>imp file=x.dmp log=ximp.log fromuser='TEST' touser='IBT' tables='X'
    Import: Release 9.2.0.1.0 - Production on Mon Oct 8 14:10:42 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Username: system@mch
    Password:
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining op
    tions
    JServer Release 9.2.0.6.0 - Production
    Export file created by EXPORT:V09.02.00 via conventional path
    Warning: the objects were exported by PAVAN, not by you
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    import server uses US7ASCII character set (possible charset conversion)
    . importing TEST's objects into IBT
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE TABLE "X" ("PHOTO" BLOB) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS "
    "255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "TESTTB"
    "S" LOGGING NOCOMPRESS LOB ("PHOTO") STORE AS (TABLESPACE "TESTTBS" ENABLE "
    "STORAGE IN ROW CHUNK 8192 PCTVERSION 10 NOCACHE STORAGE(INITIAL 65536 FREE"
    "LISTS 1 FREELIST GROUPS 1))"
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'TESTTBS' does not exist
    Import terminated successfully with warnings.
    why it is happening for this table alone?plz help me
    thanks in advance

    Here is exerpt from {
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:378418239571}
    =============================================
    Hi Tom,
    I have a dump file containing blob datatypes, when i import the dump file in a schema it gives an
    error stating that the tablespace for Blob datatype does not exists. My question is how do i import
    the dump file in the default tablespace of the importing user.
    Followup March 2, 2004 - 7am US/Eastern:
    You'll have to precreate the table.
    do this:
    imp userid=u/p tables=that_table indexfile=that_table.sql
    edit that_table.sql, fix up the tablespace references to be whatever you want to be, run that sql.
    then imp with ignore=y
    for any MULTI-SEGMENT object (iot's with overflows, tables with lobs, partitioned tables, for
    example), you have to do this -- imp will not rewrite ALL of the tablespaces in that
    multi-tablespace create -- hence you either need to have the same tablespaces in place or precreate
    the object with the proper tablespaces.
    Only for single tablespace segments will imp rewrite the create to go into the default if the
    requested tablespace does not exist.
    ===================================================
    To summarize: precreate target table when importing multi-segment tables

  • Excluding table in impdp

    Hi Friends,
    I need to exclude two tables in impdp.. help me in this...
    impdp system directory=exportdump tables=SYNC.cin_document query=SYNC.CIN_DOCUMENT:'"where rownum<10"' dumpfile=satexpdpdump.dmp logfile=1.log CONTENT=DATA_ONLY EXCLUDE=TABLE:"SYNC.CIN_DETAIL,SYNC.CIN_DOCUMENT_GTIN"
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39001: invalid argument value
    ORA-39071: Value for EXCLUDE is badly formed.
    ORA-00920: invalid relational operator

    Thanks friends ,,, I got the solution.
    Solution:
    instead of excluding i have mentioned only one table name in "tables=SYNC.cin_document" field. I have just removed the EXCLUDE option ..It is working fine..
    The following query i have used.
    impdp system directory=exportdump tables=SYNC.cin_document query=SYNC.CIN_DOCUMENT:'"where rownum<2570000"' dumpfile=satexpdpdump.dmp logfile=2570000d000gih.log CONTENT=DATA_ONLY
    For your reference.:
    The following scenario explains: 3 tables exported under scott. but we need to import only two tables. output follows
    step1:
    =============
    create directory data_pump_dir as '/u01/oracle/my_dump_dir';
    grant read,write on directory data_pump_dir1 to system;
    expdp system/sys DIRECTORY=data_pump_dir DUMPFILE=tables.dmp logfile=table.log TABLES=SCOTT.DEPT,SCOTT.EMP,SCOTT.BONUS
    output:
    [oracle@linux1 ~]$ expdp system/sys DIRECTORY=data_pump_dir DUMPFILE=tables.dmp logfile=table.log TABLES=SCOTT.DEPT,SCOTT.EMP,SCOTT.BONUS
    Export: Release 10.2.0.1.0 - Production on Tuesday, 10 May, 2011 19:40:00
    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 "SYSTEM"."SYS_EXPORT_TABLE_01": system/******** DIRECTORY=data_pump_dir DUMPFILE=tables.dmp logfile=table.log TABLES=SCOTT.DEPT,SCOTT.EMP,SCOTT.BONUS
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 128 KB
    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/CONSTRAINT/REF_CONSTRAINT
    . . exported "SCOTT"."DEPT" 5.656 KB 4 rows
    . . exported "SCOTT"."EMP" 7.820 KB 14 rows
    . . exported "SCOTT"."BONUS" 0 KB 0 rows
    Master table "SYSTEM"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
    Dump file set for SYSTEM.SYS_EXPORT_TABLE_01 is:
    /u01/app/oracle/product/10.2.0/db_1/rdbms/log/tables.dmp
    Job "SYSTEM"."SYS_EXPORT_TABLE_01" successfully completed at 19:40:22
    [oracle@linux1 ~]$
    Step 2:
    SQL> alter table DEPT rename to dept1;
    Table altered.
    SQL> alter table EMP rename to emp1;
    Table altered.
    SQL> select * from tab;
    TNAME TABTYPE CLUSTERID
    BONUS TABLE
    SALGRADE TABLE
    EMP1 TABLE
    DEPT1 TABLE
    ==============================================================================
    [oracle@linux1 ~]$ impdp system/sys DIRECTORY=data_pump_dir DUMPFILE=tables.dmp TABLES=SCOTT.DEPT,SCOTT.EMP
    output:
    Import: Release 10.2.0.1.0 - Production on Tuesday, 10 May, 2011 19:48:51
    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
    Master table "SYSTEM"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_TABLE_01": system/******** DIRECTORY=data_pump_dir DUMPFILE=tables.dmp TABLES=SCOTT.DEPT,SCOTT.EMP
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "SCOTT"."DEPT" 5.656 KB 4 rows
    . . imported "SCOTT"."EMP" 7.820 KB 14 rows
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    ORA-31684: Object type INDEX:"SCOTT"."PK_DEPT" already exists
    ORA-31684: Object type INDEX:"SCOTT"."PK_EMP" already exists
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    ORA-31684: Object type CONSTRAINT:"SCOTT"."PK_DEPT" already exists
    ORA-31684: Object type CONSTRAINT:"SCOTT"."PK_EMP" already exists
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-39083: Object type REF_CONSTRAINT failed to create with error:
    ORA-02270: no matching unique or primary key for this column-list
    Failing sql is:
    ALTER TABLE "SCOTT"."EMP" ADD CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO") REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
    Job "SYSTEM"."SYS_IMPORT_TABLE_01" completed with 5 error(s) at 19:48:54
    [oracle@linux1 ~]$
    SQL> select * from tab;
    TNAME TABTYPE CLUSTERID
    BONUS TABLE
    SALGRADE TABLE
    EMP1 TABLE
    DEPT1 TABLE
    DEPT TABLE
    EMP TABLE
    6 rows selected.
    SQL>

  • Export fails when table is empty

    Hey Everyone,
    Dumb question. What is the export syntax I need to export just the table structure of an empty table. The example below works when the table has data, but when it's empty I receive an "EXP-00011: <table> does not exist" error.
    Thanks in advance for any help,
    Roger
    C:\>exp nwis/xxx@nwishq file=C:\Loader\testdmp tables=(XSEC_SRVY_STN_54,DBN_DEF) rows=N log=C:\Loader\nwis.log
    Export: Release 11.2.0.1.0 - Production on Tue Feb 1 17:43:21 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    Note: table data (rows) will not be exported
    About to export specified tables via Conventional Path ...
    EXP-00011: NWIS.XSEC_SRVY_STN_54 does not exist
    . . exporting table DBN_DEF
    Export terminated successfully with warnings.
    C:\>sqlplus nwis/xxx@nwishq
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 1 17:44:02 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    GLogin Script Executing...
    Session altered.
    GLogin Script Complete.
    NWISHQ.NWIS>col object_name format a30
    NWISHQ.NWIS>select object_name, object_type, status
    2 from user_objects
    3 where object_type = 'TABLE' and object_name in ('XSEC_SRVY_STN_54','DBN_DEF');
    OBJECT_NAME OBJECT_TYPE STATUS
    DBN_DEF TABLE VALID
    XSEC_SRVY_STN_54 TABLE VALID
    NWISHQ.NWIS>desc XSEC_SRVY_STN_54
    Name Null Type
    SITE_VISIT_ID NOT NULL NUMBER
    XSEC_SRVY_START_DT NOT NULL DATE
    XSEC_SRVY_STN_VA NOT NULL FLOAT(53)
    XSEC_SRVY_STN_SG NOT NULL CHAR(1)
    XSEC_SRVY_STN_RD NOT NULL CHAR(1)
    XSEC_SRVY_STN_DT NOT NULL DATE
    XSEC_SRVY_STN_TD NOT NULL CHAR(6)
    TM_DATUM_RLBLTY_CD NOT NULL CHAR(1)
    XSEC_SRVY_DEPTH_BTTM_VA FLOAT(53)
    XSEC_SRVY_DEPTH_BTTM_SG NOT NULL CHAR(1)
    XSEC_SRVY_DEPTH_BTTM_RD NOT NULL CHAR(1)
    XSEC_SRVY_DEPTH_BTTM_UNC_VA FLOAT(53)
    XSEC_SRVY_DEPTH_BTTM_UNC_CD NOT NULL CHAR(4)
    NWISHQ.NWIS>desc DBN_DEF
    Name Null Type
    DB_NO NOT NULL CHAR(2)
    DB_DS NOT NULL VARCHAR2(255)
    ADAPS_FG NOT NULL CHAR(1)
    GWSI_FG NOT NULL CHAR(1)
    QW_FG NOT NULL CHAR(1)
    SWUDS_FG NOT NULL CHAR(1)
    NWISHQ.NWIS>select count(*) from XSEC_SRVY_STN_54;
    COUNT(*)
    0
    NWISHQ.NWIS>select count(*) from DBN_DEF;
    COUNT(*)
    11
    NWISHQ.NWIS>insert into XSEC_SRVY_STN_54 values (1,to_date('1/1/11','mm/dd/yy'),2,'y','n',to_date('1/2/11','mm/dd/yy'),'abcde
    f','y',3,'y','n',4,'abcd');
    1 row created.
    NWISHQ.NWIS>commit;
    Commit complete.
    NWISHQ.NWIS>exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    C:\>exp nwis/xxx@nwishq file=C:\Loader\testdmp tables=(XSEC_SRVY_STN_54,DBN_DEF) rows=N log=C:\Loader\nwis.log;
    Export: Release 11.2.0.1.0 - Production on Tue Feb 1 17:48:44 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    Note: table data (rows) will not be exported
    About to export specified tables via Conventional Path ...
    . . exporting table XSEC_SRVY_STN_54
    . . exporting table DBN_DEF
    Export terminated successfully without warnings.
    C:\>

    See Oracle Support Doc :
    Original Export Raises EXP-11 Table Does Not Exist or Table is Ignored [ID 960216.1]
    Also see the threads
    Some tables missing while taking dump
    Import the table with 0 rows
    I note that you have discovered one "fix" or "workaround" --- insert 1 row into the table before it is exported.
    Hemant K Chitale
    Edited by: Hemant K Chitale on Feb 2, 2011 9:54 AM

  • Error while creating table "EDISEGMENT' entry 'BIC/CIBA0PLANT_ATTR

    While loading master data for 0PLANT, its giving me following error.
    "error while creating table "EDISEGMENT' entry 'BIC/CIBA0PLANT_ATTR"
    Please help me out.
    Thanks

    steve,
    Can you give the solution you used to correct this problem?
    This error occurred in BW during import.
    Raj.

Maybe you are looking for

  • OGG Vorbis in iTunes 10?

    How to play OGG Vorbis in iTunes 10? Tried XiphQT 0.1.9 and oggvorbis_r45 component, but no luck.. Any ideas ?

  • Macbook pro running extremely slow, help please!

    Problem description: Running slow EtreCheck version: 2.1.8 (121) Report generated April 12, 2015 at 11:30:16 AM CDT Download EtreCheck from http://etresoft.com/etrecheck Click the [Click for support] links for help with non-Apple products. Click the

  • Macbook Pro Retina graphic problem

    I have the new macbook pro Retina , 4-5 times a week  the graphic is  very laggy , in the games like World of Warcraft or Diablo i have 5-9 fps   at the apple hotline  we make many tries to find die problem and the last thing  which helped was the SM

  • Trouble syncing iPod Touch

    I tried to sync our ipod Touch to the computer again today.  I hadn't done so since just after it was purchased.  Halfway through the backup, it reported an "unknown error".  However, the hashed bar at the top of itunes continued.    I tried to wait

  • I can`t make phone calls

    I can`t make phone calls, when I dial, my phone shows "dialing" and then "call ended" , I have tried with different numbers and it is always the same, I did already a soft reset and it doesn`t work. What could it be??? Post relates to: Treo Pro T850U