Pat,
Your terminology is a source of confusion...If you "have the dump file of a Schema", you have already
exported it; now you want to
import that file into your Personal Oracle 9i.
To do the import of the schema, you must have an empty schema on your target Oracle database ready to accept the contents of the dump file. (You must also know the name of that schema.) Then, at a Windows command prompt, cd to your $ORACLE_HOME\bin path (something like C:\Oracle\ora92\bin).
You have available two options for importing the dump file:
1) interactive mode, and
2) command-line mode.
If you wish to import into the same username that was the export schema, you can use interactive mode.
Interactive mode:
Code:
C:\Oracle\Ora92\bin> imp
username: <some valid username, preferrably a DBA>
password: <password for that user>
Import file: EXPDAT.DMP > <name of your incoming dump file>
Enter insert buffer size (minimum is 8192) 30720> <enter>
List contents of import file only (yes/no): no > <enter>
Ignore create error due to object existence (yes/no): no > <enter>
Import grants (yes/no): yes > <enter>
Import table data (yes/no): yes > <enter>
Import entire export file (yes/no): no > <enter>
Enter table(T) or partition(T:P) names. Null list means all tables for user
Enter table(T) or partition(T:P) name or . if done:<enter>
Command-line mode (with the entire command all on one line):
Code:
imp buffer=15000000 grants=y feedback=1000 fromuser=<original username> touser=<target username> file=<fully qualified dumpfile name> userid=<DBA user>/<password>@<tns alias>
Let us know if this leads you to success.
![[santa] [santa] [santa]](/data/assets/smilies/santa.gif)
Mufasa
(aka Dave of Sandy, Utah, USA)
[
Providing low-cost remote Database Admin services]
Click here to join
Utah Oracle Users Group on Tek-Tips if you use
Oracle in
Utah USA.