SlideShare a Scribd company logo
Database Design
&
Management
Objectives of this lecture:
The meaning of the term database
The Characteristics of DB approach
The benefits with DB approach
Clearly understand the different types of database.
Understand the client/server Architecture
Discuss the different components of DBMS
environment.
Definition of Database
“ Database is a shared collection of logically
Database is a shared collection of logically
related data, designed to meet the
related data, designed to meet the
information needs of multiple users in an
information needs of multiple users in an
organization
organization ”
Database is designed, built, and populated
Database is designed, built, and populated
with data for a specific purpose. It has an
with data for a specific purpose. It has an
intended group of users and preconceived
intended group of users and preconceived
applications in which these users are
applications in which these users are
interested.
interested.
What is a Database …
What is a Database …
A brief definition is
A brief definition is
For performing daily operational & Administrative
For performing daily operational & Administrative
tasks.
tasks.
For later observations & analysis.
For later observations & analysis.
Using some storage device like HDD, Cartridge disk,
Using some storage device like HDD, Cartridge disk,
Compact Disk, Tape Devices.
Compact Disk, Tape Devices.
An organized store of information
An organized store of information.
.
Held over a period of time.
Held over a period of time.
In computer readable form.
In computer readable form.
D
Database
atabase
characteristics
characteristics
and
and
advantages
advantages
Minimal duplications
of data
File sharing
Easy data retrieval
The Range of
Database Applications
• Personal Database – standalone desktop database
• Workgroup Database – local area network (<25 users)
• Department Database – local area network (25-100 users)
• Enterprise Database – wide-area network (hundreds or
thousands of users)
Personal
Personal
Computer
Computer
Database
Database
Workgroup database with local area network
Workgroup database with local area network
An
An
enterprise
enterprise
data
data
warehouse
warehouse
Types of Database
There are different types of databases according
to:
(1)Function / Purpose of database
(2)Location of database
(3)Model of database
(4)Architecture of database
Analytic Databases
Analytic databases (a.k.a. OLAP- On Line Analytical
Processing) are primarily static, read-only databases
which store archived, historical data used for analysis. For
example, a company might store sales records over the
last ten years in an analytic database and use that
database to analyze marketing strategies in relationship
to demographics.
• On the web,analytic databases in the form of inventory
catalogs such as Amazon.com. An inventory catalog
analytical database usually holds descriptive information
about all available products in the inventory.
• Web pages are generated dynamically by querying the list
of available products in the inventory against some search
parameters. The dynamically-generated page will display
the information about each item (such as title, author,
ISBN) which is stored in the database.
Operational Databases
• Operational databases (a.k.a. OLTP On Line
Transaction Processing), on the other hand, are used to
manage more dynamic bits of data. These types of
databases allow you to do more than simply view
archived data. Operational databases allow you to
modify that data (add, change or delete data).
• These types of databases are usually used to track real-
time information.
• For example, a company might have an operational
database used to track warehouse/stock quantities. As
customers order products from an online web store, an
operational database can be used to keep track of how
many items have been sold and when the company will
need to reorder stock.
Types of Database
• Centralized
Database
• Personal Computer
Database.
• Multi user Database
• Distributed
Database
• Homogenous.
• Heterogenous.
Corporate Computing Model.
Corporate Computing Model.
Each terminal has its own database.
Each terminal has its own database.
No sharing of data.
No sharing of data.
Stand alone
Stand alone
Multi-User DBMS Architectures
• Client-server
- Teleprocessing
- File Server
- Database Server
What is “Client/Server”
• “Client/server” is sometimes used to
refer to processes (clients) that request
services of other processes (servers) –
these processes may execute either on
the same or different computers
• However, “client/server database”
generally implies that the processes
execute on different machines
Client/Server Architecture
• A client/server system (whether database
oriented or not) can be thought of as having
three main software components:
– A front end application (resident at the client
and with which the user interacts)
– A back end application (resident on the server
and which services the client requests)
– Communication middleware
Network
R
e
q
u
e
s
t
Result
Elements of C-S Computing
Elements of C-S Computing
a client, a server, and network
a client, a server, and network
Client
Server
Client machine
Server machine
Application Tasks
User Interface
Presentation Logic
Application Logic
Data Requests & Results
Physical Data Management
Teleprocessing
• Traditional architecture.
• Single mainframe with a number of
terminals attached.
• Trend is now towards downsizing.
Presentation Logic
Application Logic
DBMS
Client
Server
Network
K
e
y
s
t
r
o
k
e
Displays
Client (dumb) - Server Model
Client (dumb) - Server Model
File-Server
• File-server is connected to several workstations across a
network.
• Database resides on file-server.
• DBMS and applications run on each workstation.
• Disadvantages include:
– Significant network traffic.
– Copy of DBMS on each workstation.
– Concurrency, recovery and integrity control more complex.
File Server Database Systems
Database
Operating
System
Client Server
Fully
Functional
DBMS
File requests,
Updated whole files
Whole files
File-Server Architecture
Database-Server
• Server holds the database and the DBMS.
• Client manages user interface and runs
applications.
• Advantages include:
– wider access to existing databases;
– increased performance;
– possible reduction in hardware costs;
– reduction in communication costs;
– increased consistency.
Database Server Systems
Database
Full-fledged
DBMS
Client Server
Application
Program
SQL
Required record(s)
Database-Server Model
Presentation Logic
Client
Server
Network
K
e
y
s
t
r
o
k
e
Processed
Results
Application Logic
DBMS
Database-Server Architecture
More About Client/Server …
More About Client/Server …
Types of Client/Server
Types of Client/Server
One Server – One Client
One Server – One Client
Server
Server
One Server – many clients
One Server – many clients
Client 2
Client 2
Client 3
Client 3
Client 1
Client 1
Server
Server
More About Client/Server …
More About Client/Server …
Types of Client/Server
Types of Client/Server
Many Servers – Many Clients
Many Servers – Many Clients
Client &
Client &
Server
Server
Client &
Client &
Server
Server
Client &
Client &
Server
Server
Database Schema
Database Schema
The description of the database is called
The description of the database is called
database schema. A database schema is
database schema. A database schema is
describe during database design and not
describe during database design and not
expected to change frequently.
expected to change frequently.
Schema Diagram
Schema Diagram
Displayed schema is called schema diagram.
Displayed schema is called schema diagram.
Each object in schema is called a schema
Each object in schema is called a schema
construct.
construct.
Database instance (occurrence or state)
Database instance (occurrence or state)
The data in a database at a particular
The data in a database at a particular
moment of time.
moment of time.
Intension & Extension
Intension & Extension
The schema is sometimes called the
The schema is sometimes called the
intension and a database instance is called
intension and a database instance is called
an extension of the schema.
an extension of the schema.
Database Languages
Database Languages
Used to specify the conceptual schema
Used to specify the conceptual schema
Used to specify the internal schema
Used to specify the internal schema
Used to specify the external schema
Used to specify the external schema
Used for manipulation of data, like retrieval,
Used for manipulation of data, like retrieval,
insertion, deletion and modification.
insertion, deletion and modification.
Data Definition Language (DDL)
Data Definition Language (DDL)
Storage Definition Language (SDL)
Storage Definition Language (SDL)
View Definition Language (VDL)
View Definition Language (VDL)
Data Manipulation Language (DML)
Data Manipulation Language (DML)
DDL, DML, DCL
DDL, DML, DCL,
Host Language
Host Language
Data sub-language
Data sub-language
A general purpose programming language,
A general purpose programming language,
providing various non-database facilities, such
providing various non-database facilities, such
as variables declarations, computational
as variables declarations, computational
operators, logic construct and so on.
operators, logic construct and so on.
For example: C, C++, VBA, COBOL
For example: C, C++, VBA, COBOL
Embedded language within the host language.
Embedded language within the host language.
For example: SQL can be used as standalone
For example: SQL can be used as standalone
language and also as embedded in C or VB.
language and also as embedded in C or VB.
Possible databases
• Personal address book
• a collection of documents
• a collection of excel
spreadsheets
• data, collected, maintained and
used somewhere
Components of the
Database Environment
• CASE Tools:
computer-aided software engineering
• Repository:
centralized storehouse of metadata
DBMS Operational environment is an
DBMS Operational environment is an
integrated system of hardware, software and
integrated system of hardware, software and
people that is designed to facilitate the
people that is designed to facilitate the
storage , retrieval and control of the
storage , retrieval and control of the
information resources and to improve the
information resources and to improve the
productivity of the organization.
productivity of the organization.
Components of the Database Environment
• Application Programs:
software using the data
• User Interface:
text and graphical displays to users
Database Management System:
Database Management System:
software for managing the database
software for managing the database
Database:
Database:
storehouse of the data
storehouse of the data
Components of the Database Environment
• System Developers :
personnel responsible for designing
databases and software
• End Users:
people who use the applications and
databases
Data Administrators:
Data Administrators:
personnel responsible for maintaining the
personnel responsible for maintaining the
database
database
Components of the database environment
Components of the database environment
Database System
Environment
Users/Programs
Application Programs/Queries
Software to Process
Queries/Programs
Software to Access Stored Data
Stored Database
Stored Database
Definition
Definition
Stored
Stored
Database
Database
Database Components
DBMS
===============
Design tools
Table Creation
Form Creation
Query Creation
Report Creation
Procedural
language
compiler (4GL)
=============
Run time
Form processor
Query processor
Report Writer
Language Run time
User
Interface
Applications
Application
Programs
Database
Database contains:
User’s Data
Metadata
Indexes
Application Metadata
CASE Tools:
• Purpose –
• To support the efficient and effective
development of database applications.
• CASE support may include
– A data dictionary to store information about
the database application’s data.
– Design tools to support data analysis.
– Tools to develop the corporate, conceptual,
and logical data models.
– Tools to enable the prototyping of applications.
Divided into three categories:
• upper-CASE,
• lower-CASE, and
• integrated-CASE.
Can provide the following benefits
• – Standards
• – Integration
• – Support for standard methods
• – Consistency
• – Automation
Database Application Lifecycle – CASE Tools
System Catalog
A repository of information (meta-data)
describing, formally, the data in the database.
Also sometimes called a data dictionary.
• Typically stores:
• – Names of authorized users.
• – Names of data items in the database.
• – Constraints on each data item.
• – Data items accessible by a user and the
• type of access.
System Catalog
It is used by modules such as:
• – Authorization Control.
• – Integrity Checker.
• Types of System Catalog:
• Active
• Passive
Interfaces to a Data Dictionary
Database
Administrators
Application
Programmers
End Users
Data Dictionary
Compilers /
Precompilers
Application Programs /
Report Generators
Integrity
Constraint
Enforcer
Human Interfaces
Software and
DBMS Interfaces
Evolution of DB Systems
• Flat files - 1960s - 1980s
• Hierarchical – 1970s - 1990s
• Network – 1970s - 1990s
• Relational – 1980s - present
• Object-oriented – 1990s - present
• Object-relational – 1990s - present
• Data warehousing – 1980s - present
• Web-enabled – 1990s - present
Database models
• 1960
s
• 1970s
• 1990s
Traditional
files
Hierarchical
Network
• 1980s
Relational
Object oriented
Object-relational
• 2000s
Client Oriented
?
Summary
• Definition of Database
• Types of database
• Range of databases
• Possible databases
• Components of database environment
Assignment # 1
Write down the detail definitions, functioning
structure with diagrams and advantages and
limitations for different Flavours of Client/Server
System:
• Transaction server
• Application server
• Data Server
• Compute Server
• Communication Server
• Video Server
Ad

