Introduction to database management
t anagemen MtM
Introduction to Database Outline Outline
Database characteristics Database characteristics
DBMS features
Architectures
Architectures
Organizational roles
1-2 Initial Vocabulary Initial Vocabulary
Data: raw facts about things and events Data: raw facts about things and events
Information: transformed data that has value for decision making value for decision making
Essential to organize data for retrieval and maintenance maintenance
1-3 Database Characteristics Database Characteristics
Persistent : stable storage Persistent : stable storage
Shared : multiple users and uses
Shared : multiple users and uses
Interrelated : data stored as entities and
Interrelated : data stored as entities and relationships
1-4 University Database University Database Faculty Registration Registration Entities: offerings, enrollments
students, faculty, courses,
Assignment faculty teach offerings, Relationships: Relationships: students enroll in Course Gradeofferings, offerings made
SchedulingRecording g of courses, ...
University Database 1-5 Water Utility Database Water Utility Database Payment Billing g Entities: E titi customers, meters, bills,
Processing Processing bills sent to customers, Relationships : Relationships : payments, meter readings
customers make payments,
Meter customers use meters, ... , Service Start/ Reading Reading Stop Stop
1-6 Database Management System (DBMS)
Collection of components that support Collection of components that support data acquisition, dissemination, storage, maintenance, retrieval, and formatting maintenance, retrieval, and formatting
Enterprise DBMSs
Desktop DBMSs Desktop DBMSs
Embedded DBMSs
Major part of information technology infrastructure
1-7 Database Definition Database Definition
Define database structure before using a Define database structure before using a database
Tables and relationships
Tables and relationships
SQL CREATE TABLE statement G
Graphical tools
1-8
1-9 Database Database n sh ip s R elatio Ta b le s University Database (ERD) University Database (ERD) Student Offering
Faculty StdSSN StdClass StdMajor Student OfferNo OffLocation OffTime Offering FacSSN FacSalary FacRank Faculty
Teaches j StdGPA Accepts FacHireDate Has
Supervises E ll t
Registers Accepts C N Course
EnrGrade Enrollment CourseNo CrsDesc CrsUnits
1-10 Nonprocedural Access Nonprocedural Access
Query: request for data to answer a Query: request for data to answer a question
Indicate what parts of database to retrieve Indicate what parts of database to retrieve not the procedural details
Improve productivity and improve Improve productivity and improve accessibility
SQL SELECT statement and graphical SQL SELECT d hi l tools
1-11
1-12 Application Development Application Development
Form: formatted document for data entry Form: formatted document for data entry and display
Report: formatted document for display Report: formatted document for display
Use nonprocedural access to specify data requirements of forms and reports requirements of forms and reports
1-13
1-14 Form Form Entry Entry Data Data
1-15 Report Report Procedural Language Interface Procedural Language Interface
Combine procedural language with Combine procedural language with nonprocedural access
Why
Why
Batch processing
Customization and automation Customization and automation Performance improvement 1-16 Transaction Processing Transaction Processing
Transaction: unit of work that should be Transaction: unit of work that should be reliably processed
Control simultaneous users
Control simultaneous users
Recover from failures
1-17
Era Generation Orientation Major Features Database Technology Evolution Database Technology Evolution 1960s 1 Generation File File structures and st proprietary program 1970 1970s 2 2 Generation G ti Network N t k N t Networks and hierarchies k d hi hi nd nd Navigation of related records, interfaces 1980s 3 Generation Relational Non-procedural rd interfaces standard program 1990s 4 Generation Object Multi-media, active, th transaction processing languages, optimization, XML enabled distributed processing, 1-18
DBMS Marketplace DBMS Marketplace
Enterprise DBMS Enterprise DBMS
Oracle: dominates in Unix; strong in Windows SQL Server: strong in Windows SQL Server: strong in Windows DB2: strong in mainframe environment
Significant open source DBMSs: MySQL, g p y , Firebird, PostgreSQL
Desktop DBMS
Access: dominates
FoxPro, Paradox, Approach, FileMaker Pro 1-19 Data Independence Data Independence
Software maintenance is a large part Software maintenance is a large part (50%) of information system budgets
Reduce impact of changes by separating Reduce impact of changes by separating database description from applications
Change database definition with minimal Change database definition with minimal effect on applications that use the database database
1-20 Three Schema Architecture Three Schema Architecture External
View 1 View 1 View 2 View 2 View n View n Level L l
External to Conceptual Conceptual Conceptual
Conceptual Mappings Level
Schema Conceptual to Internal Mappings
Internal Internal
Level Level Schema
1-21 Differences among Levels Differences among Levels
External
Forms Reports
Conceptual
Tables
Internal
Files needed to store the tables Extra files to improve performance 1-22
Client Server Architecture Client-Server Architecture
a) Client, server, and same computer database on the d t b th on different computers diff t t b) Mulitple clients and 1 server Server Server Client Client Server Client Database Client Database
c) Multiple servers and databases on different computers Client Server Server Client Client Client Database Database 1-23 Organizational Roles Organizational Roles
Specialization Specialization
Functional User Functional UserInformation Systems Information Systems
Indirect Indirect Parametric Parametric Power Power DBA DBA Analyst/Programmer Analyst/Programmer Management Management
Technical Technical Non Technical Non Technical1-24 Database Specialists Database Specialists
Database administrator (DBA) Database administrator (DBA)
More technical DBMS specific skills DBMS specific skills
Data administrator
Less technical Less technical Planning role 1-25 Summary Summary
Databases and database technology vital Databases and database technology vital to modern organizations
Database technology supports daily
Database technology supports daily operations and decision making
Nonprocedural access is a crucial feature
Nonprocedural access is a crucial feature
Many opportunities to work with databases
1-26