Fundamentals of Database system - Databases and Database Users

Mustafa Kamel Mohammadi
Mustafa Kamel MohammadiComputer Science Lecturer
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
1 de 32

Recomendados

Database management system por
Database management systemDatabase management system
Database management systemSayed Ahmed
489 vistas45 diapositivas
Database systems - Chapter 1 por
Database systems - Chapter 1Database systems - Chapter 1
Database systems - Chapter 1shahab3
2.6K vistas40 diapositivas
Introduction: Databases and Database Users por
Introduction: Databases and Database UsersIntroduction: Databases and Database Users
Introduction: Databases and Database Userssontumax
11K vistas22 diapositivas
Database management system por
Database management systemDatabase management system
Database management systemSimran Kaur
1K vistas21 diapositivas
1. Introduction to DBMS por
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMSkoolkampus
47.8K vistas21 diapositivas
DATA BASE MANAGEMENT SYSTEM BY SAIKIRAN PANJALA por
DATA BASE  MANAGEMENT SYSTEM BY SAIKIRAN PANJALADATA BASE  MANAGEMENT SYSTEM BY SAIKIRAN PANJALA
DATA BASE MANAGEMENT SYSTEM BY SAIKIRAN PANJALASaikiran Panjala
1.4K vistas21 diapositivas

Más contenido relacionado

La actualidad más candente

Introduction to Database Management System por
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management SystemHitesh Mohapatra
343 vistas52 diapositivas
Database Chapter 1 por
Database Chapter 1Database Chapter 1
Database Chapter 1shahadat hossain
2.6K vistas24 diapositivas
DBMS por
DBMSDBMS
DBMSakshaythusoo
7.3K vistas30 diapositivas
Database system concepts por
Database system conceptsDatabase system concepts
Database system conceptsKumar
11.6K vistas34 diapositivas
2 database system concepts and architecture por
2 database system concepts and architecture2 database system concepts and architecture
2 database system concepts and architectureKumar
9.7K vistas53 diapositivas
Data Base Management System por
Data Base Management SystemData Base Management System
Data Base Management SystemDr. C.V. Suresh Babu
87.4K vistas17 diapositivas

La actualidad más candente(20)

Introduction to Database Management System por Hitesh Mohapatra
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
Hitesh Mohapatra343 vistas
Database system concepts por Kumar
Database system conceptsDatabase system concepts
Database system concepts
Kumar 11.6K vistas
2 database system concepts and architecture por Kumar
2 database system concepts and architecture2 database system concepts and architecture
2 database system concepts and architecture
Kumar 9.7K vistas
Dbms schema & instance por Papan Sarkar
Dbms schema & instanceDbms schema & instance
Dbms schema & instance
Papan Sarkar609 vistas
Diffrence between dbms and rdbms por Jitendra Thakur
Diffrence between dbms and rdbmsDiffrence between dbms and rdbms
Diffrence between dbms and rdbms
Jitendra Thakur4.1K vistas
Database systems - Chapter 2 por shahab3
Database systems - Chapter 2Database systems - Chapter 2
Database systems - Chapter 2
shahab31.9K vistas
Database Design por learnt
Database DesignDatabase Design
Database Design
learnt15K vistas
Components and Advantages of DBMS por Shubham Joon
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
Shubham Joon11.3K vistas
Introduction to Database por Siti Ismail
Introduction to DatabaseIntroduction to Database
Introduction to Database
Siti Ismail38.1K vistas
Database User and Administrator por A. S. M. Shafi
Database User and AdministratorDatabase User and Administrator
Database User and Administrator
A. S. M. Shafi322 vistas
Object Relational Database Management System(ORDBMS) por Rabin BK
Object Relational Database Management System(ORDBMS)Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)
Rabin BK2.5K vistas
Basic Concept Of Database Management System (DBMS) [Presentation Slide] por Atik Israk
Basic Concept Of Database Management System (DBMS) [Presentation Slide]Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Atik Israk4K vistas
Database Systems por Usman Tariq
Database SystemsDatabase Systems
Database Systems
Usman Tariq522 vistas
Introduction to database por Arpee Callejo
Introduction to databaseIntroduction to database
Introduction to database
Arpee Callejo1.2K vistas

Destacado

Applications por
ApplicationsApplications
ApplicationsEdward Blurock
372 vistas127 diapositivas
Informatica PowerAnalyzer 4.0 3 of 3 por
Informatica PowerAnalyzer 4.0 3 of 3Informatica PowerAnalyzer 4.0 3 of 3
Informatica PowerAnalyzer 4.0 3 of 3ganblues
622 vistas32 diapositivas
Leadership por
LeadershipLeadership
LeadershipKumar
676 vistas16 diapositivas
Chain Reactions por
Chain ReactionsChain Reactions
Chain ReactionsEdward Blurock
940 vistas19 diapositivas
Android tutorial (2) por
Android tutorial (2)Android tutorial (2)
Android tutorial (2)Kumar
632 vistas82 diapositivas
Relational algebra1 por
Relational algebra1Relational algebra1
Relational algebra1Tianlu Wang
443 vistas15 diapositivas

