SlideShare a Scribd company logo
5
Most read
16
Most read
19
Most read
1
Data Pump Overview
2
What is Data Pump?
 A replacement of the traditional export/import utilities?
 The evolution of the traditional export/import utilities?
 A completely new 10g utility serving a similar yet
slightly different purpose?
3
Other Options for Moving Data
 Traditional Export and Import
Pros
 Easy to use – most DBAs have years of experience using these
utilities
 Versatile – various options available; can specify what to include
 Platform independent
 Serial output
Cons
 Comparatively slow
 Can be network intensive
 Non-interruptible / resumable
 Limited filtering options (for example, can exclude just VIEWS)
 Limited remapping options (i.e. from one tablespace to another)
4
Other Options for Moving Data
 Transportable Tablespaces
Pros
 Undoubtedly the fastest way to move data
 Can use the traditional exp/imp or Data Pump to move meta-data
 Cross-platform support if the platform byte-order is the same
Cons
 Tablespaces must be made read-only
 Not selective (must move the entire tablespace)
 Flashback is not possible (tablespace is read only when copied)
 No physical reorganization is performed
 Datafile sizes remain constant
 Must use RMAN to convert the datafile if migrating to a platform with
a different byte-order (check V$TRANSPORTABLE_PLATFORM)
5
Other Options Used Less Frequently
 Extraction to a flat file and loading using SQL Loader
 Direct copy using database links (SQL Plus COPY
command)
 Oracle Streams
 3rd
Party data ETL or reorg tools
6
Top 10 Reasons to Love DataPump
10. Similar look and feel to the old exp/imp
9. Can filter on the full range of object types
8. Can re-map datafiles and or tablespaces on import
7. Estimates the export file size (space needed)
6. Parallelizable
5. Significantly faster than the traditional exp/imp
4. PL/SQL Interface – programmable
3. A file is not actually required - can import through a
network link
2. Track in v$session_longops
1. Resumable (interruptible and restartable)
7
Top 10 Reasons Not to Love Data Pump
10. Still generates redo (unlike direct path inserts)
9. Aggregation of exported data is not possible (sort only)
8. Performance on the server
7. Harder to tell what it’s doing at any given time
6. No equivalent to the STATISTICS option
5. Cannot be used with sequential media such as tapes and
pipes (not read/written serially)
4. Only accesses files on the server, never the client
3. Oracle directories are required in the DB to access the files
2. Does not support COMMIT on imp or CONSISTENT on exp
1. If constraints are violated on import, the load is discontinued
8
Operation Fundamentals
 Export/Import
These utilities would basically connect to the Oracle database
via Oracle NET and run queries or DDL/DML
Processing of returned results and I/O operations were done
on the client
 Data Pump
The executables call PL/SQL APIs
Therefore processing is done on the database server
This can be an advantage or a disadvantage depending on the
situation
“Self-Tuning”: no longer need to use BUFFER or RECORDSET
9
Export Operation
Network
Export
File(s)
exp.exe
Oracle
Database
10
Data Pump Export Operation
Network
Export
File(s)
expdp.exe
Oracle
Database
11
Key Differences
 Dump and log files are on the server, not the client
 Must have a DIRECTORY created in the Oracle
database for I/O
Permissions for the userid connecting to the instance, not the
schemas being exported or imported
 Canceling the client process does not stop the job
 Doesn’t automatically overwrite dump file if it already
exists – returns an error instead
 Parameters (command line) are reported in the log file
 Exported objects order based on table size
(descending) instead of alphabetically
12
Multiple Interfaces
1. Command line utilities expdb and impdb
 Similar to the familiar exp and imp in usage
 Use HELP=Y for a list of commands
 Oracle documentation provides a comparison table to exp/imp
1. Enterprise Manager
2. PL/SQL
 Can be used independently but is difficult
 All of these call the DBMS_DATAPUMP API
 Uses Oracle Advanced Queuing
 Uses DBMS_METADATA
13
Unload Mechanisms
 Data Pump automatically chooses to unload data either