More Related Content

Similar to Software Design and Architecture. -2.ppt (20)

20CS402 - DATABASE MANAGEMENT SYSTEMS NOTES
20CS402 - DATABASE MANAGEMENT SYSTEMS NOTES20CS402 - DATABASE MANAGEMENT SYSTEMS NOTES
20CS402 - DATABASE MANAGEMENT SYSTEMS NOTES
vani15332
 
PHP/MySQL First Session Material
PHP/MySQL First Session MaterialPHP/MySQL First Session Material
PHP/MySQL First Session Material
National IT Professionals Association of Afghanistan
 
System Analysis And Design
System Analysis And DesignSystem Analysis And Design
System Analysis And Design
Lijo Stalin
 
DB_Lec_1 and 2.pptx
DB_Lec_1 and 2.pptxDB_Lec_1 and 2.pptx
DB_Lec_1 and 2.pptx
harissheraz12345
 
Database Systems Concepts, 5th Ed
Database Systems Concepts, 5th EdDatabase Systems Concepts, 5th Ed
Database Systems Concepts, 5th Ed
Daniel Francisco Tamayo
 
Chap gshsiiajsbbJAIOAJB68292uhsbiw8622.ppt
Chap gshsiiajsbbJAIOAJB68292uhsbiw8622.pptChap gshsiiajsbbJAIOAJB68292uhsbiw8622.ppt
Chap gshsiiajsbbJAIOAJB68292uhsbiw8622.ppt
SagniTolasa
 
