I have 11g on RHEL5
The DB and the .dmp file are on the same drive, (but the .dmp is in the o/s env;not Oracle_HOme directories..../opt/dwnlds
So, If I understand, from anywhere in linux command line can I run the "imp" utlility? Do I need to set my path or be in the ORACLE_HOME/bin directory to run it? (I was thinking I would run it from SQL> ; but no?)
Lastly, do I have to specify anything beyond the ignore-y and full=y options? Or will the .dmp file include the required meta for the destination tables?
Main Topics
Browse All Topics





by: sonicefuPosted on 2007-12-03 at 20:36:03ID: 20400939
Hello BlueSky !
1) imp is not an SQL command, it is oracle import utility command to import data from a dump file (fileName.dmp), created by oracle export utility (exp command).
2) Now you need a dump file to import (using imp command)
3) imp spatial/spatial file=gc.dmp ignore=y full=y
In this case spatial is a username and spatial after / is password and dump file name is gc.dmp, you should write it with full path, if you are using windows then file=c:\gc.dmp otherwise file=/u02/dump/gc.dmp. full=y means import all contents of this (gc.dmp) file.
*** Clarify your complete scenario where you want to use this