1 / 21

Chapter 1

Chapter 1. Overview of Databases and Transaction Processing. What is a Database?. Collection of data central to some enterprise Essential to operation of enterprise Contains the only record of enterprise activity An asset in its own right Historical data can guide enterprise strategy

gavivi
Download Presentation

Chapter 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 1 Overview of Databases and Transaction Processing

  2. What is a Database? • Collection of data central to some enterprise • Essential to operation of enterprise • Contains the only record of enterprise activity • An asset in its own right • Historical data can guide enterprise strategy • Of interest to other enterprises • State of database mirrors state of enterprise • Database is persistent

  3. What is a Database Management System? • A Database Management System (DBMS) is a program that manages a database: • Supports a high-level access language (e.g. SQL). • Application describes database accesses using that language. • DBMS interprets statements of language to perform requested database access.

  4. What is a Transaction? • When an event in the real world changes the state of the enterprise, a transaction is executed to cause the corresponding change in the database state • With an on-line database, the event causes the transaction to be executed in real time • A transaction is an application program with special properties - discussed later - to guarantee it maintains database correctness

  5. What is a Transaction Processing System? • Transaction execution is controlled by a TP monitor • Creates the abstraction of a transaction, analogous to the way an operating system creates the abstraction of a process • TP monitor and DBMS together guarantee the special properties of transactions • A Transaction Processing System consists of TP monitor, databases, and transactions

  6. Transaction Processing System DBMS database transactions DBMS database TP Monitor

  7. System Requirements • High Availability: on-line => must be operational while enterprise is functioning • High Reliability: correctly tracks state, does not lose data, controlled concurrency • High Throughput: many users => many transactions/sec • Low Response Time: on-line => users are waiting

  8. System Requirements (con’t) • Long Lifetime: complex systems are not easily replaced • Must be designed so they can be easily extended as the needs of the enterprise change • Security: sensitive information must be carefully protected since system is accessible to many users • Authentication, authorization, encryption

  9. Roles in Design, Implementation, and Maintenance of a TPS • System Analyst - specifies system using input from customer; provides complete description of functionality from customer’s and user’s point of view • Database Designer - specifies structure of data that will be stored in database • Application Programmer - implements application programs (transactions) that access data and support enterprise rules

  10. Roles in Design, Implementation and Maintenance of a TPS (con’t) • Database Administrator - maintains database once system is operational: space allocation, performance optimization, database security • System Administrator - maintains transaction processing system: monitors interconnection of HW and SW modules, deals with failures and congestion

  11. OLTP vs. OLAP • On-line Transaction Processing (OLTP) • Day-to-day handling of transactions that result from enterprise operation • Maintains correspondence between database state and enterprise state • On-line Analytic Processing (OLAP) • Analysis of information in a database for the purpose of making management decisions

  12. OLAP • Analyzes historical data (terabytes) using complex queries • Due to volume of data and complexity of queries, OLAP often uses a data warehouse • Data Warehouse - (offline) repository of historical data generated from OLTP or other sources • Data Mining - use of warehouse data to discover relationships that might influence enterprise strategy

  13. Examples - Supermarket • OLTP • Event is 3 cans of soup and 1 box of crackers bought; update database to reflect that event • OLAP • Last winter in all stores in northeast, how many customers bought soup and crackers together? • Data Mining • Are there any interesting combinations of foods that customers frequently bought together?

  14. Scientific Data Management • Today, many scientific discovery are achieved through the analysis of an ever increasing large amount of scientific data. Example: bioinformatics. • Scientific data management goes beyond the scope of traditional business data management: not only efficient storage and access, but also information, meaning, and content. • Characteristics of scientific data: huge amount, streaming, complex types and structures, evolving.

  15. Scientific Data Management: Current Problems • Use file systems directly to manage scientific data or metadata, not efficient for access and search. • Data and metadata are hard to share as they are in proprietary formats and interpretation might rely on a postdoc who just left the lab. • Data interoperability, will XML or Semantic Web technologies provide the answers?

  16. Scientific Data Management: Research problems • Data provenance and reproducibility • Information flow control • Metadata management and interoperability (Semantic Web) • Creation of logical collections • Data analysis pipelines => scientific workflows

  17. Turing Awardees in DB Charles Bachman (1973) Edgar F. Codd (1981) Jim Gray (1998)

  18. Charles Bachman Developer of IDS: the first database system

  19. Edgar. F. Codd Inventor of the Relational Model

  20. Jim Gray Founder of Transaction Processing

  21. Exercises • Check out the course webpage at http://www.cs.wayne.edu/~shiyong • Install mysql: http://www.mysql.com

More Related