SlideShare a Scribd company logo
4
Most read
5
Most read
6
Most read
Index Management
Database Administration and Management
Need of Index
When we run query (Select marks from student where marks <33);
OR
When we run query (Select sale from employee where salary <5000);
 Frequently verifying conditions
 Frequently assessing
 Assessing multiple records
Index
 Index maintains column data in ascending order
 It also maintain addresses
Why we use Index
 Decrease no. of verification
 Save time
 Better performance
Example
Roll_No Name Marks Address Roll_No Marks
1 Ali 45 BWP 5 22
2 Usama 87 LHR 6 30
3 Usman 48 BWP 1 45
4 Ahmed 64 BWP 3 48
5 Amir 22 BWP 4 64
6 Umer 30 LHR 2 87
Types of Index
 Simple Index
 Composite Index
 Unique Index
 Reversing Index
 Function based Index
 Bitmap Index
Simple Index
 Index create on single column. e.g., sale from employee table ,marks from
student table, etc.
Query
 Create INDEX IDX_SALARY on employee(sale);
 Searching in index, not table
Composite Index
 Index creates on multiple columns on any table.
Query
 Create INDEX idx_s.no_rollNo on students(s.no, rollNo);
Unique Index
 Index creates on columns -----οƒ  no duplication
Query
 Create UNIQUE INDEX idx_mobileNo on customers_dtls(mobile);
Reversing Index
 Want to search data frequently looking for highest value.
 Normally List values-------οƒ  beginning, Highest value---------οƒ ending
 Its searching is fast because its work in reversing order.
 Based on Binary tree.------οƒ  right to left in b.tree.
 Create INDEX idx_sales_amt on sales(sales_amt) REVERSE;
Function based index
 Work on function based.
 Suppose I have a table of employee, and have a column of emp_id,salary,commission
Query
 Select e_id,sal(0.100*sal) from emp
 Create Index idx_sal on emp(sal(0.100*sal))init cap(ename);
Bitmap index
 Bits ---------οƒ  0,1
 Less number of values in columns
 E.g.,
 status--οƒ active/inactive,
 Gender--οƒ male/female
Query
 Create bitmap Index id_gender on customer(gender);
Note:
 All index created based on the binary tree index.

More Related Content

PDF
Sql wksht-3
PDF
MySQL Performance Optimization
PPTX
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
PDF
SQA server performance tuning
PPT
asdasdasdasdsadasdasdasdasdsadasdasdasdsadsadasd
PPT
Mysql Indexing
PDF
MySQL: Indexing for Better Performance
PPTX
Business Intelligence Portfolio
Sql wksht-3
MySQL Performance Optimization
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
SQA server performance tuning
asdasdasdasdsadasdasdasdasdsadasdasdasdsadsadasd
Mysql Indexing
MySQL: Indexing for Better Performance
Business Intelligence Portfolio

Similar to Index and types of Index used in Oracle.pptx (20)

DOCX
Indexes in ms sql server
PPTX
Query parameterization
PPTX
Tunning sql query
PDF
SQL on Linux and its uses and application.pdf
PPTX
unit 3nit unit 1_unit1_unit1_.unit 1_unit1_unit1_
PPTX
unit 3nit unit 1_unit1_unit1_.unit 1_unit1_unit1_
PDF
Introduction to Databases - query optimizations for MySQL
PPTX
Data Manipulation Language.pptx
PPTX
How mysql choose the execution plan
PPTX
Clase 12 manejo indices modificada
PPTX
Clase 12 manejo indices modificada
PDF
SQL command for daily use ddl dml dcl dql
DOCX
unit 4,Indexes in database.docx
PDF
SQL Lesson 6 - Select.pdf
PDF
MySQL for beginners
PDF
sql language
PDF
Mentor Your Indexes
ODP
SQL Tunning
PDF
Performance Optimization MongoDB: Compound Indexes
PPT
Module08
Indexes in ms sql server
Query parameterization
Tunning sql query
SQL on Linux and its uses and application.pdf
unit 3nit unit 1_unit1_unit1_.unit 1_unit1_unit1_
unit 3nit unit 1_unit1_unit1_.unit 1_unit1_unit1_
Introduction to Databases - query optimizations for MySQL
Data Manipulation Language.pptx
How mysql choose the execution plan
Clase 12 manejo indices modificada
Clase 12 manejo indices modificada
SQL command for daily use ddl dml dcl dql
unit 4,Indexes in database.docx
SQL Lesson 6 - Select.pdf
MySQL for beginners
sql language
Mentor Your Indexes
SQL Tunning
Performance Optimization MongoDB: Compound Indexes
Module08
Ad

