DB CH01
DB CH01
DB CH01
Database Users
1
Contents
• Basic Definitions
• Example of a Database
• A Simplified Database System Environment
• Characteristics of the Database Approach
• Database System Users
• Advantages of Using the DBMS Approach
• Additional Implications of Using the Database Approach
• When Not Using a DBMS
2
Basic Definitions
• What is data?
• What is database?
3
What is Data?
• Data: Known facts about something that can be recorded and have an
implicit meaning in the user’s environment.
• Examples:
- Person's name, telephone, address, email, picture, …
- Student's ID, name, address, sex, major, …
- Product's name, description, manufacturer, price,…
- Book's publisher, author, title, …
4
What is Database?
• Database (DB): a collection of related data + meta-data.
Example of a Database
• A simple university database maintaining information about students,
courses, and grade in a university environment
• Mini-world for the example: Part of a UNIVERSITY environment.
• Some mini-world entities :
- STUDENTs
- COURSEs
- SECTIONs (of COURSEs)
- INSTRUCTORs
6
Meta-Data
-DB Definition: Contains information such as the structure of each file, the
type and storage format of each field, and various constraints on the data.
7
Database Catalog Example
8
What is a DBMS?
Example of DBMSs:
Oracle, MS Access, MS SQL Server, IBM DB2, MySQL, Ingres, Informix, ...
9
DBMS Functionality
• Typically, a DBMS facilitates the processes of
• Defining a database: involves specifying the data types, structures, and
constraints for the data to be stored in the database.
• Constructing or loading the database: is the process of storing the data
itself on a secondary storage medium.
• Manipulating the database: Includes such functions as querying the
database to retrieve specific data, inserting new data, deleting stored data,
modify or updating the database content to reflect changes in the miniworld,
and generating reports from the data
• Sharing a database: allows multiple users and programs to access the
database concurrently.
10
What is a Database System?
the data itself. Sometimes, the application programs are also included.
11
Simplified Database System Environment
Database
+
DBMS
+
Application Programs
=
Database System
12
Characteristics of the DB Approach
− Data abstraction
13
Users of the Database System
− Such People use the database system, through the DBMS interfaces or
− Database Administrators
− Database Designers
− End Users
14
Users of the Database System Cont.
15
Advantages of Using the DBMS
• Controlling redundancy
16
Controlling Redundancy
• In DBMS approach
– There is a relationship among data. So, data are stored in only one
place
– Saves space
17
Restricting Unauthorized Access
• Some users are allowed to Retrieve and Update the data, this requires
18
Providing Multiple User Interfaces
19
Representing Complex Relationships
For example the relationship between the students and the courses,
20
Enforcing Integrity Constraints
21
Providing Backup and Recovery
22