Question

Import Oracle dump file

Asked by: dodgerfan

I have an Oracle .dmp file I need to import to my database. I am new to Oracle and unfamiliar with the data import and export procedures. The orginal database and mine are Oracle 10g. How do I take that file and create the database on my platform? Thanks for any help.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-09-20 at 13:34:06ID22842641
Tags

oracle

,

import

,

file

,

dump

Topics

Oracle 10.x

,

Databases Miscellaneous

,

Oracle Database

Participating Experts
5
Points
500
Comments
20

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Import an Oracle 8 DMP into an Oracle 7.3 Instance
    I have a number of Oracle 8 dmp files - i need to import them into Oracle 7.3. Is there and easy tool for doing this - or any other way of doing it. Thanks JG
  2. Importing a dmp
    I have a dmp file that I am trying to import using the "par file",when I try to import the file I get an error message. IMP-00010 not a valid export file, header failed verification I am pretty sure the export was done with a version higher than the current versio...
  3. Oracle Dump Files and SQL Server
    Hi, I have a few questions about Oracle dumps. I'm receiving a .dmp file that eventually needs to get imported into SQL Server... right now, we have to use a third party tool to "undump" the oracle file and get the tables that are associated with the dump. My firs...
  4. *.dmp files
    I am running windows 2003 server and have clients running MS office 2000 applications how do I open a file with an extension *.dmp (its from an oracle database)
  5. Oracle export to dmp
    I have a database which will drops its tables and import the tables from a dmp file. This dmp file is exported from other database. The problem now I facing is the dmp file size is growing bigger and bigger, up to few gigabytes. I'm not sure how the dmp is exported, but I bel...
  6. DUMP IN ORACLE
    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.

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: sdstuberPosted on 2007-09-20 at 15:07:56ID: 19932139

do you have the dump file's export par file? that makes it a little easier to decide what to do with it at import time.

If it's a full export, you can try to just import it   You may have datafile and tablespace problems as it will try to put objects in the same place on the new db that they came from on the old db.  That may or may not be possible or desirable on the destination system.


you said your database is 10g but then you ask how to create it.  Do you have an empty database to import into?
if not, you'll need to create one.  The easiest way to do that is with the wizard (dbca).

If you do already have one (or you just created it)

you can do have a full import with parameters something like the following but with the caveats as mentioned above.

FILE="your_dump_file.dmp"
LOG="imp_useful_log_file_name_here.log"
FULL=Y
IGNORE=N
FEEDBACK=1000


If you don't have a full export in your dump file you may other steps, like creating the users and tablespaces before hand.

 

by: anand_2000vPosted on 2007-09-20 at 18:39:47ID: 19932890

check which type of import you have taken.


steps

first generate a logfile to knw wat are the contents in it.

 using,
 
cmd > imp system/passwd file=c:\qds.dmp log=c:\import.log  show=y

 let it run,then you will find the logfile genertaed in the path,the check out whtr you are going for a schema level import or a full database level import.

 Import differs in ,
  Full database level import == > you have to verify with the logfile wheather you have necessary path ( i.e c:\ d:\ e:\ ) and in that you should create the specified folders.

 once after you verify all the exact folders present then go with the import using

 cmd  > imp system/passwd file=c:\qds.dmp log=d:\fullimp.log full=y

 Schema wise (user wise )  ===> you have to create the necessary tablespaces mentioned in the logfile which you generated at the top.but path may vary,then create the users ,then issue,
 
 imp system/passwd file=c:\qds.dmp log=user.log fromuser=username in dumpfile touser= username to be imported



Also refer the following site to knw more abt import parameters,
 
 http://www.psoug.org/reference/import.html

 

by: konektorPosted on 2007-09-21 at 04:19:58ID: 19934561

see help: http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1023560

do you have log of export? or do you know if export was done in Full, User or Table mode?
be carefull about characterset while importing - if you use different characterset during import of export character set, your data might be corrupted

 

by: markgeerPosted on 2007-09-21 at 08:10:27ID: 19936251

You cannot use Oracle's import utility to "create" a database.  A database must be created first, before you can run import.  This can be a starter or empty database, or it could already have other data in it.  What import can do is load in all of the data and other objects (user accounts, indexes, constraints, views, PL\SQL objects, etc.) that were exported, depending on the type of export that was done.

