oracle exp and imp command arguments detailed

Oracle with exp / imp Command Parameter Description

Data derived by exp []:
a database TEST full, user name, password manager system to export to D: \ daochu.dmp in
   exp system / manager @ TEST rows = y indexes = y compress = n buffer = 65536 feedback = 100000full = y file = d: \ daochu.dmp log = d: \ daochulog.txt owner = (ECC_BIZ, ECC_CUSTOMER)


Keyword Description Default
USERID username / password
FULL export entire file (N)
BUFFER size of data buffer
OWNER export specified list of owner usernames
FILE output file (EXPDAT.DMP)
TABLES export specified list of table names
COMPRESS whether to compress export file (Y)
length RECORDLENGTH IO record
GRANTS export privileges (Y)
INCTYPE incremental export type
iNDEXES export indexes (Y)
the rECORD tracking incremental export (Y)
rOWS export data lines (Y)
PARFILE parameter file name
CONSTRAINTS export restrictions ( the Y)
of cONSISTENT cross-table consistency
lOG screen output log file
STATISTICS analyze objects (the ESTIMATE)
the DIRECT direct path (N)
TRIGGERS export triggers (the Y)
the FEEDBACK display every x rows (0) progress
the maximum size of each dump file FILESIZE
QUERY export table selected subset of clause
TRANSPORT_TABLESPACE be derived spatial metadata transmission (N)
tABLESPACES derived specified table space list

2, the database system user to export the table sys user
   exp system / manager @ TEST file = d: \ daochu.dmp owner = (system, sys)


Table 3 table1 database, table2 derived
   exp system / manager @ TEST file = d: \ daochu.dmp tables = (table1, table2)


4 field filed1 database table in table1 data "00" starts derived
   exp system / manager @ TEST file = d: \ daochu.dmp tables = (table1) query = \ "where filed1like & apos; 00% & apos; \ "

The above is commonly used to export, I do not care for the compression, the dmp file with winzip compression can be very good. However, in the above command followed by compress = y on it.

[Data] introduction imp:


1 D: \ daochu.dmp the data into the TEST database.
   imp system / manager @ TEST ignore = y full = y file = d: \ daochu.dmp log = d: \ daoru.txt

 

Keyword Description Default
USERID username / password
FULL import entire file (N)
BUFFER data buffer size
FROMUSER list of owner usernames
FILE input files (EXPDAT.DMP)
TOUSER list of usernames
SHOW just list file contents (N)
TABLES Table a list of names
iGNORE ignore create errors (N) 
length RECORDLENGTH IO record
GRANTS import permissions (the Y-)
INCTYPE incremental import type
iNDEXES import indexes (the Y-)
COMMIT submitted array insert (N)
rOWS import data rows (the Y-) 
PARFILE parameter file name
LOG log file screen output
CONSTRAINTS import limit (the Y)
DESTROY overwrite tablespace data file (N)
INDEXFILE write table / index information into the specified file
SKIP_UNUSABLE_INDEXES skip unusable indexes maintenance (N)
the FEEDBACK display progress every x
TOID_NOVALIDATE jumping specifying the type of ID to verify
the maximum size of each FILESIZE dump file
sTATISTICS import precomputed always statistics
RESUMABLE hangs when it encounters an error related to space
RESUMABLE_NAME recoverable statement is used to identify a text string
latency RESUMABLE_TIMEOUT RESUMABLE the
COMPILE compilation process, package, and the function (Y)
is generally introduced STREAMS_CONFIGURATION Streams of metadata (Y)
STREAMS_INSTANITATION introduced Streams instance metadata (N)
TRANSPORT_TABLESPACE introduced can be transmitted spatial metadata
tABLESPACES to be transmitted to the database table space
DATAFILES the data to be transmitted to the database files
the user has TTS_OWNERS transportable tablespace centralized data

1. Getting help

imp help=y

2. Importing a complete database

imp system/manager file=bible_db log=dible_db full=y ignore=y

3. introducing all the tables, indexes and other objects or a group the user belongs

imp system/manager file=seapark log=seapark fromuser=seapark

imp system/manager file=seapark log=seapark fromuser=(seapark,amy,amyc,harold)

4. The data relevant to a user to import another user's

imp system/manager file=tank log=tank fromuser=seapark touser=seapark_copy

imp system/manager file=tank log=tank fromuser=(seapark,amy) touser=(seapark1, amy1)

The Import table

imp system/manager file=tank log=tank fromuser=seapark TABLES=(a,b)

6. import files from a plurality of

imp system/manager file=(paycheck_1,paycheck_2,paycheck_3,paycheck_4) log=paycheck,filesize=1G full=y

7. Use parameter file

imp system/manager parfile=bible_tables.par

bible_tables.par parameter file:

#Import the sample tables used for the Oracle8i Database Administrator's

#Bible.

fromuser=seapark touser=seapark_copy file=seapark log=seapark_import

8. Incremental import (9i have been canceled)

imp system./manager inctype= RECTORE FULL=Y FILE=A

 

Recommended Reference: HTTP: //www.cnblogs.com/songdavid/articles/2435439.html
---------------------
Author: potato - eggplant
Source: CSDN
original : https: //blog.csdn.net/lsyuan1989/article/details/50418665
copyright: This article is a blogger original article, reproduced, please attach Bowen link!

Guess you like

Origin www.cnblogs.com/Memories-off/p/10966042.html