Tutorials
Oracle 10gIn this tutorial let us learn about Data Pump Components viz. Import / Export, New Features In Data Pump Export and Import and learn how the original Import and Export utilities differ from Data Pump Import and Data Pump Export respectively.
Oracle Data Pump is made up of three distinct parts:
The Data Pump clients, expdp and impdp, invoke the Data Pump Export utility and Data Pump Import utility, respectively. They provide a user interface that closely resembles the original export (exp) and import (imp) utilities.
The expdp and impdp clients use the procedures provided in the DBMS_DATAPUMP PL/SQL package to execute export and import commands, using the parameters entered at the command-line. These parameters enable the exporting and importing of data and metadata for a complete database or subsets of a database.
The new Data Pump Export and Import utilities (invoked with the expdp and impdp commands, respectively) have a similar look and feel to the original Export (exp) and Import (imp) utilities, but they are completely separate. Dump files generated by the new Data Pump Export utility are not compatible with dump files generated by the original Export utility. Therefore, files generated by the original Export (exp) utility cannot be imported with the Data Pump Import (impdp) utility.
Oracle recommends that you use the new Data Pump Export and Import utilities because they support all Oracle Database 10g features, except for XML schemas. Original Export and Import support the full set of Oracle database release 9.2 features. Also, the design of Data Pump Export and Import results in greatly enhanced data movement performance over the original Export and Import utilities.
The following are the major new features that provide this increased performance, as well as enhanced ease of use:
The ability to specify the maximum number of threads of active execution operating on behalf of the Data Pump job. This enables you to adjust resource consumption versus elapsed time. This feature is available only in the Enterprise Edition of Oracle Database 10g.
The ability to restart Data Pump jobs.
The ability to detach from and reattach to long-running jobs without affecting the job itself. This allows DBAs and other operations personnel to monitor jobs from multiple locations. The Data Pump Export and Import utilities can be attached to only one job at a time; however, you can have multiple clients or jobs running at one time. (If you are using the Data Pump API, the restriction on attaching to only one job at a time does not apply.) You can also have multiple clients attached to the same job.
Support for export and import operations over the network, in which the source of each operation is a remote instance.
The ability, in an import job, to change the name of the source datafile to a different name in all DDL statements where the source datafile is referenced.
Enhanced support for remapping tablespaces during an import operation.
Support for filtering the metadata that is exported and imported, based upon objects and object types.
Support for an interactive-command mode that allows monitoring of and interaction with ongoing jobs.
The ability to estimate how much space an export job would consume, without actually performing the export.
The ability to specify the version of database objects to be moved. In export jobs, VERSION applies to the version of the database objects to be exported.
In import jobs, VERSION applies only to operations over the network. This means that VERSION applies to the version of database objects to be extracted from the source database.
Most Data Pump export and import operations occur on the Oracle database server. (This contrasts with original export and import, which were primarily client-based.)
If you are familiar with the original Export (exp) and Import (imp) utilities, it is important to understand that many of the concepts behind them do not apply to Data Pump Export (expdp) and Data Pump Import (impdp). In particular: