Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Online "tablespace" reorg ?

Re: Online "tablespace" reorg ?

From: Bob <bobmetelsky_at_comcast.net>
Date: Thu, 30 Jun 2005 07:49:30 -0400
Message-ID: <42C3DC4A.6040104@comcast.net>


Thanks for all the feedback

Yes all my research pointed to using oem, OEM 10 has so many bugs its a wonder anyone can use it at all. The script generator fails right before generating the scrip with" illegal size option" and you dont have an opportunity to make any changes so it just doesnt work. Space doesnt allow me to complain about all the other bugs in 10g oem...

I was able to generate a script in oem 9i but its not actual code you can run, it looks like code only interpreted by oem. So I cant count on oem as reliable tool. At this point I dont see benefit of redeffing the tables, they dont need it. The tablespaces do need to be rebuilt using lmt and possibly eliminating some datafiles.

thanks again for all the ideas
bob

Pakhutkin, Maxim (Max) wrote:

> 10g OEM (Grid Control) appears to do online tablespace reorgs by means of generating a whole lot of code to perform dbms_redef and all the attending actions for all the objects in the tablespace. So you could conceivably generate such a script (without running it) via OEM on a test database, save it to a file, run it on test and then run it on your production system. First thing OEM will do is scan for objects that cannot be online redefined with dbms_redef. It will also tell you to set up an external proc for handling LONGs if you don't already have one setup. I wouldn't trust OEM to do it unsupervised even on a test system, though, at this point, as I've seen errors even on "successful" online table reorgs performed by it. I'm still researching it though, haven't run any tablespace reorgs yet.
>
> Max Pakhutkin
>
> -----Original Message-----
> From: oracle-l-bounce_at_freelists.org
> [mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Bob
> Sent: Tuesday, June 28, 2005 5:54 PM
> To: oracle-l_at_freelists.org
> Subject: Online "tablespace" reorg ?
>
>
> All-
> Is there such a thing as online tablespace reorg?
>
> All, I've been tasked to perform an "online reorg of our tablespaces"
> From my research I come to these findings.
>
> 1 - tablespace reorg is not a popular topic and only seems to be available
> using oem which due to our diverse environment, I need to use a
> sqlplus script. From reading ask tom he is claiming there really isn't
> anything to "reorg" in a tablespace - recreate yes - reorg no
> Is this correct?
>
> 2 My plans would be to create new tablespaces using LMT and ASSM, then alter
> table move .. new tablespace. The LMT would minimizes future fragmentation
> and ASSM would benefit by using the alter table shrink; statement to alter
> the HWM in the future.
>
> Questions,
> 1 - Is there such a thing as online reorg of tablespaces and if so
> documentation on its use?
> 2 - Are there any issues that I'm overlooking in item 2
>
>
> Thanks
> Bob
>
> side note -dbms_refefination looks like what I've been told to look for but
> that is on the table level and not going to help because the tablespaces
> are DMT. I don't need to redef the tables I'm really looking to reclaim
> space from the tablespaces as well as putting the tables in LMT and ASSM
> mode
> --
> http://www.freelists.org/webpage/oracle-l
> --
> http://www.freelists.org/webpage/oracle-l
>

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jun 30 2005 - 07:54:56 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US