Home » RDBMS Server » Server Utilities » How to Overwrite tables in existing user with import command imp in oracle 8.1.5 or 8.1.7 (merged 3)
How to Overwrite tables in existing user with import command imp in oracle 8.1.5 or 8.1.7 (merged 3) [message #388301] Tue, 24 February 2009 03:07 Go to next message
qanita786
Messages: 229
Registered: May 2007
Location: PAKISTAN
Senior Member
How to Overwrite tables in existing user with import command imp in oracle 8.1.5 or 8.1.7

kind regards
FAHEEM
Re: How to Overwrite tables in existing user with import command imp in oracle 8.1.5 or 8.1.7 (merge [message #388312 is a reply to message #388301] Tue, 24 February 2009 03:51 Go to previous messageGo to next message
Michel Cadot
Messages: 68647
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Import overwrites.

Regards
Michel
Re: How to Overwrite tables in existing user with import command imp in oracle 8.1.5 or 8.1.7 (merge [message #388344 is a reply to message #388312] Tue, 24 February 2009 07:00 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
By default import will only try to append the data.
If the table already exists it will error out (using ignore=y will suppress only the error being displayed due to existence of table).
If the table is constrained (PK for example) and if the condition is not met, the row will not be appended.

Re: How to Overwrite tables in existing user with import command imp in oracle 8.1.5 or 8.1.7 (merge [message #388345 is a reply to message #388312] Tue, 24 February 2009 07:02 Go to previous messageGo to next message
qanita786
Messages: 229
Registered: May 2007
Location: PAKISTAN
Senior Member
Dear Michel Please Write Full Command i am not understand with following answer

regards faheem
Re: How to Overwrite tables in existing user with import command imp in oracle 8.1.5 or 8.1.7 (merge [message #388360 is a reply to message #388345] Tue, 24 February 2009 08:11 Go to previous message
joy_division
Messages: 4963
Registered: February 2005
Location: East Coast USA
Senior Member
[placebo] /vol02/opt/app> imp help=y

Import: Release 10.1.0.4.2 - Production on Tue Feb 24 08:11:01 2009

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.
Previous Topic: Importing data from a TXT file into a table
Next Topic: Export - Import
Goto Forum:
  


Current Time: Mon Apr 29 08:46:45 CDT 2024