May 23, 2009

Data Pump features in Oracle11g

Data Pump delivers several new features in Oracle Database 11g,including major new apabilities such as dump file encryption anddata compression. This paper describes these and other new featuresof Data Pump.

Enhanced Compression

The ability to compress the metadata associated with a Data Pump job is provided in Oracle Database 10g Release 2.
In Oracle Database 11g, this compression capabilityhas been extended so that you can now compress table data on export.
Data Pumpcompression is an inline operation, so the reduced dump file size means a ignificant savings in disk space. Unlike operating system or file system compression utilities,Data Pump compression is fully inline on the import side as well, so there is no needto uncompress a dump file before importing it.
In the following compression example from the Oracle sample database, the oe andsh schemas were exported while simultaneously compressing all data and metadata.
The dump file size was reduced by 74.67%.Three versions of the gzip (GNU zip) utility and one UNIX compress utility wereused to compress the 6.0 MB dump file set. The reduction in dump file size wascomparable to Data Pump compression.
Note that your reduction in dump file sizewill vary based on data types and other factors.


Compression Method Dump File Size Reduction %
Expdp schemas=oe,sh 6.0 MB N/A
Compression=none
Expdp schemas=oe,sh 1.5 MB 74.67%
Compression=all
gzip –cv1 oesh.dmp 1.1 MB 82.7%
gzip –cv6 oesh.cmp 835 KB 86.2%
gzip –cv9 oesh.dmp 818 KB 86.5%
UNIX compress 1.6 MB 74.24%
Oesh.dmp

You get full Data Pump functionality using a compressed file. Any command that you would use on a regular file will also work on a compressed file.

New Encryption Options
In Oracle Database 11g, Data Pump supplies more encryption options for more flexible and robust security.
The most important new encryption feature for Data Pump is the ability to encrypt dump file sets. You can select encryption for the data, the metadata, or the entire dump file as your needs require.
You can also specify the type of security to use during an export. If Transparent Data Encryption is installed, then transparent encryption employing the Oracle Wallet can be used. If you are moving sensitive data to a system that does not share wallet information with the source database, then password-based encryption might be a better choice. Or, if you want to use both password-based encryption and transparent data encryption, then dual mode is available. All of these encryption modes can be used in combination with dump file compression if you desire.
Encryption is part of the Advanced Security Option and requires Oracle Enterprise Edition.

Data Transforms
This feature allows you to remap data during export or import. There may be a need to obscure data as it is being moved from a production system to a test system so that unauthorized users do not see the data, but the essential processing characteristics of the data are preserved.

For example, you may have a column of customer credit card numbers that needs to remain secure, but for test purposes would still need to retain a particular format and range of values. During export, you can replace the actual data from the source database with numbers generated by a user-defined remap function. The data retains its essential characteristics without exposing the credit card numbers to unauthorized users.
The remap feature can also be used to remap data as it is being inserted into a new database during import. This can be useful to avoid collision of unique values such as sequences when merging data from multiple sources.

Single Partition Transportable Tablespace
You can now export one or more partitions of a table without having to move the entire table. On import, you can choose to load partitions as is, merge them into a single table, or promote each into a separate table.

Dynamic Restart of Workers
If a worker process hits a fatal error, such as a process being manually shut down,
then the worker will be restarted a number of times in an attempt to continue processing.

Re-use Dump Files
You would normally get a fatal error during a Data Pump export if you specify dump files that already exist. This feature allows you to overwrite existing dump files during an export operation.

0 comments: