Escolar Documentos
Profissional Documentos
Cultura Documentos
SYSTEM
1
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 1
Topics
What is a Database System?
What is a Database?
Why Database?
Data Independence
Relational Systems, and Others
2
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 2
3
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 3
Introduction to Database
Data stored in file systems – problems with
: redundancy
: maintenance
: security
: efficient access to the data
Database Management Systems
Software tools that enable the management
(definition, creation, maintenance and use) of large
amounts of interrelated data stored in a
computer accessible media. 4
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 4
Capabilities of Database
Management System
Manage persistent data
Access large amounts of data efficiently
Support for at least one data model
Support for certain high-level language that allow the user to
define the structure of the data, access data, and manipulate
data
Transaction management – the capability to provide correct,
concurrent access to the database by many users at once
Access control – the ability to limit access to data by
unauthorized
users, and the ability to check the validity of data
Resiliency – the ability to recover from system failures without
losing data
5
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 5
Design Phases
Difficulties in designing the DB’s effectively
brought design methodologies based on data
models
Database development process
Business Information Requireme
Conceptual Design
Produces the initial model of the Conceptual Data
real world in a conceptual model Modeling
Logical Design
Consists of transforming the Logical
conceptual schema into the data Database
model supported by the DBMS Design
Physical Design Physical
Aims at improving the Database
performance of the final system Design
6
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 6
Conceptual Design
The process of constructing a model of the
information used in an enterprise
Entity-relationship
model
8
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 8
Entity
A thing of significance about which the business needs to store
information
trivial example: employee, department
CERN controls example: controls_entity, location, entity_parameter,
system, quantity_code, data_type
Entity instance – an individual occurrence of a given entity
9
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 9
Attributes
Attributes are properties which describe the entity
attributes of system - id, description, comments
ENTITY_PARAMETER
SYSTEM produces # id
# id * description
is
* description generated
o expert_name
by ……
11
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 11
Database System
Computerized record-keeping system
Supports operations
Add or delete files to the database
Insert, retrieve, remove, or change data in
database
Components
Data, hardware, software, users
12
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 12
Database System - Data
May support single or many users
Many users in organizations
Data is integrated
Data is shared
Different users will require different views
13
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 13
Database System - Hardware
Data is stored on Disk
Direct access to subset portions
Rapid I/O
Data operated on in main memory
14
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 14
Database System - Software
Database manager
Database server
Database management system (DBMS)
DBMS provided by specific vendor
15
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 15
Database System - Software
DBMS is not ( but may come with)
Application Development Tools
Application Software
TP Monitor
Report Writer
System utilities
16
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 16
Database System - Users
Application programmers
End users
Database Administrators
17
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 17
What is a Database?
Collection of persistent data
Collection of true propositions
Made up of entities, relationships, properties
Implements a data model
18
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 18
What is a Database? – Entities
and Relationships
Entity is a person, place, event or thing,
about which we wish to store information
Relationship is a connection between
entities, about which we wish to store
information
A relationship can be considered a special
case of entity
19
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 19
What is a Database? -
Properties
Entities have properties
Properties are the characteristics of an entity
Properties can be simple or complex
20
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 20
Data and Data Models
Database is a collection of true propositions
Data model is an abstract, self-contained,
logical representation
Implementation of the data model on a
specific platform
Data model as template vs. instantiation for
a specific enterprise
21
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 21
Why Database?
Shared data
Reduced redundancy
Reduced inconsistent data
Transaction support
Support for data integrity
Security enforcement
Support for standards
Conflicting requirements can be met
22
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 22
Data Independence
Database separates logical and physical
representation of data
Allows changes to application programs
without changing the structure of the
underlying data and vice versa
23
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 23
Materialized Data
Stored fields, collected as…
Stored records, collected as…
Stored files
Old systems, e.g., COBOL applications,
directly connect to data formats
Newer database systems offer greater data
independence, but could do better
24
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 24
Relational Systems
Most important innovation in database
history
Based on logic and mathematics
Data is perceived as tables, only
Operators derive new tables from existing
A table is a “relation,” mathematically
Not pointer based (to the user)
25
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 25
The Relational Model –
Informally
Structural
oData is perceived by users as tables
Integrity
oData subject to specific integrity requirements
Manipulation
oOperators derive tables from other tables
•Restrict
•Project
•Join
26
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 26
The Relational Model –
Informally
Structural
Data is perceived by users as tables
Integrity
Data subject to specific integrity requirements
Manipulation
Operators derive tables from other tables
Restrict
Project
Join
27
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 27
Type of Databse
Oracle
MS SQL(Microsoft)
MY SQL
ACCESS (Microsoft)
SYBASE
DB2(IBM)
XML
28
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 28
Oracle Database Support
Failsafe over
RAC
Standalone
29
CMS Computers Ltd. © Copyright 2007 Quality Driven Leadership 29