SlideShare una empresa de Scribd logo
1 de 35
Descargar para leer sin conexión
DATABASE MANAGEMENT SYSTEM
ORACLE SQL AND PL/SQL
PART III : Advanced Concepts & Technologies
Teaching Aid Material
(www.phindia.com/gupta)

Authors invite your valuable feedback and suggestions on the book
pkdasgupta@gmail.com
RadhaKrishna_P@infosys.com
DATABASE MANAGEMENT SYSTEM
ORACLE SQL AND PL/SQL
PART III : Advanced Concepts & Technologies

CHAPTER 13
Query Processing
File Organization
Distributed Processing
CHAPTER 13
Query Processing
1 of 3

Page reference in the book: 321-325
CHAPTER 13
Query Processing
2 of 3

Major components of Query Processing Engine





Query Parser
Query Optimizer
Query Code Generator
Run-time Database Processor

Query Processing is supported by




System catalogs
Database statistics
Main database

Page reference in the book: 321-325
CHAPTER 13
Query Processing
3 of 3

SELECT C.CNAME, P.PNAME
FROM CUSTOMER C, PRODUCT P, SALE S
WHERE C.CID=S.CID AND P.PID=S.PID AND P.PCOST>10;
Two example plans for the above query are:
Plan (a) Use the indexed/hashed CUSTOMER, PRODUCT and SALE tables. Find
PNAME whose cost is greater than 10 and then join the three tables.
Plan (b) Take cross product of tables CUSTOMER, PRODUCT and SALE, which are
neither sorted nor hashed. Join rows based on CID and PID and after that select
display CNAME and PNAME based on PCOST greater than 10.

In case of
Plan (a)

execution time will be in terms of seconds

Plan (b)

execution time will be in terms of minutes

Page reference in the book: 321-325
CHAPTER 13
File Organization
1 of 17

Sequential


Records are stored in sequence based on the primary key value

Indexed





Index Part
Data Part
Dense Index
Sparse Index

Page reference in the book: 325 -328
CHAPTER 13
File Organization
2 of 17

Page reference in the book: 325 -328
CHAPTER 13
File Organization
3 of 17

Binary Tree

Node:
Parent of a node:
Child:
Root:
Leaf Node:
Height’ of a tree:

Stores the actual data and links to the other node
Immediate predecessor of a node
An immediate successor of a parent node
Designated node which has no parent
Node which is at the bottom most end and does not have any child
Maximum number of nodes in a path starting from the root node to a leaf
node
Degree’ of a node: Maximum number of children that is possible for a node

A binary tree is empty or consists of a node (called root)
together with two binary trees called the left subtree and right
subtree of the root. A binary tree is a full binary tree if it
contains the maximum possible number of nodes at all levels.

Page reference in the book: 328-333
CHAPTER 13
File Organization
4 of 17

Page reference in the book: 328-333
CHAPTER 13
File Organization
5 of 17

Page reference in the book: 328-333
CHAPTER 13
File Organization
6 of 17

Page reference in the book: 328-333
CHAPTER 13
File Organization
7 of 17

Page reference in the book: 328-333
CHAPTER 13
File Organization
8 of 17

Page reference in the book: 328-333
CHAPTER 13
File Organization
9 of 17

Page reference in the book: 328-333
CHAPTER 13
File Organization
10 of 17

Hashing
Provides key-to-Address transformation using some function known
as hashing function
Types of Hashing:
Static Hashing
Dynamic Hashing

Page reference in the book: 333-339
CHAPTER 13
File Organization
11 of 17

Static Hashing

Page reference in the book: 333-339
CHAPTER 13
File Organization
12 of 17

Static Hashing

Page reference in the book: 333-339
CHAPTER 13
File Organization
13 of 17

Dynamic Hashing

Page reference in the book: 333-339
CHAPTER 13
File Organization
14 of 17

Dynamic Hashing

Page reference in the book: 333-339
CHAPTER 13
File Organization
15 of 17

Dynamic Hashing

Page reference in the book: 333-339
CHAPTER 13
File Organization
16 of 17

Dynamic Hashing

Page reference in the book: 333-339
CHAPTER 13
File Organization
17 of 17

Dynamic Hashing

Page reference in the book: 333-339
CHAPTER 13
Distributed Processing
1 of 5

Client/Server Architecture (or Two-Tier Arch)
 Client program initiates communication and
 server program cater the requests
Three-Tier Architecture
 Data tier (back-end)
 Logic tier (middle tier)
 Presentation tier (front tier)

Page reference in the book: 339-345
CHAPTER 13
Distributed Processing
2 of 5

Client/Server Architecture


Payroll software running on Oracle database server



Payroll application is developed using Visual Basic software



Three computers are used:
 One for database (server side or back-end)
 Two for clients (or front-ends)



TCP/IP networking protocol is used to establish the network

Page reference in the book: 339-345
CHAPTER 13
Distributed Processing
3 of 5

Page reference in the book: 339-345
CHAPTER 13
Distributed Processing
4 of 5

Three-tier Architecture
Message Board

Oracle database server is
used in the data tier (or
back-end)
In the logic-tier (or middletier) Dot net server is used
In the front-end, Internet
Explorer is used

Page reference in the book: 339-345
CHAPTER 13
Distributed Processing
5 of 5

Page reference in the book: 339-345
CHAPTER 13
Short/Objective Type Questions
1 of 4

Q1.

What is the correlation between ‘execution plan’ and ‘query
optimization’ in query processing?

Q2.

Describe optimization technique used in Oracle database server.

Q3.

Briefly describe ISAM.

Q4.

What is the difference between B+ Tree and B– Tree?

Q5.

Illustrates advantages of dynamic hashing over static hashing.

Q6.

Describe advantages of two-tier and three-tier architectures.

Q7.

Describe ETL, OLTP and OLAP.

Q8.

Describe classification and association in data mining with the help of
an example.

Q9.

Write two software suitable for middle-tier of 3-tier architecture.

Q10. Elaborate query processing with the help of an appropriate diagram.
CHAPTER 13
Short/Objective Type Questions
2 of 4

Q11. Major component(s) of query processing is/are
(a) Query parser
(b) Query optimizer
(c) Run-time database processor
(d) Query file organizer
Q12. In dense index, the number of index record is
(a) More than the number of records in the data file
(b) Less than the number of records in the data file
(c) Equal to the number of records in the data file
(d) None of the above
Q13. Index part and data part are related to
(a) B+ tree
(b) ISAM
(c) B– tree
(d) Hashing
CHAPTER 13
Short/Objective Type Questions
3 of 4

Q14. B+ tree and B– tree are form of a
(a) Binary tree
(b) Balanced tree
(c) Basic tree
(d) Bi-variant tree
Q15. The situation when static hash function generates the same bucket
number for several search key values is known as
(a) Overflow
(b) Underflow
(c) Collision
(d) Spitting
Q16. Two-tier architecture is known as
(a) Web based architecture
(b) Client server architecture
(c) Multi-tier architecture
(d) Master–slave architecture
CHAPTER 13
Short/Objective Type Questions
4 of 4

Q17. Example of presentation tier (or front-tier) in 3-tier is/are
(a) Oracle database server
(b) Internet explorer
(c) Mozila firefox
(d) Visual basic
Q18. Primary job ETL is/are
(a) Finding interesting patterns
(b) Moving data from source to destination repositories
(c) Online transaction processing
(d) Online analytical processing
Q19. Keyword related to data mining is/are
(a) Extraction of non-trivial information
(b) Data preprocessing
(c) Online analytical processing
(d) Revealing unexpected information
CHAPTER 13
Home Assignment
WORKOUT SECTION
DATABASE MANAGEMENT SYSTEM
ORACLE SQL AND PL/SQL
PART III : Advanced Concepts & Technologies
Periods Proposed – 12 to 18
Chapter 13
Query Processing, File Organization & Distributed Processing

2-3 Periods [Theory]

Chapter 14
Transaction Processing, Concurrency Control, Oracle Architecture, Backup & Recovery

2-3 Periods [Theory]

