Insight Technology, Inc

Insight Technology, Inc

Japanese | English

April 20, 2005 -Vol.186-

Ora Ora Oracle
Welcome to the world of Oracle enthusiasts
Free mail magazine for the people who want to know more about Oracle

Oracle 10g
-Data Pump Export (Import) Utilities-

In this issue, I will talk about Export/Import Utilities that are used to transfer data among databases and to create a backup.
Data Pump Export (Import) utilities are newly introduced in Oracle10g which enable loading/unloading the data extremely quickly.

If you have had troubles with exporting/importing the data, you may be very happy with this new function. If you haven't used this utility so often, it is a good opportunity to get to know this useful function.

Even though this new function is called Data Pump Export (Import), this function does not actually use exp (imp) commands. Instead, expdp (impdp) commands are newly introduced in Oracle10g.

One thing you have to be aware is that data created with exp command cannot be loaded to the database with impdp command. You cannot use imp command to the file that is created with expdp command.

The following are main features of Data Pump Export (Import):
(1)quick export/import operation
(2)transportable tablespace among different types of OS

There are many other features that you may find in documents.
In the next issue, I will further analyze this new function in detail.
I indicate the available parameters below for your reference.

(Excerpts from the document provided by Oracle Corporation)

##############################################################################
$ expdp help=y

Keyword               Description (default)
------------------------------------------------------------------------------
ATTACH                Attach to existing job, e.g. ATTACH [=job name]
CONTENT               Specifies data to unload where the valid keywords are:
                      (ALL), DATA_ONLY, and METADATA_ONLY.
DIRECTORY             Directory object to be used for dumpfiles and logfiles
DUMPFILE              List of destination dump files (expdat.dmp),
                      e.g. DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp
ESTIMATE              Calculate job estimates where the valid keywords are:
                      (BLOCKS) and STATISTICS
ESTIMATE_ONLY         Calculate job estimates without performing the export.
EXCLUDE               Exclude specific object types, e.g. EXCLUDE=TABLE:EMP
FILESIZE              Specify the size of each dumpfile in units of bytes
FLASHBACK_SCN         SCN used to set session snapshot back to
FLASHBACK_TIME        Time used to get the SCN closest to the specified time
FULL                  Export entire database (N)
HELP                  Display Help messages (N)
INCLUDE               Include specific object types, e.g. INCLUDE=TABLE_DATA
JOB_NAME              Name of export job to create
LOGFILE               Log file name (export log)
NETWORK_LINK          Name of remote database link to the source system
NOLOGFILE             Do not write logfile (N)
PARALLEL              Change the number of active workers for current job
PARFILE               Specify parameter file.
QUERY                 Predicate clause used to export a subset of a table.
SCHEMAS               List of schemas to export (login schema)
STATUS                Frequency (secs) job status is to be monitored where
                      the default (0) will show new status when available.
TABLES                Identifies a list of tables to export -one schema only.
TABLESPACES           Identifies a list of tablespaces to export.
TRANSPORT_FULL_CHECK  Verify storage segments of all tables (N)
TRANSPORT_TABLESPACES List of tablespaces from which metadata will be unloaded.
VERSION               Version of objects to export where valid keywords are:
                      (COMPATIBLE), LATEST, or any valid database version

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

Command               Description
------------------------------------------------------------------------------
ADD_FILE              Add dumpfile to dumpfile set.
                      ADD_FILE=dumpfile-name
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=
START_JOB             Start/resume current job.
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.
##############################################################################

That's it for today.

Yoshihiro Uratsuji

 Subscribe & Unsubscribe