TABLE SIZE NOT DECREASING AFTER DELETION. BLOCKS NOT BEING RE-USED

Hi ,
Problem:
Table size before deletion: 40GB
Total rows before deletion: over 200000
Rows deleted=190000 rows
Table size after deletion is more (as new data was inserted meanwhile).
Purpose of table:
This table is a sort of transaction table.
Whenever an SR is raised by CSR, data gets inserted into this table and is removed when the status is cleared.
So there is constant insertion and purging will happen on this table.
We are using ASSM and tablespace is LOCAL.
This Table has a LONG column also.
Is this problem because of LONG column ?
So here there are 2 problems.
1) INSERTs are not using the space created by DELETE.
2) New INSERTs are taking much more space then expected ?
Let me have your suggestion
Thanks,

I think when you do DELETE it removes the data but
it's not releasing any used space and it's still
marked as used space. I think reorganizing would help
to compress and pack all block and relase any unused
space in blocks. Why do you think that? Deleting data will create space that can be reused by subsequent insert/ update operations. It is not going to release space back to the tablespace to make it available for inserts into other tables in the tablespace, but that's not generally an issue unless you are permanently decreasing the size of a table, which is pretty rare.
Would you also please explain about different about
LOB and LONG ? or point me to any link which explain
baout it.From the Oracle Concepts manual's section on the LONG data type
"Note:
Do not create tables with LONG columns. Use LOB columns (CLOB, NCLOB) instead. LONG columns are supported only for backward compatibility.
Oracle also recommends that you convert existing LONG columns to LOB columns. LOB columns are subject to far fewer restrictions than LONG columns. Further, LOB functionality is enhanced in every release, whereas LONG functionality has been static for several releases."
LONG was a very badly implemented solution to storing large amounts of data. LOBs are a much, much better designed solution-- you should always be using LOBs.
Justin

