Unix Technical Forum

Extents and Segment space management

This is a discussion on Extents and Segment space management within the Oracle Database forums, part of the Database Server Software category; --> Hello, I have two issues that i need some opinions. Issue 1 I was investigating the export command that ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2008, 01:58 AM
DMina@laiki.com
 
Posts: n/a
Default Extents and Segment space management

Hello,

I have two issues that i need some opinions.

Issue 1
I was investigating the export command that i have running on the
preprod and prod environment
of Asset Finance and the impact of the Export parameter COMPRESS=Y
on the tables created on the locally managed tablespace

>From what i have read this concept doesn't work for tables in Locally

Managed
Tablespaces. The COMPRESS=Y operation is ignored for segments in
Locally Managed Tablespaces and does not have any impact on the
INITIAL EXTENT of the table being exported. The INITIAL extent will
remain the same as the table's INITIAL extent.

Our tablespaces are all Locally Managed. Now how can i reduce the
number of extents doing again an export and import to a new
environment?

I know that there is a command to change the locally managed
tablespaces to dictionary managed using

DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_FROM_LOCAL

If the above command executes successfully then i will export the db
with compress=y
and then change it backup to locally managed using

DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_TO_LOCAL

Is there any other way to bypass this problem?

Issue 2
Our production tablespaces have their Segment Space Management set to
Automatic.
Is there a relation with the above setting (to set it to Manual) and
how the DBMS_STATS command behaves?


My database version is 9i Rel 2 and its running on AIX5.2

thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-25-2008, 01:58 AM
sybrandb@yahoo.com
 
Posts: n/a
Default Re: Extents and Segment space management

1 Compress=Y in dictionary managed tablespaces is one of the main
reasons for space management related incidents. Your tablespace becomes
fragmented.
In a locally managed tablespace using compress=Y doesn't make sense.
Oracle introduced locally managed tablespaces, because dictionary
managed tablespaces are causing all kind of space management related
incidents.
Changing a locally managed tablespace to dictionary managed doesn't
make sense, and is not possible if your SYSTEM tablespace is locally
managed.
In Oracle 10g dictionary managed tablespaces no longer exist.
So I don't know what you are trying to accomplish, except running into
more problems.
I can only hope you don't still believe more than 1 extent is bad. This
is a MYTH.
2 There is no relation. The configuration of the tablespace is
irrelevant to dbms_stats.

Hth
--
Sybrand Bakker
Senior Oracle DBA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-25-2008, 01:58 AM
DMina@laiki.com
 
Posts: n/a
Default Re: Extents and Segment space management

First of all thank for the reply. I am trying to find some
documentation related to the number of extents and how it affects the
performance. For example i have a table which has 150 extents. Does it
make any difference in performance if it is 10 extents?!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-25-2008, 01:58 AM
sybrandb@yahoo.com
 
Posts: n/a
Default Re: Extents and Segment space management

That the number of extents affects performance is a MYTH. It has been
discussed extensively in this forum.
You won't gain anything by reducing the number of extents to 1. In a
LMT database the storage is ignored or trasnformed anyway.
In a DMT compress=Y results in fragmentation of the free space. Been
there, done that.

--
Sybrand Bakker
Senior Oracle DBA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-25-2008, 01:58 AM
DA Morgan
 
Posts: n/a
Default Re: Extents and Segment space management

DMina@laiki.com wrote:
> First of all thank for the reply. I am trying to find some
> documentation related to the number of extents and how it affects the
> performance. For example i have a table which has 150 extents. Does it
> make any difference in performance if it is 10 extents?!


The number of extents for numbers such as you are discussing are
irrelevant. When you get to tens or hundreds of thousands you may
have reason for concern.
--
Daniel A. Morgan
http://www.psoug.org
damorgan@x.washington.edu
(replace x with u to respond)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:52 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com