SlideShare a Scribd company logo
1 of 32
Fundamentals of Database systems
Ministry of Higher Education
Bamyan University
Computer Science Department
1
Presented by : Mustafa Kamel Mohammadi
Email : bamian.cs@gmail.com
Databases and Database Users
Fundamentals of database system 6th edition
Agenda of course
 Database design and implementation
 Database systems introduction and concepts
 Database system architecture
 Relational Database design
 Relational algebra
 SQL
 ER modeling
2
learning objective
 In this chapter you will learn
 Introduction to database systems
 Database size and complexity
 What is DBMS?
 Characteristics of Database approach
 Users of database
 Advantages of using database system
 Database systems evolution
 When not to use database systems
3
Introduction
 Databases and database systems are an essential component of life in modern
society and used in different fields
 Schools
 Universities
 Online marketing
 Airline reservation
 Digital Libraries
 Markets
 Inventories
 Companies
4
Introduction (cont..)
 ERP (Enterprise Resource Planning) systems
 HR (Human resource)
 Finance
 Costumer relationship
 Supply
 Hospitals
 Geographical org
 Weather predictions
 Communication
5
Types of Database systems
 Traditional database
 information that is stored and accessed is either textual or numeric
 Multimedia databases
 store images, audio clips, and video streams digitally
 Geographic information systems
 can store and analyze maps, weather data, and satellite images
 Data warehouses and online analytical processing (OLAP) systems
 Extract and analyze useful business information from very large databases to support
decision making
 Real-time and active database technology
 used to control industrial and manufacturing processes
6
Definition
 A Database is a collection of logically related data
 Data = facts that can be recorded and that have implicit meaning like names, telephone
numbers, and addresses of the people
Database properties
 Represents some aspect of the real world.
 Database is a mini world.
 Designed, built, and populated with data for a specific purpose.
 It has some group of users and applications that use database.
 Has degree of interaction through application
 User is actively interested in it’s content
 Has source from which data is derived
7
8
Size and Complexity
 A Database can be of any size and complexity
 According to size
 As small to store few hundreds of records like a contact list
 As big like Google ….
 According to complexity
 Less complex like a simple insertion and retrieval system
 More complex like amazon, Facebook , financial systems
9
DBMS (Database management system)
 A collection of programs that enables users to create and maintain a database.
 It Manages Database files the same as “Windows Explorer” manages files in
Drives.
 A General-purpose software system that facilitates the
 Defining
 Involves specifying the data types, structures, and constraints of the data
 Constructing
 the process of storing the data on some storage medium
 Manipulating
 Retrieving , updating, deleting records
 Sharing
 allows multiple users and programs to access the database simultaneously
10
Cont.
 Other functions of DBMS
 Protection : protecting against hardware and software malfunction
 Security : protecting against unauthorized access
 Maintaining : allow the system to evolve as requirements change over time
 Application program accesses the database by sending queries or requests for
data to the DBMS
 Query typically causes some data to be retrieved
 Database and DBMS software together a Database System
11
Characteristics of Database approach
1-Self-Describing Nature of a Database System
The database system contains not only the data itself but also a complete
definition
Definition is stored in the DBMS catalog
 Information such as the structure of each file, the type and storage format of each data item,
and various constraints on the data
The information stored in the catalog is called meta-data
In traditional file processing, data definition is typically part of the application
programs themselves
DBMS software refers to the catalog to determine the structure of the database
elements
12
13
Cont.
2-Insulation between Programs and Data , and Data Abstraction
In file processing, changes to the structure of a file may require changing all
programs that access that file
In database approach changes in database may not require changes in application
level
We call this property program-data independence
In object oriented approach operations are also defined which causes program
operation independence
The characteristic that allows program-data independence and program-
operation independence is called Data abstraction
 hides storage and implementation details from most database users
14
Cont.
3-Support of Multiple Views of the Data
A Database typically has many users, each of whom may require a different view
of the database
A view may be a subset of the database
It may contain virtual data that is derived but not explicitly stored.
15
Cont.
4-Sharing of Data and Multiuser Transaction Processing
Sharing allow multiple users to access the database at the same time
 The DBMS must include concurrency control software
Transaction is an executing program or process that includes one or more
database accesses
16
Actor of Database
 Small database
 one person typically defines, constructs, and manipulates the database, and there maybe no