using:
Direct path
External Tables (new driver called ORACLE_DATAPUMP)
 Same “External Tables” mechanism that was introduced in
Oracle9i
 When will it use External tables:
When parallelism can be used
When the table contains a complex data type or structure that
prevents direct path unloads
 A lot of tables fall under this situation – see Oracle documentation for a
complete list
 It doesn’t really matter to us which method is used
14
Multiple Processes
 Master Control Process
Spawns worker processes
Populates the master control table and log file
The master control table can be queried to track the job’s
process
At the end of an export, the master control table is written to
the dump file and dropped from the database
 Worker Processes
Performs the loading/unloading
Number of processes depends on the degree of parallelism
(the PARALLEL option)
15
Detaching and Re-Attaching
 Issuing “Ctrl-C” from the data pump import will
detach
Import is running on the server so it will continue
Brings you into “interactive-command” mode
 To re-attach, run impdp with the ATTACH= option
Example: impdp userid=system/oracle attach=JOB_01
Brings you back into “interactive-command” mode
16
New Views
 DBA_DATAPUMP_JOBS and USER_DATABASE_JOBS
Identify all jobs regardless of their state
Identify any master tables not associated with an active job
 DBA_DATAPUMP_SESSIONS
Identify user sessions that are attached to a job
 Data pump sessions populate v$session_longops
Documentation says that it is 100% accurate for imports but
testing proves otherwise!!!
17
Security Considerations
 Still uses the EXP_FULL_DATABASE and
IMP_FULL_DATABASE
 A privileged user will have these two roles
 A privileged user can:
Export/import objects owned by other schemas
Export non-schema objects (metadata)
Attach to, monitor, and control jobs initiated by others
Perform schema, datafile, and tablespace remapping
 Similar to the traditional export/import
 Supports label security
If exporting user has the EXEMPT ACCESS POLICY role
18
Object Statistics
 From Oracle documentation regarding data pump
exports:
“A parameter comparable to STATISTICS is not needed.
Statistics are always saved for tables.”
 From Oracle documentation regarding data pump
imports:
“A parameter comparable to STATISTICS is not needed. If the
source table has statistics, they are imported.”
19
Other Random Points
 Can still use a parameter file and the PARFILE
command line option
 Fully supports Automatic Storage Management (ASM)
 Can still flashback to a specified time or SCN
 Can still extract (or backup) DDL (meta data)
Using the SQLFILE option instead of the traditional
INDEXFILE or SHOW options
 Full support of LOBS

More Related Content

PPTX
Backup & recovery with rman
PPTX
Data Guard Architecture & Setup
PPT
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
PPTX
Oracle architecture ppt
PDF
Awr + 12c performance tuning
PDF
All Oracle-dba-interview-questions
PPT
Ms sql server architecture
PDF
153 Oracle dba interview questions
Backup & recovery with rman
Data Guard Architecture & Setup
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Oracle architecture ppt
Awr + 12c performance tuning
All Oracle-dba-interview-questions
Ms sql server architecture
153 Oracle dba interview questions

What's hot (20)

PDF
Advanced RAC troubleshooting: Network
PDF
Backup and recovery in oracle
PDF
Step by Step Restore rman to different host
PDF
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
PDF
Ash architecture and advanced usage rmoug2014
PDF
Understanding oracle rac internals part 1 - slides
PDF
Oracle RAC 19c and Later - Best Practices #OOWLON
PPTX
05_DP_300T00A_Optimize.pptx
PPTX
Oracle architecture with details-yogiji creations
PPTX
Unix architecture | Operating System
DOCX
Dba 3+ exp qus
PPTX
Understand oracle real application cluster
PPT
Introduction to System Calls
PPT
Sql server basics
PDF
Oracle db performance tuning
PDF
Oracle statistics by example
PDF
Oracle db architecture
PPT
PPT
Os Threads
PDF
SQL Monitoring in Oracle Database 12c
Advanced RAC troubleshooting: Network
Backup and recovery in oracle
Step by Step Restore rman to different host
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Ash architecture and advanced usage rmoug2014
Understanding oracle rac internals part 1 - slides
Oracle RAC 19c and Later - Best Practices #OOWLON
05_DP_300T00A_Optimize.pptx
Oracle architecture with details-yogiji creations
Unix architecture | Operating System
Dba 3+ exp qus
Understand oracle real application cluster
Introduction to System Calls
Sql server basics
Oracle db performance tuning
Oracle statistics by example
Oracle db architecture
Os Threads
SQL Monitoring in Oracle Database 12c
Ad

