Solved

Oracle EXPDP - IMPDP

Posted on 2013-01-20
7
1,276 Views
Last Modified: 2013-01-23
Hi,
Oracle version: 10g
O.S: Windows 2003

I've 2 oracle instance: ORCL1 (schema TOM) on machine1 and ORCL2 (schema SAM) on machine2
I'd like to import the schema TOM into schema SAM.
TOM schema size is 300 GB

I exported TOM with following parfile:

SCHEMAS=TOM
DIRECTORY=TOM_DIR
DUMPFILE=exp_tom_%U.dmp
LOGFILE=exp_tom.log 
filesize=30GB
JOB_NAME=EXP_JOB

Open in new window

and created about 10 dump files in more of 30 hours

Now I need import into schema SAM, but I'd like to import faster

Which parameter can I add at following imp parfile to speed up the import?

schemas=TOM
remap_schema=TOM:SAM
logfile=imp_sam.log
directory=SAM_DIR
DUMPFILE=exp_tom_%U.dmp
exclude=statistics
job_name=IMP_JOB

Open in new window


Thanks in advance!
0
Comment
Question by:ralph_rea
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 38798953
30 hours for 300GB ... sounds like you have much too slow hardware, and I don't think you will be able to import "faster" than you export.
does the expdp write to the same disks as where the database files reside?
0
 

Author Comment

by:ralph_rea
ID: 38798988
yes, but impdp write to the different disks
0
 
LVL 23

Assisted Solution

by:David
David earned 200 total points
ID: 38799325
I might alter the default sort_area_size to something larger than its default; also, to log the database in noarchivelog mode.

Thirdly, defer your index creation.
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

Author Comment

by:ralph_rea
ID: 38799331
my oracle version: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0

in impdp I used FILESIZE parameter. Can I use PARALLEL parameter for expdp speed?


schemas=TOM
remap_schema=TOM:SAM
logfile=imp_sam.log
directory=SAM_DIR
DUMPFILE=exp_tom_%U.dmp
exclude=statistics
job_name=IMP_JOB
PARALLEL=4
0
 
LVL 23

Expert Comment

by:David
ID: 38799389
certainly, and good catch :)
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 300 total points
ID: 38800038
just to do the math: 30GB/h => 512MB/m => 8MB/s
The write of modern hard drives are in the 50-150MB/s range.
and if you are on SAN disk arrays, the "end-user" speed is even higher, as the writes are spread over several disks.
so, if you have a backup speed of 8MB, you have a hardware issue.
note: backup => READ from Database files (disk) + WRITE to file (backup file)
restore => READ from backup file + WRITE to database files.
so, in the end, it does not matter if you refer to backup/expdp/restore/impdp ...
your disk system has some bottleneck(s), check out that issue, and your backup time shall go down to +- 5 hours, if not less. the restore time will be hence faster also.
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 38800195
what is your SGA set to in the init.ora file ?
select name, value, display_value from v$parameter
where name in ('sga_max_size', 'sga_target');

how much physical memory do you have on your server ?

if your sga_size is very close or bigger than your physical memory then your server will be paging all the time >> slow performance
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exp/imp 25 75
Include a logo in email body using Oracle utl_mail 11 32
pl/sql - query very slow 26 61
Alternative to GTT for a temp table for further reuse in Oracle 8 22
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

832 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