Solved

DUMP IN ORACLE

Posted on 2006-11-28
8
18,793 Views
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.
0
Comment
Question by:imran_fast
  • 4
  • 3
8 Comments
 
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
0
 
LVL 28

Author Comment

by:imran_fast
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.
0
 
LVL 47

Accepted Solution

by:
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'
DIRECTORY=PUMP
DUMPFILE=010f_pump.dmp
LOGFILE=expsch.log
SCHEMAS=icwuser,lscontacts,lscontainer,lsdocuments,
lsidmap,lsmedical,lssystem,lsuser
CONTENT=all

Execute the file:

%  expdp parfile=expsch.par


This was Schema level export!

Enjoy!

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

Author Comment

by:imran_fast
ID: 18027364
hi schwertner,

Thanks for your feedback.

i am posting another question please have a look at that as well.
0
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

by:schwertner
ID: 18027396
This was not my intention.

Continue to post here!
0
 
LVL 28

Author Comment

by:imran_fast
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.

Regards

Imran
0
 
LVL 47

Expert Comment

by:schwertner
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.
0
 
LVL 28

Author Comment

by:imran_fast
ID: 18027533
Hi schwertner,
Thanks for the above information Please check this
http://www.experts-exchange.com/Databases/Oracle/Q_22074579.html
0

Featured Post

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.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Number Format 1 45
oracle rollup query 3 38
compre toata in where clue oracle 4 44
query returning everything 11 68
Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

762 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

22 Experts available now in Live!

Get 1:1 Help Now