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>

Similar Messages

  • Impdp exclude tables getting error

    hi,
    i issued impdp like this
    $impdp dumpfile=xxxxx.dmp logfile=xxx.log directory=xxxxxx exclude=table:"IN('scott.emp','tiger.dept')" full=y version=10.2.0.3
    getting error
    "exclude badly formed"
    thanks in advance
    g

    Like oradba said, it is better to use a parameter file.
    Depending on your Operational System, special characters in the EXCLUDE clause may need to be escaped if you use the command line.
    Take a look here for more info: http://www.oracle-base.com/articles/10g/OracleDataPump10g.php#IncludeExclude

  • 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

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

  • 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

  • How to Exclude table like %AUDIT% using the Datapump API

    Hello,
    I am trying to use the datapump API to import table across a database link excluding table with a name like %AUDIT%. I have it all working except the table execution. I am using Oracle 11.1.0.6.

    this works in my app
    in DB R11.2
    in job_mode = 'TABLE'
              dbms_datapump.metadata_filter (
              handle          =>     job_handle,
              name          =>     'NAME_EXPR',
              value          =>     'NOT IN (''TABLENAME_1'', ''TABLENAME_2'' , ''TABLE_NAME_3'' )'
    try this works for you
              dbms_datapump.metadata_filter (
              handle          =>     job_handle,
              name          =>     'NAME_EXPR',
              value      => 'NOT LIKE ''%AUDIT%'''
    Edited by: astramare on Jul 7, 2011 2:57 PM

  • Any way to use filter to exclude tables in navagation pane?

    Is there any way to use filter to exclude a set of tables from the table list in the navagation pane? I have a number of tables (15+) starting with the same prefix eg. AB123 that I would like eliminate from the list. They sort right to the top and I always have to scroll down, and go through the show more dialog to see the entire list.
    I am sure I'm missing something, but not sure what. Help Center has nothing to offer.
    Thanks
    Glenn

    This has been mentioned on the forum before - basically the need for more elaborate ways to filter (multiple conditions as well as 'not like'). It is on our list for future consideration, meaning post-production.
    -- Sharon
    Message was edited by:
    sbkenned

  • How to exclude Table`s  scroll bar from Drag Source

    Hi
    i have an af:table inside other af:table as its column like below sample
    and user can drag inner table and drop it to other row of outer table but when user click on the scrollbar of inner table to scrolling the inner table selected as drag source and user con not scroll inner table
    so is it possible to exclude scroll bars of table from drag source?
    depart Id
    Dep name
    Emp
    dep1
    IT
    emp Name
    emp email
    emp Tel
    jan
    [email protected]
    8990
    dav
    [email protected]
    8844
    dep2
    Finance
    emp Name
    emp email
    emp Tel
    smit
    [email protected]
    8745
    mary
    [email protected]
    8952

    Hi,
    Always mention your JDev version.
    As Timo mentioned, it would be easier for you if you use a treeTable. Any specific reasons why you don't want to use it? If you want to do it through iterator, you could also use a grid layout (depends on your JDev version) to make it look like a grid.
    -Arun

  • Exclude schema grants - impdp

    Hi Experts,
    I am getting the following error during import using impdp
    Failing sql is:
    GRANT SELECT ON "CM_DBA"."PARTY" TO "CM_USR"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'CM_USR' does not exist
    Failing sql is:
    GRANT SELECT ON "CM_DBA"."PARTY_RLN" TO "CM_USR"
    How to exclude CM_USR during import in windows?
    Thanks for the help.
    Regards,
    Richard

    This link will be helpful
    http://psoug.org/reference/datapump.html
    Here just find out word EXCLUDE a good explanation is given

  • How to exclude tables from default scheduled stats job in 10.2.0.4

    I am using Oracle default stats job GATHER_STATS_JOB in my database. But i need to exclude stats gathering for few tables as part of my business requirement.

    Welcome to the forums.
    As I am sure you read the docs on DBMS_STATS at tahiti.oracle.com what was it about the method for addressing it in the docs that you don't think will work for you.
    Hint: The correct answer to my question is not "I didn't read the docs because I thought someone here would read them for me." ;-)

  • How to exclude table from capture process in 9.2.0.8?

    I have stream replication in Oracle 9.2.0.8 at schema level. In the list of tables I need to exclude one.
    How can I do that?
    Thanks in advance

    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_strm_2.htm#1006471
    Read everything that has the word "RULES" in it and seems to apply.

  • How to exclude tables from Schema level replication

    Hi All,
    I am currently trying to setup Oracle Streams (Oracle 11.1.0.6 on RHEL5) to replicate a schema from one instance to another.
    The basic schema level replication is working well, and copying DDL and DML changes without any problems. However there are a couple of tables that I need to exclude from the stream, due to incompatible datatypes.
    Does anybody have any ideas or notes on how I could achieve this?? I have been reading the Oracle documentation and find it difficult to follow and confusing, and I have not found any examples in the internet.
    Thanks heaps.
    Gavin

    When you use SCHEMA level rules for capture and need to skip the replication of a few tables, you create rules in the negative rule set for the table.
    Here is an example of creating table rules in the negative rule set for the capture process.
    begin
    dbms_streams_adm.add_table_rules(
    table_name => 'schema.table_to_be_skipped',
    streams_type => 'CAPTURE',
    streams_name => 'your_capture_name',
    queue_name => 'strmadmin.capture_queue_name',
    include_dml => true,
    include_ddl => true,
    inclusion_rule => false
    end;
    table_name parameter identifies the fully qualified table name (schema.table)
    streams_name identifies the capture process for which the rules are to be added
    queue_name specifies the name of the queue associated with the capture process.
    Inclusion_rule=> false indicates that the create rules are to be placed in the negative rule set (ie, skip this table)
    include_dml=> true indicates DML changes for the table (ie, skip DML changes for this table)
    include_ddl=> true indicates DDL changes for the table (ie, skip DDL changes for this table)

  • How do I exclude tables from Dataguard?

    We are in the process of setting up Dataguard on an Oracle EE 12c RHEL 6 installation.  Our primary database contains a set of tables that are used to send automatic email messages to our users.  We do not want them to receive additional emails from the standby database as well.  Is it possible to exclude these tables from Dataguard, or will we need a job to work against the standby database that will nullify these emails?
    Cheers

    >>Our primary database contains a set of tables that are used to send automatic email messages to our users.We do not want them to receive additional emails from the standby database as well.  Is it possible to exclude these tables from Dataguard, or will we need a job to work against the standby database that will nullify these emails?
    It depends on how have you got setup working.
    If it is  an OS level script or job sending email then you do not need to have the same script running on Standby database.
    If it is running as a scheduler job, and your database is 11.1 above you can look into this note,
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/schedover010.htm#BGBJCFCB
    Examples can be fount at - http://docs.oracle.com/cd/B28359_01/server.111/b28310/schedadmin006.htm#ADMIN12506
    HTH,
    Pradeep

  • Excluding tables in user export

    Does anybody know of a way to exclude certain tables from a user (schema) level export in 9i? I know I can use pattern matching to export certain tables, but if a schema has 100 tables, and I wanted to exclude 3 of them from exporting how could I do this (without listing the other 97 in a par file)?

    I am hoping to find a way to exclude certain tables instead of reverting to listing all of them out directly. I am working on a project to migrate this database from one data center to another, and upgrading it to 10g. This is a dev database so tables could be added or dropped in this working dev database in the next couple months, and I didn't want to miss any tables that were added. The tables I want to exclude are very large, and I am exporting them seperately to keep the dmp file down to a manageable size (even after gzipping it).

Maybe you are looking for

  • Sudo Command Problems

    I tried to use the sudo command in my terminal. The first time i entered the command " sudo chmod a+x install-mac-linux.sh " ,it said the warning and then asked for a password. I tried to type in my password, but nothing would show up on the terminal

  • Authorizations & Roles in ISA

    Hi, FIRST PART - USER ADMINISTRATION      I have a requirement where in I have to add a new authoization (fo providing "User is approver" role) . What are all the necessary things to be done to add a new role/authorization to pop up in role list whil

  • MIGO & Valuation Class

    Hi  all, We have a dilemma between the accounting department and the purchasing department. We create first a material purchase order with tcode ME21N and Account Assignment Category u201CQu201D  .Later when we run the tcode MIGO the following moveme

  • Info about recover copy option

    Hello, my commands are based on a dataguard configuration, but I think my question is a general one. The manual describes a possible work flow like the one below about backup operations to be done every day (on physical standby): 1) RESYNC CATALOG FR

  • Typing French Accents

    How do I type french accents? Do you use some sort of code like with a windows computer? Any help would be greatly apprectiated. Thanks