Size of the partition and Index Local
Hi all
Database information: 11.2.0.3 64-bit Linux. It is a 3 RAC Cluster node.
I recently partitioned a Parent and child tables as PARTITION of REFERENCE set. The parent table has been RANGE - partitioned. The first partition is on an integer column and the beaches are 0-1000, 10001-2000, 20001-30000 and so on. The secondary partition is on a date and it is partitioned for each quarter.
I created a local index as follows (faullt2vehicle, offboard_load_date, record_type, Column_Y).
Here's an example query I will carry out, where the date is covering 2 secondary partitions
select * from gets_tool_Fault t where fault2vehicle = 12195 and offboard_load_date BETWEEN TO_DATE('2015-04-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss') AND TO_DATE('2015-07-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss') AND record_type IN('FLT','STP','HC','EGU','EOAEQP','CEL')
When I generate the plan explain below is the output
Plan hash value: 2702285198 -------------------------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop | -------------------------------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 386 | 76428 | 244 (0)| 00:00:03 | | | | 1 | PARTITION RANGE SINGLE | | 386 | 76428 | 244 (0)| 00:00:03 | 2 | 2 | | 2 | PARTITION RANGE ITERATOR | | 386 | 76428 | 244 (0)| 00:00:03 | 7 | 8 | | 3 | TABLE ACCESS BY LOCAL INDEX ROWID| GETS_TOOL_FAULT | 386 | 76428 | 244 (0)| 00:00:03 | 10 | 18 | |* 4 | INDEX RANGE SCAN | GETS_TOOL_FAULT_C7 | 386 | | 7 (0)| 00:00:01 | 10 | 18 | -------------------------------------------------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 4 - access("FAULT2VEHICLE"=12195 AND "OFFBOARD_LOAD_DATE">=TO_DATE(' 2015-04-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "OFFBOARD_LOAD_DATE"<=TO_DATE(' 2015-07-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss')) filter("RECORD_TYPE"='CEL' OR "RECORD_TYPE"='EGU' OR "RECORD_TYPE"='EOAEQP' OR "RECORD_TYPE"='FLT' OR "RECORD_TYPE"='HC' OR "RECORD_TYPE"='STP')
If you observe the optimizer is currently to identify the partition, and then the secondary partition, but what is confusing to me, this is why the restricted PREMISES index scan scans all secondary partitions for a given partition. The partition should be not even as a value from PARTITION RANGE ITERATOR of 7 and 8.
Interestingly, when I provide a date range which is in single partition the pruning is happening correctly Plan hash value: 3457799067 -------------------------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop | -------------------------------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 1 | 197 | 4 (0)| 00:00:01 | | | | 1 | PARTITION RANGE SINGLE | | 1 | 197 | 4 (0)| 00:00:01 | 2 | 2 | | 2 | PARTITION RANGE SINGLE | | 1 | 197 | 4 (0)| 00:00:01 | 7 | 7 | |* 3 | TABLE ACCESS BY LOCAL INDEX ROWID| GETS_TOOL_FAULT | 1 | 197 | 4 (0)| 00:00:01 | 16 | 16 | |* 4 | INDEX RANGE SCAN | GETS_TOOL_FAULT_N1 | 1 | | 3 (0)| 00:00:01 | 16 | 16 | -------------------------------------------------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 3 - filter("RECORD_TYPE"='CEL' OR "RECORD_TYPE"='EGU' OR "RECORD_TYPE"='EOAEQP' OR "RECORD_TYPE"='FLT' OR "RECORD_TYPE"='HC' OR "RECORD_TYPE"='STP') 4 - access("FAULT2VEHICLE"=12195 AND "OFFBOARD_LOAD_DATE">=TO_DATE(' 2015-04-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "OFFBOARD_LOAD_DATE"<=TO_DATE(' 2015-06-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
Thank you
Jayadeep
1. your index (faullt2vehicle, offboard_load_date, record_type, Column_Y), your query has a predicate based on a beach on the second column in this index, which means that the order of the index that must be examined is dictated by this predicate and each row in the range must be considered (filtered) to check the third predicate. Basic guideline on the column in the index you are ordering for more effective use: If you have columns where predicates are always equal put these columns at the beginning of the index, the columns where predicates are usually based on a beach go towards the end. You seem to have been misled by reviews 'the prefix local index' stick to your two columns of partitioning at the front of your index - which should NOT be an automatic choice for the local index: see this note ( https://jonathanlewis.wordpress.com/2011/02/28/prefixed/ ) comments that follow and OTN article it is linked to.
2 since you have two indexes that start the same way (this goes with the local prefix again) you made easy for the optimizer to choose the index (for you) is clearly evil. That's why behind the choice of the optimizer is probably another example of an issue that I spoke a few days ago: Re: Composite index + map selection N1 your index is probably greater than the index of C7, and the order of the entries in the C7 index probably makes the data much more dispersed that it really is (i.e. high clustering_factor).
Concerning
Jonathan Lewis
PS (update):
If there are many rows for each fault_id, then you must create an index from fault_id with 'compress 1' (or compress N if the first columns of the index N are repetitive).
When dealing with range partitions do not forget that the high value partition is never reached in the document, do so based in the form "date_col BETWEEN date1 and date2", use the form "date_col > = dateX and date_col»< datey"="" or="" you="" may="" find="" that="" you="" are="" accessing="" one="" more="" partition="" than="" you="" hope="" to,="" and="" in="" some="" cases="" that="" may="" mean="" "multiple"="" (i.e.="" 2)="" when="" you="" were="" expecting="" 1="" (and="" the="" optimizer="" is="" much="" better="" at="" estimating="" costs="" for="" a="" single="">
Tags: Database
Similar Questions
-
I have a MacBook Pro (retina, 15 inches, end of 2013), 2 GHz Intel Core i7 with 8 GB of Ram.
I had 2 system installed, Win 10 + Yosemite from the windows of beginning and the use of most of the time.
Yesterday, I ran out of disk space and passed the partition in OS X with disk utility.
While I changed the partition and I also upgraded to the El Cap.
After all, I can't start by winning 10 more, although I could see my windows in the startup disk Control Panel.
I checked some thread here and mess with command autour terminal, but nothing has worked for me.
Here is the result of diskutil:
Jerbins-MacBook-Pro: ~ the jerbinyuan list $ diskutil
/ dev/disk0 (internal, physical):
#: NAME SIZE TYPE IDENTIFIER
0: GUID_partition_scheme * GB 251,0 disk0
1: disk0s1 EFI EFI 209.7 MB
2: Apple_HFS Macintosh HD 70.1 GB disk0s2
3: disk0s3 Apple_Boot Recovery 650.0 MB HD
4: Microsoft data base BART 30.0 GB disk0s4
5: Microsoft database HOMER 150,0 GB disk0s5
Jerbins-MacBook-Pro: ~ list of cs jerbinyuan$ diskutil
No logical volume group CoreStorage found
Jerbins-MacBook-Pro: ~ jerbinyuan$ sudo TPG - vv - r show/dev/disk0
Password:
See the TPG: / dev/disk0: mediasize = 251000193024; SectorSize = 512; blocks = 490234752
See the TPG: / dev/disk0: MBR suspicious to sector 0
See the TPG: / dev/disk0: Pri GPT to sector 1
See the TPG: / dev/disk0: GPT Sec at sector 490234751
start index size summary
0 1 MBR
1 1 Pri GPT header
2 32 table GPT Pri
34 6
40 409600 1 part TPG - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 136992184 2 part TPG - 48465300-0000-11AA-AA11-00306543ECAC
137401824 1269536 3 part TPG - 426F6F74-0000-11AA-AA11-00306543ECAC
768 138671360
138672128 58595328 4 part TPG - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
197267456 292966400 5 part TPG - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
490233856 863
490234719 32 table dry GPT
490234751 1 dry GPT header
Jerbins-MacBook-Pro: ~ jerbinyuan$ sudo fdisk/dev/disk0
Disk: geometry / dev/disk0: 30515/255/63 [490234752 sectors]
Signature: 0xAA55
From end
#: cyl hd s - cyl hd s id [Start - size]
------------------------------------------------------------------------
1: EA 1023 254 63 - 1023 254 63 [1-409639] < unknown ID >
2: AF 1023 254 63 - 1023 254 63 [409640-136992184] HFS +.
3: AB 1023 254 63 - 1023 254 63 Boot Darwin [137401824-1269536]
4: 0 b 1023 254 63-1023 254 63 [138672128-58595328] Win95 FAT-32
Jerbins-MacBook-Pro: ~ jerbinyuan$ sudo dd if = / dev/rdisk0s4 account = 1 2 >/dev/null | hexdump - C
00000000 2nd eb 58 90 42 53 44 20 20 34 34 00 02 20 20 00 | X.BSD 4.4... .|
00000010 02 00 00 00 00 00 00 20 00 f8 ff 00 00 f8 43 08 |... C. |
18 00 00000020 7th e0 03 37 00 00 00 00 00 00 02 00 00 00 |... ~... 7..........|
00000030 01 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |... |
00000040 80 00 29 11 14 2f 2 a 42 41 52 54 20 20 20 20 20 |..) ... / * BART |
00000050 20 20 46 41 54 33 32 20 20 20 31 c0 d0 bc 8F fa | FAT32. 1... |
00000060 00 7 c fb 8th d8 e8 00 00 83 19 bb 07 00 fc 5th c6 | | ......^.......|
00000070 c0 ac 84 74 b4 06 0e cd 10 eb 30 cd 16 cd e4 f5 |... t... 0....|
00000080 19 0D 0a 4th 6f 6F 2d 73 79 73 74 65 6 d 20 64 69 |... Nonsystem di |
00000090 73 6B 0D 0 a 50 72 65 73 73 20 61 79 20 6 6 b 65 | SK... Press any ke |
000000a 0 79 20 74 6f 20 72 65 62 6f 6f 74 0D 0 a 00 00 00 | is reboot... |
000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |... |
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |... U. |
00000200
Jerbins-MacBook-Pro: ~ jerbinyuan$ diskutil info/dev/disk0s5
Identifier of the instrument: disk0s5
Device node: / dev/disk0s5
Set: No.
Part of the whole: disk0
Device / media name: BOOTCAMP
Volume name: HOMER
Gendarmerie: Yes
Mount point: / Volumes/HOMER
Personality of file system: NTFS
Type (Bundle): ntfs
Name (Visible to the user): Windows NT (NTFS) file system
Partition type: Microsoft Basic Data
Operating system can be installed: No.
Media type: generic
Protocol: PCI
Smart: checked
Volume UUID: 4EC75B8E-02A8-4B26-B7F3-5EA9D0A47FA9
Disk / Partition UUID: 776C43C1-7E4C-4997-BDF5-A91FD406DEBD
Total size: 150.0 GB (149998796800 Bytes) (exactly 292966400 512-Byte-units)
Amount of free space: 18.5 GB (18479718400 Bytes) (exactly 36093200 512-Byte-units)
Device block size: 512 bytes
Allocation block size: 4096 bytes
Support read-only: No.
Volume read-only: Yes
Location of the device: internal
Removable media: no
Solid State: Yes
Thanks for help.
Please follow the steps described in [help] can not boot Windows (8.1) after partition resizing .
-
Satellite L300 - How can I change the size of the partition in Vista?
The hard drive on my L300D is roughly evenly distributed between Vista/C: and D:/data. Does anyone know if there is something in Vista that will allow me to change the sizes of the partitions?
Thank you very much.
Peter
Hello!
The partition size can be easily changed in Vista. Therefore, you can use the Vista disk management utility. On the Toshiba site I found this document:
http://APS2.toshiba-tro.de/KB0/TSB7101OB0006R01.htmI think that should answer your question. Isn t it then? ;)
Good bye
-
Satellite Pro A300 - How can I change the size of the partition?
Hello
My Satellite Pro A300 came with 2 different partitions, and I would like to change the size of the partitions (the data partition is too small).Which would affect the recovery tools? Is there proposed formulas?
Thanks in advance,
Andres
What operating system do you use on your laptop?
If you use Vista, this document could be useful for you:
http://195.182.196.33/KB0/TSB7101OB0006R01.htmThis should normally does not affect the recovery of HARD drive but make sure to burn the disc of recovery if you didn t it yet.
If you have the recovery disk, you are on the safe side.
-
Satellite A300 1J1 - Recovery Mode "Expert" to change the size of the partition
I'm trying to reconfigure the size of the partition of windows with the recovery partitions as I don't like the idea of having the poit drive 50-50.
I would like therefore to reduce it so that only the data of recovery will be adapted on the D drive and my main partition will be much greater. IE C: = 240 GB + and the recovery drive (d) will be only 5 GB (large enough for recovering data only.)
I posted this thread here a few days ago.
[http://forums.computers.toshiba-europe.com/forums/thread.jspa?messageID=132571𠗛]
This and the search of these forums has gotten me to the point where I think I need to use the DVD of recovery in "EXPERT" mode This should allow me to set the partitions manually rather than automatically right in the Middle!
I noticed that the screen asking me what to install has a SETTINGS option that is always grayed out.
Does anyone know how to open the SETTINGS screen, or if there is another way to create the partitions manually?
Thanks for any response.
Hello
I have already replied to the other thread (see the link in your message)
The point is that you cannot resize partitions using the Vista Toshiba Recovery DVD.
Mentioned Expert mode is not available in the Vista recovery DVDs.
The expert mode is part of the Win XP Recovery CD.However, the fact is that the Vista recovery DVDs sets the laptop to factory settings and also the size of the partition.
The sizes of the partitions can be modified in the Vista Disk Manager!
Good bye
-
How to set the size of the partition you want on the Satellite C850-12D with W7 Pro?
Hi all
I recently got a new laptop, Satellite Pro C850-12D with seven Pro: disk (500 GB) is first broken down like this:
-a hidden little, 1.46 GB
-the folder C: one, Go 449,47 (visible by the user)
-a hidden, 14.83 GbI would reduce the C: 100 GB partition in order to create a new one for the DATA.
So, I begin the process by using seven disk management tools, but the disposable size after reduction seems limited to a maximum of GB 226,685: C is greater than or equal to 233 570 GB.
I tried defragmenting C but its minimum size is 233 570 GB
Is there a method to overcome this limit and achivce my goal of 100 GB?
Hello
I highly recommend creating a recovery disk before you change partitions on the HARD drive!
The Toshiba recovery media creator helps you create this disk and this are necessary in case something would be wrong with your HARD drive.Back to the question of the partition:
You will need to use a 3rd third party tool like * Gparted * in order to change the size of the partition. -
Question about increasing the size of the partition of the Qosmio Player on Qosmio G-series
How can I increase the size of partition Qosmio Player?
Well, the Qosmio Player is installed separately on a second partition.
I use a program 3rd party like Partition Magic 8 to create and manage partitions on the HARD disk.You can try this software to increase the size of the partitions, but I don't know if the Qosmio Player will still work after the change of size m.
-
Increase the size of the Partition
I am trying to increase the size of the partition of my C drive.
About 12 months ago someone partitioned my C drive, but the C drive is full and needs to be increased in size. I deleted drive D and it is shown as being unallocated.
I'm in Diskpart in command prompt, try to expand the size of drive C by typing expand size 22000 but will not accept numbers that I entered. Drive C is 15 GB and unallocated is 22.11 GB
Does anyone have an idea of what I might do wrong or have I missed something fundamental?
By using the diskpart utility requirements
The volume should be the NTFS file system. If it is FAT or FAT32, you must convert it to NTFS.
With respect to basic disks, unallocated space must be behind the need to extend partition.
The extension supports simply volumes of data. It prohibits a system partition or starting of extended. This is the reason why the diskpart failed to extend the volume on my 2003 Server system partition.
The partition where the system pagefile is stored isn't available to expand unless the file is moved to a partition that you do not want to extend.
Other: in regard to Windows 2000/xp, you cannot extend the volume simple dynamic disk that was created on a basic disk. The limitation has been cancelled in Windows Server 2003.
As mentioned above, there are so many limitations in the line utility diskpart command, you cannot extend a volume easily. So I recommend you to use a free partition manager - Partition Wizard.
-
How to find the size of the partitioned tables?
How to find the size of the partitioned tables?Select nom_segment, sum (bytes) /(1024*1024) 'Size in MB' from dba_segments
where owner = 'owner name' and segment_type like '% PARTITION % '.
Group by nom_segment; -
I can't get a Web page to stay in the browser with the zoom size whenever I go to a web page. With the zoom it just stay little white on both sides. How to get there the size of the browser, and stay that way have no problem with my internet explore do this on my new computer. or fire fox on my old computer.
You can use an extension to set a page zoom and the size of the default font on web pages:
- Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
- NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/
-
In the latest versions of FireFox, there's a display option which allowed a change in the size of the fonts and objects on the screen temporarily on the fly. This seems to be missing from version 6. It was very useful and should be added to version 6.
https://support.Mozilla.com/en-us/KB/how-do-i-customize-toolbars
If you mean the - and + Zoom control so it is always there in Firefox 6.0
or
View-> ZoomEdit: I see that you are using Windows 7 where the menu bar is hidden as a Firefox orange button by default. Some menus objects much may not be visible in the menu of the Firefox button. Show the Menu bar or use the - and + Zoom controls buttons.
-
How can I determine the size of the files and photo albums?
How can I determine the size of the files and photo albums?
It is not really in any way, nor is it necessary-what you trying to accomplish?
LN
-
Original title: Windows Media Player
I can't run a dvd on my computer. When I insert the dvd, a window pop up and ask 'run with Windows media player '. When I select this option, the player turns on full screen, but the dvd movie is in the upper left corner 1/8 the size of the player and no sound.
Help, please
Thank you Tim
Hi Tim,.
Have you downloaded or purchased Codecs for the DVD player?
-
How to determine the size of the file and the pixel of an image?
How to determine the size of the file and the pixel of an image?
1 MB is 2 ^ 20 bytes. It is easy to represent long:
final long MegaByte = 1048576L; //1048576 is 2^20 and L denotes that this is a long if(fileConn.fileSize() > MegaByte) { do something here }
-
How to create images that react to the size of the browser (and not to the device)?
How to create images that react to the size of the browser (and not to the device)?
Hello
Please try this widget.
http://widgets-musethemes.BusinessCatalyst.com/tb032.html
Concerning
Vivek
Maybe you are looking for
-
Samsung Story Station HX-DU010EA/G5 1 TB external hard drive
How can I save using Samsun S2 HX-DUO10EA/G5
-
Windows XP will only start in safe mode after Windows updated 09/02/2011
We have seven Windows XP SP3 computers. All are set to download/install automatic updates every day at 03:00. Today, one of them does not start in normal mode. When the user arrives at 08:30, screen was black and would not, if power to monitor and
-
This seller sells legitimate key.
The well known site, Kinguin, that lists the major vendors of steam, origin, Uplay and Battlenet began advertising vendors who sell windows 7 and Office keys. I would ask this site is legal that the price seems too low to be true. http://www.kinguin
-
Are there practices to use successfully in Web fonts?
Are there practices to use successfully in Web fonts? Y at - it a tutorial or an information site that explains how to do with fonts in canvas?Please notify.Thank you.
-
need information about these folders
Dear team,I m the intention of the commission out of the data store, one has thus moved all virtual machines to the new data store. But once I browse datastore attend I have 3 folders. Please find the picturesis it safe to remove all the file and the