Destacado(18)

Informatica PowerAnalyzer 4.0 3 of 3 por ganblues
Informatica PowerAnalyzer 4.0 3 of 3Informatica PowerAnalyzer 4.0 3 of 3
Informatica PowerAnalyzer 4.0 3 of 3
ganblues622 vistas
Leadership por Kumar
LeadershipLeadership
Leadership
Kumar 676 vistas
Android tutorial (2) por Kumar
Android tutorial (2)Android tutorial (2)
Android tutorial (2)
Kumar 632 vistas
Relational algebra1 por Tianlu Wang
Relational algebra1Relational algebra1
Relational algebra1
Tianlu Wang443 vistas
Cloud Computing por Abdul Aslam
 Cloud Computing Cloud Computing
Cloud Computing
Abdul Aslam830 vistas
Dataware housing por work
Dataware housingDataware housing
Dataware housing
work2.7K vistas
Informatica PowerAnalyzer 4.0 2 of 3 por ganblues
Informatica PowerAnalyzer 4.0 2 of 3Informatica PowerAnalyzer 4.0 2 of 3
Informatica PowerAnalyzer 4.0 2 of 3
ganblues883 vistas
Triggers por work
TriggersTriggers
Triggers
work1.9K vistas
Extracting data from xml por Kumar
Extracting data from xmlExtracting data from xml
Extracting data from xml
Kumar 765 vistas
Android structure por Kumar
Android structureAndroid structure
Android structure
Kumar 1.5K vistas
Job analysis of a reporter por Abdul Aslam
Job analysis of a reporterJob analysis of a reporter
Job analysis of a reporter
Abdul Aslam799 vistas
Fundamentals of Database system por philipsinter
Fundamentals of Database systemFundamentals of Database system
Fundamentals of Database system
philipsinter19.5K vistas
Zackman frame work por ganblues
Zackman frame workZackman frame work
Zackman frame work
ganblues1.6K vistas
Introduction to XML por Kumar
Introduction to XMLIntroduction to XML
Introduction to XML
Kumar 918 vistas

Similar a Fundamentals of Database system - Databases and Database Users

DataMgt - UNIT-I .PPT por
DataMgt - UNIT-I .PPTDataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPTBhaskarPatil24
4 vistas20 diapositivas
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1 por
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1Raj vardhan
829 vistas14 diapositivas
DBMS-INTRODUCTION.pptx por
DBMS-INTRODUCTION.pptxDBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptxDivyaKS12
190 vistas86 diapositivas
Db lecture 1 por
Db lecture 1Db lecture 1
Db lecture 1https://www.isp.edu.pk/
79 vistas48 diapositivas
Chapter one por
Chapter oneChapter one
Chapter oneDawod Yimer
378 vistas31 diapositivas
Database & dbms por
Database & dbmsDatabase & dbms
Database & dbmsDiana Diana
3K vistas19 diapositivas

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

DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1 por Raj vardhan
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
Raj vardhan829 vistas
DBMS-INTRODUCTION.pptx por DivyaKS12
DBMS-INTRODUCTION.pptxDBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptx
DivyaKS12190 vistas
Introduction to DBMS.pptx por Sreenivas R
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptx
Sreenivas R2 vistas
1. Chapter One.pdf por fikadumola
1. Chapter One.pdf1. Chapter One.pdf
1. Chapter One.pdf
fikadumola8 vistas
Introduction & history of dbms por sethu pm
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbms
sethu pm18.9K vistas
En ch01 por anibapi
En ch01En ch01
En ch01
anibapi2.2K vistas
DBMS-1.pptx por kingVox
DBMS-1.pptxDBMS-1.pptx
DBMS-1.pptx
kingVox20 vistas
File systems versus a dbms por RituBhargava7
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbms
RituBhargava710K vistas
Chap1-Introduction to database systems.ppt por LisaMalar
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.ppt
LisaMalar31 vistas
Database Management System Introduction por Smriti Jain
Database Management System IntroductionDatabase Management System Introduction
Database Management System Introduction
Smriti Jain12.3K vistas
Dbms models por devgocool
Dbms modelsDbms models
Dbms models
devgocool66.1K vistas
Database management systems por Joel Briza
Database management systemsDatabase management systems
Database management systems
Joel Briza2K vistas

Más de Mustafa Kamel Mohammadi

