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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import data from one table to another using exp/imp

Status
Not open for further replies.

ryan101

Programmer
Jul 11, 2001
13
US
I have a dmp file that's a full export of my database from a few days ago. One of our devs wants the data contained in that export from table X. The tricky part is that he doesn't want to overwrite the current table X with the old data, he wants a new table (Y) created with the same data from X.

I was hoping there would be fromtable / totable parameters for imp, but I haven't had any luck finding them.

I was thinking of creating a new user (Bob) and specifying fromuser and touser in the imp parfile, importing the table and then doing a CREATE TABLE Y AS SELECT * FROM Bob.X.

Does anyone see any problems with using the above method, or does anyone have a better solution?

Thanks for the assistance!
 
Your solution makes perfect sense to me (for whatever THAT'S worth!).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top