INTRODUCTION OF DATA BASE
INTRODUCTION OF DATA BASEINTRODUCTION OF DATA BASE
INTRODUCTION OF DATA BASE
AMUTHAG2
 
Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.ppt
ChSheraz3
 
SQL- Introduction to SQL database
SQL- Introduction to SQL database SQL- Introduction to SQL database
SQL- Introduction to SQL database
Vibrant Technologies & Computers
 
Database Systems Lec 1.pptx
Database Systems Lec 1.pptxDatabase Systems Lec 1.pptx
Database Systems Lec 1.pptx
NishaTariq1
 
Beginning Of DBMS (data base)
Beginning Of DBMS (data base)Beginning Of DBMS (data base)
Beginning Of DBMS (data base)
Surya Swaroop
 
Dbms
DbmsDbms
Dbms
sangeethachandrabose
 
databas (2).pdf
databas (2).pdfdatabas (2).pdf
databas (2).pdf
Janoakre
 
DBMS 1.pdf from computer application for business
DBMS 1.pdf from computer application for businessDBMS 1.pdf from computer application for business
DBMS 1.pdf from computer application for business
sudeshnachand
 
DATA RESOURCE MANAGEMENT
DATA RESOURCE MANAGEMENT DATA RESOURCE MANAGEMENT
DATA RESOURCE MANAGEMENT
huma sh
 
