Space reusage after deletion in compressed table

Hi,
Some sources tell, that free space after DELETE in compressed table is not reused.
For example, this http://www.trivadis.com/uploads/tx_cabagdownloadarea/table_compression2_0411EN.pdf
Is it true?
Unfortunatly I cannot reproduce it.

Unfortunatly the question is still open.
In Oracle 9i space, freed after DELETE in compressed block, was not reused in subsequent inserts.
Isn't it?
I saw many evidences from other people. One link I gave above.
But in Oracle 10g I see another figures. After delete rows in compressed blocks, and subsequent insert into that block, block defragmented!
Please, if who know any documentation about change in this behavior, please post links.
p.s.
in 10g:
1. CTAS compress. Block is full.
2. after, deleted every 4 from 5 rows.
avsp=0x3b
tosp=0x99e
0x24:pri[0]     offs=0xeb0
0x26:pri[1]     offs=0xea8 -- deleted
0x28:pri[2]     offs=0xea0 -- deleted
0x2a:pri[3]     offs=0xe98 -- deleted
0x2c:pri[4]     offs=0xe90 -- deleted
0x2e:pri[5]     offs=0xe88 -- live
0x30:pri[6]     offs=0xe80 -- deleted
0x32:pri[7]     offs=0xe78 -- deleted
0x34:pri[8]     offs=0xe70 -- deleted
0x36:pri[9]     offs=0xe68 -- deleted
0x38:pri[10]     offs=0xe60 -- live
0x3a:pri[11]     offs=0xe58 -- deleted
0x3c:pri[12]     offs=0xe50 -- deleted
0x3e:pri[13]     offs=0xe48 -- deleted
0x40:pri[14]     offs=0xe40 -- deleted
0x42:pri[15]     offs=0xe38  -- live
0x44:pri[16]     offs=0xe30 -- deleted
0x46:pri[17]     offs=0xe28 -- deleted
0x48:pri[18]     offs=0xe20 -- deleted
0x4a:pri[19]     offs=0xe18 -- deleted
0x4c:pri[20]     offs=0xe10 -- live
...3. insert into table t select from ... where rownum < 1000;
Inserted rows were inserted in a several blocks. Total number of not empty blocks was not changed. Chains did not occure.
Block above looks as follow:
avsp=0x7d
tosp=0x7d
0x24:pri[0]     offs=0xeb0
0x26:pri[1]     offs=0x776 - new
0x28:pri[2]     offs=0x84b - new
0x2a:pri[3]     offs=0x920 - new
0x2c:pri[4]     offs=0x9f5 - new
0x2e:pri[5]     offs=0xea8 - old
0x30:pri[6]     offs=0xaca - new
0x32:pri[7]     offs=0xb9f - new
0x34:pri[8]     offs=0x34d - new
0x36:pri[9]     offs=0x422 - new
0x38:pri[10]     offs=0xea0 - old
0x3a:pri[11]     offs=0x4f7 - new
0x3c:pri[12]     offs=0x5cc - new
0x3e:pri[13]     offs=0x6a1 - new
0x40:pri[14]     sfll=16  
0x42:pri[15]     offs=0xe98 - old
0x44:pri[16]     sfll=17
0x46:pri[17]     sfll=18
0x48:pri[18]     sfll=19
0x4a:pri[19]     sfll=21
0x4c:pri[20]     offs=0xe90 -- old
0x4e:pri[21]     sfll=22
0x50:pri[22]     sfll=23
0x52:pri[23]     sfll=24
0x54:pri[24]     sfll=26As we see, that old rows were defragmented, and repacked, and moved to the bottom of block.
New rows (inserted after compressing of table) fill remaining space.
So, deleted space was reused.

