Size of partition using Bloom filters

Hello

Oracle EE 11.2.0.4, Exadata

Below is a very simple test query:

explain plan for

Select * from t1

where (c1, c2) in

(select c1, c2 from gtt_t2);

We have two very similar patterns, these two objects. We copy the stats on patterns, so that all objects have the same characteristics.

However, for partitioned tables, we copy the same statistics on each partition. For this reason, global statistics for partitioned tables and indexes can be different.

T1 is a table with secondary partitions and GTT_T2 is a global temporary table.

The plan on a single schema is:

------------------------------------------------------------+-----------------------------------+---------------+

| ID | Operation | Name                | Lines | Bytes | Cost | Time | Pstart. Pstop |

------------------------------------------------------------+-----------------------------------+---------------+

| 0   | SELECT STATEMENT |                     |       |       |   42 M |           |       |       |

| 1   |  HASH JOIN RIGHT SEMI |                     |  502K |  457 M |   42 M |  12:21:34 |       |       |

| 2   |   JOIN FILTER PART CREATE |: BF0000 |     1.   119.     2.  00:00:01 |       |       |

| 3   |    STORE TABLE FULL ACCESS | GTT_T2 |     1.   119.     2.  00:00:01 |       |       |

| 4   |   RANGE OF PARTITION ALL THE |                     | 1421M | 1128G |   42 M |  12:19:26 | 1     | 247.

| 5   |    PARTITION - HASH JOIN FILTER |                     | 1421M | 1128G |   42 M |  12:19:26 :: BF0000:: BF0000:

| 6   |     STORE TABLE FULL ACCESS | T1                  | 1421M | 1128G |   42 M |  12:19:26 | 1     | 1976 |

------------------------------------------------------------+-----------------------------------+---------------+

Whereas the plan on the other schema is:

------------------------------------------------------------+-----------------------------------+---------------+

| ID | Operation | Name                | Lines | Bytes | Cost | Time | Pstart. Pstop |

------------------------------------------------------------+-----------------------------------+---------------+

| 0   | SELECT STATEMENT |                     |       |       |  268 M |           |       |       |

| 1   |  HASH JOIN RIGHT SEMI |                     | 3174K | 2889M |  268 M |  78:02:36 |       |       |

| 2   |   STORE TABLE FULL ACCESS | GTT_T2 |     1.   119.     2.  00:00:01 |       |       |

| 3   |   RANGE OF PARTITION ALL THE |                     | 8980M | 7129G |  267 M |  78:54:28 | 1     | 1561.

| 4   |    HASH PARTITION ALL |                     | 8980M | 7129G |  267 M |  78:54:28 | 1     | LAST |

| 5   |     STORE TABLE FULL ACCESS | T1                  | 8980M | 7129G |  267 M |  78:54:28 | 1     | 7924 |

------------------------------------------------------------+-----------------------------------+---------------+

As you can see the size of bloom filter based partition appears in a single plan, but he does not appear in the other plan.

I couldn't do anything 10053 trace. For me it's not not obvious in the trace where CBO decides to use the bloom filter.

Where two questions:

-How CBO decides to use the size of bloom filter based partition?

-How to force the filter based bloom the size of partition?

Thank you very much.

As a starting point, check the settings to turn the feature off.  A fast would be to use the 'Preview' of dbms_xplan calling to see if it produces advice opt_param. (And perhaps optimizer_features_enable was put back for the non-Bloom instance).

A quick estimate to study the case - could be related to the fact that the number of subparts of hash is not the same for each partition?  Or perhaps because some scores are only one of the partitions.

Concerning

Jonathan Lewis

Tags: Database