A couple important things to know about import:
1. It will try to create the objects (tablespaces, tables, index, etc.) in exactly the same place (disk, directory and tablespace) they were in the server where the export was done.  If you want or need some of these to be in different places on this server, you must create them manually before running import, then use the "ignore=Y" parameter with import so it will use the existing objects that you created, and not error out.
2. Import can *ONLY* do inserts of table data!  It will never do deletes or updates.  So, you cannot use import by itself to refresh an existing database that already contains much of the data that is in the export file.  You could manually drop or truncate the tables that you know are in both, then let import load in the data.  The new "DataPump Import" (impdp) of Oracle10 can truncate existing tables if you tell it to - but that is not the default, and the "old" version of import (imp) cannot do this.

 

by: dodgerfanPosted on 2007-09-21 at 12:58:32ID: 19938697

I have a database created on my Oracle. I cannot use the datapump, as the dba who perorfmed the export did not. I have to use the imp utilitiy. So far I have not been able to get it to work properly, an I do not have the dump file's export par file. I'm still working this, but did not have the time to put much time into it. I will be this weekend. Thanks for the comments. I'll try it all and see what I can get done.

 

by: markgeerPosted on 2007-09-21 at 13:49:30ID: 19939084

Personally, I find the older "imp" easier to work with than the new "DataPump" (or impdp).  Maybe that is just because I have used imp for at least 12 years, or because it only requires a few options.  The new DataPump is faster and more flexible, but that means you have to provide more parameters.

I hope your version of Oracle is at least as high as that of the database where the export was not.  If not, you will not be able to import the file.

 

by: dodgerfanPosted on 2007-09-21 at 19:59:12ID: 19940398

I am using 10g, and the dump file came from a 10g database. I open a command line dialog and open the imp utility. It asks for a user name. I enter it and it asks for a password, which I put in. It then brings me to this prompt: Import file: EXPDAT.DMP >
I then enter the name of my dump file, mydatabase.dmp. It then asks for me to enter a buffer size. I am not sure how much to enter. I just put the minimum. It then warns me that the objects were created by SYSTEM, not by you. It than asks: List contents of import file only, I enter yes. It then asks Import entire export file, I enter yes. It then runs, and taks about a minute. It does not give me any messages. It just runs then closes itself. I go back into oracle, and I can't find any tables or where anything was created. WHat am I doing wrong?

 

by: dodgerfanPosted on 2007-09-21 at 20:37:14ID: 19940516

I tried it again and got something. The final line said "Import terminated successfully with warnings."  The text of my import log after this is below. I'm not sure what it all means. The tables are not in the database yet either.


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

Export file created by EXPORT:V10.02.01 via conventional path
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
export client uses US7ASCII character set (possible charset conversion)
IMP-00031: Must specify FULL=Y or provide FROMUSER/TOUSER or TABLES arguments
IMP-00000: Import terminated unsuccessfully

 

by: linuxoPosted on 2007-09-22 at 03:07:25ID: 19941089

use

please don't import the dmp as system cause all tables will reside in system tablespace and that will lead to problems.

first create new user : as

1- connect as system : conn system/password