Similar Messages

  • I deleted pictures from my camera roll using my computer since i didn't have enough space to back up my ipad in my 5 gigs of space. but after deleting a huge amount of pictures. the size of the camera roll is still the same as when i started.

    I deleted pictures from my camera roll using my computer since i didn't have enough space to back up my ipad in my 5 gigs of space. but after deleting a huge amount of pictures. the size of the camera roll is still the same as when i started. some of these same pictures are still on my photostream. I deleted some of them -this time from the ipad itself- but the size of the camera roll remains the same. should i have not remeoved them using the computer for the camera roll.

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • Hard Disk space available after deleting lots of pictures

    I copied 40gb of pictures on my MBP to review and then selected them all and sent them to the Trash.
    After doing this, my available HD space did not reflect the deletion of the photos.
    What is the best way to reclaim this space?

    Can you see me "Smacking my forehead with my hand"?
    Problem solved..... Your a Genius
    Thanks,
    Larry

  • How to reduce table size after deleting data in table

    In one of the environment, we have 300 GB tabe which contains 50 columns. some of the columns are large object columns. This table contains data for the past one year and every month it is growing by 40 gb data. Due to this we have space issues. we would like to reduce the table size by keeping only recent two months data. What are the posiible ways to reduce the table size by keeping only 2 months data. Database version 10.2.04 on rhel 4.

    kumar wrote:
    Finally we dont have down time to do by exp/imp method.You have two problems to address:
    <ul>
    How you get from where you are now to where you want to be
    Figuring out what you want to do when you get there so that you can stay there.
    </ul>
    Technically a simple strategy to "delete all data more than 64 days old" could be perfect - once you've got your table (and lob segments) down to the correct size for two months of data. If you've got the licencing and can use local indexing it might be even better to use (for example) daily partitioning by date.
    To GET to the 2-month data set you need to do something big and nasty - this will probably give you the choice between blocking access for a while and getting the job done relatively quickly (e.g. CTAS) or leaving the system run slowly for a relatively long time while generating huge amounts of redo. (e.g. delete 10 months of data, then shrink / compact). You also have a choice between using NO extra space to get the job done (shrink/compact) or doing something which effectively copies the last two months of data.
    Think about the side effects you're prepared to run with, then we can tell you which options might be most appropriate.
    Regards
    Jonathan Lewis

  • Unable to claim 100G Free Space Partition after Deleting Yosemite Beta

    When I was running Mavericks I had a single large 500G volume (no partitions). The I installed Yosemite Beta on a 100G partition. After Yosemite was released it reinstalled over the Mavericks on Partition 1. When I tried to delete Yosemite Beta partition to reclaim the space to evert to original form - I have been stuck with a 100G Free Space partition that I can do nothing with  - neither make it into a usable volume to store data nor be able to merge it into the original partition. I am hitting up against the space restrictions dn desperate now - I have see Loner T do an awesome job with his advice on this forum for similar issues. Very grateful for help. I also purchase iPartition but it was a waste as it says that it does not have write access to the disk.

    Here are my
    Diskutil list
    Dads-Mac:~ sunkap$ diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *500.3 GB   disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:                  Apple_HFS                         399.4 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Mac                    *399.4 GB   disk1
                                     Logical Volume on disk0s2
                                     D30FABC9-09A2-47B8-B008-7AE0CBB42164
                                     Unencrypted
    Dads-Mac:~ sunkap$

  • Working in MUD: after deleting column whole table gets lost

    Good morning community,
    we do have a problem with the obiee admin tool.
    we just migrated to version 11.1.1.6.6.
    Now a colleague of mine worked with the MUD. He checked out the RPD-file and wanted to delete a column from a table within the presentation layer. Then he checked in this change again. He Uploaded the file to the server and everything is working fine.
    Now the problem:
    When he checked it out again, he saw that the full table was "deleted", but not only in the presentation layer, also in the business modell and the physical layer.
    He opened the RPD file locally and there everything was okay.
    Our first idea that the admin tool lost the link of these tables to the project couldn't be confirmed.
    So we are asking you :-)
    Maybe someone of you had this problem too and can explain how he solved it.
    Thank you and have nice day,
    Sven

    Hi Sven,
    Then he checked in this change again. He Uploaded the file to the server and everything is working fine.It should not be the case please confirm below
    1. Uploaded means ? directly moved to MUD server instead of doing checking or from MUD to system where BI installed (NQSconfig.ini) ?
    2. I'm sure he deleted the table instead of column (track it from MUD History in file option -->)
    3. Link will break when (Tables in BMM & Physical ) a fact table is deleted so automatically associated dims will go off
    4. Get the latest version . XXX (from MUD server) then change it to .rpd and deploy to get rid of issue
    thanks,
    Saichand

  • Memory released after delete in internal tables ?

    hi friends,
    i have one quick question about internal tables and memory consumption.
    if i have an internal table of say 100 entries and that does occupy memory for 100 entries. now if i delete 20 lines of this table...is the memory occupied by those 20 also released/freed or will the table size be 100 also and just the 20 deleted lines empty ?

    Hi!
    If you defined you table with the OCCURS 100 statement, then it will allocate always at least 100 records.
    The other tables will occupy only the memory size of their actual record length * record number bytes (plus some header information).
    Use REFRESH / FREE statement to delete the contents of unneccessary internal tables.
    Regards
    Tamá

  • Hard drive space unaffected after deleting huge user

    I deleted a user, I selected the option to have their home folder removed, and apparently the content is still on my computer. My account uses 75 GB of data, of the 250 GB drive, yet disk utility says I only have 90 GB of free space. I am using Yosemite on a 2013 macbook pro retina. I tried to find the home folder of the user, and could not find it under Computer-->Users. Any suggestions? Thanks

    Those are "expendable" snapshots created when your Time Machine drive is unavailable. If you connect your Time Machine drive and let it work they will be removed automatically.
    If you run low on space before Time Machine can run again, they will begin to be discarded to give you the space you need.

  • Table activation problem after deleting ariw from table

    Hi,
    I have inserted a new field(xxxx) into custom table and activated it..
    But ,when i tried to enter values for this new field in se16,this  field doesnt exist there.But in se11 i was able to view..
    So i deleted that field from tht table and inserted again,,
    Now iam geting message that
    xxxx field was deleted
    Alter table is not possible..
    Diagnosis shows that
    The structure of the table changed at field level. This change requires a conversion of the table. This situation can occur for example if the data type or field length of the domain upon which the field is based was changed. A conversion is also generally necessary if the key of the table changed.
    Procedure
    Convert the table using the Database Utility (SE14).
    Can you people let me know how i can cahge the table ..
    Regards
    parnith..

    Hi Parnith,
    Suppose you have entered a new field (or deleted a field) in your table in SE11(and table already contains data).
    Now, your next step should be activating that table first.
    For that :
    1. Just click on save.
    2. Goto Utilities -> Database Utility.
        Click on that.
    3. Click on Activate and Adjust database.
    Now you will see your field added to your table.
    Now you can simply Goto contents of the table and modify the records and fill the newly added field for each record.
    Hope it helps.
    Regards
    Hemant Khemani
    Edited by: Hemant Khemani on Apr 25, 2008 10:09 AM

  • How to reclaim the space after delete

    Hi All,
    Today we deleted large number of rows from one table, but we didn't get free space after that. So for testing purpose, I have created one test tablespace with 5mb size .Created a table and inserted n number of rows in that table and made the tablespace full.I checked in dba_segments(5mb) and dba_free_space tables.It shows perfectly.After that I deleted all the records and try to create a simple table,but it returns (ORA-01658: unable to create INITIAL extent for segment).I read some time back in tom's forum that delete willn't reclaim the space ,instead it will go to freelist of table..Is there any way to reclaim the space?(after delete)
    and also I used to see the tablesize by using dba_segments table.but now it shows 5mb of size for the empty table.Is there any query to get the exact table size?Please help me to understand the concept.
    Thanks,Jvel

    880401 wrote:
    Hi All,
    Today we deleted large number of rows from one table, but we didn't get free space after that. So for testing purpose, I have created one test tablespace with 5mb size .Created a table and inserted n number of rows in that table and made the tablespace full.I checked in dba_segments(5mb) and dba_free_space tables.It shows perfectly.After that I deleted all the records and try to create a simple table,but it returns (ORA-01658: unable to create INITIAL extent for segment).I read some time back in tom's forum that delete willn't reclaim the space ,instead it will go to freelist of table..Is there any way to reclaim the space?(after delete)
    and also I used to see the tablesize by using dba_segments table.but now it shows 5mb of size for the empty table.Is there any query to get the exact table size?Please help me to understand the concept.
    Thanks,JvelDELETE simply deletes the specified rows. The blocks/extetents that were allocated to hold those rows remain allocated. The theory is that if the table once needed sufficient blocks/extents to hold 'x' rows, it may need so again at some time in the future. Allocating and de-allocating extents is a pretty expensive operation, so oracle is not going to waste time and resources constantly doing that just because you delete rows, which is a perfectly normal DML operation. Unless you don't expect that table to grow again, I'd not waste my time trying to reclaim the space.

  • 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?

  • Release of space after delete/truncate table

    Hello,
    How does release of space after delete/truncate table works? Is the space used before deletion released once delete is complete or not? Will I see the space occupied by deleted table as free in dba_segments or will I need to reorganize the table (drop and recreate again?). Reason why I am asking is that I can see table with 0 rows, but in dba_segment I can see it is occupying few gigabytes....
    Thank you

    Here is a little illustration for you;
    SQL> conn ogan/password
    Connected.
    SQL> create table ogan_deneme as select * from all_objects;
    Table created.
    SQL> select count(*) from ogan_deneme;
      COUNT(*)
        228470
    SQL> set line 1000
    SQL> set pagesize 1000
    SQL> select * from dba_segments where owner='OGAN';
    OWNER    SEGMENT_NAME        PARTITION_NAME           SEGMENT_TYPE       TABLESPACE_NAME                HEADER_FILE HEADER_BLOCK      BYTES     BLOCKS    EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE  FREELISTS FREELIST_GROUPS RELATIVE_FNO BUFFER_
    OGAN      OGAN_DENEME          TABLE              SYSTEM                                 854       319981   *30408704*       *1856*         *44*          65536                       1  2147483645                       1               1          854 DEFAULT
    SQL> truncate table ogan_deneme;
    Table truncated.
    SQL> select * from dba_segments where owner='OGAN';
    OWNER    SEGMENT_NAME        PARTITION_NAME           SEGMENT_TYPE       TABLESPACE_NAME                HEADER_FILE HEADER_BLOCK      BYTES     BLOCKS    EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE  FREELISTS FREELIST_GROUPS RELATIVE_FNO BUFFER_
    OGAN      OGAN_DENEME           TABLE              SYSTEM                                 854       319981      *65536*          *4*          *1*          65536                       1  2147483645                       1               1          854 DEFAULT
    SQL>Hope it Helps,
    Ogan

  • 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.

  • Table space not reused after deletion ?

    Hi..
    I am running on oracle 10g. Based on my system, i have created one query to delete old data from the table on daily basis. Below the sample query :-
    delete from SNP_EXP_TXT
    where I_TXT in (select I_TXT_SESS_MESS from SNP_SESSION
    where SESS_END < trunc(SYSDATE - 1));
    I have check on the database and all the old data are deleted from the table. But, I am confused why the table space keep increasing even the old data has been deleted.
    I am assume that the problem because of the table space cannot be reused after the deletion. Could somebody help me how could i verified that and how could i ensure that all the table space can be reused ?
    Thank you,
    Baharin

    Is there only one table, or are there other objects in the tablespace ? Are you sure this is the table that is growing ?
    select segment_name, segment_type, bytes from dba_segments where tablespace = 'XXX';
    It will also depend on how the data is inserted ? If you insert append, then it will grow the table.

  • ASM space increased after compression of tables

    Hi all,
    I will have compressed some my huge tables in dataware house database , tables size are reduce  after compression, while on ASM space has been increased.
    datbasebase is 10.2.0.4 (64 bit) and OS is AIX 5.3 (64 bit)

    I have checked the tablespaces of compressed table now. And it shows huge free space:
    Tablespace size in GB
        Free space in GB
    658
    513
    682
    546
    958
    767
    686
    551

Maybe you are looking for

  • How do i find the music i sync from my ipad to imac

    how do i find the music i sync from my ipad to imac

  • Where the table is stored.,temp tablespace is not freed .

    I have created one table in oracle 8.1.7 containing 500 mega records . my question is 1. where the table is stored as the size of users.dbf is just 20 mb and is used upto only 2 MB. so it must not be there. 2. the size of tools.dbf in tools tablespce

  • How to use object collection with linked objects

    <p>Hi,</p><p>I'm using VS2005 Crystal reports in a c# client app (server has database, but client does not have!). So the use of the objects transfered to the client seemed to me a good solution for showing reports on the client. The objects mostly l

  • APP EDIT PROPOSAL ERROR

    HI gurus, In F110 When i click Edit proposal the system showing the follwing error Vendor 400011 STFM Is contained in proposal 13.09.2009 PAID ; no editing End of log job finished when i can modify proposal,  when i create new proposal also it will n

  • Mouse wheel capture

    Why is it that some Flash plug-ins eat up the mouse wheel events and some don't. By eat it up I mean taking the event from the browser and processing it itself. Example of plug-ins that do eat up the mouse wheel: http://www.mediacollege.com/flash/med