Chapter 15
Data Warehousing

2-3 Period [Theory]

Chapter 16
Online Analytical Processing and Materialized Views

2-3 Period [Theory]

Chapter 17
Data Mining Overview

2-3 Period [Theory]

Chapter 18
Data Mining techniques

2-3 Period [Theory]
THE BOOK
The book is organized into three parts to introduce the
theoretical and programming concepts of DBMS. Part I
(Basic Concepts and Oracle SQL) deals with DBMS basic,
software analysis and design, data flow diagram, ER model,
relational algebra, normal forms, SQL queries, functions,
sub‐queries, different types of joins, DCL, DDL, DML, object
constraints and security in Oracle. Part II (Application Using
Oracle PL/SQL) explains PL/SQL basics, functions,
procedures, packages, exception handling, triggers, implicit,
explicit and advanced cursors using suitable examples. This
part also covers advanced concepts related to PL/SQL, such
as collection, records, objects, dynamic SQL and
performance tuning. Part III (Advanced Concepts and
Technologies) elaborates on advanced database concepts
such as query processing, file organization, distributed
architecture, backup, recovery, data warehousing, online
analytical processing and data mining concepts and their
techniques.

KEY FEATURES
 Includes about 300 examples to illustrate the concepts.
 Offers about 400 objective type questions.
 Provides about 100 challenging workouts.

TEACHING AID MATERIAL
Teaching Aid Material for all the chapters is provided on the
website of PHI Learning. Visit www.phindia.com/gupta to
explore the contents.
Visit PHI Learning Center www.phindia.com/gupta and Click on Instructor Resources to
access Teaching Aid Material for all the 18 chapters of the book.

Más contenido relacionado

La actualidad más candente

Ch 8 introduction to data structures
Ch 8 introduction to data structuresCh 8 introduction to data structures
Ch 8 introduction to data structuresChaffey College
 
Database management system chapter5
Database management system chapter5Database management system chapter5
Database management system chapter5Pranab Dasgupta
 
Unit 2 - Data Manipulation with R.pptx
Unit 2 - Data Manipulation with R.pptxUnit 2 - Data Manipulation with R.pptx
Unit 2 - Data Manipulation with R.pptxMalla Reddy University
 
Data Structure the Basic Structure for Programming
Data Structure the Basic Structure for ProgrammingData Structure the Basic Structure for Programming
Data Structure the Basic Structure for Programmingpaperpublications3
 
Presentation on data preparation with pandas
Presentation on data preparation with pandasPresentation on data preparation with pandas
Presentation on data preparation with pandasAkshitaKanther
 
Data resource management and DSS
Data resource management and DSSData resource management and DSS
Data resource management and DSSRajThakuri
 
14. Files - Data Structures using C++ by Varsha Patil
14. Files - Data Structures using C++ by Varsha Patil14. Files - Data Structures using C++ by Varsha Patil
14. Files - Data Structures using C++ by Varsha Patilwidespreadpromotion
 
A Novel Data Extraction and Alignment Method for Web Databases
A Novel Data Extraction and Alignment Method for Web DatabasesA Novel Data Extraction and Alignment Method for Web Databases
A Novel Data Extraction and Alignment Method for Web DatabasesIJMER
 
6. Linked list - Data Structures using C++ by Varsha Patil
6. Linked list - Data Structures using C++ by Varsha Patil6. Linked list - Data Structures using C++ by Varsha Patil
6. Linked list - Data Structures using C++ by Varsha Patilwidespreadpromotion
 
Efficient Record De-Duplication Identifying Using Febrl Framework
Efficient Record De-Duplication Identifying Using Febrl FrameworkEfficient Record De-Duplication Identifying Using Febrl Framework
Efficient Record De-Duplication Identifying Using Febrl FrameworkIOSR Journals
 
ความรู้เบื้องต้นฐานข้อมูล 1
ความรู้เบื้องต้นฐานข้อมูล 1ความรู้เบื้องต้นฐานข้อมูล 1
ความรู้เบื้องต้นฐานข้อมูล 1Witoon Thammatuch-aree
 
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionarySe 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionarybabak danyal
 
