Re: rebuild indexes

From: Tim Gorman <tim_at_evdbt.com>
Date: Fri, 18 Apr 2014 12:54:00 -0600
Message-ID: <535174C8.5020806_at_evdbt.com>



ALTER TABLE ... MOVE (followed by index rebuilds) is one way to do this, but what they're probably asking for is ALTER TABLE ... SHRINK, which can be done "online" and doesn't necessarily require index rebuild afterward. More info here
<http://docs.oracle.com/cd/B28359_01/server.111/b28310/schema003.htm#ADMIN10161>.

On 4/18/2014 11:37 AM, Zelli, Brian 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_at_gmail.com]
> *Sent:* Friday, April 18, 2014 1:37 PM
> *To:* Zelli, Brian
> *Cc:* oracle-l (oracle-l_at_freelists.org)
> *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_at_RoswellPark.org <mailto:Brian.Zelli_at_RoswellPark.org>> 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.

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Apr 18 2014 - 20:54:00 CEST

Original text of this message