Home » RDBMS Server » Server Utilities » impdp issue - ORA-02264 (Oracle Server 10G)
impdp issue - ORA-02264 [message #425113] Wed, 07 October 2009 10:46 Go to next message
A4orce84
Messages: 2
Registered: October 2009
Location: Texas
Junior Member
Hey Everyone,

Trying to do a simple import/export of a table using the impdp and expdp commands and running into an issue.

The export works correctly with no issues, but when I try to import, I get the following results:

Processing object type TABLE_EXPORT/TABLE/TABLE
ORA-39083: Object type TABLE failed to create with error:
ORA-02264: name already used by an existing constraint

Failing sql is:
CREATE TABLE "NI"."NIPC_ATTRIBUTE_VALUES" ("PRODUCT_ID" NUMBER(8,0) CONSTRAINT "NN_PRODUCT_ID" NOT NULL ENABLE, "ATTRIBUTE_ID" NUMBER(8,0) CONSTRAINT "NN_ATTRIBUTE_ID_2" NOT NULL ENABLE, "ATTRIBUTE_VALUE" VARCHAR2(2000) CONSTRAINT "NN_ATTRIBUTE_VALUE" NOT NULL ENABLE, "ATTRIBUTE_UNIT_CODE" VARCHAR2(30) CONSTRAINT "NN_ATTRIBUTE_UNIT_CODE" NOT NULL ENABLE, "SYSTEM" VARCHAR2(30) CO
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
ORA-39112: Dependent object type OBJECT_GRANT:"NI" skipped, base object type TABLE:"NI"."NIPC_ATTRIBUTE_VALUES" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"NI" skipped, base object type TABLE:"NI"."NIPC_ATTRIBUTE_VALUES" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"NI" skipped, base object type TABLE:"NI"."NIPC_ATTRIBUTE_VALUES" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"NI" skipped, base object type TABLE:"NI"."NIPC_ATTRIBUTE_VALUES" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"NI" skipped, base object type TABLE:"NI"."NIPC_ATTRIBUTE_VALUES" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
ORA-39112: Dependent object type INDEX:"NI"."NIPC_ATTR_VAL_PROD_ID_I" skipped, base object type TABLE:"NI"."NIPC_ATTRIBUTE_VALUES" creation failed
ORA-39112: Dependent object type INDEX:"NI"."NIPC_ATTR_VAL_ATTR_ID_I" skipped, base object type TABLE:"NI"."NIPC_ATTRIBUTE_VALUES" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"NI"."NIPC_ATTR_VAL_PROD_ID_I" creation failed
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"NI"."NIPC_ATTR_VAL_ATTR_ID_I" creation failed
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
ORA-39112: Dependent object type REF_CONSTRAINT:"NI"."FK_ATTRIBUTE_ID_2" skipped, base object type TABLE:"NI"."NIPC_ATTRIBUTE_VALUES" creation failed
ORA-39112: Dependent object type REF_CONSTRAINT:"NI"."FK_PRODUCT_ID" skipped, base object type TABLE:"NI"."NIPC_ATTRIBUTE_VALUES" creation failed
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"NI"."NIPC_ATTRIBUTE_VALUES" creation failed
Job "NI"."SYS_IMPORT_TABLE_01" completed with 13 error(s) at 10:15:46


I can provide my script if that will help, but I'm not sure exactly what the issue is.

If anyone can offer any time or assistance I would greatly appreciate it! Thanks.


--Asif
Re: impdp issue - ORA-02264 [message #425116 is a reply to message #425113] Wed, 07 October 2009 10:59 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Quote:
ORA-02264: name already used by an existing constraint

Are looking to copy only data or data and table/constraints?
Seems the target area already has a similarly named constraint.
Depend on what you need, you can try the IGNORE options.
Re: impdp issue - ORA-02264 [message #425260 is a reply to message #425116] Thu, 08 October 2009 05:38 Go to previous messageGo to next message
babuknb
Messages: 1736
Registered: December 2005
Location: NJ
Senior Member

Quote:

Trying to do a simple import/export of a table using the impdp and expdp commands and running into an issue


During import Use TABLE_EXISTS_ACTION=SKIP parameter.

-Babu
Re: impdp issue - ORA-02264 [message #425352 is a reply to message #425113] Thu, 08 October 2009 12:54 Go to previous messageGo to next message
A4orce84
Messages: 2
Registered: October 2009
Location: Texas
Junior Member
echo Importing Table...

TABLE_EXISTS_ACTION=SKIP
impdp ni/ni directory=data_pump_dir_purge dumpfile=table_dump_for_asif.dmp tables=ni.nipc_attribute_values logfile=nipc_imp_attribute_values.log




Like that? Or where do I actually use / how do I use the Table_Exists_Action call?

Thanks in advance!


--Asif

Re: impdp issue - ORA-02264 [message #425366 is a reply to message #425352] Thu, 08 October 2009 14:21 Go to previous message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
impdp -help

Import: Release 10.2.0.4.0 - Production on Thursday, 08 October, 2009 12:19:35

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


The Data Pump Import utility provides a mechanism for transferring data objects
between Oracle databases. The utility is invoked with the following command:

     Example: impdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmp

You can control how Import runs by entering the 'impdp' command followed
by various parameters. To specify parameters, you use keywords:

     Format:  impdp KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
     Example: impdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmp

USERID must be the first parameter on the command line.

Keyword               Description (Default)
------------------------------------------------------------------------------
ATTACH                Attach to existing job, e.g. ATTACH [=job name].
CONTENT               Specifies data to load where the valid keywords are:
                      (ALL), DATA_ONLY, and METADATA_ONLY.
DIRECTORY             Directory object to be used for dump, log, and sql files.
DUMPFILE              List of dumpfiles to import from (expdat.dmp),
                      e.g. DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp.
ENCRYPTION_PASSWORD   Password key for accessing encrypted column data.
                      This parameter is not valid for network import jobs.
ESTIMATE              Calculate job estimates where the valid keywords are:
                      (BLOCKS) and STATISTICS.
EXCLUDE               Exclude specific object types, e.g. EXCLUDE=TABLE:EMP.
FLASHBACK_SCN         SCN used to set session snapshot back to.
FLASHBACK_TIME        Time used to get the SCN closest to the specified time.
FULL                  Import everything from source (Y).
HELP                  Display help messages (N).
INCLUDE               Include specific object types, e.g. INCLUDE=TABLE_DATA.
JOB_NAME              Name of import job to create.
LOGFILE               Log file name (import.log).
NETWORK_LINK          Name of remote database link to the source system.
NOLOGFILE             Do not write logfile.
PARALLEL              Change the number of active workers for current job.
PARFILE               Specify parameter file.
QUERY                 Predicate clause used to import a subset of a table.
REMAP_DATAFILE        Redefine datafile references in all DDL statements.
REMAP_SCHEMA          Objects from one schema are loaded into another schema.
REMAP_TABLESPACE      Tablespace object are remapped to another tablespace.
REUSE_DATAFILES       Tablespace will be initialized if it already exists (N).
SCHEMAS               List of schemas to import.
SKIP_UNUSABLE_INDEXES Skip indexes that were set to the Index Unusable state.
SQLFILE               Write all the SQL DDL to a specified file.
STATUS                Frequency (secs) job status is to be monitored where
                      the default (0) will show new status when available.
STREAMS_CONFIGURATION Enable the loading of Streams metadata
TABLE_EXISTS_ACTION   Action to take if imported object already exists.
                      Valid keywords: (SKIP), APPEND, REPLACE and TRUNCATE.
TABLES                Identifies a list of tables to import.
TABLESPACES           Identifies a list of tablespaces to import.
TRANSFORM             Metadata transform to apply to applicable objects.
                      Valid transform keywords: SEGMENT_ATTRIBUTES, STORAGE
                      OID, and PCTSPACE.
TRANSPORT_DATAFILES   List of datafiles to be imported by transportable mode.
TRANSPORT_FULL_CHECK  Verify storage segments of all tables (N).
TRANSPORT_TABLESPACES List of tablespaces from which metadata will be loaded.
                      Only valid in NETWORK_LINK mode import operations.
VERSION               Version of objects to export where valid keywords are:
                      (COMPATIBLE), LATEST, or any valid database version.
                      Only valid for NETWORK_LINK and SQLFILE.

The following commands are valid while in interactive mode.
Note: abbreviations are allowed

Command               Description (Default)
------------------------------------------------------------------------------
CONTINUE_CLIENT       Return to logging mode. Job will be re-started if idle.
EXIT_CLIENT           Quit client session and leave job running.
HELP                  Summarize interactive commands.
KILL_JOB              Detach and delete job.
PARALLEL              Change the number of active workers for current job.
                      PARALLEL=<number of workers>.
START_JOB             Start/resume current job.
                      START_JOB=SKIP_CURRENT will start the job after skipping
                      any action which was in progress when job was stopped. 
STATUS                Frequency (secs) job status is to be monitored where
                      the default (0) will show new status when available.
                      STATUS[=interval]
STOP_JOB              Orderly shutdown of job execution and exits the client.
                      STOP_JOB=IMMEDIATE performs an immediate shutdown of the
                      Data Pump job.
Previous Topic: Drop cascade impact to index and user permissions roles
Next Topic: SQL Loader not loading the data file
Goto Forum:
  


Current Time: Mon Dec 23 13:04:04 CST 2024