Тёмный

Partitioning in Oracle - Performance Basics 

Tech Coach
Подписаться 34 тыс.
Просмотров 53 тыс.
50% 1

This is the 2nd video from " Partitioning in Oracle " series, It explains how oracle stores and manages data.
What is single Block IO and Multi Block IO ?
Why full table scan is better than index access in few cases.
The video is very elaborate, I have tried my level best to keep it as simple as possible
#Oraclepartitioning #PerformanceOptimzation #TechCoach

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 87   
@TechCoach
@TechCoach 5 лет назад
List of all partitioning videos Part 1 : Partitioning in Oracle : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-m3q4lrE671Y.html Part 2 : Partitioning in Oracle - Performance Basics :ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OQ8LXbxLI5g.html Part 3 : List Partitioning in Oracle : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-w6kB-90pFa4.html Part 4 : Range partitioning in Oracle : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VBkpI4Ki49Q.html Part 5 : Hash Partitioning in Oracle : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2YxOF_sJMLI.html Part 6 : Composite Partitioning in Oracle :ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-q_e9IkNtSWc.html Part 7 : Reference Partitioning in Oracle :ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-p8gNwr6Rtdo.html Part 8 : Local Vs Global Partitioned Index in Oracle 11g : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-t77fyUt8XPw.html Part 9 : Partitioning enhancement in 12 c :ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-o_WjapdXiQg.html
@kensavage7657
@kensavage7657 3 года назад
I knew a lot of this, but you helped fill in some of the blanks. The best bit is that you helped me be able to explain this, in simpler terms, to our non-DBA development team. Great job with this video! As someone who is learning a foreign language, I can appreciate how silly our (English) word pronounciation can be - and I appreciate when people help me pronounce my foreign language (German), when I get it wrong. When you say "contiguous" (meaning beside/connected), in the video, you pronounce it like "contagious" (easily transmitted, like a disease) Spelled similarly, they're actually pronounced completely differently (phoenetically: 4 syllable CON-TIG-YU-US vs 3 syllable CON-TA-JUS) My wife is not a native English speaker, so makes similar mistakes when she learns a word by reading. While I can only apologise, for how erratic the English language is, this is a word that, we DBAs, use a lot - and we, often, only learn mistakes in pronounciation when a native speaker can notice and point it out. This is not a criticism of your excellent video - genuinely just trying to help! Once again, fantastic video throughout!
@TechCoach
@TechCoach 3 года назад
Wow ken you are an artist, your team is lucky to have a polite mentor like you :)
@andishez5359
@andishez5359 4 года назад
Thank you so much for your great tutorials, Explaining in very friendly and deep manner, really love them.
@TechCoach
@TechCoach 4 года назад
Thanks a lot for the kind words. Your comment made my day :)
@mansishrivastava2791
@mansishrivastava2791 6 лет назад
Hi, This video is really very much informative and easy to understand.I agree that the video is lengthy but still I appreciate that each and every small part related to partition is covered with proper examples.its very rare that we get whole information related to a particular topic at one place. Thanks
@TechCoach
@TechCoach 6 лет назад
Thanks a lot mansi for the kind words, I have a small request I am working on this new youtube channel " An Indian Abroad " and will really appreciate if you watch and subscribe to it. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-11DK-oyRql0.html
@rameshotturu3530
@rameshotturu3530 2 года назад
@@TechCoach bro, i am unable to see th video, seems video is corrupted. could you please check
@TechCoach
@TechCoach 2 года назад
@@rameshotturu3530 i am able to open it, can you try again?
@abhijitmohanty734
@abhijitmohanty734 3 года назад
Hello Sir, I have seen your videos for oracle partitioning and those are very informative and easy to understand the oracle data flow. please keep posting the videos on oracle performance tuning sections. A small request please upload the queries which you have been used during your explanation on video in the description. Thanks a lot.
@manjushatonape2099
@manjushatonape2099 2 месяца назад
very crisp and clear explanation.. Thanks a lot
@TechCoach
@TechCoach 2 месяца назад
I am Glad I could help
@manjushatonape2099
@manjushatonape2099 2 месяца назад
Can you plz make video on oracle hints
@selvajananiraman4040
@selvajananiraman4040 2 года назад
Hi Vevek, It is really very nice and happy to watch your seriees of videos related to db stuff. Thank you for such a nice detailed videos with adequate explanation. Good Job.
@pritammaiti8909
@pritammaiti8909 5 лет назад
Hello Vivek.. An excellent piece of demonstration.. This is the first time I am going through your videos on Partitioning in Oracle and at first ppt only I felt like giving you a full thumbs up for your effort. Excellent patience level and highly knowledgeable person demonstrating one of the vital most sections in Oracle architecture. I will definitely say about these lectures to all my friends.. Keep it up brother... :) Also, if you can share your mail id, so we can reach out to the expert for any clarification on Oracle and its features.. Waiting to hear from you more. Regards, Pritam
@TechCoach
@TechCoach 5 лет назад
Thanks a lot Pritam for the kind words, this is what keeps me going. You can always reach out to me on Reachtechcoach@gmail.com I have a small request, I am working on this new channel "An Indian abroad" and will really appreciate if you watch and subscribe to it.If you enjoy the videos please share with your friends as well. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-IP2Vn6jK8Hg.html
@pritammaiti8909
@pritammaiti8909 5 лет назад
@@TechCoach Done brother.. Anything for you :-) I have informed my friends about your great works too. More likes should be on the way.. Cheers
@samirmomin203
@samirmomin203 4 года назад
Thanks a lot. It clears all small doubts. Appreciated.
@TechCoach
@TechCoach 4 года назад
Thanks for the kind words samir, I am glad I could help
@varunagnihotri907
@varunagnihotri907 4 года назад
What do you mean by random IO operation and being sequential ? We have the ID's address in the index we can straight away fetch that record. And if we have another ID's we again perform one more read on the table on the basis of it's address. So as per my understanding we are reading blocks one by one ( or individual access to a table each time more precisely) instead of a multi block read in case of full table scan. Kindly clarify
@parashar1505
@parashar1505 4 года назад
what do you mean when you say a random I/O to find the actual row in the block? For a table with say 4000 blocks, how does it know which block it belongs to? If it doesn't know, then does it just randomly scans a block wishing that it would be lucky to have that row in that block? If so, then it would be just impossible to determine the time of a read operation, as the data could be on the very first block itself (if you are extremely lucky) or could be in last block (if you are extremely unlucky) and that way you would end up reading all the blocks! Something is surely missing in this explanation!
@HimaliMandrekar
@HimaliMandrekar 5 лет назад
Execellent video😊 Thnks vivek wonderful presentation
@TechCoach
@TechCoach 5 лет назад
Thanks himali for the kind words,I have a small request I am working on this new youtube channel, I Would love it if you watch and subscribe to it as well. ru-vid.com/show-UCoLdaMxhfDgdgIAcRGlUvkg
@digvijaydamame7351
@digvijaydamame7351 6 лет назад
superb bro !!! got to know some new things about DB blocks !
@TechCoach
@TechCoach 6 лет назад
digvijay damame I am happy it helped :)
@sandipjena
@sandipjena 5 лет назад
Hi Vivek, It's really a awesome video on partitioning. But can you please make a dedicated video on single Block I/O & Multiple Block I/O. Thanks in Advance.
@TechCoach
@TechCoach 5 лет назад
Thanks Sandip, Sure I will work on it, Thanks again for subscribing to my new channel.
@dineshramdhn
@dineshramdhn 3 года назад
Wonderful explanation.
@TechCoach
@TechCoach 3 года назад
Thanks Dinesh for the kind words, Please consider subscribing to my other channel as well it will really help me :) ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6G1xGi-D5ow.html
@singamramagangireddy721
@singamramagangireddy721 6 лет назад
Hi Bro, U r explanation is too good.. Thanks for uploading the videos on Partition
@TechCoach
@TechCoach 6 лет назад
+Singam Ramagangireddy Thanks for the kind words :)
@sadanb4876
@sadanb4876 5 лет назад
Bro pls need ur. Contact details
@pankajkharade6936
@pankajkharade6936 4 года назад
I have a question: how the root node selected by oracle for index creation if root node selection based on the median value then in case of live system data is continuously inserted into the table so each time there will be a change in the median value which means a change in root node value.
@gyanbhargav1532
@gyanbhargav1532 4 года назад
Hi , I have question ,when next extent is going to allocate ,and how system decides no. of blocks in extent and in case of same type of data means data belongs to single table or single partition
@prateektripathi1158
@prateektripathi1158 6 лет назад
In the video at time 20:15,you say in order to fetch 25% data,we have already accessed 3000 blocks.I think you mean 3000 rows.Correct?
@TechCoach
@TechCoach 6 лет назад
No Prateek I mean 3000 blocks. Multiple Rows are stored in a block and to access 25% of these rows oracle has to visit these blocks frequently and sometimes the same block has to be accessed again and again. for example my block 6 contains 3 rows 90,89,78. In a full table scan oracle will read this block once while reading multiple other blocks in parallel. But when using index Oracle may have to read this block thrice in order to return these 3 rows which means reading 25% of the data using index may actually lead to reading 75-80% of the table and that too using Random I/O which is the costliest.(Because table is stored as a heap(Data is not sorted in any particular order, Exception is index organized table) reading 75-80% of the table using random I/O along with accessing the index can have real performance issues.Please let me know if this clarifies your doubt. I have a small request I am working on this new channel "An Indian abroad " and it will really help me if you watch and subscribe to it. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HBQHekM1U2c.html
@prateektripathi1158
@prateektripathi1158 6 лет назад
Ok I got the point but reading and transferring the data to main memory from disk is done in units of blocks,so once a particular block has been found with a row,the whole block would be transferred to main memory.For the next search the main memory can than find the queried next row in its buffered cache and doesn't have to seek the disk.I think the block wouldn't be required to be read thrice if all the rows are in single block.The performance hit (in case of indexed search)would be in the case when the rows to be queried are in different blocks,so each time disk access a block containing the row,it would be having a seek penalty,which would multiply as the number of selected row grows.If the in this process all the blocks in buffered cache gets exhausted and we still have more rows to be retrieved,than the system would re read from blocks from disk
@TechCoach
@TechCoach 6 лет назад
Hi Prateek, Exactly You are right . Here we are talking about partitioning so the assumptions is that tables are huge and as aptly mentioned by you in the last line "Oracle can't sustain all the blocks in the memory while fetching large number of rows so there will be cases when you will have to revisit the disk to fetch the same block"
@prateektripathi1158
@prateektripathi1158 6 лет назад
Tech Coach thanks
@TechCoach
@TechCoach 6 лет назад
Prateek it would really help me if you watch and subscribe to my new channel as well. Your support is my motivation. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HBQHekM1U2c.html
@amitagarwal841
@amitagarwal841 5 лет назад
In case of the btree branch block how it find that which I'd we are looking for ... Like if we want to find id= 5555 ...and the value generated by rownum is not in branch block or child block
@naveenp1843
@naveenp1843 4 года назад
very well explained sir great tutorial indeed
@TechCoach
@TechCoach 4 года назад
Thanks Naveen for the kind words, Your wordw made my day
@ashwanimishra8215
@ashwanimishra8215 2 года назад
brilliant
@TechCoach
@TechCoach 2 года назад
Thanks Ashwani :)
@vivivivek420
@vivivivek420 6 лет назад
Hi Vivek, I have a table of size 20GB.I need to perform partition in that existing table,please give your valuable tips and suggestions.
@TechCoach
@TechCoach 6 лет назад
Sure buddy, But I may need a little more input about the kind of data you have and what kind of queries will be run in majority to decide the strategy.Please share the same and I will be able to help you out better. I have a small request I am working on this new youtube channel "An Indian Abroad" it will really help me if you watch and subscribe to it. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HBQHekM1U2c.html
@vivivivek420
@vivivivek420 6 лет назад
sure bro...i'll share details.
@vivivivek420
@vivivivek420 6 лет назад
bro plz share your mail id i'll give you the queries which we are using here.
@TechCoach
@TechCoach 6 лет назад
Reachtechcoach@gmail.com. Thanks for the kind words. I have a small request I am working on this new youtube channel "An Indian Abroad" it will really help me if you watch and subscribe to it. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HBQHekM1U2c.html
@tapaswinimishra493
@tapaswinimishra493 5 лет назад
Hello vivek, how can i go through all the videos you created. If you can help. Thanks in advanced
@TechCoach
@TechCoach 5 лет назад
Hi Tapaswini, here is a link from my channel that may interest you. Partitioning in Oracle: ru-vid.com/group/PLUWdEQb_2yqX9rJ9CtahlZvo0AD3A63JA
@seanelucero
@seanelucero 4 года назад
AWESOME VIDEO. WOW
@TechCoach
@TechCoach 4 года назад
Thanks Sean for the kind words, I am glad I could help.
@Bibliophilic96
@Bibliophilic96 5 лет назад
Good Job
@siddeshbagali13
@siddeshbagali13 3 года назад
WOW....!!
@sitaramsahoo811
@sitaramsahoo811 6 лет назад
Hi, Your videos are quite informative and it's good to learn from your videos. But it will be better if you make it rather short. Professionals don't have patience to watch lengthy videos. Why I'm saying because, if one couldn't understand in a single shot, he will go and watch again and again. If you will make it long no one will be interested for second time.
@TechCoach
@TechCoach 6 лет назад
Sure Sitaram , I will try my best to reduce the timings. One thing I will recommend is watching the videos at a higher speed that will reduce the timings to an extent.
@codetourist6996
@codetourist6996 6 лет назад
length is fine, as explanation is good, there are many videos with less time, but concept is not clear.
@swathipriya1199
@swathipriya1199 6 лет назад
good explanation
@TechCoach
@TechCoach 6 лет назад
Thanks a lot Swathi Priya for the kind words. I need a small help I am working on this new youtube channel and would really appreciate if you watch and subscribe to it. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-11DK-oyRql0.html
@siddhartharao8490
@siddhartharao8490 2 года назад
Sir, Can you please answer these interview question which was asked to me. (1) How do we know that when we have to partition a table? (2) What will happen if we dont partition a table?
@TechCoach
@TechCoach 2 года назад
Consider partition when data size is huge ( usually bigger than 2 GB ) and table will be used often in select queries . If you don't partition a big table you may face performance issues while querying your data
@srikanthgandhi7289
@srikanthgandhi7289 5 лет назад
Very clear explanation.. keep making videos. I really appreciate your effor.. it would be a great if you give Notes in PDF..
@TechCoach
@TechCoach 5 лет назад
Thanks Srikanth for the kind words, you made my day.I am working on new videos and I will upload them soon :) I have a small request, I am working on this new channel and will really appreciate if you watch and subscribe to it. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-GnVn3mPBRz4.html
@dragonboard12
@dragonboard12 6 лет назад
Hi VIvek, Very good explanation. Keep up the good work.
@TechCoach
@TechCoach 6 лет назад
Thanks a lot for the kind words. I would really appreciate if you help me in my new Initiative "An Indian Abroad" by subscribing viewing and sharing. ru-vid.com
@tapasgaan7371
@tapasgaan7371 6 лет назад
Hi Vivek, what is need to give another name called which is a collection of blocks...I understand that block is the finest level of data storage and segment is the one which belongs to a table space which is used to store table or index...so what does an extent signify ?
@TechCoach
@TechCoach 6 лет назад
Block(Basic unit), contagious data blocks form extent.then we have segment which is formed by set of extents.A segment is allocated gor a specific data structure like a table/index. To keep it simple in my videos I have focused on blocks and segments.I hope it clarifies.
@mohanvilla0789
@mohanvilla0789 6 лет назад
Fantastic man.. :)
@TechCoach
@TechCoach 6 лет назад
Thanks for the kind words. I have a small request, I am working on this new youtube channel " An Indian Abroad " and will really appreciate if you watch and subscribe to it. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HBQHekM1U2c.html
@dbacorner
@dbacorner 6 лет назад
Excellent explanation! Keep it up bro!
@TechCoach
@TechCoach 6 лет назад
Thanks for the kind words. I have a small request I am working on this new youtube channel "An Indian Abroad" it will really help me if you watch and subscribe to it. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HBQHekM1U2c.html
@jinkalavamshi272
@jinkalavamshi272 8 месяцев назад
It's very rare we will this kind of info in the youtube. Thanks so much.. It's really helpful for me..
@shrijeetshivdekar9076
@shrijeetshivdekar9076 4 года назад
Blocks, extents and segments Blocks is must fundamental unit Corresponds to specific number of bus (8kb on physical disk) Any object being created, must fundamental unit of storage is block (cells - our body analogy) Extent =specific number of contagious days blocks allocated for storing done specific type of information They are predefined in number Segment . Set of extents, each allocated for specific days structure, stored in same tablespace
@TechCoach
@TechCoach 4 года назад
Well summarized shrijeet :)
@shrijeetshivdekar9076
@shrijeetshivdekar9076 4 года назад
Branch blocks don't have any info, leaf blocks have all the info Blocks can have more than 1 row . Data is stored randomly. . Sequential storage is not there in blocks Single block vs multiple block io . Eg retrieving information with id 1 . Challenge : data stored randomly. . Thus data not sequential . Thus we do random io, which is slowest. . This total 4 sequential reads. . In large dw, having millions of rows, this is better What if we had to fetch 25%of data? If our data is already in same block, we have acceessed 3000 out of 4000 Full table scan: We read multiple blocks at a time. 4096 blocks, full table scan reads 128 blocks.. Along with additional overhead.
@shrijeetshivdekar9076
@shrijeetshivdekar9076 4 года назад
Medium level of data: partitioning would be great Different partitioning in different segments When to partition Size greater than 2gb Rolling data with only current updatable Clustered env with multiple nodes=hashed partitioning Partition on index- when we don't want to prevent rebuilding entire table.
@rahulgiri5645
@rahulgiri5645 5 лет назад
Please create deep performance tuning video for PLSQL
@dhritibishnu
@dhritibishnu 4 года назад
Excellent... Wating for next...
@TechCoach
@TechCoach 4 года назад
Hi Dhritiman , I have a complete series on partitioning why may interest you. ru-vid.com/group/PLUWdEQb_2yqX9rJ9CtahlZvo0AD3A63JA
@mohitbhandari1106
@mohitbhandari1106 6 лет назад
Hi Vivek, at what basis the root node of the index is decided ?
@TechCoach
@TechCoach 6 лет назад
Mohit Bhandari Hi Mohit, Don't get confused with the word node, it"s a normal storage block on oracle disk.
@mohitbhandari1106
@mohitbhandari1106 6 лет назад
yes i understood its a normal storage block on oracle disk, but my question is when you create a index on a table say existing table of 10lakh records , so on which basis oracle will decide that which one will be the root block ? and also when we saw there are 4 branches so how it will decide , how many branches a b-tree should have?
@TechCoach
@TechCoach 6 лет назад
Mohit Bhandari Root block has no specific significance when it comes to storage, Any available location will be assigned to the index root block. Infact when the table is small.( only 1 block for the index) Root block act as the leaf block as well. As the index grows the B-Tree expands and we need Branch blocks to reavh the leaf blocks. Let me see a good link on the internet that can clear your doubt further
@mohitbhandari1106
@mohitbhandari1106 6 лет назад
ok Vivek thanks for the quick reply late night .. , well sorry to ask again i am not talking about the location of the root block, i am asking that if i have a table of 10lakh records and having a column called say issue_id all unique records from 1 to 1000000 and if i created index on the same. So here consider that the block size is of 4kb or 8kb , so on which basis oracle will decide that root block will consisting of what range (which value of column)?
Далее
List partitioning in Oracle : Part 3
23:37
Просмотров 27 тыс.
Indexes in Oracle :Index Scan Methods :Part 2
30:18
Просмотров 36 тыс.
Катаю тележки  🛒
08:48
Просмотров 225 тыс.
Indexing in Oracle :B-Tree,Bitmap Indexing
25:47
Просмотров 89 тыс.
Hash Partitioning in Oracle
16:25
Просмотров 29 тыс.
Range Partitioning in Oracle
15:00
Просмотров 24 тыс.
Reverse Key Index :Types of Btree Index in Oracle
15:44
SQL Querying for Beginners Tutorial
2:45:17
Просмотров 259 тыс.
Composite Partitioning in Oracle
12:14
Просмотров 13 тыс.