Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Steps to Export a Schema from a dump file

Status
Not open for further replies.

patnim17

Programmer
Jun 19, 2005
111
US
Hi,
I have Personal Oracle (9i) installed in my Local Machine.I have the Dump file of a Schema also with me. I need to export this schema into my Personal Oracle 9i ..in my Local machine.

Can someone point me to a resource or tell me the steps to export this schema into my personal DB?

thanks in Advance.
pat
 
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]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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top