Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
| Search | Today's Posts | Mark Forums Read
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 12th, 2004, 05:07 PM
Registered User
 
Join Date: Sep 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default (oracle 8i)Alter Table <table> coalesce partition

Hi all,
    Need assistance in solving a problem. I have a possibly large fragemented table. I tried to run a coalese command ALTER TABLE EMPTY_COPY COALESCE PARTITION
got an error: 'ora -14501 - object is not partitioned'

NOt sure how to proceed, I am working in oracle 8i environment.

Should I do :

ALTER TABLESPACE MY_DATA COALESCE
ALTER INDEX EMPTY_COPY_PK COALESCE
ALTER INDEX EMPTY_COPY_PK REBUILD
ALTER TABLE MY_DATA.EMPTY_COPY MOVE TABLESPACE NEW_DATA

Not sure if the syntax is correct or which to use, are there any redundancies in the commands above.

Thanks kindly for any input you may provide.



  #2 (permalink)  
Old October 12th, 2004, 10:53 PM
Authorized User
 
Join Date: Apr 2004
Location: Boise, ID, USA.
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you doing this in a production database? If so, what sort of downtime are you allowed?

Unless you have partitioned tables, you wouldn't want to use COALESCE PARTITION. Coalescing a tablespae combines contiguous free extents in a tablespace into one large extent.

What sort of tablespaces do you have? Locally managed or dictionary managed?

Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
  #3 (permalink)  
Old October 12th, 2004, 11:12 PM
Registered User
 
Join Date: Sep 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey Justin,
    Yes, this will be done on a production database. I will the have weekend to handle this. I believe it is a locally managed. The free space coalesced was at 88%. My real problem is an ora 1653 'UNABLE TO EXTEND TABLE' error where I could not insert into a table. The PCT_INCREASE was at 25 and the next_extext was at 160mb. Way too large. There still looks to be l plenty of space available for an another extent but it is not being allocated.
  #4 (permalink)  
Old October 13th, 2004, 09:35 AM
Authorized User
 
Join Date: Apr 2004
Location: Boise, ID, USA.
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Locally managed tablespaces (LMT) do not get fragmented and objects in a LMT tablespacs do not have a PCT_INCREASE setting. It sounds like you are describing a dictionary managed tablespace (DMT).

If you have downtime over the weekend, I would seriously and strongly consider migrating to LMT's.

Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC


Similar Threads
Thread Thread Starter Forum Replies Last Post
<table> not displaying because of <iframe> crmpicco HTML Code Clinic 16 October 6th, 2007 04:46 PM
can't create table when <% ...%> is in page hertendreef ASP.NET 2.0 Basics 3 May 29th, 2006 10:32 PM
Regular Expression to remove <table> </table> tags mathalete CSS Cascading Style Sheets 2 January 23rd, 2006 01:59 PM
Crystal Report using Partition of a Oracle Table ahanimireddy@yahoo.com BOOK: Professional Crystal Reports for VS.NET 0 April 18th, 2005 08:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.