Re: rebuild indexes
From: Rich Jesse <rjoralist3_at_society.servebeer.com>
Date: Fri, 18 Apr 2014 12:44:20 -0500 (CDT)
Message-ID: <450dc2ef3b70a8d3d7e5d5229eec4ae2.squirrel_at_society.servebeer.com>
Hey Brian,
Date: Fri, 18 Apr 2014 12:44:20 -0500 (CDT)
Message-ID: <450dc2ef3b70a8d3d7e5d5229eec4ae2.squirrel_at_society.servebeer.com>
Hey Brian,
> A vendor wants me to shrink a table. I've never shrunk one in oracle. Does
> that delete the data out of them?
Nope. Just frees the empty space:
http://docs.oracle.com/cd/E11882_01/server.112/e25494/schema.htm#ADMIN01401
> And then wants me to rebuild the associated indexes. Won't they be empty
> after you shrink them?
I would be wary about this operation. The "why" is very important here. If the table's going to grow after the shrink, then there's a chance that performance could suffer after the shrink/rebuild:
https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2290062993260
(URL will probably split -- sorry)
Research and benchmarks should help here.
HTH! GL! Rich
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Apr 18 2014 - 19:44:20 CEST