12. Heaps - Data Structures using C++ by Varsha Patil
12. Heaps - Data Structures using C++ by Varsha Patil12. Heaps - Data Structures using C++ by Varsha Patil
12. Heaps - Data Structures using C++ by Varsha Patilwidespreadpromotion
 
Scaling Application on High Performance Computing Clusters and Analysis of th...
Scaling Application on High Performance Computing Clusters and Analysis of th...Scaling Application on High Performance Computing Clusters and Analysis of th...
Scaling Application on High Performance Computing Clusters and Analysis of th...Rusif Eyvazli
 

La actualidad más candente (20)

Ch 8 introduction to data structures
Ch 8 introduction to data structuresCh 8 introduction to data structures
Ch 8 introduction to data structures
 
Database management system chapter5
Database management system chapter5Database management system chapter5
Database management system chapter5
 
Memory management
Memory managementMemory management
Memory management
 
Unit 2 - Data Manipulation with R.pptx
Unit 2 - Data Manipulation with R.pptxUnit 2 - Data Manipulation with R.pptx
Unit 2 - Data Manipulation with R.pptx
 
Data Structure the Basic Structure for Programming
Data Structure the Basic Structure for ProgrammingData Structure the Basic Structure for Programming
Data Structure the Basic Structure for Programming
 
Ch1
Ch1Ch1
Ch1
 
Presentation on data preparation with pandas
Presentation on data preparation with pandasPresentation on data preparation with pandas
Presentation on data preparation with pandas
 
Data resource management and DSS
Data resource management and DSSData resource management and DSS
Data resource management and DSS
 
Bo4301369372
Bo4301369372Bo4301369372
Bo4301369372
 
14. Files - Data Structures using C++ by Varsha Patil
14. Files - Data Structures using C++ by Varsha Patil14. Files - Data Structures using C++ by Varsha Patil
14. Files - Data Structures using C++ by Varsha Patil
 
A Novel Data Extraction and Alignment Method for Web Databases
A Novel Data Extraction and Alignment Method for Web DatabasesA Novel Data Extraction and Alignment Method for Web Databases
A Novel Data Extraction and Alignment Method for Web Databases
 
6. Linked list - Data Structures using C++ by Varsha Patil
6. Linked list - Data Structures using C++ by Varsha Patil6. Linked list - Data Structures using C++ by Varsha Patil
6. Linked list - Data Structures using C++ by Varsha Patil
 
Efficient Record De-Duplication Identifying Using Febrl Framework
Efficient Record De-Duplication Identifying Using Febrl FrameworkEfficient Record De-Duplication Identifying Using Febrl Framework
Efficient Record De-Duplication Identifying Using Febrl Framework
 
ความรู้เบื้องต้นฐานข้อมูล 1
ความรู้เบื้องต้นฐานข้อมูล 1ความรู้เบื้องต้นฐานข้อมูล 1
ความรู้เบื้องต้นฐานข้อมูล 1
 
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionarySe 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary
 
12. Heaps - Data Structures using C++ by Varsha Patil
12. Heaps - Data Structures using C++ by Varsha Patil12. Heaps - Data Structures using C++ by Varsha Patil
12. Heaps - Data Structures using C++ by Varsha Patil
 
Extend db
Extend dbExtend db
Extend db
 
Scaling Application on High Performance Computing Clusters and Analysis of th...
Scaling Application on High Performance Computing Clusters and Analysis of th...Scaling Application on High Performance Computing Clusters and Analysis of th...
Scaling Application on High Performance Computing Clusters and Analysis of th...
 
ER modeling
ER modelingER modeling
ER modeling
 
ADB introduction
ADB introductionADB introduction
ADB introduction
 

Destacado

Presenter manual oracle dba (specially for summer interns)
Presenter manual oracle dba (specially for summer interns)Presenter manual oracle dba (specially for summer interns)
Presenter manual oracle dba (specially for summer interns)XPERT INFOTECH
 
Using Maven to build Java & Android program
Using Maven to build Java & Android programUsing Maven to build Java & Android program
Using Maven to build Java & Android programMu Chun Wang
 
