Professional Documents
Culture Documents
New Features
Data Sampling & filtering Object filtering Estimate file size, max file size, multiple files Remap datafile, schema, tablespace Network mode Point-in-time export Version conversion Column data encryption
Better Performance
Complete re-write Parallel processing Parallel data streams to multiple files Runs within the instance Uses direct path whenever possible Restartable Tunable (auto tuning) Progress monitoring
Improved Security
Server based only no client side exports! Based on directory objects within database Always runs as oracle process on behalf of invoking database user.
Versatile Interfaces
Command line Parameter file Interactive mode DBMS_DATAPUMP package DB console (Enterprise manager) External table Scheduled job
Datapump Architecture
Master process
Manages and controls the operation
Worker process(es)
Responsible for data movement One for each degree of parallelism
Master table
Created in invokers schema at job start Maintained during job execution Dropped after successful completion Used to resume a paused/failed job
Types of Exports
Table Schema Tablespace Database Transportable Tablespace (metadata) INCLUDE / EXCLUDE object filters QUERY and SAMPLE data filters CONTENTS = data | metadata | both
Directory Objects
Created as a database object Requires CREATE_ANY_DIRECTORY privilege Permissions (read, write) granted on the object to specific user(s) Not validated existence, syntax, OS privilege Accessed as user oracle at the OS level Default DATA_PUMP_DIR maps to
Data Access
Direct Path
Chosen automatically whenever possible Reads/writes data blocks directly No undo, redo can be turned off See Utilities Guide for exceptions (eg. active triggers, clustered tables, BFILE column, etc)
External Table
Equivalent to old conventional path Normal SQL and commit processing, slower NOT the same as the external table driver for SQL
Log File
Interactive Mode
NOT the same as old imp/exp! Default starts schema mode export Use command line arguments or par file logging vs interactive command mode Default logging mode logs to terminal Ctl-C to enter interactive command mode Job will continue to run even if client disconnects!
expdp scott/tiger@fred parfile=myjob.par
Obsolete Parameters
Export BUFFER COMPRESS CONSISTENT DIRECT RECORD_LENGTH RESUMABLE STATISTICS USERID VOLSIZE
Network Mode
Works across database link Import reads tables from remote DB and writes directly to tables in local DB
No dump file created Directory object still required for logging
Export reads tables from remote DB and writes to dump file on local server
SQL File
Import can generate an SQL file instead of actually performing the import Contains DDL that would have been executed based on job parameters Passwords excluded No change to target DB
Required Reading
Oracle Database New Features Guide Oracle Database Utilities PL/SQL Packages and Types Reference Oracle Data Pump FAQ on OTN
Demonstration
Directory object basics Basic Data Pump unload and load Query / Sample data filtering Re-attaching and monitoring a big job The PL/SQL API SQL File import External Table access driver
www.caleb.com/dba Caleb@caleb.com
Individual worker processes can use parallel query Use multiple dump files to maximize parallelism
Separate files on separate physical devices/channels Use wildcard in filename eg: dumpfile%u.dmp Separate device/channel from source tablespace(s)