Re: rebuild indexes

  • From: Andrew Kerber <andrew.kerber@xxxxxxxxx>
  • To: "JBECKSTROM@xxxxxxxxx" <JBECKSTROM@xxxxxxxxx>
  • Date: Fri, 18 Apr 2014 13:24:11 -0500

yes, the move will have a table lock, but it should happen quickly, the
tables are pretty small.  THe indexes become invalid once the table is
moved, but if you are on enterprise edition you can use the online option
which reduces the lock time to a very short time while the index is
switched.


On Fri, Apr 18, 2014 at 1:15 PM, Jeffrey Beckstrom <JBECKSTROM@xxxxxxxxx>wrote:

> How many blocks is the table occupying?  For the number of rows you list,
> it can't be more than a block or two and would probably save little.
>
> >>> Andy Gmail <andrew.kerber@xxxxxxxxx> 4/18/14 2:05 PM >>>
>
> Yes.  Just run alter table move tablespace whatever then rebuild the
> indexes.  That will accomplish what you need.
>
> Sent from my iPhone
>
> On Apr 18, 2014, at 12:37 PM, "Zelli, Brian" <Brian.Zelli@xxxxxxxxxxxxxxx>
> wrote:
>
>   One table has 14 rows and the other has 26.  They say it is causing
> performance issues……
>
>   Brian
>
>    *From:* Andrew Kerber 
> [mailto:andrew.kerber@xxxxxxxxx<andrew.kerber@xxxxxxxxx>]
>
> *Sent:* Friday, April 18, 2014 1:37 PM
> *To:* Zelli, Brian
> *Cc:* oracle-l (oracle-l@xxxxxxxxxxxxx)
> *Subject:* Re: rebuild indexes
>
>  How big is the table?  He probably wants you to shrink it by eliminating
> unused blocks.  The simplest way to do that is by an alter table move
> command followed by alter index rebuild.
>
> Sent from my iPad
>
>
> On Apr 18, 2014, at 12:26 PM, "Zelli, Brian" <Brian.Zelli@xxxxxxxxxxxxxxx>
> wrote:
>
>  A vendor wants me to shrink a table.  I’ve never shrunk one in oracle.
> Does that delete the data out of them?
>
> And then wants me to rebuild the associated indexes.  Won’t they be empty
> after you shrink them?
>
>   Brian
>
>
> This email message may contain legally privileged and/or confidential
> information. If you are not the intended recipient(s), or the employee or
> agent responsible for the delivery of this message to the intended
> recipient(s), you are hereby notified that any disclosure, copying,
> distribution, or use of this email message is prohibited. If you have
> received this message in error, please notify the sender immediately by
> e-mail and delete this email message from your computer. Thank you.
>
>
> This email message may contain legally privileged and/or confidential
> information. If you are not the intended recipient(s), or the employee or
> agent responsible for the delivery of this message to the intended
> recipient(s), you are hereby notified that any disclosure, copying,
> distribution, or use of this email message is prohibited. If you have
> received this message in error, please notify the sender immediately by
> e-mail and delete this email message from your computer. Thank you.
>
>
> .
>
>


-- 
Andrew W. Kerber

'If at first you dont succeed, dont take up skydiving.'

Other related posts: