Re: rebuild indexes

  • From: Tim Gorman <tim@xxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Fri, 18 Apr 2014 12:54:00 -0600

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@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 <mailto: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.

Other related posts: