• Home
  • Databases
  • Introduction to Oracle Data Pump Import and Export tool

Introduction to Oracle Data Pump Import and Export tool

Last updated on May 31 2022
Sankalp Joshi

Table of Contents

Introduction to Oracle Data Pump Import and Export tool

Oracle Data Pump Export may be a built-in utility for unloading data and metadata into a group of dump files. The dump file set then are often imported by the info Pump Import utility on an equivalent or another Oracle Database system.

The dump file set contains table data, database object metadata, and control information that are written in an Oracle-proprietary, binary format.

The Data Pump Export works on the server only, therefore, it typically deals with directory object that maps to physical directories on the database server. The Export Data Pump tool doesn’t write to the local filing system on your client computer.

Notice that Oracle introduced the info Pump Export utility starting in Oracle 10g. the info pump Export may be a replacement of the old Export utility. consistent with Oracle, the new Data Pump Export are often up to 40 times faster.

Here are some notable features of the Oracle Data Pump Export tool:

  • Compression of output files
  • Encryption
  • Export via network link
  • Parallelism
  • Using a subquery to export partial data.
  • Renaming tables/schemas/tablespaces

Calling Data Pump Export program

You invoke the info Pump Export program using the expdp command. The behaviors of the program are determined by the parameters specified either on the instruction or during a parameter file.

expdp

Oracle Data Pump Export example

First, create a replacement directory object ot_external that maps to the c:\export folder:

CREATE DIRECTORY ot_external AS ‘C:\export’;

Second, create a parameter file named customer.par with the subsequent contents and place the enter the C:\export directory:

ot@pdborcl/Abcd1234

directory=ot_external

dumpfile=customer_exp%U.dmp

logfile=customer_exp.log

filesize=50K

tables=customers

In this parameter file:

  • The first line specifies the user and password (customers.

Third, invoke the info Pump Export program to export the purchasers table to the dump files:

expdp parfile=customer.par

Here is that the dump file set:

Now, it’s your address export all objects within the OT schema to the dump files by creating a replacement parameter file with the subsequent contents:

ot@pdborcl/Abcd1234

directory=ot_external

dumpfile=ot_exp%U.dmp

logfile=ot_exp.log

filesize=50K

schemas=ot

And run this command: expdp parfile=ot.par

Oracle impdp

Introduction to Oracle Data Pump Import tool

The Data Pump Import program may be a tool that permits you to load an export dump file set into a target Oracle database system. the info Pump Import utility comes with the Oracle Installation by default.

The dump file set consists of 1 or more disk files that store table data, database object metadata, and control information. The dump file set is made by running the info Pump Export tool.

Note that the info Pump Import may be a replacement of the legacy Import tool called imp ranging from Oracle 10g. Oracle recommends the info Pump Import tool because it’s more flexible and may be 15 times faster than the legacy tool in terms of performance.

How to run the info Pump Import tool

To invoke the info Pump Import tool, you employ the subsequent command:

 

impdp

The behavior of the tool depends on the import parameters that you simply specify, either on the instruction or during a parameter file.

Oracle Data Pump Import tool example

We will load the dump file set exported within the Data Pump Export tutorial for the demonstration.

 

First, create a parameter file named customer_imp.par with the subsequent contents and place it within the c:\export folder:

ot@pdborcl/Abcd1234

directory=ot_external

dumpfile=customer_exp%U.dmp

logfile=customer_imp.log

remap_table=ot.customers:customers_bk

In this parameter file, the remap_table option renames the purchasers table to customers_bk table.

Then, use the impdp command to invoke the info Pump Import tool with the parameter file customer_imp.par:

impdp parfile=customer_imp.par

Finally, verify the contents of the customers_bk table:

SELECT * FROM customers;

Here is that the partial output:

 

In this blog, you’ve got learned the way to use the Oracle Data Pump Import tool to load an export dump file set into an Oracle Database system.

So, this brings us to the end of blog. This Tecklearn ‘Introduction to Oracle Data Pump Import and Export Tool’ blog helps you with commonly asked questions if you are looking out for a job in Oracle DB. If you wish to learn Oracle DB and build a career in Database domain, then check out our interactive, Oracle 12c DBA Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

https://www.tecklearn.com/course/oracle-12c-dba-course/

Oracle 12c DBA Course Training

About the Course

Oracle Database Administration training will help you master the Oracle DBA. As part of the training, you will master the Oracle Database architecture, the database processes, memory structures, schema objects, security, data recovery and backup through hands-on projects and case studies. Oracle DBA Training helps students gain the skills and knowledge required to install, configure, and administer Oracle databases. Besides, this training also develops the full skill set required to become a successful Oracle Database Administrator.

Why Should you take Oracle DBA Training?

  • The Average salary of an Oracle DBA is $108,837 per annum – GlassDoor.com
  • According to Gartner, Oracle is the market leader in the Relational Database with 48.35% market share globally.
  • IBM, TCS, Tech Mahindra, Oracle, Wipro & other MNCs worldwide use Pl-SQL for their database deployments.

What you will Learn in this Course?

Introduction to Oracle Database

  • What is the Oracle Database
  • Pre-requisites for oracle database
  • Oracle database 12c installation
  • Multi-tenant architecture

Exploring the Oracle 12c Database Architecture

  • Explain the Memory Structures
  • Describe the Process Structures
  • Overview of Storage Structures

Preparing the Database Environment

  • Identify the tools for Administering an Oracle Database
  • Plan an Oracle Database Installation
  • Install the Oracle Software by using Oracle Universal Installer (OUI)
  • Create a Database by using the Database Configuration Assistant (DBCA)

Managing the Oracle Instance

  • Setting database initialization parameters
  • Describe the stages of database startup and shutdown

Database Storage Structures and Schema Objects

  • Managing Database Storage Structures
  • Overview of table space and data files
  • Overview of Primary Components
  • Identify the importance of checkpoints, redo log files, and archived log files
  • Configure ARHIVELOG mode

Database Startup & User Requests and Oracle Network Environment

  • Describe the stages of database startup and shutdown
  • Using alert log and trace files
  • Configure and Manage the Oracle Network
  • pFile and spFile
  • Tablespace Management
  • Storage and Relationship Structure

Oracle Backup & Recovery

  • Redo log File Management
  • Performing Database Recovery
  • Overview of Data Recovery Advisor
  • Use Data Recovery Advisor to Perform recovery (Control file, Redo log file and Data file)

Deep Dive into Oracle Recovery Manager (RMAN)

  • Using the RMAN Recovery Catalog
  • Identify situations that require RMAN recovery catalog
  • Create and configure a recovery catalog
  • Synchronize the recovery catalog
  • Create and Use RMAN stored scripts
  • Back up the recovery catalog
  • Create and use a virtual private catalog

Configuring Backup Specifications

  • Using RMAN to Create Backups
  • Create image file backups
  • Create a whole database backup
  • Enable fast incremental backup
  • Using RMAN to Perform Recovery
  • Perform complete recovery from a critical or noncritical data file loss using RMAN
  • Perform incomplete recovery using RMAN

Data Movement and Oracle Data Pump

  • Moving Data
  • Describe and use methods to use move data (Directory objects, SQL* Loader, External tables)
  • Explain the general architecture of Oracle Data Pump

Data Dictionary & Dynamic Performance Tables

  • Oracle Data Dictionary contains information related to database privileges
  • Data dictionary views
  • Media failure
  • Flashback CDB

Database Tuning

  • What is database tuning
  • How to tune the database
  • Tuning the data dictionary

0 responses on "Introduction to Oracle Data Pump Import and Export tool"

Leave a Message

Your email address will not be published. Required fields are marked *