Calculate free space without reorg

Hi DB-Gurus,
we  are currently on AIX and Oracle 9.2.0.6.0. The SAP System is BankAnalyzer, which is an add-on to a BIW (3.5). Data is loaded into the system via STS, a tool from a third party vendor. All relevant tables (BankAnalyzer and STS) are in one tablespace, the size of the tablespace is about 1 TB, of which STS-tables occupy about 400 GB. STS produces a lot of redundant overhead which we now want to archive and delete on a regular basis.
<b>Without</b> a DB-reorg, is there a way to tell how much space is currently free in the DB, and how much space ist occupied? As I understand, DB02 will keep showing the same figures until a reorg is done, even though we have deleted 200 GB from the tables. We need a way to tell the current free space in order to control DB-load and to calculate future DB costs.
We are using database managed tablespaces. If we can't reorg the whole tablespace or DB, will fragmentation over time (archive & delete old STS-data every 3 months and load new data on a daily basis) reduce performance, even though we reorg the index tables?
If we could identify the tables affected from the regular delete and update processes, is there a way to reorg just these tables? Would this be an advisable way to reduce DB-maintenance and increase DB-performence?
Thanks for your valued input & kind regards,
Mark
PS: yes, we are planing an upgrade to 10.2 sometime soon.

Hello Mark,
at first:
<b>>> Since I am not deep into the DB stuff (yet )</b>
That's no problem man ... nobody can know everthing...but i would recommend some extern support, if you don't have the know-how in-house. This topic is pretty deep on database level to make any suggestions or definitive statements...
But now lets start with your questions.
<b>>> STS produces a lot of redundant overhead which we now want to archive and delete on a regular basis.</b>
That's the first good idea
<b>>> Without a DB-reorg, is there a way to tell how much space is currently free in the DB, and how much space ist occupied?</b>
I don't know any SAP possibility to show this (because i don't use man SAP features for analyzing problems / reorgs,etc..), but i can show you some possibilites on database level.
At first some helpful views/tables:
http://download.oracle.com/docs/cd/B10501_01/server.920/a96536/ch2451.htm#1317269
INDEX_STATS - You have to analyze the index first with an ANALYZE INDEX and then you can query the view index_stats in the same session (that's important!). The columns DEL_LF_ROWS, USED_SPACE, PCT_USED are very interesting in your case.
The problem with INDEX_STATS is that you will lock the segment with the ANALYZE command.
http://download.oracle.com/docs/cd/B10501_01/server.920/a96536/ch2152.htm#1303953
ALL_TABLES - This values are populated if you collect statistics for the table, but the values are not as clear as the index ones. The column EMPTY_BLOCKS does not count the empty blocks.. it only counts the blocks that are not formated yet. The column AVG_SPACE is more interesting but you have to set it in the context of some other values.. its really difficult to explain this over the internet without any table values.
<b>>> We are using database managed tablespaces. If we can't reorg the whole tablespace or DB, will fragmentation over time (archive & delete old STS-data every 3 months and load new data on a daily basis) reduce performance, even though we reorg the index tables? </b>
I don't know what you mean with database managed tablespaces. Do you mean data dictionary managed ones or do you mean locally managed ones? But this does not have any affects on the block filling logic (only on extend logic is affected by that)... the block filling logic only depends on automatic segment space mangement or not. You can not make any over-all statement if the performance would be better or not. It depends on so many factors like execution plans (access pathes), reused blocks, etc... Normally the "freed" space is reused, but the performance can be as bad as before if the same blocks are touched (for example index range scans, full table scans, and so on...)
<b>>> If we could identify the tables affected from the regular delete and update processes, is there a way to reorg just these tables? Would this be an advisable way to reduce DB-maintenance and increase DB-performence?</b>
http://download.oracle.com/docs/cd/B10501_01/server.920/a96536/ch2146.htm#1303064
You could identify these ones if you activate the monitoring attribute on the tables and after that you can query the view ALL_TAB_MODIFICATIONS. The data which is populated in that view are the counters since the last collected statistics on the table.
The same as above you can not make any over-all statement if it is good or bad... it depends on so many factors if it will increase the db performance. You can reorg single tables.
I hope it helps a little bit, but if you don't have any experience/know-how on oracle .. it will be really difficult to do any further analysis on that topic.
Regards
Stefan

Similar Messages

  • Calculate Free Space On Filesystem Level

    Hi,
    I need to add datafile on an file system for example /D00/oracle/data/ file system, Before adding datafiles to that particular file system I need to check the free space on OS level and also I need to check the estimated auto extensible growth on the file system. So that I can new datafiles depending on the remaining space available to that file system. Is there any sql script available to calculate the estimated auto extend growth on one particular filesystem and give us the remaining space on the OS level….
    Regards,

    Can you define the term "estimated auto extend growth"? That could mean the maximum size the data file could extend to. It could mean some sort of projection based on prior extend operations that were captured in some sort of log table.
    What version of Oracle?
    What operating system?
    Realistically, no SQL script can see the free space available on the file system. You could write a Java stored procedure that called your operating system's free space function (i.e. df in Linux), made the results of that call available to Oracle, and then query that.
    Justin

  • Is there a way I can get the "Free Space" back without completely restoring my hard drive?

    Hi!
    After having a terrible experience with Windows 8.1 on Boot Camp (Windows would always fail to boot), I tried restoring my partition with the Boot Camp Assistant and it would not work. Shortly after, I went to the Disk Utility to restore the Boot Camp partition and it was just "Free Space". I have Googled many different solutions, and am not sure what exactly to do. If possible at all, I would just like to know if there is any way to get back the "Free Space" without having to retire my entire hard drive.
    Here is a screenshot of my Disk Utility...

    Enable Disk Utililities Debut menu by entering the following command in the Terminal window followed by the Return or Enter key:
    defaults write com.apple.DiskUtility DUDebugMenuEnabled 1
    Then select the Show Every Partition option in that menu:
    That will give you the following in the left hand pane:
    Click on each of the icons and you'll get the capacity of each volume and the used/free space on the working volume (Toad Hall in the screenshot).

  • Adding partition in free space on internal drive

    So, when I bought my 20" Intel iMac, I immediately repartitioned the drive, and created one 200GB main partition for OSX and left ~32GB of free space for a future WinXP partition (which as of today became useful .
    However, I cannot find any way to add a partition in the free space without trying some commercial tool (like iPartition). Disk Utility only has the option to repartition -- in OSX it won't let me because it's the system drive, and from the install CD it wants to nuke my whole drive to repartition, even though I don't need to touch the OSX partition at all. I've also dug through diskutil, pdisk, and fdisk, but none of those have an option to add a partition.
    It seems totally stupid that I can't just create a partition in free space without killing the whole disk. I have 80GB of stuff on this drive I can't easily backup.
    Any ideas???
      Mac OS X (10.4.5)  

    The second partition is not for backups... it's for a FAT filesystem for installing Windows so that I can run my research software and play games at native speed.
    Installing XP does not involve any firmware changes at all. The EFI bootloader is a blessed file that sits on the HFS partition, and the boot sector of the XP install CD is modified to talk to the custom EFI bootloader.
    I actuallly did solve the problem through some brute force after my post. There is a command-line utility built into OSX now called 'gpt' which can edit GUID Partition Tables as used on Intel Macs. I booted off my OSX install CD, went to a terminal, unmounted /dev/disk0, added the new partition (gpt luckily does have an option for adding and removing partition entries without repartitioning the whole disk... Apple really needs to update Disk Utility if you ask me -- this is a common and simple task usually), then rebooted. It all worked fine!

  • How to reclaim "free space" on TM drive?

    I had 2 partitions on my external drive. I've deleted one of them as it is no longer need. Is there a way I can tell my TM partition to reclaim this new "free space" without having to erase the entire disk?
    Thanks

    Dryvlyne wrote:
    That's exactly what I did to erase the partition, however, that partition is/was positioned first on the drive, above the TM partition. Hopefully that makes sense, but that's where I'm stuck at.
    Thanks
    in that case you can not absorb it into the other partition without reformatting the whole drive (that will wipe all the data off it). At least you can not do it with disk utility. Using disk utility you can only adjust the size of a partition by dragging its lower right end up or down.

  • Reaching free space with SAP DB on Windows

    Hi!
    I am using SOLMAN with SAP DB on Windows and (funnily enough) reaching the free space on my computer (no arching mode is activated).
    Can some one tell me how to proceed in this case (can I put away the log files or the data files that are not being used). How can I extend the free space without much effort?
    Is there some useful transactions (like db02 in oracle) to manage the SAP DB?
    Thank you!
    regards

    Hello Axel,
    -> You wrote:
    "can I put away the log files or the data files that are not being used"
    What do you mean by that?
    -> If you think that you oversize the data & log area during the creation of the database, please let me know the configuration of the data & log volume in the database, provide the output of the command 'param_getvolsall'. What is the filling of the data & log area? What is the version of your database?
    -> Please review the SAP note: 869267 FAQ: MaxDB LOG area
       < You will find the answer on the questions
         "25. What should I bear in mind if the log area is saved to files?"
         "26. How do I archive the log backup files generated?"
        and more ... >
    -> As of 7.6 version you could use 'db_deletevolume' command, you could find details in MAXDB library to delete the datavolume for the reducing size of the dataarea, if the size of the data area was oversized.
       To reduce size of the log area < or shrink the log area > and reduce the size of the data area in the earlier releases of the database => use the Homogeneous system copy with MaxDB using backup/restore procedure < SAP Note No. 129352 >.
    Thank you and best regards, Natalia Khlopina

  • Calculate used space in database!

    Hi all,
    I can calculate used space by using the following ways:
    1. Calculate allocated size by issuing
    SELECT SUM(d.bytes/1024/1024/1024)
    FROM dba_data_files;
    2. Calculate free space by issuing
    SELECT SUM(bytes/1024/1024/1024)
    from dba_free_space;
    Used space will be the value from first statement - value of the second statement! This is manual way!
    Is this possible to combine the two above queries?
    Thank you!
    Dan.

    You can certainly combine the queries
    SELECT (allocated.bytes - free.bytes )/1024/1024/1024 used_gb
      FROM (select sum(bytes) bytes from dba_data_files) allocated,
          (select sum(bytes) bytes from dba_free_space) freeNormally, you'd group by tablespace as well.
    But if you just want the amount of space used, it's probably easier to just
    SELECT sum(bytes)/1024/1024/1024 used_gb
      FROM dba_segmentsJustin

  • URGENT: Erase Free Space

    I filled up my computer's memory completely. Then I deleted a few GBs of files to make space for new files I need...but of course the computer doesn't recognize that files have been deleted. So I ran the Disk Utility "Erase Free Space"...but it immediately went into error: "Unable to create temp file".
    So I don't even have the space to create the temp file to erase the free space. What do I do now?
    Thank you for your help
    iBook G4   Mac OS X (10.4.8)  

    When you deleted those files, did you use "secure empty trash"? There
    may be other trashes in the system that also hold stuff you could remove.
    By using a utility such as What Size, you can hunt down where items are
    located in the hard drive, and carefully consider removing them. This can
    do it. Of course, important OSX system files and application support
    stuff should be left alone; and if you move/remove iTunes music files,
    they need to be handled carefully. Plus duplicates may remain.
    If you can't save your data to a DVD or CD-R media, you may have to get
    and use an externally enclosed hard disk drive (preferrably a FireWire unit)
    so you can move or copy/clone files from your computer's hard drive. There
    are a few good disk clone utilities, super dooper is popular and carbon copy
    cloner is good. An external FW HDD of larger capacity than your 'Book's
    hard drive could be partitioned to hold several entire computer drive clones.
    In order to erase free space, you may have to use a third party disk utility; and
    some of these could result in loss of data, so to backup your stuff first is
    the best advice and course of action before doing much else. If you make
    and use a clone utility, be sure the copy/clone's files you want to keep are
    accessible. If you seek to make your entire 'Book's HDD 'clone' over to a
    second and external FW drive, be sure to run "repair disk permissions" on
    the original drive & read the instructions thoroughly before using a clone utility.
    By making a complete computer drive clone to an external FW hard drive
    you can then plan on a total erase (zero-data using disk utility options)
    and reformat the computer's drive; this will get rid of everything and leave
    the drive unpartitioned and without fragmentation. Free space without any
    fragmentation or artifacts, then either re-clone your 'Book's system and
    all your stuff back over, or only move the important things back to it.
    The hard drive's capacity is sometimes mistakenly called "memory" and
    it is confused with RAM; but I know what you mean in the context given.
    Sometimes, you can restart your computer after deleting stuff
    and it may see the stuff as "gone" then. Also, you can see if using
    "repair disk" from the booted disk utility and also repair disk
    permissions, will help. Working on the root or base level of the
    hard drive can damage important files, so hopefully you can get
    that free space to show and work for you.

  • Satellite C660-1PH - HDD shows different free space

    Hello,
    Ive noticed the last days that the 'windows partition C:' of my disk shows different free space without downloading/installing anything
    E.g. I had 104GB free, then on next day it was showing 100GB free and then suddenly it became 104GB again. It happened with different values another day, it just keep changing out of the blue.
    What could be causing this? Could the hard disk be faulty?
    Thank you

    Hi
    Please dont forget that temporal stored files can change value of the free space on the HDD.
    Use the CCLeaner (freeware) software which would delete and remove the temporal stored files.

  • Calculating free space in tablespace

    Oracle 11.0.1.7:
    I am trying to calculate free space in the tablespace but I am not sure if Allocated Space (bytes_used) also has some free space that doesn't get reflected in the query below. Is it correct to assume that bytes_used is the space allocated to extents but may not have been really used (no data or LOB) yet? How do I calculate space that's currently been used by row data, index data or blob data?
    I am currently using below query:
    select     a.TABLESPACE_NAME,
         a.BYTES bytes_used,
         b.BYTES bytes_free,
         b.largest,
         round(((a.BYTES-b.BYTES)/a.BYTES)*100,2) percent_used
    from      
              select      TABLESPACE_NAME,
                   sum(BYTES) BYTES
              from      dba_data_files
              group      by TABLESPACE_NAME
         a,
              select      TABLESPACE_NAME,
                   sum(BYTES) BYTES ,
                   max(BYTES) largest
              from      dba_free_space
              group      by TABLESPACE_NAME
         b
    where      a.TABLESPACE_NAME=b.TABLESPACE_NAME
    order      by ((a.BYTES-b.BYTES)/a.BYTES) desc

    DBA_FREE_SPACE give you the free space information which has not been allocated to any segment. The segments can also have free space in their allocated space and in order to find that, use DBMS_SPACE.SPACE_USAGE procedure. To find out free space in LOB segments refer to metalink doc: 386341.1
    Thanks
    Daljit Singh

  • Why can't the Utility function's 'Erase free space' create temporary file

    I've been using erase free space without problem for some time.. Then today when I tried to use it, got an error message to say that erase free space won't work because it can't create a temporary file. I have a 320 GB MBP with 88 GB of free space.
    I'd love you forever if you can help me get round this issue

    Here's what I tried to say in my response that I wasn't authorize to make:
    I can't seem to reply to your response BD . . . says I'm not authorize . . . so I'll try to reply to my original post.
    Thanks BD for your reply.  Here's the info on the drive:  1.3 TB capacity with 1,017 GB available.  Eventually I will recycle the computer at Best Buy who guarantees the hard drive will be erased.  I just want to get all my files off first.  I'll just do another Erase Free Space and see, as you suggest, if there are any files to be zeroed out.  Maybe there aren't any.  I've extracted most of what I want but am debating how to move the entire iPhoto library to an external drive so I can access it from my Mavericks machine.  Can I just drag and drop the iPhoto Library, or do I need to export it somehow?

  • Any way to download IOS7 without needing 3.7GB free space?

    I'm currently using an iPhone 4 that has just 1.1GB free space. I want to download IOS7, but I can't as it says it requires 3.7GB free space.
    I previously tried doing it when I plugged into iTunes, and I clicked update on the computer. However this didn't wory and sent me into recovery mode, meaning I nearly lost all my data. What did I do wrong? Was it because of my lack of space?
    How much room does IOS7 actually take up once downloaded?
    Is there any way to download IOS7 without having to delete all my stuff?
    Thanks.
    LZA

    So A1332 corresponds to the GSM model from the US.
    http://support.apple.com/kb/HT3939?viewlocale=en_US&locale=en_US
    Based on what I see here (http://en.wikipedia.org/wiki/IPhone), I believe that the 3,1 is the one you want. I think the 3,2 was for China.

  • HT4847 My kids have downloaded tons of free games apps from iTunes.  I need to free some iCloud space without having to upgrade my account.  How do I delete those apps in the cloud?

    My kids have downloaded tons of free games apps from iTunes.  I need to free some iCloud space without having to upgrade my account.  How do I delete those apps in the cloud?

    Apps can't be deleted from iCloud as they only reside in the App store.  Also, the apps themselves aren't taking up space in your iCloud account.  They only thing in your iCloud account would be the app data that is backed up as part of their iCloud backup, but this generally doesn't use much space.  You can check how much is being used, and eliminate specific apps from being included in the backup, by going to Settings>iCloud>Storage & Backup>Manage Storage on their device, tapping the name of their device under Backups, then checking the apps listed under Backup Options (tap Show All Apps to see them all).  Turn an app to Off to exclude its app data from being backed up.
    This article may be of interest as it discusses ways to manage and reduce iCloud storage: http://support.apple.com/kb/ht4847.

  • Is there a way to free up space without sync?

    I'm currently traveling and therefore unable to sync to my desktop as I normally do. While on the road I've taken a few photos, etc., and now find I'm running out of space. Subsequently, I've deleted a couple of large apps I never use, and several old photos I know I have stored, but my iPhone is still showing as full. Apparently, the files I've deleted aren't really gone until I sync? It will be some time until I'm home again and able to access my desktop. Is there a way to free up space without a sync, or am I stuck with a full phone until I return?

    You can import the photos taken with the iPhone to another computer as long as you
    TURN OFF auto-sync on the other computer first. Then delete them and that should free up space for you.
    You would import the photos off the iPhone to the computer just like you would from a digital camera.
    THen burn them to CD/DVD.

  • Bootcamp won't let me remove partition without 10gb free space

    I want to free up my mac by deleting the windows partition but boot camp won't let me because I don't have enough free space UGH! I can't get to the selection in boot camp that allows you to check "remove partition" because I keep getting a pop up window telling me I don't have 10 gb free space and therefore can't continue.  This is a real glitch. They shouldn't have the remove partition feature behind this minimum requirement.  Any suggestions around this? I've already deleted everything I can but don't want to keep trying to find more if someone has a better idea. Thanks.

    I want to free up my mac by deleting the windows partition but boot camp won't let me because I don't have enough free space UGH! I can't get to the selection in boot camp that allows you to check "remove partition" because I keep getting a pop up window telling me I don't have 10 gb free space and therefore can't continue.  This is a real glitch. They shouldn't have the remove partition feature behind this minimum requirement.  Any suggestions around this? I've already deleted everything I can but don't want to keep trying to find more if someone has a better idea. Thanks.

Maybe you are looking for

  • Voice memo playback

    i sent a voice memo to a friend and she can't hear the playback... the ringer volume is up and she tried turning up the volume during play back and still didn't work... any suggestions?

  • Ipod Nano (7th gen) won't play in Prius

    I have no problems with my ipod classic or with my husband's ipod classic (these use the old USB cords).  But when I try my nano or iphone 5 (both use the newer cord that came with the nano), the connection doesn't work. When I connect it, I get the

  • Bluetooth File Exchange - V551 - 10.4.10

    I am able to use iSync to sync the addresses, etc. with my mac and Motorola V551 cell phone (which bluetooth sees as a computer – not a cell phone). I know the computer sees the V551 because of the success in syncing addresses into this particular Ma

  • Setting the utl_file_dir parameter in 10g

    I want to set the 'utl_file_dir' parameter. From the internet I found that I can do it from OEM (the web-based one) by choose 'All initialisation Parameters...SPFile Tab...' (Refer to http://otn.oracle.com/obe/obe10gdb/bidw/blast/blast.htm#t0c). Howe

  • Jerky playback of movies, Im getting desperate now, help !!

    I have recently purchased a Sanyo Xacti digital camera which records onto an SD card in MPEG 4 format, the camera came supplied with Quick time to view the movies on. I installed it and everything worked fine. I looked at the option of going PRO with