sharing
 Large scale database
 many people are involved in the design, use, and maintenance of a large database with
hundreds of users with different responsibilities
 Actors on the scene
 people whose jobs involve the day-to-day use of a large database
 Workers behind the scene
 those who work to maintain the database system environment but who are not actively
interested in the database contents
17
Actors on the Scene
 Database designer
 Communicate with all database users to understand their requirements
 Responsible for identifying the data to be stored in the database
 Choosing appropriate structures to represent and store this data
 Develop views of the database that meet the data and processing requirements
 Database administrator
 Manage primary and secondary resource ( Database and DBMS software)
 Authorizing access to the database
 Monitoring its use
 Acquiring software and hardware resources as needed
 Fix security gaps and poor system response time
18
Cont.
End users:
Casual end users
 Occasionally access database but use a sophisticated database query language
 Middle or high-level managers
Naive end users
 Using standard types of queries and update called canned transactions
Sophisticated end users
 Are familiar with Database Queries or Database Languages
 Like engineers, scientists, business analysts.
 Standalone users
 Using ready-made program packages that provide easy-to-use menu-based or graphics-
based interfaces
19
Cont.
System Analyst
 System analysts determine the requirements of end users
Application Programmers
 Application programmers implement these specifications as programs
 They test, debug, document, and maintain database transactions.
20
Actors behind the Scene
DBMS designer and implementers
Design and implement the DBMS modules and interfaces
Tool developers
design and implement tools
 software packages that facilitate database modeling and design, performance monitoring ….
Operators and maintenance personnel
responsible for the actual running and maintenance of
 hardware
 software
21
Advantages of using Database
1-Controlling Redundancy
In traditional file processing every user of the system has his/her own file
independently for recording data
 Some data might be recorded multiple times in different places.
Redundancy (storing the same data multiple times) leads to several problem
 Duplication of operation
 Storage space is wasted
 Inconsistency
22
Cont.
2-Restricting Unauthorized Access
When multiple users share a large database, most users will not be authorized to
access all information in the database
 Retrieval
 Deletion
 Update
 DBMS should provide a security and authorization subsystem
 DBA create accounts and to specify account restrictions
23
Cont.
3-Providing Persistent Storage for Program Objects
The main reasons for object-oriented database systems
Two types of object
 Transient objects
 Persistent objects
Object oriented DBMSs transform transient object to persistent
24
Cont.
4-Providing Storage Structures and Search Techniques for Efficient Query
Processing
Database systems must provide capabilities for efficiently executing queries and
updates by
 Specialized data structures
 Search techniques to speed up disk search
5-Providing Backup and Recovery
Must provide facilities for recovering from hardware or software failures
Backup and recovery subsystem of the DBMS is responsible
 Recovery by transactions
 In case of failure in query processing
 Disk backup and recovery
 In case of disk failure
25
Cont.
6-Representing Complex Relationships among Data
database may have too much entities that can have complex an numerous
relationship with each other
A DBMS must have the capability to
 Define relationship between entities
 Retrieve data according to specified relationship
7-Providing Multiple User Interfaces
DBMS should provide a variety of user interfaces for group of users
 Query languages interface
 Programming language interfaces for application programmers
 Forms
 menu-driven interfaces
known as graphical user interfaces (GUIs)
26
Cont.
8-Enforcing Integrity Constraints by :
 Specifying a data type for each data item
 Key or uniqueness constraint
 Business rules
9-Permitting Inference and Actions Using Rules
Deductive database systems
 Capabilities for defining deduction rules for inferring new information from the stored
database facts
Active database systems
 Automatically initiate actions when certain events and conditions occur.
 Triggers and events
27
Cont.
Additional implications for using database approach
Potential for Enforcing Standards
Reduced Application Development Time
Flexibility
Availability of Up-to-Date Information
28
History and evolution of Database systems
Network and hierarchical systems
Relational Databases
Object-Oriented Applications and the Need for More Complex Databases
Interchanging Data on the Web for E-Commerce Using XML
Extending Database Capabilities for New Applications
 Scientific applications
 Storage and retrieval of images and videos
 Data mining applications and analyzing large amounts of data
 Spatial applications that store spatial locations of data … GIS,GPS
 Time series applications
