Intoduction Flashcards
Database System
System for providing efficient, convenient, and safe, multi-user storage of and access to massive amounts of persistent data
DBMS
A DBMS is software that stores, manages, and
facilitates access to data.
Database
a large, organized collection of data
Index
An index helps the DBMS find data quickly based on the value of a given field.
DBMS software
allows you to access the datanase
DBMS components
has functions to retrieve and manage the db
Storage manager
gets or modifies information from data storage based on requests from levels above it
File manager
knows the location of files on disk and how to get these blocks
Buffer Manager
gets blocks of data from the file manager and stores it in main memory. It is held until another block is requested and replaces the present block.
Query Manager
takes a query or data manipulation command and converts it into a series of requests for stored data (via the storage manager)
Query optimization
involves obtaining the best query plan or series of requests which answers the query.
Transaction Manager
Maintains the integrity of the DBMS
OLTP
Online Transaction Processing
Centralized DBS
physically resides on one or cluster of servers
Distributed DBS
partitions the data and stores it across different geographic locations
Data Warehouse
supports complex queries on historical data. Emphasis is on query processing and supporting decision support systems
DBMS Functions
1) Data dictionary mgmt. -stores definitions of data elements and metadata. Records changes in db structure. Performs validation
2) Data storage management- Manages physical storage of data, Creates and maintains indexes/
3) Query processing- Users query db for data, Data definition language defines structure, Data manipulation language allows data to be extracted.
4) Multi-user control- DBMS must ensure that concurrent user transaction do NOT interfere with each other
5) Backup and recovery management- Maintains various types of log files to return db to original state after transaction or system failure