Viewers also liked (16)

PDF
Deep Dive: More Oracle Data Pump Performance Tips and Tricks
PDF
Oracle 11g expdp alib oracle 10g import etmek
PDF
Hcm export data rahul vishwanath
PPTX
Exalogic Technical Overview
PPTX
Exalogic workshop overview__hardwarev4
PPTX
Oracle flex asm & flex cluster
DOCX
Oracle dba interview questions with answer
PDF
Flex Your Database on 12c's Flex ASM and Flex Cluster
PDF
What is new on 12c for Backup and Recovery? Presentation
PPTX
Top 10 tips for Oracle performance (Updated April 2015)
PPS
Oracle Database Overview
PPTX
How to use slideshare
PDF
How to Use Oracle RAC in a Cloud? - A Support Question
PPT
How to Create a Slideshare Account
DOCX
Rac questions
PDF
Build Features, Not Apps
Deep Dive: More Oracle Data Pump Performance Tips and Tricks
Oracle 11g expdp alib oracle 10g import etmek
Hcm export data rahul vishwanath
Exalogic Technical Overview
Exalogic workshop overview__hardwarev4
Oracle flex asm & flex cluster
Oracle dba interview questions with answer
Flex Your Database on 12c's Flex ASM and Flex Cluster
What is new on 12c for Backup and Recovery? Presentation
Top 10 tips for Oracle performance (Updated April 2015)
Oracle Database Overview
How to use slideshare
How to Use Oracle RAC in a Cloud? - A Support Question
How to Create a Slideshare Account
Rac questions
Build Features, Not Apps
Ad

Similar to Oracle data pump (20)

PPT
Changing platforms of Oracle database
PPT
Less17 Util
PPT
40043 claborn
PPTX
moving data between the data bases in database
PDF
Import option in Oracle Database : tip & trick🧶.pdf
PPSX
Intro to Talend Open Studio for Data Integration
PDF
Oracle DBA interview_questions
PPTX
IDUG 2015 NA Data Movement Utilities final
POTX
Test Data Transfer Tool
PPT
Oracle migrations and upgrades
PPT
Building High Performance MySql Query Systems And Analytic Applications
PPT
Building High Performance MySQL Query Systems and Analytic Applications
PPTX
Optimizing your Database Import!
PPT
Intro to Data warehousing lecture 09
PDF
data stage-material
PPTX
PostgreSQL Database Slides
ODP
Plproxy
PPTX
ELT Publishing Tool Overview V3_Jeff
PPTX
Oracle database upgrade to 12c and available methods
PPT
__Stude_DATA FLOW DIAGRAMS.ppt
Changing platforms of Oracle database
Less17 Util
40043 claborn
moving data between the data bases in database
Import option in Oracle Database : tip & trick🧶.pdf
Intro to Talend Open Studio for Data Integration
Oracle DBA interview_questions
IDUG 2015 NA Data Movement Utilities final
Test Data Transfer Tool
Oracle migrations and upgrades
Building High Performance MySql Query Systems And Analytic Applications
Building High Performance MySQL Query Systems and Analytic Applications
Optimizing your Database Import!
Intro to Data warehousing lecture 09
data stage-material
PostgreSQL Database Slides
Plproxy
ELT Publishing Tool Overview V3_Jeff
Oracle database upgrade to 12c and available methods
__Stude_DATA FLOW DIAGRAMS.ppt

Recently uploaded (20)