29
When Not to Use a DBMS
The overhead costs of using a DBMS are due to the following
High initial investment in hardware, software, and training
The generality that a DBMS provides for defining and processing data
Overhead for providing security, concurrency control, recovery
Use regular files under the following circumstances
Simple, well-defined database applications that are not expected to change at all
Embedded systems with limited storage capacity
No multiple-user access to data
Real-time requirements for some application programs that may not be met
because of DBMS overhead
30
Exercise
• Discuss the main characteristics of the Database approach and how it differs from
traditional file systems.
• What are the responsibilities of the DBA and the database designers?
• Email: bamian.cs@gmail.com
31
32

More Related Content

What's hot

1 introduction databases and database users
1 introduction databases and database users1 introduction databases and database users
1 introduction databases and database users
Kumar
 
2 database system concepts and architecture
2 database system concepts and architecture2 database system concepts and architecture
2 database system concepts and architecture
Kumar
 
Data base management system
Data base management systemData base management system
Data base management system
Navneet Jingar
 
Chapter 2 database environment
Chapter 2 database environmentChapter 2 database environment
Chapter 2 database environment
>. <
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to database
emailharmeet
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
Jotham Gadot
 

What's hot (20)

1 introduction databases and database users
1 introduction databases and database users1 introduction databases and database users
1 introduction databases and database users
 
Relational data base management system (Unit 1)
Relational data base management system (Unit 1)Relational data base management system (Unit 1)
Relational data base management system (Unit 1)
 
2 database system concepts and architecture
2 database system concepts and architecture2 database system concepts and architecture
2 database system concepts and architecture
 
Unit1 DBMS Introduction
Unit1 DBMS IntroductionUnit1 DBMS Introduction
Unit1 DBMS Introduction
 
Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
 
Data base management system
Data base management systemData base management system
Data base management system
 
Database & Database Users
Database & Database UsersDatabase & Database Users
Database & Database Users
 
Diffrence between dbms and rdbms
Diffrence between dbms and rdbmsDiffrence between dbms and rdbms
Diffrence between dbms and rdbms
 
Database management system
Database management systemDatabase management system
Database management system
 
Types of databases
Types of databases   Types of databases
Types of databases
 
DBMS an Example
DBMS an ExampleDBMS an Example
DBMS an Example
 
Chapter 2 database environment
Chapter 2 database environmentChapter 2 database environment
Chapter 2 database environment
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to database
 
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Model
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
Dbms
DbmsDbms
Dbms
 
Users of dbms
Users of dbmsUsers of dbms
Users of dbms
 
Dbms
DbmsDbms
Dbms
 

Viewers also liked

Informatica PowerAnalyzer 4.0 3 of 3
Informatica PowerAnalyzer 4.0 3 of 3Informatica PowerAnalyzer 4.0 3 of 3
Informatica PowerAnalyzer 4.0 3 of 3
ganblues
 
Relational algebra1
Relational algebra1Relational algebra1
Relational algebra1
Tianlu Wang
 
Cloud Computing
 Cloud Computing Cloud Computing
Cloud Computing
Abdul Aslam
 
Dataware housing
Dataware housingDataware housing
Dataware housing
work
 
Triggers
TriggersTriggers
Triggers
work
 
Job analysis of a reporter
Job analysis of a reporterJob analysis of a reporter
Job analysis of a reporter
Abdul Aslam
 
Zackman frame work
Zackman frame workZackman frame work
Zackman frame work
ganblues
 

Viewers also liked (18)

Applications
ApplicationsApplications
Applications
 
Informatica PowerAnalyzer 4.0 3 of 3
Informatica PowerAnalyzer 4.0 3 of 3Informatica PowerAnalyzer 4.0 3 of 3
Informatica PowerAnalyzer 4.0 3 of 3
 
Leadership
LeadershipLeadership
Leadership
 
Chain Reactions
Chain ReactionsChain Reactions
Chain Reactions
 
Android tutorial (2)
Android tutorial (2)Android tutorial (2)
Android tutorial (2)
 
Relational algebra1
Relational algebra1Relational algebra1
Relational algebra1
 
Cloud Computing
 Cloud Computing Cloud Computing
Cloud Computing
 
Dataware housing
Dataware housingDataware housing
Dataware housing
 
Informatica PowerAnalyzer 4.0 2 of 3
Informatica PowerAnalyzer 4.0 2 of 3Informatica PowerAnalyzer 4.0 2 of 3
Informatica PowerAnalyzer 4.0 2 of 3
 
