Benefits of Oracle DataPump 10g
Benefits of Oracle DataPump 10g
Benefits of Oracle DataPump 10g
Confidentiality Statement
Include the confidentiality statement within the box provided. This has to be legally approved.
Confidential
Abstract
<Provide a brief summary of the white paper>.
This paper provides an overview of the Oracle 10g Data Pump architecture, followed by a description of the main features of Data Pump, some discussion of best practices, and finally a brief comparison of the Data Pump Export and Import utilities to the original Export and Import utilities.
Confidential
Confidential
CONTENTS
INTRODUCTION..........................................................................................................................................6 < DATA PUMP EXPORT > .........................................................................................................................7 < EXPORT MONITORING >.......................................................................................................................8 < PARALLEL OPERATION >................................................................................................................................8 < Data Pump Import >...........................................................................................................................9 CONCLUSION.............................................................................................................................................10 ACKNOWLEDGEMENTS.........................................................................................................................11 REFERENCES.............................................................................................................................................12
Confidential
Introduction
Until now, the export/import toolset has been the utility of choice for transferring data across multiple platforms with minimal effort, despite common complaints about its lack of speed. Import merely reads each record from the export dump file and inserts it into the target table using the usual INSERT INTO command, so it's no surprise that import can be a slow process. Enter Oracle Data Pump, the newer and faster sibling of the export/import toolkit in Oracle Database 10g, designed to speed up the process many times over. Data Pump is a fully integrated feature of Oracle Database that enables very high-speed loading and unloading of data and metadata to and from the database. It automatically manages and schedules multiple, parallel streams of loading or unloading for maximum throughput. Data Pump infrastructure is callable through the PL/SQL package DBMS_DATAPUMP. Thus, custom data movement utilities can be built using Data Pump. Oracle Database includes three such client utilities: Command-line export (expdp) Command-line import (impdp) Web-based Oracle Enterprise Manager export/import interface Data Pump reflects a complete overhaul of the export/import process. Instead of using the usual SQL commands, it provides proprietary APIs to load and unload data significantly faster. In my tests, I have seen performance increases of 10-15 times over export in direct mode and 5-times-over performance increases in the import process. In addition, unlike with the export utility, it is possible to extract only specific types of objects such as procedures. Data Pump is an integral feature of Oracle Database and therefore is available in all configurations. However, some features of Data Pump such as parallelism are available only in the Enterprise Edition. Dump file encryption is available as part of the Advanced Security Option, and dump file data compression is included in the Advanced Compression Option. This white paper describes the ways to utilize Oracle 10g Data Pump to its full potential and shows the benefits which it provides in comparison to oracle export/import.
Confidential
Confidential
Confidential
Oracle Data Pump 10g Note how the dumpfile parameter has a wild card %U, which indicates the files will be created as needed and the format will be expCASES_nn.dmp, where nn starts at 01 and goes up as needed. In parallel mode, the status screen will show four worker processes. (In default mode, only one process will be visible.) All worker processes extract data simultaneously and show their progress on the status screen. It's important to separate the I/O channels for access to the database files and the dumpfile directory filesystems. Otherwise, the overhead associated with maintaining the Data Pump jobs may outweigh the benefits of parallel threads and hence degrade performance. Parallelism will be in effect only if the number of tables is higher than the parallel value and the tables are big.
<
Data import performance is where Data Pump really stands out, however. To import the data exported earlier, we will use impdp rmukherj/abc123 directory= DATA_PUMP_DIR dumpfile=expCASES.dmp
job_name=cases_import
The default behavior of the import process is to create the table and all associated objects, and to produce an error when the table exists. Should you want to append the data to the existing table, you could use TABLE_EXISTS_ACTION=APPEND in the above command line. As with Data Pump Export, pressing Control-C on the process brings up the interactive mode of Date Pump Import (DPI); again, the prompt is Import>.
Confidential
Conclusion
Data Pump is a callable feature in Oracle Database 10g that provides very high-speed loading and unloading of data and metadata. Command line export and import clients, expdp and impdp, that fully exploit the Data Pump infrastructure, are also provided with Oracle Database. They are implemented as complete supersets of the original exp and imp, and will replace these legacy clients going forward
Confidential
10
Acknowledgements
Confidential
11
References
[1] www.metalink.oracle.com. [2] Oracle Database Utilities Reference Manual
Confidential
12