run this after modifying the parameters (


CREATE USER "TEST" PROFILE "DEFAULT" IDENTIFIED BY "*******" DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP" ACCOUNT UNLOCK
GRANT "CONNECT" TO "TEST"
GRANT "RESOURCE" TO "TEST"


2- then

connect as test or what ever the user name u modified ..

3- import the file normally using the new users

imp  test/password  file = path

thank you

 

by: markgeerPosted on 2007-09-24 at 05:30:02ID: 19947800

No!  There is no problem with running the import as the SYSTEM user!  That will definitely *NOT* put all tables into the system tablespace!  Import will try to put every table into the same tablespace it was in in  the database where the export was done.  This is true regardless of which user did the export or the import.

You can run import either interactively (as you tried) or with a parameter file to provide the parameters (this is the approach I usually use, but either way can work).

If you run import interactively, just use the suggested default value for: "buffer size".  I think your biggest problem was the next question: "List contents of import file only?"  where you said that you repiled: "yes".  That tells import to *NOT* actually import anything!  Instead, the contents of the file (tables and indexes, but no table data) just get written to the log file.  This allows you to then open the log file with a text editor to cofirm the names of the objects in the *.dmp file for example.

Run import again, but say "no" this time to the question: "List contents of import file only?".

 

by: dodgerfanPosted on 2007-09-24 at 06:39:45ID: 19948345

markgeer:
Thanks for he info. I still cannot get it to work. I did the following:
Import File: EXPDAT.DMP > artemi_schema.dmp
List contents of import file only (yes/no): no > no
Ignore create error due to object existence (yes/no): no > yes
Import grants (yes/no): yes > yes
Import table data (yes/no): yes > yes
Import entire export file (yes/no): no > yes
Once I do this, it quickly gives me an error and shuts down. It shows the error so fast and shuts down I cannot see it. What am I doing wrong here?Any ideas?

 

by: dodgerfanPosted on 2007-09-24 at 07:17:58ID: 19948566

Now I am getting a read error:

IMP-00002: failed to open artemis_schema.dmp for read

Now I am really lost.

 

by: markgeerPosted on 2007-09-24 at 07:18:58ID: 19948572

Import will create a log file when it runs.  (This is a plain ASCI text file that yo ucna open with any text editor.)  Look for that in your current working directory.  That should have the error text in it.

 

by: markgeerPosted on 2007-09-24 at 07:19:53ID: 19948576

Are you in the directory where that file is?  If not, you will have to provide the full path, not just the file name.

 

by: dodgerfanPosted on 2007-09-24 at 08:11:05ID: 19948989

I am in the directory where the file is. I could not find a log file as it will not run. Whatever error it is stops the process before anything really happens. I was able to run something like anand_2000v suggested: cmd > imp system/passwd file=c:\artemis_schema.dmp log=c:\import.log show=y full=y.
It then ran without importing and posted an import log to the directory. It does not specify any errors. The last line in the file says "Import terminated successfully without warnings." It will read the file if I say yes to List contents of import file only. But when I try to do the import and say no to that question, I get a very quick error and it shuts down. Can it have something to do with the user? Do I need to do the import a different way?

 

by: markgeerPosted on 2007-09-24 at 09:42:56ID: 19949626

If that command worked, then this should also and it should give you a log file (C:\import.log) that you can then read:
imp system/passwd file=c:\artemis_schema.dmp log=c:\import.log full=y.

That is a correct way to run import.  I usually run it with a parameter file like this:

imp system/passwd parfile=imp_full.ctl

Here is an example of a parameter file I used: (named: "imp_full.ctl")

file=(H:\export\expfull.dmp)
log=G:\trace\imp_full.log
full=Y
rows=Y
indexes=Y
ignore=Y
commit=Y

 

by: dodgerfanPosted on 2007-09-24 at 10:58:22ID: 19950222

Alright, I did what you suggested in your last post. I created a parameter file. I am still getting an error, however it's telling me a user does dont exist. Is this correct? What user does not exist?


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

Export file created by EXPORT:V10.02.01 via conventional path
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
export client uses US7ASCII character set (possible charset conversion)
. importing SYSTEM's objects into SYSTEM
. importing SMLA's objects into SMLA
IMP-00003: ORACLE error 1435 encountered
ORA-01435: user does not exist
Import terminated successfully with warnings.

 

by: markgeerPosted on 2007-09-24 at 11:23:46ID: 19950434

That looks to me like the user: SMLA does not exist.  Try creating the user account manually.  If you need to do this in SQL*Plus or TOAD (or another utility that can execute SQL statements) the command is simply:
create user SMLA identified by [password];

You may also need to do this command:
grant resource to SMLA;

and maybe this one:
grant unlimited tablespace to SMLA;

 

by: dodgerfanPosted on 2007-09-24 at 12:42:28ID: 19951147

markgeer:
Alright, I created the SMLA user and granted the permissions. It worked. Finally. It ran just I was led to believe it would. I did still encounter errors, specifically Oracle error 6550. I can't seem to find that error anywhere. What is that error? It did import in over 70 tables, but I'm not sure how many were in the orginal schema. Thanks for all of the help.

 

by: markgeerPosted on 2007-09-24 at 13:18:43ID: 19951443

The Oracle error: ORA-06550 means: "A PL/SQL compilation error has occurred..."
This indicates that the source code for a PL\SQL object was imported, but it did not compile successfully due to some kind of problem.  This is most likely a dependency on an object that didn't get imported (like maybe a public synonym or an object in a user schema that wasn't imported) or a security issue (like maybe a missing grant).

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...