Space really used on TBS

Hi,
executing the following query
SELECT b.tablespace_name, a.*,
TRUNC (a.segment_size / tbs_size * 100, 2) segment_perc_used,
b.tbs_freespace,
TRUNC (b.tbs_freespace / c.tbs_size * 100, 2) freespace_perc,
c.tbs_size
FROM (SELECT SUM (BYTES) / 1024 / 1024 segment_size
FROM dba_extents
WHERE tablespace_name = 'USER_CDC_DATA') a,
(SELECT tablespace_name, SUM (BYTES) / 1024 / 1024 tbs_freespace
FROM dba_free_space
WHERE tablespace_name = 'USER_CDC_DATA'
GROUP BY tablespace_name) b,
(SELECT tablespace_name, SUM (BYTES) / 1024 / 1024 tbs_size
FROM dba_data_files
WHERE tablespace_name = 'USER_CDC_DATA'
GROUP BY tablespace_name) c
I got this result
USER_CDC_DATA,112,0.72,5076.8125,32.75,15500
where 112Mb are used (0.72% of tbs total available space)
5076.8125 are free (32.75% of tbs total available space)
15500 is the tbs size
Why I have less then 1% used and only 32.75% free?
Where I'm wasting space?
Please note that shrink objects on tbs doesn't provide any benefit.
Regards
Mauro

Hi Mauro,
Where I'm wasting space?Perhaps it's space reserved by PCTFREE?
You can run scripts to "map your tablespace" and see space usage by block:
http://www.dba-oracle.com/data_warehouse/tablespace_reorganization.html
set linesize 132;
set pages 999;
rem set feedback off;
rem set verify off;
rem set heading off;
rem set termout off;
break on file_id skip page;
break on free skip 1;
compute sum of KB on free;
spool tsfrag;
column owner format a10;
column segment_name format a10;
column tablespace_name format a14;
column file_id format 99 heading ID;
column end format 999999;
column KB format 9999999;
column begin format 999999;
column blocks format 999999;
select
tablespace_name,
file_id,
owner,
segment_name,
block_id begin,
blocks,
block_id+blocks-1 end,
bytes/1024 KB,
'' free
from sys.dba_extents
where tablespace_name not in ('RBS','SYSTEM','TEMP','TOOLS','USER')
union
select
tablespace_name,
file_id,
'' owner,
'' segment_name,
block_id begin,
blocks,
block_id+blocks+1 end,
bytes/1023 KB,
'F' free
from sys.dba_free_space
where tablespace_name not in ('RBS','SYSTEM','TEMP','TOOLS','USER')
order by 1, 2, 5
Hope this helps. . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference":
http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

Similar Messages

  • [SOLVED] How much space is REALLY used on my HDD?

    Hi there,
    Today I moved my /home/ dir to its own partition, so that my settings are safe from the system.
    I have a question about the used space:
    When I use "df -h" to see how much space is used, this is the output for home:
    /dev/sda2             184G  465M  175G   1% /home
    So 465 MB should be used. When I right click on home and select properties only 243,5 MB are used!?
    I know about the MB/MiB problem... but that would not be that extreme...
    Any ideas?
    greetings, yodo
    Last edited by yodo (2008-05-30 15:06:49)

    yodo wrote:But for what is that reserved space used actually?
    It is used to store information about the filesystem structure. Inodes, Blocks, etc. Have a look at this c't article: http://www.heise.de/open/Das-Dateisyste … l/104859/0 (German article)

  • How to restrict disk space when using time machine for client backup on server?

    We have 10 OS X SL Clients backing up on xserve SL with TM. Now 1 TB disk space is used and disk is full. The clients get the massage that the latest backup could not be finished due to target disk full. Clients run just OS X Standard Software plus Parallels with windows (max. 50 GB per client)
    Why does TM not delete oldest backups like with external USB HD?
    How can we restrict disk space on server to eg. 750 GB for total backup space for all clients?

    johndave, did anyone ever respond to your post?

  • My iPhone 4s keeps showing more space being used for photos than i have - i have deleted cache folders, unselect and reselect in iTunes and nothing appears to work my iPhone still shows 6.5 gig use of photos when i only have the  camera roll listed

    my iPhone 4s keeps showing more space being used for photos than i have -
    i have deleted cache folders, unselect and reselect in iTunes I read one post
    where they said keep syncing and in a couple days it would correct itself, that
    hasnt happened.  I have see others have the same issue but no solution and nothing
    appears to work my iPhone still shows 6.5 gig use of photos when i only have the camera roll listed

    i thought the photo stream only holds 1000 i usuaaly take each month and save them to iphoto but if thats the my ipad should say the same amount and it doesnt - it shows 2.5 gig which is correct for iphoto.  and i havent ever had that much but if for some reason icloud has that much saved how do i delete and again if it does why doesnt ipad show that amount _ HELP!

  • HT4914 I would like to know if after subscribing to ITunes Match I will be able to delete my library from my PC and, by these means, liberating the disk space currently used by my music

    I would like to know if after subscribing to ITunes Match I will be able to delete my library from my PC and, by these means, liberating the disk space currently used by my music

    Your purchased music is availble for download again at no cost.  If you have iTunes match service, you can download your matched music.

  • To determine the amount of space currently used in each tablespace

    I am preparing for OCA and came through a question.
    QUESTION 389
    You need to determine the amount of space currently used in each tablespace.
    You can retrieve this information in a single SQL statement using only one DBA view in
    the FROM clause providing you use either the _______ or _______ DBA view.
    A. DBA_EXTENTS.
    B. DBA_SEGMENTS.
    C. DBA_DATA_FILES.
    D. DBA_TABLESPACES.
    Answer mentioned: A, C.
    My doubt is that DBA_EXTENTS, DBA_SEGMENT,DBA_DATA_FILES all three contained column "BYTES" which shows size in bytes. Then why B is not an option.
    Plz help.
    Thanx
    Ashutosh

    Of these 4 answers, I'd say A and B will give the info asked for in the question.
    DBA_DATA_FILES only tells you the file size. That's not of much value because it doesn't tell you how much space is consumed by objects (there may be none).
    DBA_TABLESPACES has no storage info.
    DBA_EXTENTS and SEGMENTS show the amount of space consumed by objects.
    Even then, I'd say none of the above and use: DBA_TABLESPACE_USAGE_METRICS

  • I am trying to animate a file in photoshop with vanishing point. And when I "Return 3D layer to photoshop", I'll get a cube with dimensions. It´s not what I can see in tutorials, aperfect 3D space. Using win7.

    I am trying to animate a file in photoshop with vanishing point. And when I "Return 3D layer to photoshop", I'll get a cube with dimensions. It´s not what I can see in tutorials, a perfect 3D space. Using win7.

    An update -
    The libraries appear to all be in tact, now.
    The error I am getting,
    Parms are; 800/S80/5069660
    ERROR -  detected an exception: Unexpected database connector error
    is a connection issue.
    Any ideas??

  • In itunes, my ipod shows six gigabytes of "other" and i have no idea what that space is used for.

    In itunes, my ipod shows six gigabytes of "other" and i have no idea what that space is used for.

    Other usually contains app data and other miscellanious items. However 6GB is awfully big so it's likely been corrupted. I would restore.

  • How do I find how much space is used and left?

    I need to know how to find out how much total space is used and left  on my computer (iMac)

    Simply highlight your hard drive icon and hit Command key and I on the keyboard. It'll show the info the the resulting window.

  • How can i edit my contacts?and i dont really used my phone and its automatically add a contacts and email adds.. I dont know why that happen..i just turn my phone off and this is happen..

      How can i edit my contacts?and i dont really used my phone and its automatically add a contacts and email adds.. I dont know why that happen..i just turn my phone off and this is happen..

    Contacts are synced with a compatible programme in the computer; in the iCloud or with Yahoo and Google Mail. You can directly "edit" a contact on the phone and/or within the programme that you are syncing your contacts with.
    Have you configured/setup mails on your iPhone? If yes, check the contents of the mail account(s) individually. (including iCloud)  from SETTINGS - MAILS, CONTACTS, CALENDARS
    "Contacts" if chosen from the mail account (s) would add email addresses to your contacts.
    http://support.apple.com/kb/HT1296

  • System won't boot. Could really use some help here.

    I have the K8T-Neo FISR2 mobo. When I set up the system, the SATA drive was set up as drive F: (onto which I installed Windows XP Home). I added a 2nd SATA drive later, and it became C:. Both drives are plugged into the Promise SATA ports. The system has been running fine for about a year now.
    I was having a problem with a program not running properly. I stopped the process and tried to restart it, but it didn't work. It was a program that drives my Logitech gaming keyboard (with LCD screen). After I rebooted, the system would load windows, then after Windows was loaded, it would load up a program when I went into it and crash. It looked like it would crash on PXHELP.DLL (something like that). I booted up into safe mode, renamed the file so it wouldn't load, and now it won't boot at all. It starts to show the Windows logo and then instantly reboots. I can't even get into Safe Mode as it does the same thing.
    I tried booting from an XP CD to do a repair, but when it boots, it doesn't see the hard drives. I downloaded the Promise drivers, put them onto a floppy, and load them as Windows is booting from the CD. It seems to load the drivers, but when I choose to do a repair (or even a new install), Windows comes back and tells me that I have no hard drives attached to the computer. I just can't seem to get Windows to see those hard drives!
    I could really use some advice here......

    Quote from: Tiresmoke on 04-January-06, 01:36:35
    Try swapping the Drive Cables. You may have one that is not engaging as well as it should.
    When I let the PC boot up like normal (without booting from the CD), it sees the drives and Windows tries to load, so I don't think it's the cables. I'll make sure they're reset, but I really don't think that's it.

  • Why do we really use customized IKM's in ODI?

    Do we really use customized IKM's .If yes , Can you please explain me a scenario where do we need use it? I searched some blogs but i'm not sure i understood them.

    Yes we do. A lot .
    Everytime that you see that you are having a lot of work to do something is because you are not changing a KM. The best thing in ODI is the hability to change it as you wish. Let me give you a few scenarios:
    You are building a big DW and you want the KM to identify new periods in the load time and add new partitions on the target table.
    You have sources around the world with the same table structure and you want to build only one interface and loop it in all this sources in parallel
    You are integrating Hyperion Planning application and you don't want to create one interface per dimension, you want it more generic. Same for data and metadata.
    Well there's a lot more scenarios that I can thing, but the ideia behind chante a KM is to make things easer for you, then everytime you are developing and you see that you have to do extra steps do do somthing you can consider change a KM.
    Here's a link about change KM and his advantages.
    http://devepm.com/2013/09/13/10-important-things-to-improve-odi-integrations-with-hyperion-planning-part-7-smart-metadata-loading/
    http://devepm.com/2014/07/18/really-using-odi-12c-for-data-integration-with-oracle-hyperion-planningessbase/
    We are back!!! | DEV EPM
    Hope this can help you.

  • Maximum TEMP space ever used

    Hello, I would like to ask how to check the maximum space ever used for TEMP. I want to know it because I need to resize the TEMP and I want to know how small it can be.
    As I can see from a documentation http://docs.oracle.com/cd/B14117_01/server.101/b10755/dynviews_2095.htm
    max_size is max number of extens ever used in a segment
    I could multiply max_size by extent_size and it would give me the max size of temp ever used
    SQL> select segment_file, extent_size, max_size from v$sort_segment;
    SEGMENT_FILE EXTENT_SIZE MAX_SIZE
    0 128 23625
    0 128 753
    Is that correct ?
    Edited by: Przemek P on Oct 2, 2012 2:19 AM

    such dynamic performance views contain information since last instance startup, so this is not the ever used maximum
    check historical tablespace metrics (not collected for TEMP tablespace in 10g by default if you happen to have that version)
    check current allocated size of TEMP tablespace: if its made up by autoextensible tempfiles and they werent increased manually, thats the maximum amount of temp ever used
    none of the above will be accurate, but they can at least give you a direction
    also keep in mind that max temp usage in past will not necessarily be the max temp usage in the future

  • How can i download and install and really use Adobe Flash Player on my MacBookAir with OS X 10.8.2 ??

    How can i download and install and really use Adobe Flash Player on my MacBookAir with OS X 10.8.2 ??

    Hello Allan,
    thank you for your promt message. I have download the installer like many times before and install the flashplayer like many times before, too. But it does not work ... only getting the black screen ... but then, after checking some settings and defaults i realize that i have to switch in Safari > Security > Plug in to status activated !!!
    Shame on me and sorry for wasting your time, but i started with Mac 3 weeks before and have to leave windows-thinking !!! But i am convinced that mac is the better way ...
    By Soeren

  • GPO Disk space to use (8-1024 MB) for Temporary Internet Files and History Settings

    I am trying to create a GPO that will allow me to specify 1024 (MB) for Disk space to use to go to IE, the General Tab, Settings,
    In the box below there is a box fo Disk space to use.  There is a GPO for this under...
    User configuration, windows settings, Internet Explorer Maintenance, (use preferred mode) Corporate Settings, Temporary Internet Files, (I select for the settings) Every visit to the page
    Set amount of disk space to use (in MB)
    It maxes out at 256 MB  - I tried to manually adjust this but it does not work....
    I tried to adjust some equivalent registry entries for under content, cachelimit (decimal) 102400 but it did not work.
    Any ideas how to adjust it so that it will allow to use 1024 MB?  I tried just about everything....

    Hi,
    Sorry for the late response.
    Before going further, what’s the operating systems of our server and client?
    As far as I know, we have to use customized .adm or .admx file to reset the maximum size of IE cache size.
    If our server is Window Server 2003 and client is Windows XP, we can refer to the following thread for the customized .adm file.
    GPO for IE Disk Space Cache
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/a0138089-2073-4890-96cf-b492aa151dec/gpo-for-ie-disk-space-cache?forum=winserverGP
    If our server is Windows server 2008 or above, the following article can be referred to for more information.
    Creating a Custom Base ADMX File
    http://technet.microsoft.com/en-us/library/cc770905(v=ws.10).aspx
    In addition, we can try asking in the following forum to see whether they can help.
    XML, System.Xml, MSXML and XmlLite
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=xmlandnetfx&filter=alltypes&sort=lastpostdesc
    Best regards,
    Frank Shen

Maybe you are looking for

  • SRM 5.0 Installation

    Hi I am planning for a SRM 5.0 installation. I haves refered Installation master guide from market place. Can any body help me on any other useful document on installation and on SRM 5.0. Thanks Vitthal prabhu

  • Loss of relationship between xmp and associated raw file.

    This is wierd. Please HELP! I have a folder in my LR Library where the relationship between the xmp files have lost the relationship to ALL the raw files that it "represents" in that single folder. All I see in my grid view are the thumbnails with th

  • Convert to active content

    I get a AC_RunActiveContnet.js warning when I try to run an online Flash file. It was my understanding that Dreamweaver was supposed to convert files to active content, or at least give you and option. I have Dreamweaver CS3. It is not converting to

  • Keyboard shortcuts display but don't fill field

    My shortcuts on my ipad2 display in settings. When I type the shortcut code in safari,  the corresponding info displays in blue like it should. Problem is the corresponding info for the shortcut code does not post to the field after tabbing to next f

  • Bank Statements posting problem

    Hello, How to automatic reconcile bulk unreconciled bank statements due system problem.  Some bank statements were got stuck. Appreciate your help. Thanks Madhawa.