Solved

Oracle EXPDP - IMPDP

Posted on 2013-01-20
7
1,261 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]
Comment Utility
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
Comment Utility
yes, but impdp write to the different disks
0
 
LVL 23

Assisted Solution

by:David
David earned 200 total points
Comment Utility
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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:ralph_rea
Comment Utility
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
Comment Utility
certainly, and good catch :)
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 300 total points
Comment Utility
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 36

Expert Comment

by:Geert Gruwez
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Via a live example, show how to take different types of Oracle backups using RMAN.
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.

763 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

10 Experts available now in Live!

Get 1:1 Help Now