PARTITIONING
PARTITIONS :
Dividing the large tables into small tables known as partitions
- Partition of single table can go in two different tablespaces
- Sorting can be done by partitioning thus we not require temporary tablespace
- Partition can be independently managed
- Backup and recovery can be done on individual partitions
- Partition that may be unavailable (if one disk goes down . that does not stop the show)
- Partition can be moved from one tablespace to another tablespace
- Partition can be dropped, added, truncated at partition level
- Select ,insert, update, delete can be done at the partition level instead of table level
- Export and import can perform at partition level also
- Partitions are use for three reasons performance, availability, manageability
TYPES OF PARTITIONS :
- Range partition: in range partition we can mention some range like deptno from 1 to 10 in one partition, 11 to 20 in another partition.
- Hash partition: in hash partition we can mention department no wise like 10th department in one partition and 20th department in another partition.
- List partition: in list partition we mention character values like sales department in one partition, accounting department in another partition.
SPECIAL INDEXES
Types of indexes
- Auto index
- Manual index
Auto index : whenever we create primary key constraint or unique key constraint on top of that column system is going to create one index for that column. That is nothing but auto index.
Manual index : it is nothing but whatever the user is creating the index depending on the requirement.
Again in manual indexes there are six types of indexes are there.
- Btree index (default index)
- Reverse key index
- Function based index
- Decending index/composite index
- Bit map index
- Index organized table
Btree index : in btree index the values will be stored in tree structure format. If you don’t mention anything by default it will create btree index.
>create index ind1 on emp(empno);
Reverse key index : in reverse key index the values will be stored in tree structure format but the values will be in reverse.
7900 0097
Function based index : whenever we create an index with functions like arithmetical operators then we call it as function based index.
>create index fbind on emp(sal+comm);
>select * from emp where sal+comm>5000;
Descending index: descending index is also known as composite index. Whenever we create an index with more than one column then we call it as descending index.
>create index dscind on emp(sal,deptno desc);
>select * from emp where sal>5000 and deptno=10;
Bitmap index: when compare to all the indexes bitmap index will occupy very much low space in the database. The reason is bitmap index contains the Boolean values like eg: yes or no, true or false, male or female.
Index organized table : above five indexes will create after creating the table. But organized index we have to create while creating the table itself only. It must and should contain one primary key. In this the values will be stored in an organized manner link za web stranicu.
How to create btree index ?
U1> create index btindex on emp(empno);
How to create reverse key index?
U1> create index revindex on emp(deptno) reverse;
How to create function based index ?
U1>create index funindex on emp(sal+comm);
How to create descending index?
U1>create index descend on emp(sal,comm desc);
How to create bitmap index?
U1>create bitmap index btmp on dept(deptno);
How to create index organized table ?
U1> create table IOT (no number primary key, name varchar2(10)) organization index;
How to rebuild the index?
Upto 9i
First drop the existing index again create the new index.
From 10g
U1>alter index <indexname> rebuild online;
employment law disputes
Very nice post. I just stumbled upon your blog and wished to say that I’ve truly enjoyed browsing your blog posts. After all I’ll be subscribing to your rss feed and I hope you write again very soon!
business consultant
Great goods from you, man. I have understand your stuff prior to and you are simply extremely wonderful. I really like what you have received right here, really like what you’re stating and the best way in which you assert it. You’re making it entertaining and you still care for to keep it wise. I can’t wait to read far more from you. That is actually a terrific site.|
online school tips
Spot on with this write-up, I truly believe that this amazing site needs a lot more attention. I’ll probably be back again to see more, thanks for the advice!
nikon camera
I am sure this article has touched all the internet viewers, its really really fastidious piece of writing on building up new blog.
financial plan
Good site you’ve got here.. It’s hard to find quality writing like yours these days. I honestly appreciate people like you! Take care!!
health benefits
Your mode of explaining all in this post is in fact fastidious, all be able to effortlessly understand it, Thanks a lot.
small business resources
I blog quite often and I seriously thank you for your information. Your article has really peaked my interest. I am going to bookmark your site and keep checking for new information about once per week. I opted in for your Feed as well.
capital investment
Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! By the way, how could we communicate?
electronic outlet
This page certainly has all of the information I wanted about this subject and didn’t know who to ask.
mobile phones
Thank you for the good writeup. It if truth be told was a leisure account it. Glance complicated to far brought agreeable from you! However, how can we communicate?
home family recipes
I’m not that much of a online reader to be honest but your sites really nice, keep it up! I’ll go ahead and bookmark your site to come back in the future. Cheers
snoring
As the admin of this website is working, no doubt very quickly it will be famous, due to its feature contents.
Manikanta
Good Data