Java, Eclipse, Maven & JSF tutorial
Java, Eclipse, Maven & JSF tutorialJava, Eclipse, Maven & JSF tutorial
Java, Eclipse, Maven & JSF tutorialRaghavan Mohan
 
KeyLabsTraining - Courses
KeyLabsTraining - CoursesKeyLabsTraining - Courses
KeyLabsTraining - CoursesChinna Botla
 
Database management system chapter1
Database management system chapter1Database management system chapter1
Database management system chapter1Pranab Dasgupta
 
Java9 and the impact on Maven Projects (JFall 2016)
Java9 and the impact on Maven Projects (JFall 2016)Java9 and the impact on Maven Projects (JFall 2016)
Java9 and the impact on Maven Projects (JFall 2016)Robert Scholte
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle ArchitectureNeeraj Singh
 
Maven university-course
Maven university-courseMaven university-course
Maven university-courseOlivier Lamy
 
DBMS lab manual
DBMS lab manualDBMS lab manual
DBMS lab manualmaha tce
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and ArchitectureSidney Chen
 
A must Sql notes for beginners
A must Sql notes for beginnersA must Sql notes for beginners
A must Sql notes for beginnersRam Sagar Mourya
 
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Beat Signer
 

Destacado (20)

Presenter manual oracle dba (specially for summer interns)
Presenter manual oracle dba (specially for summer interns)Presenter manual oracle dba (specially for summer interns)
Presenter manual oracle dba (specially for summer interns)
 
Using Maven to build Java & Android program
Using Maven to build Java & Android programUsing Maven to build Java & Android program
Using Maven to build Java & Android program
 
Installing java, eclipse and maven
Installing java, eclipse and mavenInstalling java, eclipse and maven
Installing java, eclipse and maven
 
Java, Eclipse, Maven & JSF tutorial
Java, Eclipse, Maven & JSF tutorialJava, Eclipse, Maven & JSF tutorial
Java, Eclipse, Maven & JSF tutorial
 
Oracle - Introduction
Oracle - IntroductionOracle - Introduction
Oracle - Introduction
 
KeyLabsTraining - Courses
KeyLabsTraining - CoursesKeyLabsTraining - Courses
KeyLabsTraining - Courses
 
Database management system chapter1
Database management system chapter1Database management system chapter1
Database management system chapter1
 
Java9 and the impact on Maven Projects (JFall 2016)
Java9 and the impact on Maven Projects (JFall 2016)Java9 and the impact on Maven Projects (JFall 2016)
Java9 and the impact on Maven Projects (JFall 2016)
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle Architecture
 
Maven university-course
Maven university-courseMaven university-course
Maven university-course
 
DBMS lab manual
DBMS lab manualDBMS lab manual
DBMS lab manual
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
 
DBMS Practical File
DBMS Practical FileDBMS Practical File
DBMS Practical File
 
Best sql plsql material
Best sql plsql materialBest sql plsql material
Best sql plsql material
 
SQL : introduction
SQL : introductionSQL : introduction
SQL : introduction
 
SQL Basics
SQL BasicsSQL Basics
SQL Basics
 
A must Sql notes for beginners
A must Sql notes for beginnersA must Sql notes for beginners
A must Sql notes for beginners
 
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with ExamplesDML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
 
Cs437 lecture 1-6
Cs437 lecture 1-6Cs437 lecture 1-6
Cs437 lecture 1-6
 

Similar a Database management system chapter13

It 302 computerized accounting (week 2) - sharifah
It 302   computerized accounting (week 2) - sharifahIt 302   computerized accounting (week 2) - sharifah
It 302 computerized accounting (week 2) - sharifahalish sha
 
Querying datasets on the Web with high availability
Querying datasets on the Web with high availabilityQuerying datasets on the Web with high availability
Querying datasets on the Web with high availabilityRuben Verborgh
 
Part2- The Atomic Information Resource
Part2- The Atomic Information ResourcePart2- The Atomic Information Resource
Part2- The Atomic Information ResourceJEAN-MICHEL LETENNIER
 
