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

Tags: Database

Similar Questions

  • Thermometer indicator has a high-water mark attribute?

    Can the indicator thermometer place a mark at the highest temperature recorded so far?  My request concerns a fluctuating temperature. I would like to draw a line at the maximum temperature achieved so far. The thermometer 'mercury' will continue to fluctuate below this line. Is this possible?

    Thank you

    Here's a way to do it.

    Have two thermometers, one above the other.  The upstairs has a transparent background, no fill, no ticks or markers.

    The one on top will track your max, one on bottom will track the variable temperature.

    Whenever you update the background temperature, check if it is greater than the previous max and update the higher temperature if it is.

    See the attached example.

    Here are some details.

    Create a thermometer control on your Panel.

    Configure your default, max, and min etc.

    Copy your thermometer.

    Edit the copy to do the following.

    Delete the text of the label.

    Under the appearance of the control, click Show/hide of the parties and set the options of markers of no., no. ticks, no fill and uncheck display a digital display.

    In the quick edit window, select the brush control and do a right-click on the background color at the top of the thermometer to set the T (transparent) color.  Right click on the marker in the middle of the thermometer, and then select a color for your max marker.

    To make editing easier, do not put the controls on top of the other in the Publisher: do it in your code using GetCtrlAttribute() on the original thermometer and SetCtrlAttribute() on the copied transparent thermometer.

    The attached example illustrates this method.

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

  • Is there no matter what it is called line high water mark for the data files?

    Hi all

    I'm a little confused about that. Many links suggest that HWM is for Segments (data index etc.). But at the same time, I see a lot of discussion (on this forum as well) which suggest that the HWM is an attribute of the data file.

    for examplefind a watermark on a data file

    Please specify.

    Thank you

    user8896122 wrote:

    Hi all

    I'm a little confused about that. Many links suggest that HWM is for Segments (data index etc.). But at the same time, I see a lot of discussion (on this forum as well) which suggest that the HWM is an attribute of the data file.

    for examplefind a watermark on a data file

    Please specify.

    Thank you

    When all else fails Read The Fine Manual (see LINK below)

    Glossary

  • 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

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

  • 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

  • How to remove water marks of trial version of first 14 elements

    Hello

    I did the first 14 elements trial version.  I saved my work. Then, I bought the download.  I would like to finish my work, but there the fallen on "TRIAL VERSION" water mark. How can I remove that please?

    Thank you.

    Bunny

    Go to the folder (or folders) where your Premiere Elements project PREL or files are located and delete the folder Adobe Premiere elements preview files. Then restart the program.

    If the program invites you to a link to preview the files, click the option to skip the previews.

  • I bought and downloaded an image on my desktop, but the water mark is still there. How can I get rid of him?

    I bought and downloaded an image on my desktop, but the water mark is still there. How can I get rid of him?

    Follow the steps in these screenshots: I bought a stock image and I can't seem to upload the image under a license without the watermark? Please help

  • Is it possible to add a water mark on the uploaded images

    Hi guys,.

    Is it possible to add a water mark on the downloaded images. I searched on the web, that it could be done with PHP, but what about APEX?

    Kind regards
    Fateh

    Fateh says:
    Hi guys,.

    Is it possible to add a water mark on the downloaded images. I searched on the web, that it could be done with PHP, but what about APEX?

    Watermark is available using the Oracle Multimedia Image Processing ORDImage object. The static methods provided in the ORDImage relational interface are the best approach for use with images related to APEX which are not stored in form of ORDImages. The documentation provides some simple examples.

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

  • How can I remove a water mark

    How make a brand of water off a shape that I want to use

    Hi cjsandra,

    Please see this KB doc for help: add watermarks to PDF in Adobe Acrobat DC

    Let me know if it solves your problem.

    Kind regards

    Meenakshi

  • Water marks sony dsc removeal

    I just found out that if I use windows movie maker to create a slideshow of images from sony to my a380 that they have a watermark appearing as sony DSC, is not in all images. First of all, nobody knows if
    This can be disabled in the camera, second how can I remove the watermark to the image.

    A friend had this problem with a few still photos of mine taken with my Sony a390 he was trying to use in a video. I did research online, but this is the only mention of it that I could find, so I did a few tests myself.

    The problem is with Windows Movie Maker. For some reason, it seems to read some EXIF data as a legend and fills in the picture. It can be easily edited by highlighting and deleting, but it is easier to simply click the drop of Movie Maker, click options, click the legends and uncheck the box that says "automatically adds the legend when I add a video or a photo that has a.

    Once you have done this, the legend of "Sony DSC" is more will be put in your still images.

  • purpose of mark (HWM) believed Oracle

    Hi guys, I know HWM in oracle, but I don't get what is the purpose of having HWM, or what is the function of having a.

    Have you read this one as well, then?

    A high water mark is the set of blocks that have at one pointed contained data.  You might have 1000 blocks allocated to a table but only 500 are under the HWM.  The blocks under the HWM are the blocks that will be read when the table is full scanned.
    

    Ask Tom & quot; High-water & quot;

    If that still is not make things clear, then please explain what is not clear to you.

  • Of fact space insofar as high waters remains unused?

    Hello
    Insertion of the line in the table raises high tide and removing the high water mark where it is. If space below the high water mark is supposed to be exhausted while that above high tide as unused.
    It is possible that the space below the high water mark remains empty because of the deleted rows of the table by using the Delete statement.
    My question is : then how oracle engine determines these spaces under high empty water? or
    Space in the measurement under the high waters remain unused?

    To get a complete answer
    See this link

    http://www.Stanford.edu/dept/ITSS/docs/Oracle/10G/server.101/b10739/schema.htm#i1006922

Maybe you are looking for

  • hostage to e-mail

    Two days ago, I created an account on GitHub, today my email address has been taken hostage. How can I restore it? Better to create a new account? How to get Apple to have all deleted messages so that the content can not be used? I run Sophos AV that

  • where on this site I can download version 4 of firefox?

    I have a problem with the new version of FF 5... I want to go back to the previous version 4... where this site can I download an older version?

  • Powers of laptop on but Vista doesn't come not after I tried to use the restore point?

    My HP laptop running Vista had some performance issues (my husband has used it) he had begun to restart itself on a law on a regular basis in the middle of him to help, so I thought I would try to use a restore point to see if it would help. He acted

  • Small Question, Massage unified account

    Unified account of Massage, you send an e-mail, when the recipient of this e-mail message reads, you receive a notification that it has been read in your Inbox, you get also a voice message that the message has been read... Is there a way to disable

  • My computer stops responding when checking for updates (Windows 8 tp 8.1)

    My computer is running windows 8 and it stops responding when checking for updates.  I want to update 8.1 so I can then upgrade to windows 10. I get the error message is below. WindowsUpdate_8007041D OR WindowsUpdate_dt000 Any help will be greatly ap