Tablespace fragmentation
Hi All,
How can I identify the tablespace is fragmented or not?
If fragmented how can I resolve the issue while production database is up & running.
Thanks in advance...
REM This script measures the fragmentation of free space
REM in all of the tablespaces in the database and scores them
REM according to an arbitrary index for comparison
REM
REM largest extent 100
REM FSFI = 100 * sqrt(------------------) * (-------------------------------)
REM sum of all extents sqrt(sqrt((number of extents)))
REM
REM FSFI - Free Space Fragmentation index
REM The largest possible FSFI (for an ideal single-file tablespace) is 100
REM As the number of extents increases, the FSFI rating drops slowly. As the size of
REM the largest extent drops, however, the FSFI rating drops rapidly.
select tablespace_name
, file_id
, sqrt(max(blocks)/sum(blocks)) *
(100/sqrt(sqrt(count(blocks)))) fsfi
from dba_free_space
group by tablespace_name, file_id
order by 1,2;
You can move object to another tablespace and rebuild the associated indexes for tablespace fragmentation.
Drop the old tablespace.
Also you can go for export/import.
Regards
Asif Kabir
Similar Messages
-
What is tablespace fragmentation?
hello all,
please,give me more detail about tablespace fragmentation .i want to know when tablespace fragmentation occur? thanks all in advance for response.first thanks u and all for give me response and this wonderful link but i have a doubt which i want to ask ,when table is dropped,or truncated or raw of table is deleted then free extents is available for another request, if a request is made for an extent allocation that cannot be found in one free contiguous extent even though the total free space in the tablespace may be significantly larger than the requested size. is this a fragmentation problem?
-
How we find tablespace fragmentation and resolve this problem
Hi,
How we find tablespace fragmentation and resolve this in 10 G (R2) windows XP.
Regards
FaheemHi,
>>Are you using Dictionary Managed or Locally Managed Tablespaces...??
In fact, there is no way to create a DMT if SYSTEM tablespace is LMT. So, what I said in my previous post "Unless the OP is using DMT ..." is impossible in Oracle 10g ...
SQL> create tablespace tbs_test
2 datafile '/u01/oradata/BDRPS/test01.dbf' size 5m
3 extent management dictionary;
create tablespace tbs_test
ERROR at line 1:
ORA-12913: Cannot create dictionary managed tablespace
SQL> select extent_management from dba_tablespaces
2 where tablespace_name='SYSTEM';
EXTENT_MAN
LOCALCheers
Legatti -
Checking Tablespace Fragmentation...
Folks,
Can someone share a high-end script for Checking Tablespace Fragmentation that shows exact numbers/values?
The one I have shows only yes or no..
Pasting my script below:
Prompt Fragmentation Level in the db
Prompt
TTitle left "*** Fragmentation Level in the db (As of:"xdate ") from mtdb" skip2
SELECT dfsc.tablespace_name tablespace_name,
DECODE (
dfsc.percent_extents_coalesced,
100,
(DECODE (
GREATEST ((SELECT COUNT (1)
FROM dba_free_space dfs
WHERE dfs.tablespace_name = dfsc.tablespace_name),
1),
1,
'No Frag',
'Fragmented'
'Possible Honey Comb Frag'
fragmentation_status
FROM dba_free_space_coalesced dfsc
ORDER BY dfsc.tablespace_name
ttitle off
results:
TABLESPACE_NAME FRAGMENTATION_STATUS
IIS_TABS1 No Frag
IIS_TABS2 No Frag
IIS_TABS3 Fragmented
IIS_TABS4 No Frag
IIS_TABS5 No Frag
regards,
LilyCan you explain what, exactly, you mean by "tablespace fragmentation"? Assuming you are on a recent version of Oracle and using locally managed tablespaces (LMT's), fragmentation in the sense of having a chunk of space on disk that cannot be reused because it is too small is all but impossible. Technically, it is still possible in a LMT with automatic rather than uniform extent allocation, but it is exceptionally difficult in practice to come up with such a scenario.
Tablespace fragmentation was a potential problem in long-ago days when there were dictionary-managed tablespaces (DMT's) when individual objects could have different extent allocation policies and PCTINCREASE could be specified. The solution back then was to set INITIAL = NEXT = <<some reasonable constant>> and PCTINCREASE = 0 and simulate the uniform extent allocation option of LMTs.
Justin -
Best way to correct Tablespace fragmentation?
Dear DBAs,
The following query returns tablespace fragmentation:
select
tablespace_name,
count(*) free_chunks,
decode(
round((max(bytes) / 1024000),2),
null,0,
round((max(bytes) / 1024000),2)) largest_chunk,
nvl(round(sqrt(max(blocks)/sum(blocks))*(100/sqrt(sqrt(count(blocks)) )),2),
0) fragmentation_index
from
sys.dba_free_space
group by
tablespace_name
order by
2 desc, 1;
I have 3 tablespaces that are Locally Managed and suffer heavyt fragmentation. I just received the task of tuning this database and from what I could tell the fragmentation originated from a number of bad practices from past DBAs and also, some bizarre structures in certain tables.
My question is: what would be the best way to correct tablespace fragmentation LMT? I'm thinking export - drop - import to reorganize all blocks within the tablespace?Alvaro wrote:
Dear DBAs,
The following query returns tablespace fragmentation:
select
tablespace_name,
count(*) free_chunks,
decode(
round((max(bytes) / 1024000),2),
null,0,
round((max(bytes) / 1024000),2)) largest_chunk,
nvl(round(sqrt(max(blocks)/sum(blocks))*(100/sqrt(sqrt(count(blocks)) )),2),
0) fragmentation_index
from
sys.dba_free_space
group by
tablespace_name
order by
2 desc, 1;
I have 3 tablespaces that are Locally Managed and suffer heavyt fragmentation. I just received the task of tuning this database and from what I could tell the fragmentation originated from a number of bad practices from past DBAs and also, some bizarre structures in certain tables.
My question is: what would be the best way to correct tablespace fragmentation LMT? I'm thinking export - drop - import to reorganize all blocks within the tablespace?In addition to what everyone else notes is the unlikelihood of fragmentation, there may be implicit compaction and skew in your data distribution that could be impacted by export/import. For better or worse.
What bad practices are you referring to? Sometimes practices are inappropriate, sometimes useless, sometimes perfectly understandable. If you don't know about the fragmentation issue, I wonder how well you judge practices. And yes, there are some really bad practices floating about. -
What is the difference between Table & Tablespace Fragmentation
What is the difference between Table Fragmentation & Tablespace Fragmentation.
What causes Table Fragmentation and what cause Tablespace Fragmentation.
How can we avoid Table Fragmentation & Tablespace Fragmentation.
How can we fix already Fragmented Tables & Fragmented Tablespaces
Thanks
NaveenUnless you are using an exceptionally old version of Oracle or are still using dictionary managed tablespaces or are using some interesting definitions of "fragmentation", fragmentation is practically impossible in Oracle.
Justin -
Removing Tablespace fragmentation in 10g
i have a problem with a tablespace space that is highly fragmented . It's locally managed with PCT_INCREASE set to 0. How can i reduce the fragmentation in this tablepsace
Free/Used Space Report :
Tablespace Used MB Free MB Total MB Pct. Free
FRP_I01 158556 44625 203181 22
select PCT_INCREASE,EXTENT_MANAGEMENT,SEGMENT_SPACE_MANAGEMENT from dba_tablespaces where TABLESPACE_NAME='FRP_I01';
PCT_INCREASE EXTENT_MAN SEGMEN
0 LOCAL AUTO
fragmentation report :
select
2 tablespace_name,
3 count(*) free_chunks,
decode(
4 5 round((max(bytes) / 1024000),2),
6 null,0,
7 round((max(bytes) / 1024000),2)) largest_chunk,
8 nvl(round(sqrt(max(blocks)/sum(blocks))*(100/sqrt(sqrt(count(blocks)) )),2),
9 0) fragmentation_index
10 from
11 sys.dba_free_space
12 group by tablespace_name
13 having tablespace_name='FRP_I01'
14 order by
15 2 desc, 1;
TABLESPACE_NAME FREE_CHUNKS LARGEST_CHUNK FRAGMENTATION_INDEX
FRP_I01 201 11904 13.56
SELECT dfsc.tablespace_name tablespace_name,
2 DECODE (
3 dfsc.percent_extents_coalesced,
100,
4 5 (DECODE (
6 GREATEST ((SELECT COUNT (1)
7 FROM dba_free_space dfs
8 WHERE dfs.tablespace_name = dfsc.tablespace_name), 1),
9 1,
10 'No Frag',
11 'Bubble Frag'
12 )
13 ),
14 'Possible Honey Comb Frag'
15 )
16 fragmentation_status
17 FROM dba_free_space_coalesced dfsc
18 where dfsc.tablespace_name='FRP_I01'
19 ORDER BY dfsc.tablespace_name;
TABLESPACE_NAME FRAGMENTATION_STATUS
FRP_I01 Bubble Fragyes, i know that. But as per my script this particular tablespace is fragmented and i want to know if some1 can help me out how to defragment it ?
A 100% score indicates no fragmentation at all. Lesser scores verify the presence of fragmentation.The free chunks count column will tell you how many segments of free space are scattered throughout the tablespace.
thanks in advance -
Tablespace fragmentation problem
All,
I am working in Oracle 9i. Developers are facing some problem. Oracle is throwing ORA-1654 error. There is enough space in the tablespaces. To me it seems to be fragmentation problem. I found one query on some site and executed in my environment.
SQL> select substr(ts.name, 1,10) TableSpace,to_char(f.file#,990) "file #",tf.blocks blocks,sum(f.length) free,to_char(count(*),9990) frags,max(f.length) bigst, to_char(min(f.length),999990) smllst,round(avg(f.length)) avg,to_char(sum(decode(sign(f.length-5), -1, f.length,0)),99990) dead from sys.fet$ f, sys.file$ tf, sys.ts$ ts where ts.ts# = f.ts# and ts.ts# = tf.ts# group by ts.name, f.file#, tf.blocks;
TABLESPACE file BLOCKS FREE FRAGS BIGST SMLLST AVG DEAD
GAP_ARC 7 15360 8239 108 6099 20 76 0
GAP_BILD 8 256000 223804 3655 77909 5 61 0
GAP_DATA 9 230400 48267 211 3937 5 229 0
GAP_GEN 10 192000 86156 902 52178 1 96 3
GAP_IMP 11 38400 37669 14 37399 10 2691 0
GAP_INDEX 12 230400 96408 3557 506 1 27 5335
GAP_INDEX 12 409600 96408 3557 506 1 27 5335
GAP_INDEX 13 230400 56120 1611 495 2 35 2627
GAP_INDEX 13 409600 56120 1611 495 2 35 2627
GAP_ZNZL 14 1920 1919 50 515 10 38 0
RBS 3 51200 30479 871 35 29 35 0
RBS_BIG 4 76800 63929 157 43649 130 407 0
SYSTEM 1 25600 25952 2 12976 12976 12976 0
SYSTEM 2 25600 22728 20 11321 2 1136 12
TEMP 5 64000 58279 252 25649 130 231 0
TOOLS 6 6400 6384 1 6384 6384 6384 0
16 Zeilen ausgewählt.
From the output it seems GAP_INDEX has some fragmentation problem. Can somebody suggest, what the output means particularly the "DEAD" one.
And also, how to do the fragmentation ??
Thanks for help.
Regards,
RajeevI haven't taken the time to study the query in depth but I think 'dead' is an attempt to identify free exents that are too small to be used.
The original post leaves out some very important information such as the type of tablespace space allocation in use: dictionary vs local with auto-allocate or uniform extents.
As one poster noted if you use locally managed tablespaces wtih uniform extents then free space fragmentation by definition cannot exist.
With auto-allocate and dictionary mangement it can. Auto-allocate generally extents the time till a tablespace's free space becomes fragemented such that the space is not usuable and contains logic to reclaim via reuse but with the right combination of very small and very large objects the problem can still exist.
Dictionary management is almost bound to lead to free space fragmentation conditions for an active system though the adoption of a proper extent sizing policy can help: initial = next with pctincrease = 0 for all objects in a tablespace and the extent sizes for the larger objects being an even multiple of the small object extent size.
For auto-allocate and especially dictionary management when free space gets low the options are re-create the objects to consolidate all free space into a few large contiguous chunks or add another file. Sometimes you can relocate an object whose extents can then be reused by other objects. With uniform extents moving an object to another tablespace always creates fully reusable free space. Since objects should be where you want them the only real option then is to add free space is to add a file. Managing free space in a uniform extent environment then is genarally very straight forward.
HTH -- Mark D Powell -- -
Tablespace Fragmentation. specially in SYSTEM tablesapce.
Hi,
I am working on Oracle 11gR2 DB and AIX OS.
An database is having many tablespaces which are allocated to specific schemas. These schemas are functional from a long time. Data comes and goes all the time. The size of the tablespace has gone very high(than expected). We have removed(truncated) most of the unwanted tables and data from the schema and trying to resize the datafile, but we are not able to do it.
while checking with the below query :-
SELECT df.tablespace_name "Tablespace",
df.bytes / (1024 * 1024) "Size (MB)",
SUM(fs.bytes) / (1024 * 1024) "Free (MB)",
Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free",
Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used"
FROM dba_free_space fs,
(SELECT tablespace_name,SUM(bytes) bytes
FROM dba_data_files
GROUP BY tablespace_name) df
WHERE fs.tablespace_name (+) = df.tablespace_name
GROUP BY df.tablespace_name,df.bytes
UNION ALL
SELECT df.tablespace_name tspace,
fs.bytes / (1024 * 1024),
SUM(df.bytes_free) / (1024 * 1024),
Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1),
Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes)
FROM dba_temp_files fs,
(SELECT tablespace_name,bytes_free,bytes_used
FROM v$temp_space_header
GROUP BY tablespace_name,bytes_free,bytes_used) df
WHERE fs.tablespace_name (+) = df.tablespace_name
GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
ORDER BY 4 DESC;
The output is :-
tablespace name size_MB free_space_MB %free %used
SYSTEM 34256 28941.375 84 16
SMD 7975 2991.1875 38 62
.................N many other Here if i try to resize the SMD tablespace datafile to (7975-2991.1875) 4983 MB it does not allow me to do it.
Also the SYSTEM tablespace has gone so big but used space is very less.
I suspect that fragmentation is the problem here._
Please guide me what could i do in these case to reduce the space taken by the datafiles.
Thanks in advance.Thanks for notifying......I have a misconception about it...both the queries giving almost same result.
but first query give you result at datafile level.
SQL> column tablespace_name format a10
SQL> column file_name format a32
SQL> column file_mb format 9999990
SQL> column hwm_mb format 9999990
SQL> column used_mb format 9999990
SQL> column shrnk_mb format 9999990
SQL>
SQL> break on report
SQL> compute sum of file_mb on report
SQL> compute sum of hwm_mb on report
SQL> compute sum of used_mb on report
SQL> compute sum of shrnk_mb on report
SQL>
SQL> select a.*
2 , file_mb-hwm_mb shrnk_mb
3 from (
4 select /*+ rule */
5 a.tablespace_name,
6 a.file_name,
7 a.bytes/1024/1024 file_mb,
8 b.hwm*d.block_size/1024/1024 hwm_mb,
9 b.used*d.block_size/1024/1024 used_mb
10 from
11 dba_data_files a,
12 (select file_id,max(block_id+blocks-1) hwm,sum(blocks) used
13 from dba_extents
14 group by file_id) b,
15 dba_tablespaces d
16 where a.file_id = b.file_id
17 and a.tablespace_name = d.tablespace_name
18 ) a
19 order by a.tablespace_name,a.file_name;
TABLESPACE FILE_NAME FILE_MB HWM_MB USED_MB SHRNK_MB
SYSAUX C:\ORACLEXE\APP\ORACLE\ORADATA\X 710 673 672 37
E\UNDOTBS1.DBF
SYSTEM C:\ORACLEXE\APP\ORACLE\ORADATA\X 360 353 352 7
E\SYSTEM.DBF
UNDOTBS1 C:\ORACLEXE\APP\ORACLE\ORADATA\X 260 258 257 2
E\SYSAUX.DBF
USERS C:\ORACLEXE\APP\ORACLE\ORADATA\X 6340 6017 6016 323
E\USERS.DBF
TABLESPACE FILE_NAME FILE_MB HWM_MB USED_MB SHRNK_MB
sum 7670 7301 7296 369
SQL> SELECT /* + RULE */ df.tablespace_name "Tablespace",
2 df.bytes / (1024 * 1024) "Size (MB)",
3 SUM(fs.bytes) / (1024 * 1024) "Free (MB)",
4 Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free",
5 Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used"
6 FROM dba_free_space fs,
7 (SELECT tablespace_name,SUM(bytes) bytes
8 FROM dba_data_files
9 GROUP BY tablespace_name) df
10 WHERE fs.tablespace_name (+) = df.tablespace_name
11 GROUP BY df.tablespace_name,df.bytes
12 UNION ALL
13 SELECT /* + RULE */ df.tablespace_name tspace,
14 fs.bytes / (1024 * 1024),
15 SUM(df.bytes_free) / (1024 * 1024),
16 Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1),
17 Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes)
18 FROM dba_temp_files fs,
19 (SELECT tablespace_name,bytes_free,bytes_used
20 FROM v$temp_space_header
21 GROUP BY tablespace_name,bytes_free,bytes_used) df
22 WHERE fs.tablespace_name (+) = df.tablespace_name
23 GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
24 ORDER BY 4 DESC;
Tablespace Size (MB) Free (MB) % Free % Used
TEMP 20 17 85 15
USERS 6340 323.3125 5 95
SYSAUX 710 37.25 5 95
SYSTEM 360 7.3125 2 98
UNDOTBS1 260 1.8125 1 99
SQL> -
How to find Fragmentation of tables and tablespaces in oracle 8i
Hi,
How can i measure the fragmentation of Tables and Tablespaces in oracle 8i.
Do any one have any handy script to find the same.
What are the attributes to be determined to do health checkup of a database.how many such empty blocks are there in the table and of what size.Again Tom Kyte reference :
http://asktom.oracle.com/pls/ask/f?p=4950:8:7760471022221195640::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:231414051079
For tablespace, fragmentation is the regular termAbout tablespace, the link from post above can help.
Nicolas. -
Threshold fragmentation in a tablespace
Hi all,
How can I identify the threshold fragmentation in a tablespace in oracle 9i and then how can I eliminate it?
Thanks in advance.
DeepA tablespace is fragmented when enough space exists in the tablespace to satisfy
space request but it is spread across smaller pieces of free space and therefore
cannot be used to satisfy the request.
Here are some symptoms that may indicate fragmentation in a database:
- any ORA errors regarding allocation of extents or space(i.e. ora-1547, ora-1562)
- DBA_FREE_SPACE shows a lot of free space left in a tablespace, but users
receive space errors
Use locally managed tablespaces with uniform extent size and say good bye to Tablespace fragmentation. -
Fragmentation in tablespace in oracle 9i
Hi All,
We have oracle 9.2.0.8 installed in solaris 9, database size is 1.5 TB, we are looking for the tablespaces which are suffering from the fragmentation.
We have locally manged tablesapaces in the database. so can you please tell me, is there any tablespace fragmentation in the locally managed tablespace in oracle 9i, and if it is there than how to relove the situation.?
thanks in advanceIf you mean by fragmentation, a number of free space areas in the data files - sometimes called honeycombing, this script will show them to you.
SELECT 'free space' owner,
' ' object,
' ' obj_type,
f.file_name,
s.file_id,
s.block_id,
s.blocks,
s.bytes/1048576 mbytes
FROM dba_free_space s,
dba_data_files f
WHERE s.file_id = &file_id
AND s.file_id = f.file_id
UNION
SELECT owner,
segment_name,
DECODE(segment_type, 'TABLE', 'T',
'INDEX', 'I',
'ROLLBACK', 'RB',
'CACHE', 'CH',
'CLUSTER', 'CL',
'LOBINDEX', 'LI',
'LOBSEGMENT', 'LS',
'TEMPORARY', 'TY',
'NESTED TABLE', 'NT',
'TYPE2 UNDO', 'U2',
'TABLE PARTITION','TP',
'INDEX PARTITION','IP', '?'),
f.file_name,
s.file_id,
s.block_id,
s.blocks,
s.bytes/1048576
FROM dba_extents s,
dba_data_files f
WHERE s.file_id = &file_id
AND s.file_id = f.file_id
ORDER
BY file_id,
block_id
However, when you look at the report you will see that in a locally managed tablespace, all of the free space 'chunks' are all 8 blocks, or a multiple of 8 blocks. This means that all of these free space chunks are able to be (re)used. And, they will be used. There is no need to do anything unless there is a pressing need to give disk back to the OS. -
How to find a tablespace is fragmented or not?
Hi,
I was aksed to find wether a tablespace is fragmented or not. if fragmented i need to relase the fragmented space. Can any body has solution for the same.
Regards
DBA.1) What do you believe this query shows?
2) How do you define "bubble fragmentation" and "honeycomb fragmentation"?
3) Why (and when) do you believe a DBA would act to solve either problem?
4) Since your script is identifying tablespaces, how would you propose determining which objects in your estimation need to be rebuilt?
5) How have the answer to these questions changed since the move to locally managed tablespaces a decade ago?
Back in the old days of dictionary managed tablespaces, fragmentation was a real thing that DBAs had to keep track of because every table was potentially allocating differently sized extents in a tablespace, there were lots of odd extent sizes, and it was relatively easy to end up with free space in a data file that no object in the tablespace could ever use because it was smaller than the next extent size of the objects. That is no longer a concern with locally managed tablespace-- it is not (practically) possible to have (a reasonable quantity) of disk space that is free but unusable in a locally managed tablespace, particularly when you are using uniform extents.
Justin -
Query to find a tablespace is autoextensible r not
Hi all,
Can you please help me with a query to get tablespace detail which are autoextensible.
Actually with the below query am able to get results but it is including datafiles that are not autoextensible for a particular tablespace. Therefore it is giving me two results for a particular tablespace. Help me.
SQL> select df.TABLESPACE_NAME,
2 round(((df.BYTES - fs.BYTES) / df.BYTES) * 100) usage_pct,
3 round(decode(df.MAXBYTES, 34359721984, 0, (df.BYTES - fs.BYTES) / df.MAXBYTES * 100)) max_pct,
4 df.AUTOEXTENSIBLE
5 from
6 (
7 select TABLESPACE_NAME,
8 sum(BYTES) BYTES,
9 AUTOEXTENSIBLE,
10 decode(AUTOEXTENSIBLE, 'YES', sum(MAXBYTES), sum(BYTES)) MAXBYTES
11 from dba_data_files
12 group by TABLESPACE_NAME,
13 AUTOEXTENSIBLE
14 )
15 df,
16 (
17 select TABLESPACE_NAME,
18 sum(BYTES) BYTES
19 from dba_free_space
20 group by TABLESPACE_NAME
21 )
22 fs
23 where df.TABLESPACE_NAME=fs.TABLESPACE_NAME
24 order by df.TABLESPACE_NAME asc
25 /
TABLESPACE_NAME USAGE_PCT MAX_PCT AUT
CORE_DATABASE_DATA 95 0 YES
CORE_DATABASE_DATA 96 96 NO
V2_DATA 100 0 YES
V2_DATA 100 100 NO
XDB 94 0 YES1) What do you believe this query shows?
2) How do you define "bubble fragmentation" and "honeycomb fragmentation"?
3) Why (and when) do you believe a DBA would act to solve either problem?
4) Since your script is identifying tablespaces, how would you propose determining which objects in your estimation need to be rebuilt?
5) How have the answer to these questions changed since the move to locally managed tablespaces a decade ago?
Back in the old days of dictionary managed tablespaces, fragmentation was a real thing that DBAs had to keep track of because every table was potentially allocating differently sized extents in a tablespace, there were lots of odd extent sizes, and it was relatively easy to end up with free space in a data file that no object in the tablespace could ever use because it was smaller than the next extent size of the objects. That is no longer a concern with locally managed tablespace-- it is not (practically) possible to have (a reasonable quantity) of disk space that is free but unusable in a locally managed tablespace, particularly when you are using uniform extents.
Justin -
Hello,
Can someone give me the sql to determine what tables and or tablespaces are say 15% fragmented? I'm on Oracle 9i.
thanks...Are you using locally managed tablespaces? If so, you can stop worrying about tablespace fragmentation, particularly if you are using UNIFORM extents.
Can you define "table fragmentation"? I'm hard-pressed to figure out how a table can be fragmented.
Assuming you need to worry about fragmentation in the first place, either because you are still using dictionary managed tablespaces or because you have "table fragmentation" for some definition of the term, can you define what you mean by percentage fragmentation? If you have a dictionary managed tablespace, it is not obvious what it would mean to have a tablespace that was 15% fragmented.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Maybe you are looking for
-
Messages getting stuck at the end of sending
I have an iPhone 5 running iOS 6.0.1 and often my text messages will get stuck at the end of the sending progress bar. Like this: http://i.imgur.com/iqxjo.jpg It'll slowly progress towards that point and then it'll just stop. It will sit there anyt
-
Hello : Is it possible to make something like this conditions in a Case statment?: Case mycondition of (mycondition >= 10 and mycondition <= 50 ): --do this etc... end Case I know that can use If conditional but is it possible of the above? Thanks in
-
Stream entire iPhoto library to Apple TV?
I realize this might be more appropriate for the Apple TV discussion boards and so I posted the question there too, per below, but thought I would try here too in case anyone here knows the answer: >>> How can I stream / slideshow (e.g., "screen save
-
1) I customized my swatch in CP8 - added about 20 colors that are specific to a client's branding. 2) I exit out of CP8 3) I open CP8 ==> The swatch no longer has my custom colors. I understand that I can Save my custom colors out to a .ase file and
-
when i try to order prints i get an error message saying there is a problem with my network and my network is working. How can i solve this problem?