Apache Carbondata: An Indexed Columnar File Format for Interactive Query with...
Apache Carbondata: An Indexed Columnar File Format for Interactive Query with...Apache Carbondata: An Indexed Columnar File Format for Interactive Query with...
Apache Carbondata: An Indexed Columnar File Format for Interactive Query with...Spark Summit
 
Data Warehouse ( Dw Of Dwh )
Data Warehouse ( Dw Of Dwh )Data Warehouse ( Dw Of Dwh )
Data Warehouse ( Dw Of Dwh )Jenny Calhoon
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxsqlserver4
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle databaseSamar Prasad
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle databaseSamar Prasad
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfSameerKhanPathan7
 

Similar a Database management system chapter13 (20)

Lecture 3 note.pptx
Lecture 3 note.pptxLecture 3 note.pptx
Lecture 3 note.pptx
 
D B M S Animate
D B M S AnimateD B M S Animate
D B M S Animate
 
It 302 computerized accounting (week 2) - sharifah
It 302   computerized accounting (week 2) - sharifahIt 302   computerized accounting (week 2) - sharifah
It 302 computerized accounting (week 2) - sharifah
 
Querying datasets on the Web with high availability
Querying datasets on the Web with high availabilityQuerying datasets on the Web with high availability
Querying datasets on the Web with high availability
 
Part2- The Atomic Information Resource
Part2- The Atomic Information ResourcePart2- The Atomic Information Resource
Part2- The Atomic Information Resource
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 
Dbms 1
Dbms 1Dbms 1
Dbms 1
 
Apache Carbondata: An Indexed Columnar File Format for Interactive Query with...
Apache Carbondata: An Indexed Columnar File Format for Interactive Query with...Apache Carbondata: An Indexed Columnar File Format for Interactive Query with...
Apache Carbondata: An Indexed Columnar File Format for Interactive Query with...
 
Data Warehouse ( Dw Of Dwh )
Data Warehouse ( Dw Of Dwh )Data Warehouse ( Dw Of Dwh )
Data Warehouse ( Dw Of Dwh )
 
Database Systems Concepts, 5th Ed
Database Systems Concepts, 5th EdDatabase Systems Concepts, 5th Ed
Database Systems Concepts, 5th Ed
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
V33119122
V33119122V33119122
V33119122
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
dbms notes.ppt
dbms notes.pptdbms notes.ppt
dbms notes.ppt
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
 
ora_sothea
ora_sotheaora_sothea
ora_sothea
 

Último

Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptxJonalynLegaspi2
 

Último (20)

Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptx
 

