Home » RDBMS Server » Server Utilities » IMP only filtered data (Oracle 9i,Windows 2003)
IMP only filtered data [message #398884] Sun, 19 April 2009 01:11 Go to next message
Messages: 63
Registered: March 2008

After Full user Export dump ,Is it possible to Import only the specific data in one table rather then importing full schema back...

Any help will b appreciated

Re: IMP only filtered data [message #398887 is a reply to message #398884] Sun, 19 April 2009 01:18 Go to previous messageGo to next message
Messages: 25570
Registered: January 2009
Location: SoCal
Senior Member
>(Oracle 9i,Windows 2003)
Totally unsupported installation.
9i was released long before was ever envisioned.
So if it works use it, otherwise all bets are off.
Re: IMP only filtered data [message #398889 is a reply to message #398884] Sun, 19 April 2009 01:22 Go to previous messageGo to next message
Michel Cadot
Messages: 65143
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
C:\>imp help=y

Import: Release - Production on Dim. Avr. 19 08:20:47 2009

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

You can let Import prompt you for parameters by entering the IMP
command followed by your username/password:

     Example: IMP SCOTT/TIGER

Or, you can control how Import runs by entering the IMP command followed
by various arguments. To specify parameters, you use keywords:

     Format:  IMP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
               or TABLES=(T1:P1,T1:P2), if T1 is partitioned table

USERID must be the first parameter on the command line.

Keyword  Description (Default)       Keyword      Description (Default)
USERID   username/password           FULL         import entire file (N)
BUFFER   size of data buffer         FROMUSER     list of owner usernames
FILE     input files (EXPDAT.DMP)    TOUSER       list of usernames
SHOW     just list file contents (N) TABLES       list of table names
IGNORE   ignore create errors (N)    RECORDLENGTH length of IO record
GRANTS   import grants (Y)           INCTYPE      incremental import type
INDEXES  import indexes (Y)          COMMIT       commit array insert (N)
ROWS     import data rows (Y)        PARFILE      parameter filename
LOG      log file of screen output   CONSTRAINTS  import constraints (Y)
DESTROY                overwrite tablespace data file (N)
INDEXFILE              write table/index info to specified file
SKIP_UNUSABLE_INDEXES  skip maintenance of unusable indexes (N)
FEEDBACK               display progress every x rows(0)
TOID_NOVALIDATE        skip validation of specified type ids
FILESIZE               maximum size of each dump file
STATISTICS             import precomputed statistics (always)
RESUMABLE              suspend when a space related error is encountered(N)
RESUMABLE_NAME         text string used to identify resumable statement
COMPILE                compile procedures, packages, and functions (Y)
STREAMS_CONFIGURATION  import streams general metadata (Y)
STREAMS_INSTANTIATION  import streams instantiation metadata (N)

The following keywords only apply to transportable tablespaces
TRANSPORT_TABLESPACE import transportable tablespace metadata (N)
TABLESPACES tablespaces to be transported into database
DATAFILES datafiles to be transported into database
TTS_OWNERS users that own data in the transportable tablespace set

Import terminated successfully without warnings.

You can specify one table but not which data in this one.

Re: IMP only filtered data [message #398893 is a reply to message #398889] Sun, 19 April 2009 03:11 Go to previous message
Messages: 21146
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
... so it appears that you'll have to import the whole TABLE (not the whole export file, just specify the table), possibly into another schema (in a case you want to avoid possible problems if the table already in the current schema, contains data, unique index problems etc.).

Once the import is done, either delete records you don't need or take out records you need.

Finally, insert the result into the original table (if you've done the job in another schema, don't forget to grant (at least) SELECT so that you could fetch those records from the original schema, or INSERT if you are about to push records in there).
Previous Topic: Concept of datapump directory in expdp
Next Topic: SQL*LDR fails ORA-12154: TNS:could not resolve service name, but SQL*PLUS works fine
Goto Forum:

Current Time: Fri Aug 18 11:34:35 CDT 2017

Total time taken to generate the page: 0.19428 seconds