Posted on 2006-11-28
Last Modified: 2011-08-18
Hi All,

I have a database in oracle HR i want to know

1.How can i take dump of this database complete.
2.How can i take dump of two tables in it.
3.How can i create another database say HR_Test from above created dump.
4.How can i restore it on HR database itself.
Question by:imran_fast
  • 4
  • 3
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 100 total points
ID: 18026821
1.How can i take dump of this database complete.
check out the EXP command line tool.  run exp help=yes to see most of the command line options.

2.How can i take dump of two tables in it.
among others, the flag TABLES=(table1, table2) from the above-mentionned exp tool will do that.

3.How can i create another database say HR_Test from above created dump.
you cannot create the instance/database as such, but you can load back the tables structure and table data using the IMP command line tool (import)

4.How can i restore it on HR database itself.
yes. again the command line tool imp is the one to be used, it goes hand in hand with exp
LVL 28

Author Comment

ID: 18027166
hi angel in oracle 10 g we have a command called expdb and impdb any how one more question
have you heard of stats pack in oracle. it is similar to profiler. i need to know how to run it. if you or any body knows a site for that.
LVL 47

Accepted Solution

schwertner earned 400 total points
ID: 18027251
Data Pump is server based - you have to create a repository for
dumps and logs:

Before using data pump create directory as user ‘system’ and grant ‘sys’ read/write privileges:

connect system/manager@o10f
create directory pump as '/u01/app/oracle/product/10.2.0/m/pump_directory';
grant read,write on directory pump to sys;

This is logical directory. Now you have to create physical directory using MidNight comander.

See all directories:
select * from dba_directories;

Now create a parameter file expsch.par:

USERID='sys/manager@o10f as sysdba'

Execute the file:

%  expdp parfile=expsch.par

This was Schema level export!


Importing - in the next lesson, after you complete this.
LVL 28

Author Comment

ID: 18027364
hi schwertner,

Thanks for your feedback.

i am posting another question please have a look at that as well.
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

LVL 47

Expert Comment

ID: 18027396
This was not my intention.

Continue to post here!
LVL 28

Author Comment

ID: 18027427
hi schwertner,
actually i found out how to do import and export but my next question is regarding performance monitoring that is irrelivant to this one.


LVL 47

Expert Comment

ID: 18027461
To increase the performance you can use PARALEL option
dividing the task in different subtasks and creating many
dump files in paralel.

In the PL/SQl API package DBMS_DATAPUMP there is a table you can
query regularly to get the progres of the dump creation.

Data Pump is much more faster as clasical import/export (Parallel Option)
but the dumps are bigger - XML is used instead DDL and DML
statements that are shorter.
LVL 28

Author Comment

ID: 18027533
Hi schwertner,
Thanks for the above information Please check this

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cannot open form error 6 65
Oracle SQL Select within a Where Clause 9 55
File generation using utl_file 4 45
How to connect SQL Server from my Oracle database? 11 64
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Via a live example, show how to take different types of Oracle backups using RMAN.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now