Solved

how to do exp imp faster

Posted on 2004-04-28
3
2,924 Views
Last Modified: 2007-10-04
I have a default oracle install 9.2, on solaris 9, I am importing about 1.8GB of data from a 816 database that was on solaris 2.6. I have the export done as one file. My load with imp is going slower than I would like. Does anybody have tuning recommendations, or a better way to do a export/imp I am switching user id and charset. The command I am using are

exp system/manager log=prodexp.log owner=lawprod compress=y
and
 imp system/manager file=/tmp/expdat.dmp fromuser=lawprod touser=law7 indexes=n log=/tmp/prod.log ignore=y

I am sure there is a faster way, sqlloader, tunning of the sga, possible spliting the export with named pipes. I have read many snippet out on the web about these various things, but I haven't had a lot of luck implementing them.

The data and Indexes are in seperate tablespaces that is why I have indexes=n.
I don't have toad or oms so I am stuck with command line.

Thanks for any help in advance, Oracle newby
0
Comment
Question by:shawnp8
[X]
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
3 Comments
 
LVL 23

Accepted Solution

by:
seazodiac earned 125 total points
ID: 10944059
just add a few parameters on the command line of imp

stastistics=NONE
commit=N




on the database size, set log_buffer to a much larger size, and turn off the archivelog mode by
SQL>alter system set log_buffer=<a larger value>;
SQL>archive log stop;



0
 
LVL 12

Expert Comment

by:catchmeifuwant
ID: 10945744
also you can use direct=y in exp for direct path export
0
 
LVL 48

Expert Comment

by:schwertner
ID: 10946522
The above suggestions are good. The direct Export will make faster the process.

For fast Import a good idea is to postpone the index creation which is the biggest time consuming component.

To do this make the export with
show=y
and find in the log the index creation staments for the schema you are imported.
Prepare a file with these statements.
After that make the export without creating the indexes (there is a parameter like indexes=N).
The import will run very fast.
Log under the schema you have imported.
Run the index creating script you have prepared. This way is faster as the usual way of import.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

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…
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 explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
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.

742 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