Download Database Management and Applications: Understanding DBMS and Database Applications and more Slides Management Information Systems in PDF only on Docsity!
Database Processing
Q1 What is the purpose of a database?
Q2 What does a database contain?
Q3 What is a DBMS, and what does it do?
Q4 What is a database application?
Q5 What is the difference between an enterprise DBMS and a personal DBMS? How does the knowledge in this chapter help FlexTime and you?
Study Questions
Relationships Among Records in Three
Tables
Figure 5-
Database: Self-describing collection of integrated records
Metadata
- Data that describes data
- Makes databases more useful
- Makes databases easier to use
Describes data by:
- Data type: text, number, date, etc.
- Field name
- Field properties
Metadata
Q3: What Is a DBMS and What Does It
Do?
Database management system (DBMS)
- Program that creates, processes, and administers databases
- Examples: DB2, Microsoft Access, SQL Server, Oracle, MySQL (open-source DBMS)
Database Collection of tables, relationships, and metadata
DBMS
A
software program
Components of a Database Application
System
This diagram shows how we use a business website or a web application connected to a database.
DBMS security features to set up user accounts, passwords, permissions, processing limits
Permissions—setting data access rights for specific users or groups of users
Database backup and replication, adding structures, removing unneeded data
Administering the Database
Q4: What Is a Database
Application?
Multi-tier architecture; middle-tier
Example of a Database Query and
Query Result
Query result Query form
Report
Processing logic for
a specific business
need
Internet database processing to:
Connect web server and database
Respond to events
Read, insert, modify, delete data
Database Application Programs
Multiuser Processing
Considerations
Lost-update problem Occurs when two or more transactions select same record at same time, then update it based on values first received. Each transaction is independent. Last update overwrites updates previously made by others.
10-5 = 5 (^) 5, 7 or 3? 10-3 = 7
- Process A reads customer record from file containing customer’s account balance.
1
- Process B reads same record from same file now has its own copy.
2
- Process A updates account balance in its copy of customer record and writes record to file.
3
- Process B has original stale value for account balance. Updates customer’s phone number and writes customer record to file.
4
- Process B writes stale account balance value to file, causing changes made by Process A to be lost.
5
Multi-User Processing Problem:
Lost-update problem
Enterprise DBMS
- Processes large organizational and workgroup databases
- Supports many users (thousands plus)
- Examples: DB2, SQL Server, Oracle, MySQL
Personal DBMS
- Designed for smaller, simpler database applications
- Supports fewer than 100 users (mostly 1–10 users)
- Examples: Access, dBase, FoxPro, R-Base
Q5: What Is the Difference
Between an Enterprise DBMS
and a Personal DBMS?
Personal Database System