Home » Infrastructure » Linux » Importing dump to oracle database
Importing dump to oracle database [message #274263] Mon, 15 October 2007 04:45 Go to next message
pdwivedi
Messages: 17
Registered: October 2007
Location: I
Junior Member
I have database dump in one of the directory on linux plateform.
I have installed oracle 10g . How can I import my *.dmp file to oracle database.Please suggest command line method as well as using enterprise manager GUI to import database.
Re: Importing dump to oracle database [message #274275 is a reply to message #274263] Mon, 15 October 2007 05:18 Go to previous messageGo to next message
Michel Cadot
Messages: 59293
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
imp help=y

Import: Release 10.2.0.3.0 - Production on Mon Oct 15 12:17:45 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.



You can let Import prompt you for parameters by entering the IMP
command followed by your username/password:

     Example: IMP SCOTT/TIGER

Or, you can control how Import runs by entering the IMP command followed
by various arguments. To specify parameters, you use keywords:

     Format:  IMP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
     Example: IMP SCOTT/TIGER IGNORE=Y TABLES=(EMP,DEPT) FULL=N
               or TABLES=(T1:P1,T1:P2), if T1 is partitioned table

USERID must be the first parameter on the command line.

Keyword  Description (Default)       Keyword      Description (Default)
--------------------------------------------------------------------------
USERID   username/password           FULL         import entire file (N)
BUFFER   size of data buffer         FROMUSER     list of owner usernames
FILE     input files (EXPDAT.DMP)    TOUSER       list of usernames
SHOW     just list file contents (N) TABLES       list of table names
IGNORE   ignore create errors (N)    RECORDLENGTH length of IO record
GRANTS   import grants (Y)           INCTYPE      incremental import type
INDEXES  import indexes (Y)          COMMIT       commit array insert (N)
ROWS     import data rows (Y)        PARFILE      parameter filename
LOG      log file of screen output   CONSTRAINTS  import constraints (Y)
DESTROY                overwrite tablespace data file (N)
INDEXFILE              write table/index info to specified file
SKIP_UNUSABLE_INDEXES  skip maintenance of unusable indexes (N)
FEEDBACK               display progress every x rows(0)
TOID_NOVALIDATE        skip validation of specified type ids
FILESIZE               maximum size of each dump file
STATISTICS             import precomputed statistics (always)
RESUMABLE              suspend when a space related error is encountered(N)
RESUMABLE_NAME         text string used to identify resumable statement
RESUMABLE_TIMEOUT      wait time for RESUMABLE
COMPILE                compile procedures, packages, and functions (Y)
STREAMS_CONFIGURATION  import streams general metadata (Y)
STREAMS_INSTANTIATION  import streams instantiation metadata (N)

The following keywords only apply to transportable tablespaces
TRANSPORT_TABLESPACE import transportable tablespace metadata (N)
TABLESPACES tablespaces to be transported into database
DATAFILES datafiles to be transported into database
TTS_OWNERS users that own data in the transportable tablespace set

Import terminated successfully without warnings.

Regards
Michel
Re: Importing dump to oracle database [message #274616 is a reply to message #274263] Tue, 16 October 2007 10:51 Go to previous messageGo to next message
mucki
Messages: 3
Registered: April 2006
Location: Duesseldorf, Germany
Junior Member
Hi,

pdwivedi wrote on Mon, 15 October 2007 11:45

I have database dump in one of the directory on linux plateform.
I have installed oracle 10g . How can I import my *.dmp file to oracle database.Please suggest command line method as well as using enterprise manager GUI to import database.



try imp username/password full=y file=filename log=logfile

Please check your ORCALE_SID is set correctly.

hope it helps,

Mucki
Re: Importing dump to oracle database [message #274625 is a reply to message #274616] Tue, 16 October 2007 11:09 Go to previous messageGo to next message
Michel Cadot
Messages: 59293
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
If OP can't read a help, it is dangerous to give him more information.

Regards
Michel
Re: Importing dump to oracle database [message #274726 is a reply to message #274625] Wed, 17 October 2007 00:09 Go to previous messageGo to next message
pdwivedi
Messages: 17
Registered: October 2007
Location: I
Junior Member
Thanks MichelI have already read your reply. It was helpful and it has solved my problem and I have successfully imported the database.

Regards
Prashant
Re: Importing dump to oracle database [message #274757 is a reply to message #274726] Wed, 17 October 2007 01:29 Go to previous messageGo to next message
Michel Cadot
Messages: 59293
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
I assumed you did, I just answered to mucky.
This is why a feedback is a nice thing, it lets answerer know that she/he helps and it prevents from further useless posts.

Regards
Michel

[Updated on: Wed, 17 October 2007 01:31]

Report message to a moderator

Re: Importing dump to oracle database [message #274793 is a reply to message #274625] Wed, 17 October 2007 03:01 Go to previous messageGo to next message
mucki
Messages: 3
Registered: April 2006
Location: Duesseldorf, Germany
Junior Member
Hi Michel,

Michel Cadot wrote on Tue, 16 October 2007 18:09

If OP can't read a help, it is dangerous to give him more information.



you are right but in this case it should work. Ok, i do not talk about different character sets and so on. Wink

Have fun,

Mucki
Re: Importing dump to oracle database [message #274832 is a reply to message #274726] Wed, 17 October 2007 06:33 Go to previous message
Michel Cadot
Messages: 59293
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Prashant I moved your next question in Server Administration forum.

Regards
Michel
Previous Topic: Oracle Process freezes at 4 A.M. on GNU/Linux
Next Topic: How to update RHEL AS 3.0 Without Red Hat Account?
Goto Forum:
  


Current Time: Thu Oct 02 01:30:50 CDT 2014

Total time taken to generate the page: 0.12871 seconds