DBS-1
Introduction to Data
Data: Statistics gathered for reference or analysis; includes facts (e.g., numbers, words, measurements).
Information: Derived from data, interpreted into a meaningful form for decision-making.
Database Concepts
Definition
A database: A structured collection of related data that can be easily accessed, managed, and updated.
Database Management System (DBMS): Software enabling users to create and interact with databases while managing data efficiently.
Components of a Database System (DBS)
Database: The actual storage of data in an organized format (tables, files, etc.). Examples: MySQL, MongoDB, Oracle.
DBMS: Tool that provides an interface for interacting with the database.
Hardware: Physical devices like servers where the database is hosted.
Users: Entities interacting with the database, including:
End Users: Access data through applications.
Database Administrators (DBAs): Manage and maintain the database.
Developers: Build applications utilizing the database.
Procedures for Database Management
Includes rules for usage, backup strategies, security policies, and operational guidelines.
Types of Database Systems
Relational Database Systems: Examples include MySQL, Oracle Database.
NoSQL Database Systems: Examples include MongoDB, Cassandra.
Hierarchical Database System: Example: IBM IMS.
Network Database System: Example: Integrated Data Store (IDS).
Distributed Database Systems: Examples include Apache Cassandra and Google Spanner.
Cloud Database Systems: Examples include Amazon RDS and Azure SQL Database.
Functions of a Database System
Data Storage: Systematic and accessible data storage.
Data Retrieval: Users can query for specific information.
Data Manipulation: Allows adding, updating, or deleting data.
Data Security: Protects data from unauthorized access.
Concurrency Control: Manages multiple users accessing the database simultaneously.
Backup and Recovery: Safeguards data and restores it if needed.
Characteristics of a Database System vs. File System
Database System Characteristics
Data stored in structured formats (e.g., tables), ensuring integrity through constraints.
Manages data redundancy via normalization techniques.
Robust security features like user authentication and encryption.
Highly scalable for large volumes of data and concurrent users.
Supports complex relationships with efficient querying through languages like SQL.
File System Characteristics
Data stored in unstructured formats (e.g., plain files, folders).
High redundancy and inconsistency due to lack of control and constraints.
Basic security features, limited scalability, and difficulty in managing concurrent access.
Backup and Recovery
Automated backup and recovery mechanisms, typically built-in to database systems.
Data consistency maintained through ACID properties (Atomicity, Consistency, Isolation, Durability).
Manual configurations required in traditional file systems for backups.
Flexibility and Cost
DBMS supports structured, semi-structured, and unstructured data across various databases.
Cost-effective in the long run due to reduced errors and time savings; requires budgeting for database licensing and hardware.
Types of Database Users
Database Administrators (DBAs): Manage the database environment and access control.
Application Programmers/Developers: Design and develop applications that interact with databases.
End Users: Access the database directly or through applications for retrieving and modifying data.
Casual Users: Use the database occasionally for analytical purposes.
Parametric Users: Perform routine queries using pre-designed applications.
Sophisticated Users: Write complex queries for data analyses.
Data Analysts and Scientists: Extract insights and perform advanced data queries.
Database Designers: Structure databases, establish relationships, and ensure scalability.
Advantages of Database Systems
Minimization of Redundancy: Centralized data storage improves consistency.
Improved Data Security: Only authorized users have access to sensitive information.
Enhanced Data Consistency: Real-time updates ensure all modifications are reflected instantaneously.
Efficient Data Sharing: Multiple users can access data simultaneously without conflict.
Data Integrity: Constraints ensure data validity and accuracy.
Backup and Recovery: Ensure data can be recovered after an incident.
Improved Accessibility: Access to data through structured queries enhances usability.
Scalability: Databases can grow to accommodate larger user bases and data volumes.
Cost-Effective: Long-term savings through automation and reduced manual errors.