Home » SQL & PL/SQL » SQL & PL/SQL » import command
import command [message #239073] Mon, 21 May 2007 07:31 Go to next message
sunsanvin
Messages: 60
Registered: April 2006
Location: Hyderabad
Member

Dear folks,
I've one dump file in my hard drive... like E:\
how can i take the dump to my database?I mean import....

thank you very much
Re: import command [message #239082 is a reply to message #239073] Mon, 21 May 2007 07:58 Go to previous messageGo to next message
Michel Cadot
Messages: 64117
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Yes. At least you can try.

Regards
Michel
Re: import command [message #239090 is a reply to message #239073] Mon, 21 May 2007 08:08 Go to previous messageGo to next message
joy_division
Messages: 4640
Registered: February 2005
Location: East Coast USA
Senior Member
Here is the help for import (imp). However, if you just run the imp command, it will be interactive and you can just answer the prompts. I hope you will be doing this in a test environment.

FOO SCOTT>!imp help=y

Import: Release 10.1.0.2.0 - Production on Mon May 21 09:06:38 2007

Copyright (c) 1982, 2004, 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)
VOLSIZE                number of bytes in file on each volume of a file on tape

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.
Re: import command [message #239093 is a reply to message #239090] Mon, 21 May 2007 08:17 Go to previous messageGo to next message
Michel Cadot
Messages: 64117
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Hey! You stole me my next answer. ./fa/1637/0/

Regards
Michel
Re: import command [message #239096 is a reply to message #239093] Mon, 21 May 2007 08:24 Go to previous messageGo to next message
joy_division
Messages: 4640
Registered: February 2005
Location: East Coast USA
Senior Member
Sorry Michel. I'm sure you'll beat me on some other response soon. It all evens out.
Re: import command [message #239293 is a reply to message #239090] Mon, 21 May 2007 23:52 Go to previous messageGo to next message
sunsanvin
Messages: 60
Registered: April 2006
Location: Hyderabad
Member

it is saying unknown command imp scott..........


I'm using windows environment.....

thank you for you time for me
Re: import command [message #239317 is a reply to message #239293] Tue, 22 May 2007 00:52 Go to previous messageGo to next message
Michel Cadot
Messages: 64117
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Add %ORACLE_HOME%\bin in your PATH.

Regards
Michel
Re: import command [message #239365 is a reply to message #239293] Tue, 22 May 2007 02:50 Go to previous messageGo to next message
Mohammad Taj
Messages: 2412
Registered: September 2006
Location: Dubai, UAE
Senior Member

Hi,
Where you try IMP command
if OS command prompt and you was getting error try go with Cadot suggestion.

or if you try on SQLPLUS then you have to use "HOST" keyword before imp command.

like
SQL>host IMP HELP=Y


Regards
Taj
Re: import command [message #239367 is a reply to message #239365] Tue, 22 May 2007 03:01 Go to previous message
sunsanvin
Messages: 60
Registered: April 2006
Location: Hyderabad
Member

thank you mohammad
Previous Topic: How do I optimize this query better (than adding hints) (merged)
Next Topic: Separate Alpha-Numeric Column into Alpha and Number
Goto Forum:
  


Current Time: Tue Dec 06 02:54:47 CST 2016

Total time taken to generate the page: 0.05883 seconds