More from GSCWU (7)

PPTX
XMPP and SIP Presence Protocols for Messaging and Session Control.pptx
Β 
PPTX
ORACLE NET ARCHITECTURE and Its Components.pptx
Β 
PPTX
Amazon Web Services(AWS) in cloud Computing .pptx
Β 
PPTX
Amazon Web Services and its Global Infrastructure.pptx
Β 
PPT
Image Enhancement and Histogram Equalization in Digital Image Processing.ppt
Β 
PPT
Human Visual System in Digital Image Processing.ppt
Β 
PPTX
1.Service Models of Cloud Computing .pptx
Β 
XMPP and SIP Presence Protocols for Messaging and Session Control.pptx
Β 
ORACLE NET ARCHITECTURE and Its Components.pptx
Β 
Amazon Web Services(AWS) in cloud Computing .pptx
Β 
Amazon Web Services and its Global Infrastructure.pptx
Β 
Image Enhancement and Histogram Equalization in Digital Image Processing.ppt
Β 
Human Visual System in Digital Image Processing.ppt
Β 
1.Service Models of Cloud Computing .pptx
Β 
Ad

Recently uploaded (20)

PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PDF
Testing WebRTC applications at scale.pdf
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
Internet___Basics___Styled_ presentation
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PPTX
E -tech empowerment technologies PowerPoint
PDF
Paper PDF World Game (s) Great Redesign.pdf
PPT
tcp ip networks nd ip layering assotred slides
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PDF
The Internet -By the Numbers, Sri Lanka Edition
Β 
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
Testing WebRTC applications at scale.pdf
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Internet___Basics___Styled_ presentation
Cloud-Scale Log Monitoring _ Datadog.pdf
E -tech empowerment technologies PowerPoint
Paper PDF World Game (s) Great Redesign.pdf
tcp ip networks nd ip layering assotred slides
Slides PPTX World Game (s) Eco Economic Epochs.pptx
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
The Internet -By the Numbers, Sri Lanka Edition
Β 
Tenda Login Guide: Access Your Router in 5 Easy Steps
WebRTC in SignalWire - troubleshooting media negotiation
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Job_Card_System_Styled_lorem_ipsum_.pptx
522797556-Unit-2-Temperature-measurement-1-1.pptx
Unit-1 introduction to cyber security discuss about how to secure a system
Design_with_Watersergyerge45hrbgre4top (1).ppt
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx

Index and types of Index used in Oracle.pptx

  • 2. Need of Index When we run query (Select marks from student where marks <33); OR When we run query (Select sale from employee where salary <5000);  Frequently verifying conditions  Frequently assessing  Assessing multiple records Index  Index maintains column data in ascending order  It also maintain addresses Why we use Index  Decrease no. of verification  Save time  Better performance
  • 3. Example Roll_No Name Marks Address Roll_No Marks 1 Ali 45 BWP 5 22 2 Usama 87 LHR 6 30 3 Usman 48 BWP 1 45 4 Ahmed 64 BWP 3 48 5 Amir 22 BWP 4 64 6 Umer 30 LHR 2 87
  • 4. Types of Index  Simple Index  Composite Index  Unique Index  Reversing Index  Function based Index  Bitmap Index Simple Index  Index create on single column. e.g., sale from employee table ,marks from student table, etc. Query  Create INDEX IDX_SALARY on employee(sale);  Searching in index, not table
  • 5. Composite Index  Index creates on multiple columns on any table. Query  Create INDEX idx_s.no_rollNo on students(s.no, rollNo); Unique Index  Index creates on columns -----οƒ  no duplication Query  Create UNIQUE INDEX idx_mobileNo on customers_dtls(mobile); Reversing Index  Want to search data frequently looking for highest value.  Normally List values-------οƒ  beginning, Highest value---------οƒ ending  Its searching is fast because its work in reversing order.  Based on Binary tree.------οƒ  right to left in b.tree.  Create INDEX idx_sales_amt on sales(sales_amt) REVERSE;
  • 6. Function based index  Work on function based.  Suppose I have a table of employee, and have a column of emp_id,salary,commission Query  Select e_id,sal(0.100*sal) from emp  Create Index idx_sal on emp(sal(0.100*sal))init cap(ename); Bitmap index  Bits ---------οƒ  0,1  Less number of values in columns  E.g.,  status--οƒ active/inactive,  Gender--οƒ male/female Query  Create bitmap Index id_gender on customer(gender); Note:  All index created based on the binary tree index.