0% found this document useful (0 votes)
20 views7 pages

Data Pump Technique

The document discusses the concepts of database migration using Oracle's Data Pump technique. It describes how to use the EXPDP and IMPDP tools to export and import data and metadata from one Oracle database to another. Screenshots show examples of exporting data from the mlade schema, importing into a different database, and verifying the import was successful.

Uploaded by

Udhaya Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views7 pages

Data Pump Technique

The document discusses the concepts of database migration using Oracle's Data Pump technique. It describes how to use the EXPDP and IMPDP tools to export and import data and metadata from one Oracle database to another. Screenshots show examples of exporting data from the mlade schema, importing into a different database, and verifying the import was successful.

Uploaded by

Udhaya Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

CONCEPTS OF DATABASE MIGRATION

DATA PUMP TECHNIQUE


Data Pump is one of the migration concepts in oracle. It comes with 2 tools. That
are
1. EXPDP – EXPORT DATA PUMP
2. IMPDP – IMPORT DATA PUMP
These tools are mainly used to exporting and importing. This technique is
introduced in ORACLE 10 g.
Before 10 g these tools are called in the name of EXP, IMP.
EXPDP:-EXPORT DATA PUMP
Using EMPDP we can copy the oracle database to dump file. If we want to
move one place to another place means we need to store data in a file. Using this
tool we can copy the entire data and files to dump files. It is a command line tool.
It works in command line (windows command prompt).
SYNTAX:-
EXPDP UN/PWD DIRECTORY= DIR_OBJ_NAME DUMPFILE = FILE_NAME
[Options]
In the above syntax,
UN – User Name,
PWD – Password,
DIR_OBJ_NAME – Directory to store your details of exported data.
DUMPFILE – Which file you want to store your data.
[OPTIONS]
FULL=(Y/N) – Y means full database will be copied.
SCHEMA = MLADE– This option will only copy the data from Scott schema alone.
TABLES = Table Name - Only the specified table or tables alone will exported.
Before going for execution first we need to create a directory object.
Directory object is nothing but an object in oracle database that points the OS
(Operating System).
We need to store the dump file so for that location we need to create a
directory. A DBA only have the privilege to create this directory object.

SQL> CONNECT SYSTEM/ORACLE;


SQL> CONNECTED.

SYNTAX:-
CREATE DIRECTORY DIRECTORY_NAME AS DIRECTORY_PATH;

SQL> CREATE DIRECTORY D AS ‘E: \EXIM’;


DIRECTORY CREATED.

Now in Window command prompt


C: \ EXPDP SYSTEM/MANAGER DIRECTORY = D DUMPFILE = DATAPUMP.DMP
SCHEMAS = MLADE

After the above command go and check in the location of directory path
‘E: \exim’. There are 2 files will be there. One is Log file and another one is Dump
file.
After doing the above steps we can import this in target system in the
target system if the user ‘MLADE’ is already there means it can be imported
automatically. If the user is not there means user will be created and after dump
file is imported.
IMPDP:-IMPORT DATA PUMP
Now we are going to Import the dump file
Syntax for IMPDP is
IMPDP UN/PWD DIRECTORY = DIR DUMPFILE = DUMP_FILE_NAME.DMP
In the above syntax,
UN – User name,
PWD – Password,
DIR_OBJ_NAME – Directory to store your details of exported data.
DUMPFILE – Which file you want to store your data.

In the windows command prompt


C: \ > IMPDP SYSTEM/ORACLE DIRECTORY = D DUMPFILE = DATAPUMP. DMP
After doing the above step importing is completed. You can go and check
your data base. It will be available in your target database.
The above are the details of Data Pump technique. It is one kind of data
migration concepts. It is very easy and compatible technique to transform Data
from source database to target database.

---------BELOW ARE THE PHOTOS OF DATA PUMP PRACTICAL EXECUTION -----------


1). CONNECTING SQL
PROMPT TO DBA
First we need to create a
directory object. In order to
do that we need to connect
our SQL prompt to DBA.

2). CREATION OF DIRECTORY


OBJECT
Directory object is an object in
oracle database that points the OS.
We need to store the dump file so
for that location we need to create a
directory

3). EXPORTING THE


DATABASE
Using ‘EXPDP’ command
we are exporting the
database particularly
‘mlade’ schema which is
present in my oracle
database. You can able to
check how EXPDP command
is reacting through this
image. After exporting all
the items in ‘mlade’ schema,
It will create one log file and one dump file in the specified directory.
4). RESULT OF EXPDP
EXECUTION
You can check your
directory. In that two files
will be created after the
successful execution of
EXPDP command in
windows command prompt.
First file is
“DATAPUMP.DMP” is dump file and it holding all the data from “mlade” schema.
Second file is “export” which is a log file. It is having details of the execution.

5). DROPPING USER


“MLADE”
To import the dump file
we are dropping the user
“mlade”. Because it may
give confusion while
importing the dump file. So I
dropped it.

6). IMPORTING THE DUMP


FILE
By using “IMPDP” command
in windows command prompt
we can import the dump file
which contains all data of
“mlade” schema.
You can check the process
of IMPDP and its execution
through this image.
7). RESULT OF IMPDP IN
COMMAND PROMPT
Here we can see that log
another log file is created for
importing.

8). CHECKING
IMPORTING IS
SUCCESSFULL OR
NOT
In SQL command
prompt we can
check the IMPDP
execution is
successfully
completed or not.
Try some SQL
queries to check all the data are stored successfully or not.

----------------------------- ***END OF THE DOCUMENT *** ---------------------------

You might also like