Home » RDBMS Server » Performance Tuning » Shrinking index (Oracle 10.2.0.3,Windows server 2003 64 bit)
Shrinking index [message #531408] Tue, 15 November 2011 22:24 Go to next message
eafaisal
Messages: 12
Registered: November 2011
Junior Member
Hi All,

We are having a table that is having 75 millions records.We purged 5 millions records from that table.Then we issued the command ALTER TABLE SHRINK SPACE CASCADE for that table.It was taking around 4 hours to complete.We are having 4 indexes on that table.Can anybody suggest the solution to reduce the duration?.

Thanks.
Re: Shrinking index [message #531409 is a reply to message #531408] Tue, 15 November 2011 22:32 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>Can anybody suggest the solution to reduce the duration?.
The duration can be reduced to ZERO by NOT issuing the SQL!
Yes, I AM serious if another similar purge will occur within this decade.

It would be helpful if you followed Posting Guidelines - http://www.orafaq.com/forum/t/88153/0/311
Re: Shrinking index [message #531412 is a reply to message #531409] Tue, 15 November 2011 23:21 Go to previous messageGo to next message
eafaisal
Messages: 12
Registered: November 2011
Junior Member
Hi,

There is no clear solution in your reply.
Re: Shrinking index [message #531413 is a reply to message #531412] Tue, 15 November 2011 23:23 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Do NOT execute the statement. Is this not a clear "solution"?

Regards
Michel
Re: Shrinking index [message #531417 is a reply to message #531413] Wed, 16 November 2011 00:07 Go to previous messageGo to next message
eafaisal
Messages: 12
Registered: November 2011
Junior Member
Then,how to reclaim the unused space?.Is there any other solution?.

Thanks.
Re: Shrinking index [message #531418 is a reply to message #531417] Wed, 16 November 2011 00:13 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>Then,how to reclaim the unused space?.Is there any other solution?.

why does any space need to be "reclaimed"?
Re: Shrinking index [message #531419 is a reply to message #531418] Wed, 16 November 2011 00:17 Go to previous messageGo to next message
eafaisal
Messages: 12
Registered: November 2011
Junior Member
The table is occupying a huge space.We want to reduce the size of it.That's why i tried to shrink after purging the records.

Thanks.
Re: Shrinking index [message #531424 is a reply to message #531419] Wed, 16 November 2011 01:30 Go to previous message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
5 out of 75, the most you can retirieve is 6.7%.
Is it worth to make a down plan for this?
Will there be no more inserts, never?

Regards
Michel
Previous Topic: index monitoring
Next Topic: Simple inserts Slow (merged 6)
Goto Forum:
  


Current Time: Fri Apr 19 17:18:25 CDT 2024