What is the advantage of the high water line?

Hello

When I remove the enormous data in table then the high water mark always on the same position.

1. then deleted block still on the data file then why? I understand that these blocks is not used and it is empty so when he used?

2-why oracle do not recover these block when automatically delete us the records? and we must do to help shrink the command?

3 - Why before retractable data we must allow movement of line? What is the meaning of movement of the line. and why it is disable by default, no impact on performance so afford him?

4. i try to reduce and remove the space allocation for some gigantic data, but still tablespace free space is always the same, does that mean?

Thank you

(1) the deleted data are always in the data file, because it is the least expensive way to implement a delete.  It is much faster to just things like free brand rather than incur the cost of, say, block formatting when the last line is deleted.  Most of the time, you remove one or two lines - it would be unwise to undergo as a load whenever you delete a few lines.  Free blocks will be used during the insertion of subsequent data (or during subsequent updates increase the size of existing lines and have to migrate to the new blocks).

(2) because the shrinkage of the segment is expensive.  If you did that every time that you deleted a single line, deletions would be orders of magnitude more expensive than they are today.

(3) because the shrinkage of the segment means that you physically move potentially every row in the database.  From a functional point of view, this amounts to potentially remove all the ranks of the block in which it is and moving it to a different physical location at the 'head' of the segment so that all free space is at the "tail" of the segment and can be released.  Of course, it is unlikely that all ranks have actually be removed and reinserted.  But a significant fraction of them.  Among other things, this will change ROWID line that would break any code that was waiting for the ROWID remains constant, this is why you need to activate the movement of the line.

(4) you must show us exactly what you are doing (the exact series of commands that you run, how you measure the free space, etc.).  If you just insert roughly the same amount of data in the table that you deleted over time, shrinkage of the segment is unlikely to be useful.  From the point of view of application performance, for example, you only care about high tide if you perform a full scan of the table.  But it is rarely wise to write code that is to do a full scan of a table that is large enough so that you can delete a 'huge' of data in the table number.

Justin

Tags: Database