Database management systems
Database management systemsDatabase management systems
Database management systems
Joel Briza
 
Week 1
Week 1Week 1
Week 1
kcmskist
 
Unit01 dbms
Unit01 dbmsUnit01 dbms
Unit01 dbms
arnold 7490
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management Systems
We Learn - A Continuous Learning Forum from Welingkar's Distance Learning Program.
 
Database
DatabaseDatabase
Database
sahil shinwari
 

Recently uploaded (20)

Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
VKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptxVKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptx
Vinod Srivastava
 
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Abodahab
 
computer organization and assembly language.docx
computer organization and assembly language.docxcomputer organization and assembly language.docx
computer organization and assembly language.docx
alisoftwareengineer1
 
定制学历(美国Purdue毕业证)普渡大学电子版毕业证
定制学历(美国Purdue毕业证)普渡大学电子版毕业证定制学历(美国Purdue毕业证)普渡大学电子版毕业证
定制学历(美国Purdue毕业证)普渡大学电子版毕业证
Taqyea
 
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docxMASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
santosh162
 
Deloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining ProjectsDeloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining Projects
Process mining Evangelist
 
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
Simran112433
 
Geometry maths presentation for begginers
Geometry maths presentation for begginersGeometry maths presentation for begginers
Geometry maths presentation for begginers
zrjacob283
 
C++_OOPs_DSA1_Presentation_Template.pptx
C++_OOPs_DSA1_Presentation_Template.pptxC++_OOPs_DSA1_Presentation_Template.pptx
C++_OOPs_DSA1_Presentation_Template.pptx
aquibnoor22079
 
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbbEDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
JessaMaeEvangelista2
 
ISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptx
ISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptxISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptx
ISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptx
pankaj6188303
 
Decision Trees in Artificial-Intelligence.pdf
Decision Trees in Artificial-Intelligence.pdfDecision Trees in Artificial-Intelligence.pdf
Decision Trees in Artificial-Intelligence.pdf
Saikat Basu
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
Defense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptxDefense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptx
Greg Makowski
 
VKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptxVKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptx
Vinod Srivastava
 
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
ThanushsaranS
 
Calories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptxCalories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptx
TijiLMAHESHWARI
 
Conic Sectionfaggavahabaayhahahahahs.pptx
Conic Sectionfaggavahabaayhahahahahs.pptxConic Sectionfaggavahabaayhahahahahs.pptx
Conic Sectionfaggavahabaayhahahahahs.pptx
taiwanesechetan
 
Principles of information security Chapter 5.ppt
Principles of information security Chapter 5.pptPrinciples of information security Chapter 5.ppt
Principles of information security Chapter 5.ppt
EstherBaguma
 
Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
VKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptxVKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptx
Vinod Srivastava
 
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Abodahab
 