Similar Messages

  • The number of leaf_blocks does not decrease after delete

    hi All,
    this the example from Tom's book <<expert oracle database architecture>>, may anyone explain why the leaf_block oes not decrease to 523 after delete.
    db version is 10.2.0.3, SEGMENT SPACE MANAGEMENT MANUAL in the tablespace system
    sys@CS10G> drop table big_table purge;
    Table dropped.
    sys@CS10G> @big_table
    Table created.
    Table altered.
    Enter value for 1: 500000
    old   3:     l_rows number := &1;
    new   3:     l_rows number := 500000;
    Enter value for 1: 500000
    old   9:         where rownum <= &1;
    new   9:         where rownum <= 500000;
    PL/SQL procedure successfully completed.
    Table altered.
    PL/SQL procedure successfully completed.
      COUNT(*)
        500000
    sys@CS10G> declare
      2  l_freelist_blocks number;
      3  begin
      4  dbms_space.free_blocks
      5  (
      6  segment_owner => user,
      7  segment_name => 'BIG_TABLE_PK',
      8  segment_type => 'INDEX',
      9  freelist_group_id => 0,
    10  free_blks => l_freelist_blocks
    11  );
    12  dbms_output.put_line(' block on freelist = ' || l_freelist_blocks);
    13  end;
    14  /
    block on freelist = 0
    PL/SQL procedure successfully completed.
    sys@CS10G> select leaf_blocks from user_indexes where index_name = 'BIG_TABLE_PK';
    LEAF_BLOCKS
           1043
    sys@CS10G> delete  from big_table where id <= 250000;
    250000 rows deleted.
    sys@CS10G> commit;
    Commit complete.
    sys@CS10G> declare
      2  l_freelist_blocks number;
      3  begin
      4  dbms_space.free_blocks
      5  (
      6  segment_owner => user,
      7  segment_name => 'BIG_TABLE_PK',
      8  segment_type => 'INDEX',
      9  freelist_group_id => 0,
    10  free_blks => l_freelist_blocks
    11  );
    12  dbms_output.put_line(' block on freelist = ' || l_freelist_blocks);
    13  end;
    14  /
    block on freelist = 520
    PL/SQL procedure successfully completed.
    sys@CS10G>
    sys@CS10G> select leaf_blocks from user_indexes where index_name = 'BIG_TABLE_PK';
    LEAF_BLOCKS
           1043Edited by: Sidney Chen on Aug 15, 2009 3:10 PM

    Sidney Chen wrote:
    hi All,
    this the example from Tom's book <<expert oracle database architecture>>, may anyone explain why the leaf_block oes not decrease to 523 after delete.It's just the way it works - when a leaf block is emptied it is linked into the freelist, but also stays linked into the correct place in the index structure. It will be detached from the structure by a coalesce, or when Oracle needs to use a free block to handle new data.
    If you want a couple of reasonable guesses why:
    <ul>
    a) it probably makes read-consistency of indexes easier to deal with
    b) unlinking a block from the structure is expensive (you have to modify the blocks to the left, the right, and above) so Oracle takes the gamble that you're likely to re-insert data in the same block in the near future.
    </ul>
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan

  • Table space not reduce after delete in oracle 11G

    Hi Team,
    I have a DB 11.1.0.7 on unix.
    I have execute delete tables on tablespace, but this not reduce.
    Thanks

    935299 wrote:
    What segment space management type is defined for the tablespace in question?
    MANUAL
    Then you should check out the documentation some more.
    But even if you shrink the table segement what is that going to do for the data file size?
    I don't undertand you.
    ThanksYour thread is titled "Table space not reduce after delete in oracle 11G" which implies to me that you are interested in reducing the size of a tablespace (which really means reducing the size of the underlying datafile(s)).
    So, if you shrink the size of the sys.aud$ table, will that cause the datafile(s) to become smaller? Will it accomplish your goal? What else, if anything, needs to happen?

  • Percentage of used table space not reduce after deletion

    Hi..
    This is my query to delete data from database:-
    delete from $tb_data where to_char(partition_dt,'MON') = '$mm';
    The $tb_data and $mm is variable and the $tb_data will be read input table name (as example backup_nx160, backup_ngn and etc) and the $mm will be capture the input month.
    My question is why the percentage of used table space is not reduce after delete query was executed. Could somebody help me..
    Please help me..
    Thank you,
    Baharin

    baharin wrote:
    Hi..
    Is it the deleted space will be reused by the system ?Yes.
    .. How could i check the real free tablespace or real usage table space ?If you have gathered statistics on the schema recently, then sum (avg_row_len*num_rows) should give you the exact number of bytes that are being consumed - assuming all tables are in a single tablespace under consideration. You can subtract this value from sum (dba_data_files.bytes) figure for the tablespace, to know exact free space.

  • PO Release Strategy not changed after deletion of few line items with less

    Subject : PO Release Strategy not changed after deletion of few line items with less Total PO
    Dear Friends
    We have issue with PO Release strategy. We have created the PO. with release strategy  with multiple approvers.  After approval of first approval manager , one of the PO line item got deleted and Total PO value is reduced . The new PO value should have changed the PO release strategy. But it is not changed. Old release strategy only showing in the PO which is wrong. 
    Details of the PO
    PO no 4500000123 with 5 line items Total PO value : 100,000 USD Release strategy : AB
    PO line item 5 deleted. Now total PO value changed to 50,000 USD and the PO release strategy should have been changed to AA but not changed. Still showing PO release strategy AB only.
    Are there any OSS notes available to correct his bug.
    Please let me know if you need more details
    Thanks in Advance
    Thanks
    MVS

    Hi,
    release indicators  change it to 4.It may works. Please explore to all 6 indicators..........
    i.e,
    1-cannot be changed
    2-changable,no new determination of strategy
    3-changable,new release in case of strategy
    4-changable,new release in case of strategy or value change
    5-changable,new release if new strategy/outputted
    6-changable,new release if new strategy or value changed/ outputted......
    And check   Characteristic description and value in Classification  of Release strategies ........
    I hope this will help you. Thanking you.
    Regards,
    Venkat.

  • Rented movie does not play after download if not connected to the internet

    rented movie does not play after download if not connected to the internet

    Hello b noir.
    Thank you for your interest in solving my problem.
    What I did I opened iTune. I read the information about what does my computener need to play back a rented movie. My computer is okay to play back rental movies. So I went to the iTunes store, I searched for the movie I want to watch, i singned in into my Mac account and I bought the movie. The movie started to download to my computer, it took some time because I bought a HD version, but it never stop and after a couple of hours or little less the movie was in the Rented folder of my iTunes and also I checked to be sure that was in the movie folder. So, next day I open iTunes and click on the movie, it opens but I wait for five minuetes and never started to play back, so I tried several time and I looked for info in different internet forums but I couldn't find anything that help. So I posted the problem in this forum and also I called Apple. Apple contacted me and they let me to download the movie again. So I did it and now I will watch the movie later. Not sure if the movie will play back normally or if I am going to have the same problem. I'll keep you posted.
    Apple representative did not know why this happened.
    Thanks.

  • How to reduce the size of file after delete some datas?

    The size of the database file isn't smaller than ago after delete some data from database.
    How to reduce the size of file after delete some datas?

    Hi,
    What BDB release are you using? If it's one of the latest releases, then what you are looking for is the DB->compact() method:
    http://download.oracle.com/docs/cd/E17076_01/html/api_reference/C/dbcompact.html
    The DB->compact() method compacts Btree, Hash, and Recno access method databases, and optionally returns unused Btree, Hash or Recno database pages to the underlying filesystem. Please let me know if it helps.
    Bogdan Coman

  • Table size not reducing after delete

    The table size in dba_segments is not reducing after we delete the data from the table. How can i regain the space after deleting the data from a table.
    Regards,
    Natesh

    I think when you do DELETE it removes the data but
    it's not releasing any used space and it's still
    marked as used space. I think reorganizing would help
    to compress and pack all block and relase any unused
    space in blocks. Why do you think that? Deleting data will create space that can be reused by subsequent insert/ update operations. It is not going to release space back to the tablespace to make it available for inserts into other tables in the tablespace, but that's not generally an issue unless you are permanently decreasing the size of a table, which is pretty rare.
    Would you also please explain about different about
    LOB and LONG ? or point me to any link which explain
    baout it.From the Oracle Concepts manual's section on the LONG data type
    "Note:
    Do not create tables with LONG columns. Use LOB columns (CLOB, NCLOB) instead. LONG columns are supported only for backward compatibility.
    Oracle also recommends that you convert existing LONG columns to LOB columns. LOB columns are subject to far fewer restrictions than LONG columns. Further, LOB functionality is enhanced in every release, whereas LONG functionality has been static for several releases."
    LONG was a very badly implemented solution to storing large amounts of data. LOBs are a much, much better designed solution-- you should always be using LOBs.
    Justin

  • Table space not reduce after delete in oracle 10g

    Hi..
    Based on my system, i have found that my oracle table space did not reduce after the deletion query. Why ?.. Could somebody help me. As your info, I am using oracle 10g.
    Thank you,
    Baharin

    After Delete the table space will not be set free. high water mark will not be reset. to regain the space you need to recognize the objects from which you deleted the data. This can be done in many ways.
    1) Move the objects.
    Alter table temp move --> optionally tablespace clause can be used. After this you need to rebuild table indexes.
    2) With 10g table can be shrinked or reorganize to free the space.
    alter table mytable enable row movement;
    alter table mytable shrink space;
    3) Export/Import
    export the objects and drop and recreate with import.

  • Free disk space not changing after deleting (large) photos

    Hi,
    I wasn't sure whether to post this on the iPhoto board or on the MBA one, since it's not clear if it's a system-level issue or not. Anyway, I had about 30GB of free space on my 256GB MBA and the other day I deleted four or five albums of photos from my DSLR that I'd downloaded to my computer, after I made backups of them elsewhere. In total there were about 3,500 photos, roughly 24MB each on average. I made sure that after deleting them, I deleted my iPhoto Trash as well as the system Trash. Neverless, my level of free space hardly budged and if anything, it decreased slightly. I've read several threads saying to wait a while as sometimes the system takes a delay to adjust - that's fine.
    It's now almost five days later and the situation remains the same, if not worse. I ran DaisyDisk and aside from the usual large folders (my movies in iTunes etc, none of which had been added to since I deleted all those photos), the only one I couldn't recognise was this folder iLifeAssetManagement (9GB). I know that there are a few threads about this one, and most people seem to suggest you can clear this if you're happy to lose the content in your Photo Stream. The thing is, I've looked through some of the images in this folder and I'm quite positive that a number of them are from the DSLR albums (there are CR2 files, which I believe is Canon's exclusive RAW format). Some of the others are definitely from my iCloud Photo stream. I'm more than glad to lose all the DSLR ones, though I'd like to keep the iCloud ones and I don't really want to have to sort through 5,000-odd files. I'm positive that this folder is related to why I never gained that free space.
    Has anybody else had issues like this and any suggestions for clearing this folder of all the files I already meant to delete, whilst keeping the others? Or have you had issues relating to this? Any help much appreciated.
    Thanks.

    If you've installed third-party software called "Disk Drill," I suggest you remove it according to the developer'sinstructions. If you prefer to keep the software, refer to the developer for support. Otherwise, see below.
    You may notice a difference in available space statistics between Disk Utility, Finder, and Get Info inspectors. This is expected and can be safely ignored. The Finder displays the available space on the disk without accounting for the local snapshots, because local snapshots will surrender their disk space if needed.
    About Time Machine's "local snapshots" on portable Macs

  • PSE9 Organizer will not open after deleting LTR3

    After deleting my registered LTR3 today and am  now unable to open the previously installed and registered PSE9 Organizer program. PSE9 does open to the desktop "Welcome to PSE9" page. The EDIT program will open, the ORGANIZER will not. Howerer, the Organizer does appear in the lower taskbar and will open to a thumbnail but not to an open program for use. Help anyone?
    Thanx, Stv.

    Bypass the Unwelcome Screen by creating Desktop shortcuts for the Organizer and the Editor, and restarting your computer.
    The Editor's executable is:
    "C:\Program Files (x86)\Adobe\Photoshop Elements 10\PhotoshopElementsEditor.exe"
    The Organizer's executable is:
    "C:\Program Files (x86)\Adobe\Elements 10 Organizer\PhotoshopElementsOrganizer.exe"
    The Unwelcome Screen leaves a zombie process running which prevents the actual program from launching again.
    Ken

  • Disk Space not restored after deleting iphone backup

    Hi,
    Today while restoring my iphone i realised that itunes had made multiple copies of ~3gb of my iphone data. Since my iphone was restored successfully I decided to remove all the backups and make a fresh new backup. After deleting the multiple backups I found that my available disk space had not increased at all. I even went to ~/Library/Application Support/MobileSync/Backup and ther was nothing in there. So I went ahead and made a new backup which consumed additional ~3gb. And just to test if it was only itunes that was doing this I deleted my photos from iphoto ~5gb and even that did not give me back my 5gb. I went to trash and I dont have anything there.
    So, here I am confused as to where my deleted stuff is going to because it does not seem like its getting deleted.
    Anything that i can do get my space back?
    Thanks,
    Yogi

    Local snapshots are hidden copies of files that have been changed or deleted in between Time Machine snapshots. They are stored in free space that would otherwise be unused, and therefore wasted. The space occupied by the snapshots is managed automatically. When free space starts to run low, the snapshots are deleted. The Finder reports the space occupied by local snapshots as "Available," which it is.
    If there are unwanted changes to your files in between Time Machine snapshots — which may be far apart when you're moving around with a portable computer — you may be able to revert the changes from a local snapshot. If you disable local snapshots, you lose that protection, and you gain nothing. There is no offsetting benefit whatsoever; merely added risk.
    Empty storage space is simply wasted. You paid for it to be there, but it's doing you no good at all. Local snapshots put it to use.
    Very rarely, if ever, you might need to delete the local snapshot store in order to add a large amount of data all at once. If that need ever arises, which it probably won't, all you have to do is turn Time Machine OFF in its preference pane, and then turn it back ON immediately.
    You should ignore the bad advice that circulates on this site to disable local snapshots permanently by running a shell command. If you ran such a command, ask for instructions on how to reverse it.

  • Iphone will not sync after deletion of Itunes

    I had to recreate my Itunes folder because it was "damaged", not thinking I deleted what I created and now Itunes will not recognize my phone.  I am not sure what to to do....I have already reinstalled Itunes again.  Any suggestions will be appreciated.

    I had to recreate my Itunes folder because it was "damaged", not thinking I deleted what I created and now Itunes will not recognize my phone.  I am not sure what to to do....I have already reinstalled Itunes again.  Any suggestions will be appreciated.

  • Jar file is not working after deleting all packages from the same directory

    hello
    i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
    Please tell me what may be the reason???
    thanks in advanced

    hello
    i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
    Please tell me what may be the reason???
    thanks in advanced

  • IdeaPad S205: BIOS/EFI menu not accessible after adding a new boot entry using the bcfg command

    Hi community,
    I just got a new S205 and wanted to install Win7 and archlinux in dual boot (GPT formatted SSD).
    Win7 installation worked like a charm. Archlinux worked well aswell, unfortunately i couldn't make a boot entry following this guide: https://wiki.archlinux.org/index.php/Beginners%27_Guide#EFISTUB
    So i had to manually create the boot entry using bcfg command in an efi shell:
    https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface#bcfg
    The first attempt (I double checked that i got the right filesystem [fs0] and so on) failed and resulted in an automatic reboot. After this I immediately reentered the efi shell and tried again. This time I could create the boot entry.
    Now if I reboot everything seems fine (I can dual boot Win and arch) BUT I cannot access BIOS/EFI menu via F2 anymore. It seems like it just does not exist anymore. How do I get it back? Should I just flash over with the original EFI from the Lenovo download page? I could theoretically do that (I can still change boot order using my arch live medium), but i could not reset EFI prior to flashing... which is always recommended to do.
    So I am - again - pretty stuck with this EFI. I hope you can help and tell me what to do.
    This EFI-Implementation on the S205 must be the worst piece of "engineering" ever.
    Nothing works the way it is intended to... I would not dare to wash my hands clean off any faults, but ADDING a boot entry resulting in a not accessible BIOS/EFI menu... there's just something wrong.

    At least I now know what the problem is:
    It seems like the S205 can only keep 7 boot entries in NVRAM (Can anybody concern?).
    As I already have 7 boot entries:
    adding a new entry using efibootmgr tool does not work (fails without error) and gummiboot doesn't work either. Nevertheless, adding a boot entry (for rEFInd) from within the UEFI shell works, but seems to result in deleting "Boot0000" aka Setup which then breaks my EFI. Breaking meaning that I cannot access it anymore.
    I can however (and did so twice yesterday) flash the original EFI from within Windows and thus gain access to the EFI menu again. Nevertheless this resets my boot entries again so the refind (or gummiboot) bootloader gets deleted again and only Win7 is bootable.
    Now what would be the smartest way to dual boot this system? Which of the boot entries is safe to delete so i could install refind/gummiboot instead? For instance, I don't know where USB FDD and USB CD come from. Can I delete them? Or won't I be able to boot from external CD-ROM or USB drive anymore if I delete them?
    Or would it be best to delete the Win7 bootloader and try to have refind/gummiboot boot it? And will they at all be able to still find the Win7 boot files once I deleted Win7's boot entry? When I install refind as bootloader and manually add an boot entry for it using the bcfg boot add command it is able to load Windows7. But will this still be possible if I delete the Win7 boot entry? It would most likely be possible - I assume - if the Win7 boot files (on the EFI system partition) were still there even after deleting the boot entry. Can someone tell me how deleting a boot entry exactly works and which files get or don't get deleted?
    Best regards.

Maybe you are looking for

  • HELp! Best laptop for photo editing.. or would a PC be better?

    I'm looking to buy a new computer. Would love for it to be a laptop but a PC would be ok too.. Any information on which is best for photo editing.. hopefully a large volume of photo editing.. which ones already have photo programs installed on them?

  • Calling LV created DLL from LV

    Howdy- I'm trying to call a LV DLL from within LV (seperate project).  Once the DLL has been comppiled I'm using the Import Shared Library to create the node. However when I try this I get an error message with the import that appears to have trouble

  • Set_lk_max_lockers with perl

    Hi all: How can i change the default value in DbEnv with perl?, i have a system running with apache2 ando mod_perl2, in certain point i get the error: "Lock table is out of available locker entries". The documentation says that can be fixed by changi

  • How do i move a book that i downloaded from itunes to my kindle ap on my macbook air

    how do I move a downloaded book from itunes into my kindle ap

  • Boot camp drivers, where can I find them?

    Hi there, I have recently bootcamped my iMac 5,2 with OSX 10.7, and it being a little older of a mac, I have been having trouble finding; Sound drivers. iSight drivers (internal) ir receiver drives (dont care about this one so much) I am using window