Home » RDBMS Server » Server Utilities » imp utility
imp utility [message #286818] Mon, 10 December 2007 03:10 Go to next message
dirish
Messages: 232
Registered: November 2006
Senior Member
Hi Friends,

I have done a full export.

In a schema, i have 2000 tables. I want to import only 1998 tables. Is there a way to create a par file to specify ignore the names of the 2 tables which I don't want to import instead of specifying the names of the 1998 tables.

Thank you,
Dirish
Re: imp utility [message #286820 is a reply to message #286818] Mon, 10 December 2007 03:12 Go to previous messageGo to next message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
No.

Regards
Michel
Re: imp utility [message #286822 is a reply to message #286820] Mon, 10 December 2007 03:15 Go to previous messageGo to next message
dirish
Messages: 232
Registered: November 2006
Senior Member
This means that I should include the names of the 1998 tables in the par file
Re: imp utility [message #286826 is a reply to message #286822] Mon, 10 December 2007 03:17 Go to previous messageGo to next message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Yes.

Regards
Michel
Re: imp utility [message #286865 is a reply to message #286826] Mon, 10 December 2007 05:03 Go to previous messageGo to next message
Littlefoot
Messages: 21811
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
If possible, I'd rather import all 2000 tables and afterwards drop those 2.
Re: imp utility [message #286883 is a reply to message #286865] Mon, 10 December 2007 06:18 Go to previous messageGo to next message
Mohammad Taj
Messages: 2412
Registered: September 2006
Location: Dubai, UAE
Senior Member

OP,if you use DATA PUMP then you can exclude two tables through EXCLUDE option.
http://download.oracle.com/docs/cd/B14117_01/server.101/b10825/dp_import.htm#sthref274
Re: imp utility [message #286968 is a reply to message #286865] Mon, 10 December 2007 13:38 Go to previous message
joy_division
Messages: 4963
Registered: February 2005
Location: East Coast USA
Senior Member
Littlefoot wrote on Mon, 10 December 2007 06:03

If possible, I'd rather import all 2000 tables and afterwards drop those 2.


Or if these two tables are HUGE and you want to avoid them getting in there in the first place, create a junk table with the same name, a number(1) column and have the import fail on that table.

However, it will look ugly as you will get an error message for each row it tries to INSERT.

Or, if none of the objects exist, pre-create the structure of the two tables, use the INGORE=N parameter and the import will just plain fail on those twotables.
Previous Topic: how to get data from a excel file
Next Topic: export/import
Goto Forum:
  


Current Time: Fri Jun 28 16:34:48 CDT 2024