computer organization and assembly language.docx
computer organization and assembly language.docxcomputer organization and assembly language.docx
computer organization and assembly language.docx
alisoftwareengineer1
 
定制学历(美国Purdue毕业证)普渡大学电子版毕业证
定制学历(美国Purdue毕业证)普渡大学电子版毕业证定制学历(美国Purdue毕业证)普渡大学电子版毕业证
定制学历(美国Purdue毕业证)普渡大学电子版毕业证
Taqyea
 
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docxMASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
santosh162
 
Deloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining ProjectsDeloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining Projects
Process mining Evangelist
 
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
Simran112433
 
Geometry maths presentation for begginers
Geometry maths presentation for begginersGeometry maths presentation for begginers
Geometry maths presentation for begginers
zrjacob283
 
C++_OOPs_DSA1_Presentation_Template.pptx
C++_OOPs_DSA1_Presentation_Template.pptxC++_OOPs_DSA1_Presentation_Template.pptx
C++_OOPs_DSA1_Presentation_Template.pptx
aquibnoor22079
 
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbbEDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
JessaMaeEvangelista2
 
ISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptx
ISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptxISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptx
ISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptx
pankaj6188303
 
Decision Trees in Artificial-Intelligence.pdf
Decision Trees in Artificial-Intelligence.pdfDecision Trees in Artificial-Intelligence.pdf
Decision Trees in Artificial-Intelligence.pdf
Saikat Basu
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
Defense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptxDefense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptx
Greg Makowski
 
VKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptxVKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptx
Vinod Srivastava
 
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
ThanushsaranS
 
Calories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptxCalories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptx
TijiLMAHESHWARI
 
Conic Sectionfaggavahabaayhahahahahs.pptx
Conic Sectionfaggavahabaayhahahahahs.pptxConic Sectionfaggavahabaayhahahahahs.pptx
Conic Sectionfaggavahabaayhahahahahs.pptx
taiwanesechetan
 
Principles of information security Chapter 5.ppt
Principles of information security Chapter 5.pptPrinciples of information security Chapter 5.ppt
Principles of information security Chapter 5.ppt
EstherBaguma
 
Ad

