Posted on 2006-11-28
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 400 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 48

Accepted Solution

schwertner earned 1600 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.
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

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.
LVL 48

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 48

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

752 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