Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: drop index or export table

Re: drop index or export table

From: Suresh Bhat <suresh.bhat_at_mitchell-energy.com>
Date: Thu, 11 Nov 1999 19:35:04 GMT
Message-ID: <01bf2c8b$ae5efc00$a504fa80@mndnet>


Hi,

Steven <SCHEN_at_prodigy.net> wrote in article <80es3p$3ep0$1_at_newssvr04-int.news.prodigy.com>...
> I have a table with 200M and 8 extents, but its 2 indexes are 250M with
over
> 30 extents each.
>
> Do we drop and rebuild indexes or export/import table?
Drop and recreate indexes. Make sure that you have 275m extra space in your SYSTEM's temporary tablespace where the index is temporarily built by SYS account before it is moved to the specified tablespace.

> Would table
> export/import also rearrange index extent?

I believe that is correct. For the following to work you must have exported with compress=y.

If you want to see what those storage parameters are then use: imp indexfile=create_script.sql

This will not import any data, it simply creates a script for indexes and tables (commented out).

While you are at it, you may want to try

imp show=y log=create_script.sql

With the same effect, but creates script for almost every object including packages, functions,triggers,
constraints,grants etc.

> On the other hand, some indexes are associated with constraint columns.
> Haven't tried if they can be dropped.
I don't believe that matters.

Suresh Bhat
Oracleguru
www.oraclegur.net Received on Thu Nov 11 1999 - 13:35:04 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US