Similar Questions

  • The high water in the data file

    What is the concept of the high-water line in the data files? What is its use?

    >
    What is the concept of the high-water line in the data files? What is its use?
    >
    High waters indicates the end of the space used in a segment. which means no space beyond the mark has been used.

    The doc of database concepts
    http://docs.Oracle.com/CD/B28359_01/server.111/b28318/logical.htm
    >
    High tide is the boundary between the old and new space within a segment.
    >

    Two main uses are the direct path loads and loads Parallels. Each of these adds to the data above the high water mark of a segment and then moves the mark at the end of the data that have been added. These loads are faster, because the freelists and extensions and the blocks being loaded must not be checked for existing data.

    DBA Guide
    http://docs.Oracle.com/CD/E11882_01/server.112/e17120/tables004.htm
    >
    All INSERT operations of direct-path series of accesses, as well as parallel direct-path INSERT into tables partitioned, insert data above the high waters of the segment line hit.
    >
    Each of these documents has additional information on the processes used.

  • What is the higher for Mac OS which is compatible with the Creative Suite CS5 Master programs?

    What is the higher for Mac OS which is compatible with the Creative Suite CS5 Master programs? I use OS 10.6.8.

    I think you're at max that he has been tested with:

    Adobe - Creative Suite 5 Master Collection: System requirements

    Later versions may or may not work.

  • The high water table and data files

    Hi all

    I just have a small question regarding high Tables in correlationi with the HWM to a data file. I have a data file that I would like to resize. At this point, I can reduce the data file of 100 GB to 70 GB which is the HWM of the data file. However, I know that I can compress probably some tables in the tablespace and assuming that these tables have extensions the datafile, will be running 'alter table shrink space,' also decrease the HWM of the data file? Or is there no correlation between the 2 HWM?

    Thank you.

    Note You can use alter table move and change reconstructions of index to move generally the scope used to the logical beginning of the data files. How good Oracle repacks extensions dependent measure used tablespace management and the size and order of executed moves/reconstruction. Retractable table option allocates no new extensions so it won't move that objects forward in the file.

    But again, there is very little point in trying to pack each scope to the front of the file if you cause Oracle immediately need to expand the file to store the new allowance claims. Existing free extensions in the logical HWM of the file will be reused when possible with managed tablespaces locally packaging 100% is not necessary.

    If the dictionary is indeed this reuse is more variable, but based on your previous posts, there is no need to worry about this situation.

    HTH - Mark D Powell.

  • What is the higher Mac OS x update, my computer will accept

    Hello everyone. I wanted to update my MacOSX software but I don't know which is the most recent upgrade and how which software I top the. I have to download 10.9 to edit my images of the gopro on my desk. I really don't want to upgrade, but it seems some staggering problems with Final Cut Pro. Anyway just curious if anyone can be useful. Thank you all and Merry Christmas!

    VRE

    The maximum operating system for a 3.2 GHz Quad Core Mac Pro is currently El Capitan; for other Mac Pro models, check if the model identifier is at least MacPro3, 1.

    (137195)

  • AnyConnect VPN - how to find the high-water mark?

    I am looking for a way to determine the maximum number of simultaneous connection experienced on our ASA 55xx with AnyConnect SSL VPN clients. The IPSec protocol seems to have had such a statistic, but I can't find the equivalent for SSL. If anyone has an idea here, I would be grateful. Thanks in advance.

    PS > ASA running OS v8.2 (5) for the moment.

    MM

    ---

    'show the vpn-sessiondb summary' should show you the maximum simultaneous connection to the SSL/AnyConnect client.

    Here is the command for your reference:

    http://www.Cisco.com/en/us/docs/security/ASA/asa82/command/reference/S7.html#wp1307110

    Hope that helps.

  • What is the best wat to save structure of web site and its content on a cd

    can anyone help me with an easy way to save web content and structure on a cd please

    If you want just a back up in case you do something stupid, just copy your local folder in another or burn it straight to CD using your normal CD burning software.

  • What are the double wavy lines in my status bar?

    I recently had my phone ZTE C open way. And I'm sure that, out of nowhere, these double doodles appeared on my status bar. I browsed my settings and rebooted and it is stickine. What it means?

    AHA, the icon I am referring is on the left (except for notifications) on the status bar here

    Thank you very kindly.

    I think it's the icon of "vibrate only".

  • What is the problem with line 27 in my PHP?

    OK, I tried the new PHP code and I get an error of syntax on line 27.  I don't know this is probrably something I'm missing here.

    Picture 3.png

    Here is my real code in the form of HTML mail.

    < p > < / p >

    < p > < / p >

    < p > < br >

    < /p >

    < form id = "form2" name = "form2" method = "post" action = "contactformprocess.php" >

    < table width = "1166" height = "167" border = "0" align = "center" cellpadding = "4" cellspacing = "0" >

    < b >

    < td width = "211" align = "right" > < label for 'name' = > name: < / label > < table >

    < td width = "933" > < input name = "name" type = 'text' id = 'name' size = "35" maxlength = "80" / > < table >

    < /tr >

    < b >

    < td align = "right" > < label for = "email2" > Email: < / label > < table >

    < td > < input name = "email" type = "text" id = "email2" size = "35" maxlength = "90" / > < table >

    < /tr >

    < b >

    < td height = "25" align = "right" > < label for = 'phone' > phone: < / label > < table >

    < td > < input name = "phone" type = "text" id = 'phone' size = "35" maxlength = "12" / > < table >

    < /tr >

    < b >

    < td height = "22" align = "right" > < City of label for 'service' = >: < / label > < table >

    < td > < input name = "City" type = "text" id = 'city' size = "35" maxlength = "35" / > < table >

    < /tr >

    < b >

    < td height = "4" align = "right" > status: < table >

    < td > < input name = "State" type = "text" id = 'State' size = "35" maxlength = "50" / > < table >

    < /tr >

    < b >

    < td height = "5" align = "right" > < label for 'comments' = > comments: < / label > < table >

    < td > < textarea name = "comments" id = cols 'Comments' = '33' rows = "5" > < / textarea > < table >

    < /tr >

    < b >

    < td height = "13" align = "right" > < label for "clear" = > < / label > < table >

    < td align = "left" > < label = "submit" > < / label >

    < input type = "submit" name = "submit" id = "submit" value = "Submit" / > < table >

    < /tr >

    < b >

    < td > < table >

    < td align = "right" > < table >

    < /tr >

    < /table >

    < / make >

    < p > < /p > < table >

    Ask the host of why the mail() function is rejected. I don't see anything wrong with the code.

  • What are the causes extra line

    Can someone explain why I get an extra line in the following sql results

    Select 'test1 ' | Chr (10) | "' test1 ' double
    Union select 'test2 '. Chr (10) | 'test2' from dual

    results:
    _ 'TEST1 ' | CHR (10) | ' TEST1'_
    Test1
    Test1
    * <-source this blank line? *
    test2
    test2

    expected results:
    _ 'TEST1 ' | CHR (10) | ' TEST1'_
    Test1
    Test1
    test2
    test2

    is any way to get rid of blank line?

    Thank you
    Wayne

    Hello

    I guess you want to come in from SQL * more?

    You will need set the record separator:

    SET RECSEP OFF
    

    By default, a single line of the default record delimiter (a white) came out to where the record contains a wrapped line.

    Published by: odie_63 on 19 July. 2010 20:14

  • What is the USED different to DEALLOCATE - datafile resize operation?

    Hello world

    I have a question for DESALLOUER UNUSED.

    What are the different command DEALLOCATE UNUSED and datafile resize operation?

    Thank you.

    Free unused space clause is used to explicitly deallocate unused space to 'end' of a segment and makes this available space for other segments within the storage space. Internally, Oracle releases beginning of unused space since the end of the (space) objects and moving downwards, towards the beginning of the object, continue down until it reaches the high water mark (HWM).

    DataFile resize add / subtracted bytes of physical operating system of the data file.

    Soon :)
    Renjith Malet

  • What is the meaning of the symbol pipe?

    What does the symbol of line in this code? The pipe means generally "or", but this doesn't seem to be what he does here.

    var colors: Array = new Array (FlxG.BLUE, (FlxG.BLUE |)) FlxG.GREEN), FlxG.GREEN, (FlxG.GREEN |) FlxG.RED), FlxG.RED);

    for (var i: uint = 0; i < particles; i ++)

    {

    particle = new FlxParticle();

    particle.makeGraphic (32,32,colors [int (FlxG.random () * colors.length)]);

    Particle.Exists = false;

    emitter. Add (Particle);

    }

    the OR logical operator is dual pipes |

    Tube is the bitwise OR:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/operators.html#bitwise _ OR

  • Doubt on High Water Mark

    Oracle 9i

    The high water to _TABLES s/n

    The data dictionary keeps track of blocks that have been populated with lines. The high water is used as end marker during a full scan of the table.

    High waters are stored in DBA_TABLES. BLOCKS

    My doubt is

    When the full Table Scan is performed

    When the table contains fewer blocks DB_FILE_MULTI_BLOCK_READ_COUNT under high water, which can be read in a single I/O call, regardless of the fraction of the accessed tables or current index

    Dount 1
    which means according to my understanding, correct my if I'm wrong

    That a table contains blocks and if the number of rows in the blocks is lower than statistics in DB_FILE_MULTI_BLOCK_READ the optimizer based on CSSTidy then performs a full table scan to retrieve the data in a single I/O transaction

    Question 2
    If a table TabA contains 3 blocks B1(A1,B1,C1), B2(A1,B2,C2), B3(A1,B3,C3).

    Now if the data A1, B1, C1, A2, B2, C2 are deleted then the blocks B1, B2 are deleted or they will be empty

    Question 3
    When the last full scan of the table is performed on the Table in TabA, the high tide is set at top of B1.
    (According to my understanding high water mark is set by the last full table on a table scan)

    Then when data are removed i.e. edata in B1, B2 deleted then the high water mark is reset to B3 or is it still top of B1

    If it's still high in B1 then
    When the optimizer tries to determine what type of analysis to extract the table (A1, B3) data

    So how it will determine if, to make the full Table Scan, i.e. If the tide is not reset then when he tried to pick up the A1 then block 1, 2 are empty, but if the tide is not reset then obviously the dat which can be read in a single I/O operation but the optimizer feels it's expensive because the high tide is not reset to B3

    Thank you.

    Not quite, but close. Perhaps a picture would help. For simplicity, I will assume that there is place for one line per block, but the basics are correct.

    If you insert a new table 4 ranks, you'll have something like this:

                       H
                       W
    -----------------------------------
     B1 | B2 | B3 | B4 |    |    |    |
    -----------------------------------
    

    where HW brand the leaves high-water, and the empty blocks on the right are attributed to the table (part of the original measure), but have never been used. If you delete the B1, B2 and B3, you'll have something like this:

                       H
                       W
    -----------------------------------
        |    |    | B4 |    |    |    |
    -----------------------------------
    

    A full table scan, for some reason, all the blocks until the high water mark (i.e. the end of the B4) will read, because Oracle is unclear if there is indeed some lines in the block or not. He knows just that it might be because they are below the high water mark.

    Now, if you insert B5 and B6 you'll get something like:

                       H
                       W
    -----------------------------------
     B5 | B6 |    | B4 |    |    |    |
    -----------------------------------
    

    Since there is space below the high water mark. A full scan will still be read until the end of the B4. Now, if you add more than two lines B7 and B8, you get:

                            H
                            W
    -----------------------------------
     B5 | B6 | B7 | B4 | B8 |    |    |
    -----------------------------------
    

    A row has been added below the high water mark, because there was space but the second was added in a new block and the high water mark was moved at the end last block used, and even if you remove all lines (removal of t) high water will remain in the B8 and a full scan reads all the 5 blocks.

    John

  • RMAN relationship wit high water

    Hi gurus

    I use oracle 10g 10.2.0.3 in AIX operating system. According to the database tuning activities I reset the high water mark of the server database and recovered about 15 GB of space. Is there any show gain opportunities in while taking RMAN backup? So far I know RMAN do not never use block in the backup, so that crashes I have reset as being free of H/W will include in RMAN backup? Please give me your valuable suggestion.

    Concerning

    JAV

    If you have reset the HWM rebuilding segments such as the BLOCK_ID + BLOCKS from DBA_EXTENTS highest value for a data file has now "shrunk"... but you have resized not the data file: there will be no difference to RMAN. RMAN will continue to save these blocks above the HWM because they have been used at some point in the past and had been formatted.
    RMAN excludes only blocks if they have not been formatted - so, the HWM for RMAN is the last block never used - currently in use or not.

    Hemant K Collette

  • What is the best video card for an hp p7 - 1137c 300 wat?

    What is the best video card for an hp p7 - 1137c 300 wat?

    Windows 7. 64 bit OS

    A Nvidia GT430 or GT520 is better than a 300 watt power supply will manage. If you want a better graphics card than Nvidia or any Radeon HD card you willl need a more powerful power supply. The Corsair CX500 and CX600 are highly recommended and are favorite forum. For more information, read Guide of Big_Dave of a discrete video card selection .

    Frank

Maybe you are looking for

  • I noticed a strange video MP4 sent me I spied on?

  • Problem with reading card SDHC 8 GB on Tecra R10

    Hi all I own a Toshiba Tecra and just bought a new SD card. It's a Kingston 8 GB SDHC (class 6) and when I insert the card it is not. In Device Manager it says "this device cannot start. (Code 10) ». I have a 512 MB SD card that works very well, but

  • How to create the screenshot using satellites L50 - B

    I wonder how to take a screenshot on my Satellite L - 50 b. I followed the instructions on using Windows and notice that there is a button onmy keyboard that says end and print screen. I tried pressing the button by itself, with shift caps lock, shif

  • Calculator chart value vs Epoch

    So basically I want to graph the error value with respect to eras (iterations of the while loop) and I can't seem to connect right (it has been a while since I used charts in labview).  I don't know if I should use a XY Chart or a graph of waveform,

  • Backup of Bioshock DLC

    Original title: download DLC for BioShock 2, but later unstill game and reinstall once again recover DLC? If I download a DLC for BioShock 2, but later decide to unstall the game for some reason any and install again could I still have my DLC? Should