Software Design and Architecture. -2.ppt

  • 1. Database Design & Management Objectives of this lecture: The meaning of the term database The Characteristics of DB approach The benefits with DB approach Clearly understand the different types of database. Understand the client/server Architecture Discuss the different components of DBMS environment.
  • 2. Definition of Database “ Database is a shared collection of logically Database is a shared collection of logically related data, designed to meet the related data, designed to meet the information needs of multiple users in an information needs of multiple users in an organization organization ” Database is designed, built, and populated Database is designed, built, and populated with data for a specific purpose. It has an with data for a specific purpose. It has an intended group of users and preconceived intended group of users and preconceived applications in which these users are applications in which these users are interested. interested.
  • 3. What is a Database … What is a Database … A brief definition is A brief definition is For performing daily operational & Administrative For performing daily operational & Administrative tasks. tasks. For later observations & analysis. For later observations & analysis. Using some storage device like HDD, Cartridge disk, Using some storage device like HDD, Cartridge disk, Compact Disk, Tape Devices. Compact Disk, Tape Devices. An organized store of information An organized store of information. . Held over a period of time. Held over a period of time. In computer readable form. In computer readable form.
  • 5. The Range of Database Applications • Personal Database – standalone desktop database • Workgroup Database – local area network (<25 users) • Department Database – local area network (25-100 users) • Enterprise Database – wide-area network (hundreds or thousands of users)
  • 7. Workgroup database with local area network Workgroup database with local area network
  • 9. Types of Database There are different types of databases according to: (1)Function / Purpose of database (2)Location of database (3)Model of database (4)Architecture of database
  • 10. Analytic Databases Analytic databases (a.k.a. OLAP- On Line Analytical Processing) are primarily static, read-only databases which store archived, historical data used for analysis. For example, a company might store sales records over the last ten years in an analytic database and use that database to analyze marketing strategies in relationship to demographics. • On the web,analytic databases in the form of inventory catalogs such as Amazon.com. An inventory catalog analytical database usually holds descriptive information about all available products in the inventory. • Web pages are generated dynamically by querying the list of available products in the inventory against some search parameters. The dynamically-generated page will display the information about each item (such as title, author, ISBN) which is stored in the database.
  • 11. Operational Databases • Operational databases (a.k.a. OLTP On Line Transaction Processing), on the other hand, are used to manage more dynamic bits of data. These types of databases allow you to do more than simply view archived data. Operational databases allow you to modify that data (add, change or delete data). • These types of databases are usually used to track real- time information. • For example, a company might have an operational database used to track warehouse/stock quantities. As customers order products from an online web store, an operational database can be used to keep track of how many items have been sold and when the company will need to reorder stock.
  • 12. Types of Database • Centralized Database • Personal Computer Database. • Multi user Database • Distributed Database • Homogenous. • Heterogenous.
  • 13. Corporate Computing Model. Corporate Computing Model. Each terminal has its own database. Each terminal has its own database. No sharing of data. No sharing of data. Stand alone Stand alone
  • 14. Multi-User DBMS Architectures • Client-server - Teleprocessing - File Server - Database Server
  • 15. What is “Client/Server” • “Client/server” is sometimes used to refer to processes (clients) that request services of other processes (servers) – these processes may execute either on the same or different computers • However, “client/server database” generally implies that the processes execute on different machines
  • 16. Client/Server Architecture • A client/server system (whether database oriented or not) can be thought of as having three main software components: – A front end application (resident at the client and with which the user interacts) – A back end application (resident on the server and which services the client requests) – Communication middleware
  • 17. Network R e q u e s t Result Elements of C-S Computing Elements of C-S Computing a client, a server, and network a client, a server, and network Client Server Client machine Server machine
  • 18. Application Tasks User Interface Presentation Logic Application Logic Data Requests & Results Physical Data Management
  • 19. Teleprocessing • Traditional architecture. • Single mainframe with a number of terminals attached. • Trend is now towards downsizing.
  • 21. File-Server • File-server is connected to several workstations across a network. • Database resides on file-server. • DBMS and applications run on each workstation. • Disadvantages include: – Significant network traffic. – Copy of DBMS on each workstation. – Concurrency, recovery and integrity control more complex.
  • 22. File Server Database Systems Database Operating System Client Server Fully Functional DBMS File requests, Updated whole files Whole files
  • 24. Database-Server • Server holds the database and the DBMS. • Client manages user interface and runs applications. • Advantages include: – wider access to existing databases; – increased performance; – possible reduction in hardware costs; – reduction in communication costs; – increased consistency.
  • 25. Database Server Systems Database Full-fledged DBMS Client Server Application Program SQL Required record(s)
  • 28. More About Client/Server … More About Client/Server … Types of Client/Server Types of Client/Server One Server – One Client One Server – One Client Server Server One Server – many clients One Server – many clients Client 2 Client 2 Client 3 Client 3 Client 1 Client 1 Server Server
  • 29. More About Client/Server … More About Client/Server … Types of Client/Server Types of Client/Server Many Servers – Many Clients Many Servers – Many Clients Client & Client & Server Server Client & Client & Server Server Client & Client & Server Server
  • 30. Database Schema Database Schema The description of the database is called The description of the database is called database schema. A database schema is database schema. A database schema is describe during database design and not describe during database design and not expected to change frequently. expected to change frequently. Schema Diagram Schema Diagram Displayed schema is called schema diagram. Displayed schema is called schema diagram. Each object in schema is called a schema Each object in schema is called a schema construct. construct.
  • 31. Database instance (occurrence or state) Database instance (occurrence or state) The data in a database at a particular The data in a database at a particular moment of time. moment of time. Intension & Extension Intension & Extension The schema is sometimes called the The schema is sometimes called the intension and a database instance is called intension and a database instance is called an extension of the schema. an extension of the schema.
  • 32. Database Languages Database Languages Used to specify the conceptual schema Used to specify the conceptual schema Used to specify the internal schema Used to specify the internal schema Used to specify the external schema Used to specify the external schema Used for manipulation of data, like retrieval, Used for manipulation of data, like retrieval, insertion, deletion and modification. insertion, deletion and modification. Data Definition Language (DDL) Data Definition Language (DDL) Storage Definition Language (SDL) Storage Definition Language (SDL) View Definition Language (VDL) View Definition Language (VDL) Data Manipulation Language (DML) Data Manipulation Language (DML)
  • 33. DDL, DML, DCL DDL, DML, DCL,
  • 34. Host Language Host Language Data sub-language Data sub-language A general purpose programming language, A general purpose programming language, providing various non-database facilities, such providing various non-database facilities, such as variables declarations, computational as variables declarations, computational operators, logic construct and so on. operators, logic construct and so on. For example: C, C++, VBA, COBOL For example: C, C++, VBA, COBOL Embedded language within the host language. Embedded language within the host language. For example: SQL can be used as standalone For example: SQL can be used as standalone language and also as embedded in C or VB. language and also as embedded in C or VB.
  • 35. Possible databases • Personal address book • a collection of documents • a collection of excel spreadsheets • data, collected, maintained and used somewhere
  • 36. Components of the Database Environment • CASE Tools: computer-aided software engineering • Repository: centralized storehouse of metadata DBMS Operational environment is an DBMS Operational environment is an integrated system of hardware, software and integrated system of hardware, software and people that is designed to facilitate the people that is designed to facilitate the storage , retrieval and control of the storage , retrieval and control of the information resources and to improve the information resources and to improve the productivity of the organization. productivity of the organization.
  • 37. Components of the Database Environment • Application Programs: software using the data • User Interface: text and graphical displays to users Database Management System: Database Management System: software for managing the database software for managing the database Database: Database: storehouse of the data storehouse of the data
  • 38. Components of the Database Environment • System Developers : personnel responsible for designing databases and software • End Users: people who use the applications and databases Data Administrators: Data Administrators: personnel responsible for maintaining the personnel responsible for maintaining the database database
  • 39. Components of the database environment Components of the database environment
  • 40. Database System Environment Users/Programs Application Programs/Queries Software to Process Queries/Programs Software to Access Stored Data Stored Database Stored Database Definition Definition Stored Stored Database Database
  • 41. Database Components DBMS =============== Design tools Table Creation Form Creation Query Creation Report Creation Procedural language compiler (4GL) ============= Run time Form processor Query processor Report Writer Language Run time User Interface Applications Application Programs Database Database contains: User’s Data Metadata Indexes Application Metadata
  • 42. CASE Tools: • Purpose – • To support the efficient and effective development of database applications. • CASE support may include – A data dictionary to store information about the database application’s data. – Design tools to support data analysis. – Tools to develop the corporate, conceptual, and logical data models. – Tools to enable the prototyping of applications.
  • 43. Divided into three categories: • upper-CASE, • lower-CASE, and • integrated-CASE. Can provide the following benefits • – Standards • – Integration • – Support for standard methods • – Consistency • – Automation
  • 45. System Catalog A repository of information (meta-data) describing, formally, the data in the database. Also sometimes called a data dictionary. • Typically stores: • – Names of authorized users. • – Names of data items in the database. • – Constraints on each data item. • – Data items accessible by a user and the • type of access.
  • 46. System Catalog It is used by modules such as: • – Authorization Control. • – Integrity Checker. • Types of System Catalog: • Active • Passive
  • 47. Interfaces to a Data Dictionary Database Administrators Application Programmers End Users Data Dictionary Compilers / Precompilers Application Programs / Report Generators Integrity Constraint Enforcer Human Interfaces Software and DBMS Interfaces
  • 48. Evolution of DB Systems • Flat files - 1960s - 1980s • Hierarchical – 1970s - 1990s • Network – 1970s - 1990s • Relational – 1980s - present • Object-oriented – 1990s - present • Object-relational – 1990s - present • Data warehousing – 1980s - present • Web-enabled – 1990s - present
  • 49. Database models • 1960 s • 1970s • 1990s Traditional files Hierarchical Network • 1980s Relational Object oriented Object-relational • 2000s Client Oriented ?
  • 50. Summary • Definition of Database • Types of database • Range of databases • Possible databases • Components of database environment
  • 51. Assignment # 1 Write down the detail definitions, functioning structure with diagrams and advantages and limitations for different Flavours of Client/Server System: • Transaction server • Application server • Data Server • Compute Server • Communication Server • Video Server

Editor's Notes

  • #15: Section 2.6 of the textbook refers.
  • #16: The different “flavours” of client/server systems emerge through the point at which the division is made between the work that the front end and back end applications undertake. The communication software (“middleware”) must reside on both client and server machines.
  • #22: In this set-up essentially all the file server does is to enable the data storage device to be shared as a common resource among multiple database clients.
  • #25: An example of such a system might be a PC client running an application built using Visual Basic accessing an Oracle database on a Unix machine. A similar system can be built using an Ingres client and Ingres DBMS at the server.