Database management system chapter13

  • 1. DATABASE MANAGEMENT SYSTEM ORACLE SQL AND PL/SQL PART III : Advanced Concepts & Technologies Teaching Aid Material (www.phindia.com/gupta) Authors invite your valuable feedback and suggestions on the book pkdasgupta@gmail.com RadhaKrishna_P@infosys.com
  • 2. DATABASE MANAGEMENT SYSTEM ORACLE SQL AND PL/SQL PART III : Advanced Concepts & Technologies CHAPTER 13 Query Processing File Organization Distributed Processing
  • 3. CHAPTER 13 Query Processing 1 of 3 Page reference in the book: 321-325
  • 4. CHAPTER 13 Query Processing 2 of 3 Major components of Query Processing Engine     Query Parser Query Optimizer Query Code Generator Run-time Database Processor Query Processing is supported by    System catalogs Database statistics Main database Page reference in the book: 321-325
  • 5. CHAPTER 13 Query Processing 3 of 3 SELECT C.CNAME, P.PNAME FROM CUSTOMER C, PRODUCT P, SALE S WHERE C.CID=S.CID AND P.PID=S.PID AND P.PCOST>10; Two example plans for the above query are: Plan (a) Use the indexed/hashed CUSTOMER, PRODUCT and SALE tables. Find PNAME whose cost is greater than 10 and then join the three tables. Plan (b) Take cross product of tables CUSTOMER, PRODUCT and SALE, which are neither sorted nor hashed. Join rows based on CID and PID and after that select display CNAME and PNAME based on PCOST greater than 10. In case of Plan (a) execution time will be in terms of seconds Plan (b) execution time will be in terms of minutes Page reference in the book: 321-325
  • 6. CHAPTER 13 File Organization 1 of 17 Sequential  Records are stored in sequence based on the primary key value Indexed     Index Part Data Part Dense Index Sparse Index Page reference in the book: 325 -328
  • 7. CHAPTER 13 File Organization 2 of 17 Page reference in the book: 325 -328
  • 8. CHAPTER 13 File Organization 3 of 17 Binary Tree Node: Parent of a node: Child: Root: Leaf Node: Height’ of a tree: Stores the actual data and links to the other node Immediate predecessor of a node An immediate successor of a parent node Designated node which has no parent Node which is at the bottom most end and does not have any child Maximum number of nodes in a path starting from the root node to a leaf node Degree’ of a node: Maximum number of children that is possible for a node A binary tree is empty or consists of a node (called root) together with two binary trees called the left subtree and right subtree of the root. A binary tree is a full binary tree if it contains the maximum possible number of nodes at all levels. Page reference in the book: 328-333
  • 9. CHAPTER 13 File Organization 4 of 17 Page reference in the book: 328-333
  • 10. CHAPTER 13 File Organization 5 of 17 Page reference in the book: 328-333
  • 11. CHAPTER 13 File Organization 6 of 17 Page reference in the book: 328-333
  • 12. CHAPTER 13 File Organization 7 of 17 Page reference in the book: 328-333
  • 13. CHAPTER 13 File Organization 8 of 17 Page reference in the book: 328-333
  • 14. CHAPTER 13 File Organization 9 of 17 Page reference in the book: 328-333
  • 15. CHAPTER 13 File Organization 10 of 17 Hashing Provides key-to-Address transformation using some function known as hashing function Types of Hashing: Static Hashing Dynamic Hashing Page reference in the book: 333-339
  • 16. CHAPTER 13 File Organization 11 of 17 Static Hashing Page reference in the book: 333-339
  • 17. CHAPTER 13 File Organization 12 of 17 Static Hashing Page reference in the book: 333-339
  • 18. CHAPTER 13 File Organization 13 of 17 Dynamic Hashing Page reference in the book: 333-339
  • 19. CHAPTER 13 File Organization 14 of 17 Dynamic Hashing Page reference in the book: 333-339
  • 20. CHAPTER 13 File Organization 15 of 17 Dynamic Hashing Page reference in the book: 333-339
  • 21. CHAPTER 13 File Organization 16 of 17 Dynamic Hashing Page reference in the book: 333-339
  • 22. CHAPTER 13 File Organization 17 of 17 Dynamic Hashing Page reference in the book: 333-339
  • 23. CHAPTER 13 Distributed Processing 1 of 5 Client/Server Architecture (or Two-Tier Arch)  Client program initiates communication and  server program cater the requests Three-Tier Architecture  Data tier (back-end)  Logic tier (middle tier)  Presentation tier (front tier) Page reference in the book: 339-345
  • 24. CHAPTER 13 Distributed Processing 2 of 5 Client/Server Architecture  Payroll software running on Oracle database server  Payroll application is developed using Visual Basic software  Three computers are used:  One for database (server side or back-end)  Two for clients (or front-ends)  TCP/IP networking protocol is used to establish the network Page reference in the book: 339-345
  • 25. CHAPTER 13 Distributed Processing 3 of 5 Page reference in the book: 339-345
  • 26. CHAPTER 13 Distributed Processing 4 of 5 Three-tier Architecture Message Board Oracle database server is used in the data tier (or back-end) In the logic-tier (or middletier) Dot net server is used In the front-end, Internet Explorer is used Page reference in the book: 339-345
  • 27. CHAPTER 13 Distributed Processing 5 of 5 Page reference in the book: 339-345
  • 28. CHAPTER 13 Short/Objective Type Questions 1 of 4 Q1. What is the correlation between ‘execution plan’ and ‘query optimization’ in query processing? Q2. Describe optimization technique used in Oracle database server. Q3. Briefly describe ISAM. Q4. What is the difference between B+ Tree and B– Tree? Q5. Illustrates advantages of dynamic hashing over static hashing. Q6. Describe advantages of two-tier and three-tier architectures. Q7. Describe ETL, OLTP and OLAP. Q8. Describe classification and association in data mining with the help of an example. Q9. Write two software suitable for middle-tier of 3-tier architecture. Q10. Elaborate query processing with the help of an appropriate diagram.
  • 29. CHAPTER 13 Short/Objective Type Questions 2 of 4 Q11. Major component(s) of query processing is/are (a) Query parser (b) Query optimizer (c) Run-time database processor (d) Query file organizer Q12. In dense index, the number of index record is (a) More than the number of records in the data file (b) Less than the number of records in the data file (c) Equal to the number of records in the data file (d) None of the above Q13. Index part and data part are related to (a) B+ tree (b) ISAM (c) B– tree (d) Hashing
  • 30. CHAPTER 13 Short/Objective Type Questions 3 of 4 Q14. B+ tree and B– tree are form of a (a) Binary tree (b) Balanced tree (c) Basic tree (d) Bi-variant tree Q15. The situation when static hash function generates the same bucket number for several search key values is known as (a) Overflow (b) Underflow (c) Collision (d) Spitting Q16. Two-tier architecture is known as (a) Web based architecture (b) Client server architecture (c) Multi-tier architecture (d) Master–slave architecture
  • 31. CHAPTER 13 Short/Objective Type Questions 4 of 4 Q17. Example of presentation tier (or front-tier) in 3-tier is/are (a) Oracle database server (b) Internet explorer (c) Mozila firefox (d) Visual basic Q18. Primary job ETL is/are (a) Finding interesting patterns (b) Moving data from source to destination repositories (c) Online transaction processing (d) Online analytical processing Q19. Keyword related to data mining is/are (a) Extraction of non-trivial information (b) Data preprocessing (c) Online analytical processing (d) Revealing unexpected information
  • 33. DATABASE MANAGEMENT SYSTEM ORACLE SQL AND PL/SQL PART III : Advanced Concepts & Technologies Periods Proposed – 12 to 18 Chapter 13 Query Processing, File Organization & Distributed Processing 2-3 Periods [Theory] Chapter 14 Transaction Processing, Concurrency Control, Oracle Architecture, Backup & Recovery 2-3 Periods [Theory] Chapter 15 Data Warehousing 2-3 Period [Theory] Chapter 16 Online Analytical Processing and Materialized Views 2-3 Period [Theory] Chapter 17 Data Mining Overview 2-3 Period [Theory] Chapter 18 Data Mining techniques 2-3 Period [Theory]
  • 34. THE BOOK The book is organized into three parts to introduce the theoretical and programming concepts of DBMS. Part I (Basic Concepts and Oracle SQL) deals with DBMS basic, software analysis and design, data flow diagram, ER model, relational algebra, normal forms, SQL queries, functions, sub‐queries, different types of joins, DCL, DDL, DML, object constraints and security in Oracle. Part II (Application Using Oracle PL/SQL) explains PL/SQL basics, functions, procedures, packages, exception handling, triggers, implicit, explicit and advanced cursors using suitable examples. This part also covers advanced concepts related to PL/SQL, such as collection, records, objects, dynamic SQL and performance tuning. Part III (Advanced Concepts and Technologies) elaborates on advanced database concepts such as query processing, file organization, distributed architecture, backup, recovery, data warehousing, online analytical processing and data mining concepts and their techniques. KEY FEATURES  Includes about 300 examples to illustrate the concepts.  Offers about 400 objective type questions.  Provides about 100 challenging workouts. TEACHING AID MATERIAL Teaching Aid Material for all the chapters is provided on the website of PHI Learning. Visit www.phindia.com/gupta to explore the contents.
  • 35. Visit PHI Learning Center www.phindia.com/gupta and Click on Instructor Resources to access Teaching Aid Material for all the 18 chapters of the book.