Web design - Working with forms in HTML por
Web design - Working with forms in HTMLWeb design - Working with forms in HTML
Web design - Working with forms in HTMLMustafa Kamel Mohammadi
1.1K vistas17 diapositivas
Web design - Working with tables in HTML por
Web design - Working with tables in HTMLWeb design - Working with tables in HTML
Web design - Working with tables in HTMLMustafa Kamel Mohammadi
455 vistas10 diapositivas
Web design - Working with Links and Images por
Web design - Working with Links and ImagesWeb design - Working with Links and Images
Web design - Working with Links and ImagesMustafa Kamel Mohammadi
347 vistas18 diapositivas
Web design - Working with Text and Lists in HTML por
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 HTMLMustafa Kamel Mohammadi
310 vistas16 diapositivas
Web design - HTML (Hypertext Markup Language) introduction por
Web design - HTML (Hypertext Markup Language) introductionWeb design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introductionMustafa Kamel Mohammadi
1.1K vistas23 diapositivas
Web design - How the Web works? por
Web design - How the Web works?Web design - How the Web works?
Web design - How the Web works?Mustafa Kamel Mohammadi
2.2K vistas23 diapositivas

Más de Mustafa Kamel Mohammadi(10)

Fundamentals of database system - Data Modeling Using the Entity-Relationshi... por Mustafa Kamel Mohammadi
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... por Mustafa Kamel Mohammadi
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 por Mustafa Kamel Mohammadi
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

Último

2024: A Travel Odyssey The Role of Generative AI in the Tourism Universe por
2024: A Travel Odyssey The Role of Generative AI in the Tourism Universe2024: A Travel Odyssey The Role of Generative AI in the Tourism Universe
2024: A Travel Odyssey The Role of Generative AI in the Tourism UniverseSimone Puorto
13 vistas61 diapositivas
Scaling Knowledge Graph Architectures with AI por
Scaling Knowledge Graph Architectures with AIScaling Knowledge Graph Architectures with AI
Scaling Knowledge Graph Architectures with AIEnterprise Knowledge
50 vistas15 diapositivas
Info Session November 2023.pdf por
Info Session November 2023.pdfInfo Session November 2023.pdf
Info Session November 2023.pdfAleksandraKoprivica4
15 vistas15 diapositivas
Future of AR - Facebook Presentation por
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentationssuserb54b561
22 vistas27 diapositivas
STPI OctaNE CoE Brochure.pdf por
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdfmadhurjyapb
14 vistas1 diapositiva
virtual reality.pptx por
virtual reality.pptxvirtual reality.pptx
virtual reality.pptxG036GaikwadSnehal
18 vistas15 diapositivas

Último(20)

2024: A Travel Odyssey The Role of Generative AI in the Tourism Universe por Simone Puorto
2024: A Travel Odyssey The Role of Generative AI in the Tourism Universe2024: A Travel Odyssey The Role of Generative AI in the Tourism Universe
2024: A Travel Odyssey The Role of Generative AI in the Tourism Universe
Simone Puorto13 vistas
Future of AR - Facebook Presentation por ssuserb54b561
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentation
ssuserb54b56122 vistas
STPI OctaNE CoE Brochure.pdf por madhurjyapb
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdf
madhurjyapb14 vistas
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive por Network Automation Forum
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive
SAP Automation Using Bar Code and FIORI.pdf por Virendra Rai, PMP
SAP Automation Using Bar Code and FIORI.pdfSAP Automation Using Bar Code and FIORI.pdf
SAP Automation Using Bar Code and FIORI.pdf
Virendra Rai, PMP25 vistas
Special_edition_innovator_2023.pdf por WillDavies22
Special_edition_innovator_2023.pdfSpecial_edition_innovator_2023.pdf
Special_edition_innovator_2023.pdf
WillDavies2218 vistas
Igniting Next Level Productivity with AI-Infused Data Integration Workflows por Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software317 vistas
Case Study Copenhagen Energy and Business Central.pdf por Aitana
Case Study Copenhagen Energy and Business Central.pdfCase Study Copenhagen Energy and Business Central.pdf
Case Study Copenhagen Energy and Business Central.pdf
Aitana17 vistas
Data Integrity for Banking and Financial Services por Precisely
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial Services
Precisely29 vistas
HTTP headers that make your website go faster - devs.gent November 2023 por Thijs Feryn
HTTP headers that make your website go faster - devs.gent November 2023HTTP headers that make your website go faster - devs.gent November 2023
HTTP headers that make your website go faster - devs.gent November 2023
Thijs Feryn26 vistas
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf por Dr. Jimmy Schwarzkopf
STKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdfSTKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdf
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... por The Digital Insurer
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...

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