SlidePub
Home
Categories
Login
Register
Home
Business
Database management systems for software
Database management systems for software
ManishShukla712917
5 views
10 slides
Jul 14, 2024
Slide
1
of 10
Previous
Next
1
2
3
4
5
6
7
8
9
10
About This Presentation
This is a presentation on database management system.
Size:
233.4 KB
Language:
en
Added:
Jul 14, 2024
Slides:
10 pages
Slide Content
Slide 1
Copyright © Oracle Corporation, 2001. All rights reserved.
Other Database Objects
Slide 2
12-2 Copyright © Oracle Corporation, 2001. All rights reserved.
Objectives
After completing this lesson, you should be able to
do the following:
•Create, maintain, and use sequences
•Create and maintain indexes
•Create private and public synonyms
Slide 3
12-3 Copyright © Oracle Corporation, 2001. All rights reserved.
Database Objects
Description
Basic unit of storage; composed of rows
and columns
Logically represents subsets of data from
one or more tables
Generates primary key values
Improves the performance of some queries
Alternative name for an object
Object
Table
View
Sequence
Index
Synonym
Slide 4
12-4 Copyright © Oracle Corporation, 2001. All rights reserved.
What is an Index?
An index:
•Is a schema object
•Is used by the Oracle server to speed up the
retrieval of rows by using a pointer
•Can reduce disk I/O by using a rapid path access
method to locate data quickly
•Is independent of the table it indexes
•Is used and maintained automatically by the
Oracle server
Slide 5
12-5 Copyright © Oracle Corporation, 2001. All rights reserved.
How Are Indexes Created?
•Automatically: A unique index is created
automatically when you define a PRIMARY KEYor
UNIQUEconstraint in a table definition.
•Manually: Users can create nonunique indexes on
columns to speed up access to the rows.
Slide 6
12-6 Copyright © Oracle Corporation, 2001. All rights reserved.
Creating an Index
•Create an index on one or more columns.
•Improve the speed of query access to the
LAST_NAMEcolumn in the EMPLOYEEStable.
CREATE INDEX emp_last_name_idx
ON employees(last_name);
Index created.
CREATE INDEX index
ON table(column[, column]...);
Slide 7
12-7 Copyright © Oracle Corporation, 2001. All rights reserved.
When to Create an Index
You should create an index if:
•A column contains a wide range of values
•A column contains a large number of null values
•One or more columns are frequently used together
in a WHEREclause or a join condition
•The table is large and most queries are expected
to retrieve less than 2 to 4 percent of the rows
Slide 8
12-8 Copyright © Oracle Corporation, 2001. All rights reserved.
When Not to Create an Index
It is usually not worth creating an index if:
•The table is small
•The columns are not often used as a condition in
the query
•Most queries are expected to retrieve more than 2
to 4 percent of the rows in the table
•The table is updated frequently
•The indexed columns are referenced as part of an
expression
Slide 9
12-9 Copyright © Oracle Corporation, 2001. All rights reserved.
SELECT ic.index_name, ic.column_name,
ic.column_position col_pos,ix.uniqueness
FROM user_indexes ix, user_ind_columns ic
WHERE ic.index_name = ix.index_name
AND ic.table_name = 'EMPLOYEES';
Confirming Indexes
•The USER_INDEXESdata dictionary view contains
the name of the index and its uniqueness.
•The USER_IND_COLUMNSview contains the index
name, the table name, and the column name.
Slide 10
12-10 Copyright © Oracle Corporation, 2001. All rights reserved.
Removing an Index
•Remove an index from the data dictionary by
using the DROP INDEXcommand.
•Remove the UPPER_LAST_NAME_IDX index from
the data dictionary.
•To drop an index, you must be the owner of the
index or have the DROP ANY INDEXprivilege.
DROP INDEX upper_last_name_idx;
Index dropped.
DROP INDEX index;
Tags
database management system
Categories
Business
Technology
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
5
Slides
10
Age
507 days
Related Slideshows
1
DTI BPI Pivot Small Business - BUSINESS START UP PLAN
MeljunCortes
31 views
1
CATHOLIC EDUCATIONAL Corporate Responsibilities
MeljunCortes
31 views
11
Karin Schaupp – Evocation; lançamento: 2000
alfeuRIO
31 views
10
Pillars of Biblical Oneness in the Book of Acts
JanParon
27 views
31
7-10. STP + Branding and Product & Services Strategies.pptx
itsyash298
29 views
44
Business Legislation PPT - UNIT 1 jimllpkggg
slogeshk98
32 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-10)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better