Similar Questions

  • Size of partition on interval range partitioned Table happens when SYSDATE is used in a Where Clause

    We have tables interval range partitioned on a DATE, with a partition for each day column - very standard and straight out of doc Oracle.

    A 3rd party application queries the tables to find the number of rows based on the date range that is located on the column used for the partition key.

    This application uses the date range specified from the current date - i.e. for last two days would be «...» StartDate > SYSDATE-2 "- but the partition size is irrelevant and the explain command plan shows that each partition is included."

    In presenting the request uses the date in a variable partition size location and query table is obviously much better.

    DB is 11.2.0.3 on RHEL6, and default settings - i.e. nothing that could influence the behavior of the optimizer to something unusual.

    I can't work on why this would be the case. It is very easy to reproduce with cases of simple test below.

    I would be very interested to hear any views on why it's that way and if anything can be done to allow the size of the partition to work with a query including SYSDATE because it would be difficult to get the application code has changed.

    In addition to make a case to change the code, I need an explanation of why query using SYSDATE is not advisable and I know this information.

    (1) create a simple partitioned table

    CREATETABLE part_test
       (id                      NUMBER NOT NULL,
        starttime               DATE NOT NULL,
        CONSTRAINT pk_part_test PRIMARY KEY (id)) 
    PARTITION BY RANGE (starttime) INTERVAL (NUMTODSINTERVAL(1,'day')) (PARTITION p0 VALUES LESS THAN (TO_DATE('01-01-2013','DD-MM-YYYY')));
    

    (2) fill in the rows of the table 1 million distributed among 10 partitions

    BEGIN
        FOR i IN 1..1000000
        LOOP
            INSERT INTO part_test (id, starttime) VALUES (i, SYSDATE - DBMS_RANDOM.value(low => 1, high => 10));
        END LOOP;
    END;
    /
    EXEC dbms_stats.gather_table_stats('SUPER_CONF','PART_TEST');
    

    (3) to query the Table of data from the last 2 days using SYSDATE in paragraph

    EXPLAIN PLAN FOR 
    SELECT  count(*) 
    FROM    part_test
    WHERE   starttime >= SYSDATE - 2;
    

    -------------------------------------------------------------------------------------------------------

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time | Pstart. Pstop |

    -------------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |           |     1.     3 ×  7895 (1) | 00:00:01 |       |       |

    |   1.  GLOBAL TRI |           |     1.     3 ×            |          |       |       |

    |   2.   RANGE OF PARTITION ITERATOR.           |   111K |   867K |  7895 (1) | 00:00:01 |   KEY | 1048575.

    |*  3 |    TABLE ACCESS FULL | PART_TEST |   111K |   867K |  7895 (1) | 00:00:01 |   KEY | 1048575.

    -------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    3 - filter("STARTTIME">=SYSDATE@!-2)

    (4) now do the same query, but with SYSDATE - 2 presented as a literal value.

    This query returns the same response but very different cost.

    EXPLAIN PLAN FOR
    SELECT count(*) 
    FROM part_test
    WHERE starttime >= (to_date('23122013:0950','DDMMYYYY:HH24MI'))-2;
    

    -------------------------------------------------------------------------------------------------------

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time | Pstart. Pstop |

    -------------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |           |     1.     8.   131 (0) | 00:00:01 |       |       |

    |   1.  GLOBAL TRI |           |     1.     8.            |          |       |       |

    |   2.   RANGE OF PARTITION ITERATOR.           |   111K |   867K |   131 (0) | 00:00:01 |   356 . 1048575.

    |*  3 |    TABLE ACCESS FULL | PART_TEST |   111K |   867K |   131 (0) | 00:00:01 |   356 | 1048575.

    -------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    3 filter ("STARTTIME" > = TO_DATE (' 2013-12-21 09:50 ',' syyyy-mm-dd hh24:mi:ss'))))

    Thank you in anticipation

    Jim

    sysdate is not constant and its value may change from time optimization of execution; but the optimizer can deduce that he will be a known running value and then produce a plan that will make the size of partition running.  This is the meaning of 'KEY' in the column pstart – the partition of departure will be known at run time and the size of partition will take place in order to eliminate the previous partitions.

    Concerning

    Jonathan Lewis

  • How to make the partitions using the toshiba restore CD

    Hi forum users. I just want to explain more on creating partitions using our Toshiba Recovery CD. I have a portable satellite A50-101.

    I searched some topics on this forum and found this post from Quad. Just follow these steps carefully and you'll be successful to make the partitions on your hard drive.

    Here is the message by Quad.
    ######################
    Hi forum users

    If anyone of you needs an accurate description of installation of operating system using Expert mode, maybe this can help you.

    When the recovery process has begun there are menu where you can choose between two modes of installation.
    1 standard mode
    2. expert mode

    At first he put there important warning: all data stored on your computer will be lost. It is also important that hollow a Standard installation partition will be created and all data on the hard drive will be lost.

    If you want to install the operating system on a partition, please use Expert mode. In this case, the software can be installed on an existing partition. Alternatively, you can make one by yourself.

    If you want to make a partition with a set capacity, please do it on this path:

    1. choose number 2 Expert mode pressing
    2 approve OK key ENTER
    3. choose LOCAL > DISK > image
    4. look in: must be selected for the CD-ROM drive
    In the Middle window choose GHO file and press ENTER
    5. using the TAB key you must mark the player information and so on and press ENTER
    6. using TAB button again part brand of window average (blue line) and with SPACE activate new dimension box
    7. place inside the new size of the partition and press ENTER again
    8. the question to continue with load disc? confirm with OK

    I hope this can help you to make the desired partition size.

    Good bye
    ######################

    At step 6 above, enter the size of the partition you want. Size must be entered in megabytes (MB), gigabytes (GB). (mine is 40 GB HDD, i.e. 38146. I go to half, 19073)
    Proceed with the disk load? Click OK.

    It will now recover your machine to its factory setting. 2 partitions will be made.

    Once the restore is complete, open my computer. You'll see only drive Local (c) on hard drives. Click on properties and you will see that the size that you specified in step 6 above (20 GB). So, where's my other 20 GB? It is a way to treat 2 to make a new logical drive.

    Follow this link: (these links has screenshots for easier understanding)

    http://www.theeldergeek.com/hard_drives_07.htm - create an extended Partition (step 1)
    http://www.theeldergeek.com/hard_drives_08.htm - create logical drives in an extended Partition. (Step 2)

    I hope this can help you make a new logical drive in an extended partition. :)

    Hi 012

    Thank you very much for your posting. I forgot to mention that the logical drive must be created because the unusable space do not appear by Windows.

    But there are users like you to help. Respect!
    Fashion Expert recovery procedure section is now perfect.

    Good bye

  • A key panel full size can be used with I pad pro?

    A key panel full size can be used with I pad pro?

    Only if the keyboard is full-size using Bluetooth connectivity.

    I've not seen any portable keyboards, full length using Bluetooth, however.

    Most Bluetooth keyboards for tablets are made compact to be more ergonomicaaly designed with the size of the tablet.

    If you found or will find a full-size, keyboard full length that works with Bluetooth for iDevices and iPads, so this should work.

    Good luck!

  • How to change the size of partitions on Equium P300-16 t

    I just bought a Toshiba Equium P300-16t.
    The Vista disk and the data disk are * + PREINSTALLED + * and have about 95 GB (50%) each.
    I want to re partition so that the Vista disk has a much higher percentage.

    If anyone can help?

    _David (UK) _

    Hi David

    This is a very simple procedure.

    First, you will need to access the disk management console.
    You will find the HARD drive and all partitions created on the HARD drive.

    You just need to reduce the size of the system (C) partition.
    The free space is available and you can add free space to another partition on the HARD drive.
    In this case, you must change the size of the second partition.

    I think this should help to change with sizes of partitions.

  • Satellite A660-k17: can I remove the two primary partitions used for restoration?

    Hello
    I have 3 questions :) #.

    1. I burned a copy dvd recovery media, on a laptop A660 k17. There are two partitions on the disk that I think are there for the recovery. The first is 1.46 GB and it's for the recovery and another partition hidden 8.29 GB... and I think that the first contains the Recovery Wizard and the whole environment in which we will get through the repair of the system and the hidden disk contains the actuall with windows data, drivers and so on. Can I remove these two? I ask mainly on the first, if it is not necessary for the system to boot or something after that I have to recover the laptop to the factory setting.

    2 and I also want to leave my partitions so that I don't have to partition the whole drive from C 600 GB again. I have a D drive created but there is this response to a topic already in the forum http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=64754&tstart=90
    who says that when I leave the partitions I created myself, that the recovery will be not available. I have a copy on dvd, but only to make sure no kidding something upward.

    3. when I want a clean system without some software which are preloaded on the oem recovery disk... I have to use windows recovery? or it will be the same as the toshiba one?
    Thanks for the reply possible :)
    Beautiful day :)

    > Can I remove the two primary partitions used for restoration?
    First not, but you can remove the Toshiba recovery partition if you created the recovery DVDs. One day, if you want to install the recovery image once again you can use created the recovery disc.

  • I have a power shot sx HS 40 & need information about the use of filters with this camera? Thank you ~.

    I have a power shot sx 40 & would like information on the use of filters with this device?

    Thank you ~.

    Hi Rainlily,

    You will need the # model Canon adapter filter f-DC67A to use filters on this camera, which costs about $25.00. Bower makes one for about $9.00 available in B & H and Bower products work well with the Canon. This adapter uses 67 mm filters. If you have not yet all filters, I would recommend Hoya or Tiffen filters as they are of high quality at reasonable prices. Do not get the expensive filters because in general they can cause color casts that may be difficult to view the process on. Have fun!

    Steve M.

  • What are the size of partition recommended for installing Windows 7 Professional 64-bit?

    What are the size of partition recommended for installing Windows 7 Professional 64-bit? I have a 2 TB internal hard drive and want to install Windows and Norton Internet Security on the drive C, drive D and drive E data programs.

    Thanks for a response.

    Brenda

    Original title: size partition Windows 7 Professional 64 bit

    For technical purposes, I recommend you only keep utilities all programs that you install on the startup disk. This is recommended if you plan to upgrade to future releases of Windows such as Windows 8 because you will experience problems with the installation program.

    I recommend however, you can keep accumulated data such as Documents, Photos, music, videos on a separate partition to ensure custody.

    The recommended size for the boot drive around things like Windows, future growth for applications and the Windows updates and program updates will be considered.

    So I recommend not more than 200 GB, for a lot of space, I would shoot up to 300 if you want to keep things like System Restore Points.

  • How to create the INTERVAL partitioning using EM?

    Hi guys

    I'm still not able to use the INTERVAL partitioning using EM. Is it possible to do?

    Oracle 11 g 2 on Linux

    Thank you

    John

    Hi John,.

    I don't think it's possible, that the option of partition of the range seems to have things that make you think of it would generate the definition as the partitioning interval but it doesn't.

    I'm on 12.1.0.3 of the SGC and 12.1.0.5 DB plugin so I'm sure it's 'missing' features for the moment.

    See you soon,.

    Rich

  • I need help to be an option for me to use the filters Gallery. It won't let me click on it.

    I am doing a project for my digital art classes and I'm trying to use artistic filters from the filter Gallery. When I go to the filters tab, the Gallery of filters is gray and it won't let me click on it to access these filters.

    Hi Ericaaervin,

    Please of course color mode is RGB, you can check it out by clicking on the image and choose the mode. Also, make sure that it is the 8-bit.

    Here is the screenshot for your reference,

    Thank you

  • Why using the typewriter in acrobat 9 adds less file size that the use of the text of the comment in acrobat 11 tool?

    Why using the typewriter in acrobat 9 adds less file size that the use of the text of the comment in acrobat 11 tool?

    Two employees, one using acrobat 9 and the other uses acrobat 11. The two employees open a secure document one page 105 KB in size. Used using acrobat 9 using the typewriter tool to add comments. Document increases in volume to 137 kb. Second employee using acrobat 11 uses the comment add the text tool (since it is no longer a typewriter tool). This employee has to use tool once and the document immediately increases size of 105 k to 950 + kb. Why is this? What can be done to avoid this?

    As I suspected much earlier, the difference is in the fonts that are used for the text. For the smaller file, text annotation font is Times Roman. that is a policy that is essentially built into Acrobat/Reader. For the larger file, the font is Tahoma, which is not an integrated police force, which ends by happens so the entire police gets embedded in the PDF file. The size of this font on disk file is 681KO on my system (Mac), and it ends up taking more space when they are embedded in the PDF file. The same type of thing happens with form fields and this is done so that all characters in the font are available when the text is changed in a system that may not have the installed font.

    One of the problems is if you try to reduce the size of the file by changing the font that used up one of the built-in ones (Courier, Helvetica, TImes Roman), Acrobat does not remove the now unused of the file font information, if you do not get the reduction in file size that you can imagine, even if the font is no longer presented as being incorporated. I submitted this as a bug some time ago, but it has not been fixed.

  • Pages automatically reformats to the correct size when you use Folio Builder or what I have to do format pages iPad, for example, in the placed InDesign document in place from the beginning?

    Pages automatically reformats to the correct size when you use Folio Builder or what I have to do format pages iPad, for example, in the placed InDesign document in place from the beginning?

    Transferred to DPS forum.

    You must configure the pages of appropriately for the target device. For iPad, it is 1024 x 768.

  • To what size, we can use if and else in HFM statements rules?

    Hi Experts,

    To what size, we can use if and else in HFM statements rules?
    (Scenario, year, time, account, PKI, value, view, entity, Custom1, Custom3, Custom3, Custom4)

    concerning
    Dev
  • Satellite Pro P200: Change the size of partition in Vista?

    Is it possible to adjust the size of the partition after installing?

    I have a Satellite Pro P200 with a shared about HARD disk:

    C: Vista partiton - 17 GB of free to 56 GB
    E: partition of data of-54 GB of free to 55 GB

    I know that the data reader is used by Vista to contain information of recovery.

    However, I would like to know if its possible to reallocate some of its spare production capacity at the Vista drive without compromising the recovery feature?

    Of course, you can change the size of the partitions after Vista installation.

    You can change this in the Vista Disk Manager s

    Here, you could choose the existing partition, and then you could reduce the amount of partitions. This free volume can be added to another partition, or you can create another partition.

  • Hard drive partitioned using its missing data after restarting the system, sharing and management of the computer

    Hello

    I have a Toshiba Satellite with Vista and since my laptop came with only a single 250 GB, i.e. C:\ partition I tried to partition more than I did the following, I had about 90 GB of data to start with which I transferred to a portable hard drive then:

    Panel--> Admin Tools--> computer management--> management disk storage--> right click C:\ Drive and reduce volume--> it showed only 50 GB of space heat shrink and I created a new volume with this space (F:\ 50 GB)--> transferred all the files to the new 50 GB portable HD space F:\ and remaining 40 GB on the drive C:\

    When I started my computer after a few hours, the new partition F:\ was missing! In addition, there was only the C:\ drive of origin with 40 GB data that I had transferred + 45 GB of data I think it was there previously because the installed files.

    C:\ was so now 40 + 45 = 85 GB without a trace of the 50 GB of data on the new partition I created!

    I had recovered my system to a day before before I did it, it could be the reason? Now, when I try to go to System Recovery it does me not an option for a restoration of watch system.

    To be sure, I now have a backup of the 40 GB of data from the C: drive, but I lost the data of 50 GB of the new partition, and since I have not written new data on the drive is possible that it's still there?

    When I try to search for some files I know research shows me the name of the file, but the file does not open, and the location of the file shows that it is not accessible.

    Kindly advise me on what can be done given that 50 GB of data is really important.

    Thank you

    Go to disk management and open it in full screen and then press the PrtScr button.  Go to start / all programs / Accessories / Paint and open the program.  Go to Edition and click on paste.  Then go to file and click on save as and select a .jpg file type and call the disk management and save it to your desktop.

    Then go to http://skydrive.live.com/ (you will have to perhaps sign up and maybe download some programs, but this will give you a free online place where you can store files for others.  Once the page to the top, click on add files and navigate to the file you just save it on your desktop and add it to one of the folders (I suggest the Public folder).  Once it clicked, and information about it will appear at the bottom right, including where exactly the file.  Copy this URL and include it in your next post.  I would like to see what looks like disk management without asking a thousand questions to describe everythhing for me.

    If you did a restore of the system already on the previous day, there is probably no new restore points created since then, so there is no option to do a system restore.  In addition, a system restore would not solve this problem - this is way beyond its capabiliities.

    Download the free EASUS Partition Manager: http://www.partition-tool.com/ and run it to scan your drive and see if it finds anything Disk Manager can not - it "s possible he can pick up our lost F:\ partition or unidentified space which could be this partition but not correctly identified.  In a same, t I would like to see if it detects anything useful (and it can also be useful the fixing of the problem if we can find it).  Moreover, the total space of the C:\ drive is now is what it was before you have shrunk or it it showing the size reduction that you can expect if the new volume had actually been created?  Let me know what you find if anything.

    Right-click on your CD-ROM drive, and then click on change drive letter and paths.  Click on edit and then right click on the drop box for the available letters.  F shows as available or is missing in the list?  Leave it (don't change anything in reality - I just wanted to see if F has shown as available since if it was assigned (such as C: is assigned) should not be shown at the top on the list.)  I would like to know if he was there.

    I hope this helps or at least gives us some clues on how to solve the problem (whatever it is).   Keep me informed.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for

  • Portege R830: changing wallpaper

    I want to have a background screen or different wallpaper of the Toshiba one.I cannot put through windows. I use a Portege R830 and Windows 7. MIA.

  • Unable to backup to and include the image of the system

    I tried running (on drive d) backup also create system recovery disk He kep omitting insuffient space evn if drive d was almost empty Look on even and found this Event ID 12348{Volume shadow copy Service warning: VSS was denied access to the root of

  • iCloud on two devices

    I have 2 iPhones connected to the same iCloud account, if I join one of the iphones I lose pictures, contacts, etc., that have been recorded in the icloud?

  • XP recognizes my drive to 500 GB like a 128 GB drive

    I had to rebuild my OS XP MCE. I have a promise Ultra133 TX2, which has a Seagate 500 GB drive attached. After the loading of the operating system, XP has seen the car and says that is not formatted. I have not used the backup drive so no problem of

  • E-mail blackBerry 8530 Smartphone images

    new here, I was wondering if there is a setting where I can leave the images on my emails? When opening any e-mail that I have to select "View image" I hate repeating the same steps over and over again. is it possible to fix this? Thank you