Professional Documents
Culture Documents
CS370 Chapter1
CS370 Chapter1
Chapter 1
Database and Database Users
2
Database concepts
3
Database concepts
INPUT OUTPUT
PROCESS
Data Information
Storage
4
Types of Databases and Database Applications
Traditional Applications:
Numeric and Textual Databases
5
Basic Definitions
Database (DB):
A collection of related data.
Database Management System (DBMS):
A software package/ system to facilitate the creation and maintenance of a
computerized database.
Database Application:
A collection of data and the programs that allow the manipulation of
these data to meet the information needs of an enterprise.
Database System (DBS):
The DBMS software together with the data itself. Sometimes, the
applications are also included.
6
A simplified database system (DBS) environment
Database System
Database Management System
(DBS): The DBMS
(DBMS): A software package/
software together
system to facilitate the creation and
with the data
maintenance of a computerized
itself. Sometimes,
database.
the applications
are also included.
Defining a database
Specify the data types, structures, and constraints of the data to be stored
Meta-data
Database definition or descriptive information
Stored by the DBMS in the form of a database catalog or dictionary
Manipulating a database
Query and update the database mini-world
Generate reports
Sharing a database
Allow multiple users and programs to access the database simultaneously
8
Database Management System (DBMS)
Query
Causes some data to be retrieved
Transaction
May cause some data to be read and some data to be written into
the database
Protection includes:
System protection
Security protection
Maintain the database system
Allow the system to evolve as requirements change over time
9
Database Management System (DBMS)
10
An Example
UNIVERSITY database
Information concerning students, courses, and grades in a
university environment
Data records
STUDENT
COURSE
SECTION
GRADE_REPORT
PREREQUISITE
11
An Example (cont'd.)
12
An Example (cont'd.)
Examples of queries:
Retrieve the transcript
List the names of students who took the section of the ‘Database’
course offered in fall 2008 and their grades in that section
List the prerequisites of the ‘Database’ course
Examples of updates:
Change the class of ‘Smith’ to sophomore
Create a new section for the ‘Database’ course for this semester
Enter a grade of ‘A’ for ‘Smith’ in the ‘Database’ section of last
semester
13
14
File-Based Systems (FBS)
In order to understand the database approach we need to understand the file-based
system approach.
File
Data handling
User 1 Entry
File Def
Application Program 1 File1
File
Data handling
User 2 Entry
File Def
Application Program 2 File 2
15
File-Based Systems (FBS)
16
Database Systems (DBS)
Data
User 1 Entry
Application Program 1
DBMS
Data Database
User 2 Entry
Application Program 2
17
Main Characteristics of the DB Approach
18
Main Characteristics of the DB Approach
Support of multiple views of the data:
Each user may see a different view of the database, which describes only the
data of interest to that user.
19
Example of a simple
database
20
Example of a
simplified database
catalog
21
Main Characteristics of the DB Approach
View 1 View 2
22
Database Users
Users may be divided into those who actually use and control the content
and their jobs involve the day-to-day use of large database; called “Actors
on the Scene”.
And others who work to maintain the database system environment but
who are not actively interested in the database itself; called “Workers
Behind the Scene”.
23
• Identifying the data to be stored
• Choosing appropriate structures to represent and Determine
store this data Communicate requirements
of end users
User
Procedure
Write Requirement Write
End-users: they use the data for queries, reports and some of them actually
update the database content.
Casual : Access database occasionally when needed. Example is a Manger
Naïve or Parametric : They make up a large section of the end-user population.
They use previously well-defined functions in the form of “canned transactions”
against the database. Examples are bank-tellers or reservation clerks who do this
activity for an entire shift of operations.
Sophisticated : These include business analysts, scientists, engineers, others
thoroughly familiar with the DBMS capabilities. Many use tools in the form of
software packages that work closely with the stored database.
Stand-alone : Mostly maintain personal databases using ready-to-use packaged
applications. Example is a user that maintains an address book.
26
Database Users - Worker behind the scene
DBMS designer & Implementers: Are persons who design and implement the
DBMS modules and interfaces as a software package.
Tool Developer: Are persons who design and implement tools- the software
packages that facilitate database system design and use and that help
improve performance.
27
Advantages of Using the DBMS Approach
28
Additional Implications of Using the Database
Approach
Potential for enforcing standards: this is very crucial for the success of
database applications in large organizations Standards refer to data item
names, display formats, screens, report structures, meta-data (description
of data) etc.
Reduced application development time: incremental time to add each new
application is reduced.
Flexibility to change data structures: database structure may evolve as new
requirements are defined.
Availability of up-to-date information – very important for on-line
transaction systems such as airline, hotel, car reservations.
Economies of scale: by consolidating data and applications across
departments wasteful overlap of resources and personnel can be avoided.
29
Extending Database Capabilities
30
When Not to Use a DBMS
Main inhibitors (costs) of using a DBMS:
High initial investment and possible need for additional hardware, software, and
training.
Overhead for providing generality, security, concurrency control, recovery, and
integrity functions.
When a DBMS may be unnecessary (use regular files):
If the database and applications are simple, well defined, and not expected to change.
If there are stringent real-time requirements that may not be met because of DBMS
overhead.
Embedded systems with limited storage capacity.
If access to data by multiple users is not required.
31
Summary
Database (DB)
Database Management System (DBMS)
Database Application
Database System (DBS)
File-Based System Approach Vs. Database System Approach
32