PPTX
Presentation of Computer CLASS 2 .pptx
PDF
System and Network Administraation Chapter 3
PPTX
Online Work Permit System for Fast Permit Processing
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Materi-Enum-and-Record-Data-Type (1).pptx
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Odoo POS Development Services by CandidRoot Solutions
DOCX
The Five Best AI Cover Tools in 2025.docx
PDF
Digital Strategies for Manufacturing Companies
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
L1 - Introduction to python Backend.pptx
PDF
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
PDF
top salesforce developer skills in 2025.pdf
PDF
medical staffing services at VALiNTRY
PDF
System and Network Administration Chapter 2
PPTX
Mastering-Cybersecurity-The-Crucial-Role-of-Antivirus-Support-Services.pptx
PDF
The Role of Automation and AI in EHS Management for Data Centers.pdf
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
AIRLINE PRICE API | FLIGHT API COST |
Presentation of Computer CLASS 2 .pptx
System and Network Administraation Chapter 3
Online Work Permit System for Fast Permit Processing
How to Choose the Right IT Partner for Your Business in Malaysia
Materi-Enum-and-Record-Data-Type (1).pptx
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Odoo POS Development Services by CandidRoot Solutions
The Five Best AI Cover Tools in 2025.docx
Digital Strategies for Manufacturing Companies
PTS Company Brochure 2025 (1).pdf.......
L1 - Introduction to python Backend.pptx
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
top salesforce developer skills in 2025.pdf
medical staffing services at VALiNTRY
System and Network Administration Chapter 2
Mastering-Cybersecurity-The-Crucial-Role-of-Antivirus-Support-Services.pptx
The Role of Automation and AI in EHS Management for Data Centers.pdf
2025 Textile ERP Trends: SAP, Odoo & Oracle
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
AIRLINE PRICE API | FLIGHT API COST |

