Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:40 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.