The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
x 86 svccfg import error oscarl SUN Solaris 1 02-22-2008 01:01 PM
How to catch and handle Makefile exceptions waavman SUN Solaris 7 12-18-2007 01:25 PM
Java Exceptions while installing Oracle panchpan SUN Solaris 5 11-21-2007 04:46 AM
import omran UNIX for Dummies Questions & Answers 1 01-27-2003 01:10 AM
import omran Shell Programming and Scripting 2 12-17-2002 02:47 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-12-2007
madmat madmat is offline
Registered User
  
 

Join Date: Aug 2005
Location: Paris
Posts: 80
exceptions in import

Hello,

I want to import an Oracle database file on my fresh DB, bought before successfully with exp command.
But is it possible to import some tables from the dmp file, because they are too large and it's so long !?
I didn't find any option in imp command to make exception on certain tables...

Thanks for your replies
Regards
  #2 (permalink)  
Old 07-12-2007
robotronic's Avatar
robotronic robotronic is offline Forum Advisor  
Can I play with madness?
  
 

Join Date: Apr 2002
Location: Italy
Posts: 370
Unfortunately, you cannot perform a FULL database import with the exception of some tables. To partially solve your problem, you can import one schema at a time, specifying the import parameter "OWNER" and leaving aside the schema which comprises the large tables (assuming these tables are located only in one certain schema). Notice that you must first create all the empty schemas before importing the users one by one.
Then, you have to manually import all the remaining tables of the last user excluding the large tables. Or, more precisely, you have to import all the tables except the large tables, using the option "TABLES=...". You may need to use a parfile if the table listing is very long!

Keep in mind that in this way you lose all the cross-schema's references (grants) and all the public objects, so at the end you may perform a full database import of the database definitions only (ROWS=N IGNORE=Y).

The other idea is to create only the schema which owns the large tables in your barely new db, then manually create these large tables specifying very small storage parameters (initial, next, maxextents=1). Finally, you can try to perform a full database import with the option IGNORE=Y. In this manner, the import of the large tables will fail but the database import will continue until the end.

The last and better method is to use Oracle Data Pump (expdp/impdp) instead of the normal export/import method. In this way you have the possibility to obtain a fine-grained import of your dump file, excluding only the objects you don't need. Of course, this implies you are using Oracle 10g

Bye
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0