Oracle data pump

  • 2. 2 What is Data Pump?  A replacement of the traditional export/import utilities?  The evolution of the traditional export/import utilities?  A completely new 10g utility serving a similar yet slightly different purpose?
  • 3. 3 Other Options for Moving Data  Traditional Export and Import Pros  Easy to use – most DBAs have years of experience using these utilities  Versatile – various options available; can specify what to include  Platform independent  Serial output Cons  Comparatively slow  Can be network intensive  Non-interruptible / resumable  Limited filtering options (for example, can exclude just VIEWS)  Limited remapping options (i.e. from one tablespace to another)
  • 4. 4 Other Options for Moving Data  Transportable Tablespaces Pros  Undoubtedly the fastest way to move data  Can use the traditional exp/imp or Data Pump to move meta-data  Cross-platform support if the platform byte-order is the same Cons  Tablespaces must be made read-only  Not selective (must move the entire tablespace)  Flashback is not possible (tablespace is read only when copied)  No physical reorganization is performed  Datafile sizes remain constant  Must use RMAN to convert the datafile if migrating to a platform with a different byte-order (check V$TRANSPORTABLE_PLATFORM)
  • 5. 5 Other Options Used Less Frequently  Extraction to a flat file and loading using SQL Loader  Direct copy using database links (SQL Plus COPY command)  Oracle Streams  3rd Party data ETL or reorg tools
  • 6. 6 Top 10 Reasons to Love DataPump 10. Similar look and feel to the old exp/imp 9. Can filter on the full range of object types 8. Can re-map datafiles and or tablespaces on import 7. Estimates the export file size (space needed) 6. Parallelizable 5. Significantly faster than the traditional exp/imp 4. PL/SQL Interface – programmable 3. A file is not actually required - can import through a network link 2. Track in v$session_longops 1. Resumable (interruptible and restartable)
  • 7. 7 Top 10 Reasons Not to Love Data Pump 10. Still generates redo (unlike direct path inserts) 9. Aggregation of exported data is not possible (sort only) 8. Performance on the server 7. Harder to tell what it’s doing at any given time 6. No equivalent to the STATISTICS option 5. Cannot be used with sequential media such as tapes and pipes (not read/written serially) 4. Only accesses files on the server, never the client 3. Oracle directories are required in the DB to access the files 2. Does not support COMMIT on imp or CONSISTENT on exp 1. If constraints are violated on import, the load is discontinued
  • 8. 8 Operation Fundamentals  Export/Import These utilities would basically connect to the Oracle database via Oracle NET and run queries or DDL/DML Processing of returned results and I/O operations were done on the client  Data Pump The executables call PL/SQL APIs Therefore processing is done on the database server This can be an advantage or a disadvantage depending on the situation “Self-Tuning”: no longer need to use BUFFER or RECORDSET
  • 10. 10 Data Pump Export Operation Network Export File(s) expdp.exe Oracle Database
  • 11. 11 Key Differences  Dump and log files are on the server, not the client  Must have a DIRECTORY created in the Oracle database for I/O Permissions for the userid connecting to the instance, not the schemas being exported or imported  Canceling the client process does not stop the job  Doesn’t automatically overwrite dump file if it already exists – returns an error instead  Parameters (command line) are reported in the log file  Exported objects order based on table size (descending) instead of alphabetically
  • 12. 12 Multiple Interfaces 1. Command line utilities expdb and impdb  Similar to the familiar exp and imp in usage  Use HELP=Y for a list of commands  Oracle documentation provides a comparison table to exp/imp 1. Enterprise Manager 2. PL/SQL  Can be used independently but is difficult  All of these call the DBMS_DATAPUMP API  Uses Oracle Advanced Queuing  Uses DBMS_METADATA
  • 13. 13 Unload Mechanisms  Data Pump automatically chooses to unload data either using: Direct path External Tables (new driver called ORACLE_DATAPUMP)  Same “External Tables” mechanism that was introduced in Oracle9i  When will it use External tables: When parallelism can be used When the table contains a complex data type or structure that prevents direct path unloads  A lot of tables fall under this situation – see Oracle documentation for a complete list  It doesn’t really matter to us which method is used
  • 14. 14 Multiple Processes  Master Control Process Spawns worker processes Populates the master control table and log file The master control table can be queried to track the job’s process At the end of an export, the master control table is written to the dump file and dropped from the database  Worker Processes Performs the loading/unloading Number of processes depends on the degree of parallelism (the PARALLEL option)
  • 15. 15 Detaching and Re-Attaching  Issuing “Ctrl-C” from the data pump import will detach Import is running on the server so it will continue Brings you into “interactive-command” mode  To re-attach, run impdp with the ATTACH= option Example: impdp userid=system/oracle attach=JOB_01 Brings you back into “interactive-command” mode
  • 16. 16 New Views  DBA_DATAPUMP_JOBS and USER_DATABASE_JOBS Identify all jobs regardless of their state Identify any master tables not associated with an active job  DBA_DATAPUMP_SESSIONS Identify user sessions that are attached to a job  Data pump sessions populate v$session_longops Documentation says that it is 100% accurate for imports but testing proves otherwise!!!
  • 17. 17 Security Considerations  Still uses the EXP_FULL_DATABASE and IMP_FULL_DATABASE  A privileged user will have these two roles  A privileged user can: Export/import objects owned by other schemas Export non-schema objects (metadata) Attach to, monitor, and control jobs initiated by others Perform schema, datafile, and tablespace remapping  Similar to the traditional export/import  Supports label security If exporting user has the EXEMPT ACCESS POLICY role
  • 18. 18 Object Statistics  From Oracle documentation regarding data pump exports: “A parameter comparable to STATISTICS is not needed. Statistics are always saved for tables.”  From Oracle documentation regarding data pump imports: “A parameter comparable to STATISTICS is not needed. If the source table has statistics, they are imported.”
  • 19. 19 Other Random Points  Can still use a parameter file and the PARFILE command line option  Fully supports Automatic Storage Management (ASM)  Can still flashback to a specified time or SCN  Can still extract (or backup) DDL (meta data) Using the SQLFILE option instead of the traditional INDEXFILE or SHOW options  Full support of LOBS