Home » RDBMS Server » Server Utilities » can we do import like (oralce 9.2.0.1.0,ibm aix 4.3)
can we do import like [message #440586] Mon, 25 January 2010 23:08 Go to next message
oradba123
Messages: 86
Registered: June 2009
Location: india
Member



Hi all,

i have yesterday export of full database 9i , but our one of user wants the only particular table (data as well as strcuture of table) as it was yesterday . my question is can i do import of particular table from full exported database file. quick response will be higly appreciated. thanks in advance


Best Regards
Re: can we do import like [message #440588 is a reply to message #440586] Mon, 25 January 2010 23:15 Go to previous messageGo to next message
BlackSwan
Messages: 24913
Registered: January 2009
Senior Member
>my question is can i do import of particular table from full exported database file.
Yes, you can or at least I could.

Since you included no details, I can't provide any details in return.


 imp help=yes

Import: Release 10.2.0.1.0 - Production on Mon Jan 25 21:15:03 2010

Copyright (c) 1982, 2005, 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)
     Example: IMP SCOTT/TIGER IGNORE=Y TABLES=(EMP,DEPT) FULL=N
               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
RESUMABLE_TIMEOUT      wait time for RESUMABLE 
COMPILE                compile procedures, packages, and functions (Y)
STREAMS_CONFIGURATION  import streams general metadata (Y)
STREAMS_INSTANTIATION  import streams instantiation metadata (N)
VOLSIZE                number of bytes in file on each volume of a file on tape

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.

Re: can we do import like [message #440599 is a reply to message #440586] Tue, 26 January 2010 00:59 Go to previous messageGo to next message
oradba123
Messages: 86
Registered: June 2009
Location: india
Member



Hi Dear,

thanks a lot for you quick response.is the syntax is ok belowe


$imp system/password file=full25012010.dmp log=maximo26012010.log fromuser=maximo touser=maximo tables=innvendor ignore=y
Re: can we do import like [message #440600 is a reply to message #440599] Tue, 26 January 2010 01:04 Go to previous messageGo to next message
Michel Cadot
Messages: 63814
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
I think yes but the best way is to try it, if syntax is not correct Oracle will tell you.

Regards
Michel
icon12.gif  Re: can we do import like [message #441515 is a reply to message #440599] Mon, 01 February 2010 14:01 Go to previous messageGo to next message
LKBrwn_DBA
Messages: 487
Registered: July 2003
Location: WPB, FL
Senior Member
oradba123 wrote on Tue, 26 January 2010 01:59

... etc ...
is the syntax is ok belowe

$imp system/password file=full25012010.dmp log=maximo26012010.log fromuser=maximo touser=maximo tables=innvendor ignore=y

By now you may have found out that before the import you needed to TRUNCATE the table (if you wanted to load data only) or DROP the table (if you also wanted the structure from the export file).
./fa/3518/0/

Re: can we do import like [message #441522 is a reply to message #441515] Mon, 01 February 2010 15:40 Go to previous messageGo to next message
Littlefoot
Messages: 20827
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Perhaps, depending on satisfaction with the IGNORE=Y option's results.
icon10.gif  Re: can we do import like [message #441552 is a reply to message #441522] Mon, 01 February 2010 20:44 Go to previous message
LKBrwn_DBA
Messages: 487
Registered: July 2003
Location: WPB, FL
Senior Member
You only can get both of these:
Quote:
user wants the only particular table (data as well as strcuture of table) as it was yesterday

if you DROP TABLE.

[Updated on: Mon, 01 February 2010 23:35] by Moderator

Report message to a moderator

Previous Topic: Import from multiple files
Next Topic: Pipe Delimited File Issues
Goto Forum:
  


Current Time: Fri Sep 30 12:26:51 CDT 2016

Total time taken to generate the page: 0.07413 seconds