Triggers
TriggersTriggers
Triggers
 
Spm report
Spm reportSpm report
Spm report
 
Extracting data from xml
Extracting data from xmlExtracting data from xml
Extracting data from xml
 
Android structure
Android structureAndroid structure
Android structure
 
Job analysis of a reporter
Job analysis of a reporterJob analysis of a reporter
Job analysis of a reporter
 
Ch03
Ch03Ch03
Ch03
 
Fundamentals of Database system
Fundamentals of Database systemFundamentals of Database system
Fundamentals of Database system
 
Zackman frame work
Zackman frame workZackman frame work
Zackman frame work
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 

Similar to Fundamentals of Database system - Databases and Database Users

Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbms
sethu pm
 
Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.ppt
LisaMalar
 
1_Chapter_One_Introduction_to_Database_Management_System_2.ppt
1_Chapter_One_Introduction_to_Database_Management_System_2.ppt1_Chapter_One_Introduction_to_Database_Management_System_2.ppt
1_Chapter_One_Introduction_to_Database_Management_System_2.ppt
abdu328357
 

Similar to Fundamentals of Database system - Databases and Database Users (20)

DataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPTDataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPT
 
data base unit one on what is databases.pptx
data base unit one on what is databases.pptxdata base unit one on what is databases.pptx
data base unit one on what is databases.pptx
 
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
 
DBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptxDBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptx
 
Db lecture 1
Db lecture 1Db lecture 1
Db lecture 1
 
Chapter one
Chapter oneChapter one
Chapter one
 
Database & dbms
Database & dbmsDatabase & dbms
Database & dbms
 
Introduction to DBMS.pptx
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptx
 
database ppt(2)
database ppt(2)database ppt(2)
database ppt(2)
 
1. Chapter One.pdf
1. Chapter One.pdf1. Chapter One.pdf
1. Chapter One.pdf
 
Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbms
 
En ch01
En ch01En ch01
En ch01
 
DBMS-1.pptx
DBMS-1.pptxDBMS-1.pptx
DBMS-1.pptx
 
File systems versus a dbms
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbms
 
Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.ppt
 
27 fcs157al2
27 fcs157al227 fcs157al2
27 fcs157al2
 
Database Management System Introduction
Database Management System IntroductionDatabase Management System Introduction
Database Management System Introduction
 
Dbms models
Dbms modelsDbms models
Dbms models
 
Database System Concepts
Database System ConceptsDatabase System Concepts
Database System Concepts
 
1_Chapter_One_Introduction_to_Database_Management_System_2.ppt
1_Chapter_One_Introduction_to_Database_Management_System_2.ppt1_Chapter_One_Introduction_to_Database_Management_System_2.ppt
1_Chapter_One_Introduction_to_Database_Management_System_2.ppt
 

More from Mustafa Kamel Mohammadi

More from Mustafa Kamel Mohammadi (10)

Web design - Working with forms in HTML
Web design - Working with forms in HTMLWeb design - Working with forms in HTML
Web design - Working with forms in HTML
 
Web design - Working with tables in HTML
Web design - Working with tables in HTMLWeb design - Working with tables in HTML
Web design - Working with tables in HTML
 
Web design - Working with Links and Images
Web design - Working with Links and ImagesWeb design - Working with Links and Images
Web design - Working with Links and Images
 
Web design - Working with Text and Lists in HTML
Web design - Working with Text and Lists in HTMLWeb design - Working with Text and Lists in HTML
Web design - Working with Text and Lists in HTML
 
Web design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introductionWeb design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introduction
 
Web design - How the Web works?
Web design - How the Web works?Web design - How the Web works?
Web design - How the Web works?
 
Web design - Applications and web application definition
Web design - Applications and web application definitionWeb design - Applications and web application definition
Web design - Applications and web application definition
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...
 
Fundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and ArchitectureFundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and Architecture
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Fundamentals of Database system - Databases and Database Users

  • 1. Fundamentals of Database systems Ministry of Higher Education Bamyan University Computer Science Department 1 Presented by : Mustafa Kamel Mohammadi Email : bamian.cs@gmail.com Databases and Database Users Fundamentals of database system 6th edition
  • 2. Agenda of course  Database design and implementation  Database systems introduction and concepts  Database system architecture  Relational Database design  Relational algebra  SQL  ER modeling 2
  • 3. learning objective  In this chapter you will learn  Introduction to database systems  Database size and complexity  What is DBMS?  Characteristics of Database approach  Users of database  Advantages of using database system  Database systems evolution  When not to use database systems 3
  • 4. Introduction  Databases and database systems are an essential component of life in modern society and used in different fields  Schools  Universities  Online marketing  Airline reservation  Digital Libraries  Markets  Inventories  Companies 4
  • 5. Introduction (cont..)  ERP (Enterprise Resource Planning) systems  HR (Human resource)  Finance  Costumer relationship  Supply  Hospitals  Geographical org  Weather predictions  Communication 5
  • 6. Types of Database systems  Traditional database  information that is stored and accessed is either textual or numeric  Multimedia databases  store images, audio clips, and video streams digitally  Geographic information systems  can store and analyze maps, weather data, and satellite images  Data warehouses and online analytical processing (OLAP) systems  Extract and analyze useful business information from very large databases to support decision making  Real-time and active database technology  used to control industrial and manufacturing processes 6
  • 7. Definition  A Database is a collection of logically related data  Data = facts that can be recorded and that have implicit meaning like names, telephone numbers, and addresses of the people Database properties  Represents some aspect of the real world.  Database is a mini world.  Designed, built, and populated with data for a specific purpose.  It has some group of users and applications that use database.  Has degree of interaction through application  User is actively interested in it’s content  Has source from which data is derived 7
  • 8. 8
  • 9. Size and Complexity  A Database can be of any size and complexity  According to size  As small to store few hundreds of records like a contact list  As big like Google ….  According to complexity  Less complex like a simple insertion and retrieval system  More complex like amazon, Facebook , financial systems 9
  • 10. DBMS (Database management system)  A collection of programs that enables users to create and maintain a database.  It Manages Database files the same as “Windows Explorer” manages files in Drives.  A General-purpose software system that facilitates the  Defining  Involves specifying the data types, structures, and constraints of the data  Constructing  the process of storing the data on some storage medium  Manipulating  Retrieving , updating, deleting records  Sharing  allows multiple users and programs to access the database simultaneously 10
  • 11. Cont.  Other functions of DBMS  Protection : protecting against hardware and software malfunction  Security : protecting against unauthorized access  Maintaining : allow the system to evolve as requirements change over time  Application program accesses the database by sending queries or requests for data to the DBMS  Query typically causes some data to be retrieved  Database and DBMS software together a Database System 11
  • 12. Characteristics of Database approach 1-Self-Describing Nature of a Database System The database system contains not only the data itself but also a complete definition Definition is stored in the DBMS catalog  Information such as the structure of each file, the type and storage format of each data item, and various constraints on the data The information stored in the catalog is called meta-data In traditional file processing, data definition is typically part of the application programs themselves DBMS software refers to the catalog to determine the structure of the database elements 12
  • 13. 13
  • 14. Cont. 2-Insulation between Programs and Data , and Data Abstraction In file processing, changes to the structure of a file may require changing all programs that access that file In database approach changes in database may not require changes in application level We call this property program-data independence In object oriented approach operations are also defined which causes program operation independence The characteristic that allows program-data independence and program- operation independence is called Data abstraction  hides storage and implementation details from most database users 14
  • 15. Cont. 3-Support of Multiple Views of the Data A Database typically has many users, each of whom may require a different view of the database A view may be a subset of the database It may contain virtual data that is derived but not explicitly stored. 15
  • 16. Cont. 4-Sharing of Data and Multiuser Transaction Processing Sharing allow multiple users to access the database at the same time  The DBMS must include concurrency control software Transaction is an executing program or process that includes one or more database accesses 16
  • 17. Actor of Database  Small database  one person typically defines, constructs, and manipulates the database, and there maybe no sharing  Large scale database  many people are involved in the design, use, and maintenance of a large database with hundreds of users with different responsibilities  Actors on the scene  people whose jobs involve the day-to-day use of a large database  Workers behind the scene  those who work to maintain the database system environment but who are not actively interested in the database contents 17
  • 18. Actors on the Scene  Database designer  Communicate with all database users to understand their requirements  Responsible for identifying the data to be stored in the database  Choosing appropriate structures to represent and store this data  Develop views of the database that meet the data and processing requirements  Database administrator  Manage primary and secondary resource ( Database and DBMS software)  Authorizing access to the database  Monitoring its use  Acquiring software and hardware resources as needed  Fix security gaps and poor system response time 18
  • 19. Cont. End users: Casual end users  Occasionally access database but use a sophisticated database query language  Middle or high-level managers Naive end users  Using standard types of queries and update called canned transactions Sophisticated end users  Are familiar with Database Queries or Database Languages  Like engineers, scientists, business analysts.  Standalone users  Using ready-made program packages that provide easy-to-use menu-based or graphics- based interfaces 19
  • 20. Cont. System Analyst  System analysts determine the requirements of end users Application Programmers  Application programmers implement these specifications as programs  They test, debug, document, and maintain database transactions. 20
  • 21. Actors behind the Scene DBMS designer and implementers Design and implement the DBMS modules and interfaces Tool developers design and implement tools  software packages that facilitate database modeling and design, performance monitoring …. Operators and maintenance personnel responsible for the actual running and maintenance of  hardware  software 21
  • 22. Advantages of using Database 1-Controlling Redundancy In traditional file processing every user of the system has his/her own file independently for recording data  Some data might be recorded multiple times in different places. Redundancy (storing the same data multiple times) leads to several problem  Duplication of operation  Storage space is wasted  Inconsistency 22
  • 23. Cont. 2-Restricting Unauthorized Access When multiple users share a large database, most users will not be authorized to access all information in the database  Retrieval  Deletion  Update  DBMS should provide a security and authorization subsystem  DBA create accounts and to specify account restrictions 23
  • 24. Cont. 3-Providing Persistent Storage for Program Objects The main reasons for object-oriented database systems Two types of object  Transient objects  Persistent objects Object oriented DBMSs transform transient object to persistent 24
  • 25. Cont. 4-Providing Storage Structures and Search Techniques for Efficient Query Processing Database systems must provide capabilities for efficiently executing queries and updates by  Specialized data structures  Search techniques to speed up disk search 5-Providing Backup and Recovery Must provide facilities for recovering from hardware or software failures Backup and recovery subsystem of the DBMS is responsible  Recovery by transactions  In case of failure in query processing  Disk backup and recovery  In case of disk failure 25
  • 26. Cont. 6-Representing Complex Relationships among Data database may have too much entities that can have complex an numerous relationship with each other A DBMS must have the capability to  Define relationship between entities  Retrieve data according to specified relationship 7-Providing Multiple User Interfaces DBMS should provide a variety of user interfaces for group of users  Query languages interface  Programming language interfaces for application programmers  Forms  menu-driven interfaces known as graphical user interfaces (GUIs) 26
  • 27. Cont. 8-Enforcing Integrity Constraints by :  Specifying a data type for each data item  Key or uniqueness constraint  Business rules 9-Permitting Inference and Actions Using Rules Deductive database systems  Capabilities for defining deduction rules for inferring new information from the stored database facts Active database systems  Automatically initiate actions when certain events and conditions occur.  Triggers and events 27
  • 28. Cont. Additional implications for using database approach Potential for Enforcing Standards Reduced Application Development Time Flexibility Availability of Up-to-Date Information 28
  • 29. History and evolution of Database systems Network and hierarchical systems Relational Databases Object-Oriented Applications and the Need for More Complex Databases Interchanging Data on the Web for E-Commerce Using XML Extending Database Capabilities for New Applications  Scientific applications  Storage and retrieval of images and videos  Data mining applications and analyzing large amounts of data  Spatial applications that store spatial locations of data … GIS,GPS  Time series applications 29
  • 30. When Not to Use a DBMS The overhead costs of using a DBMS are due to the following High initial investment in hardware, software, and training The generality that a DBMS provides for defining and processing data Overhead for providing security, concurrency control, recovery Use regular files under the following circumstances Simple, well-defined database applications that are not expected to change at all Embedded systems with limited storage capacity No multiple-user access to data Real-time requirements for some application programs that may not be met because of DBMS overhead 30
  • 31. Exercise • Discuss the main characteristics of the Database approach and how it differs from traditional file systems. • What are the responsibilities of the DBA and the database designers? • Email: bamian.cs@gmail.com 31
  • 32. 32