CSC114 ยท 2077 ยท 10 marks
What is database? What are benefits of using storing database system architectures in detail.
What is database? What are benefits of using storing database system architectures in detail.[10]
Quick answer
A database is an organized collection of related data that is stored and managed so that it can be easily accessed, retrieved, updated, and managed. It eliminates data redundancy and provides a structured way to store large amounts of information.
Database and Database System Architectures
Part 1: What is a Database? (2 marks)
Data is information when dealing with a machine, and databases are used in domains such as banking, airlines, universities, telecom, and sales, all of which require organized, structured storage of large volumes of data.
A Database Management System (DBMS) is the software that manages and controls access to the database.
Part 2: Benefits of Using a Database System (3 marks)
The following are the key benefits of using a DBMS:
1. Data Security
- DBMS has an enhanced security mechanism.
- The Database Administrator (DBA) can define different security levels so that all users are not allowed to access all parts of the database.
- This protects sensitive data from unauthorized access.
2. Data Integrity
- Data integrity is easily maintained in a database, which is difficult to achieve in a traditional file system.
- Integrity constraints ensure that only valid and consistent data is stored.
3. Backup and Recovery
- DBMS maintains automatic backups of the data.
- After a failure has occurred, the system is recovered to a consistent state from the backup.
- This prevents data loss due to system crashes or failures.
4. Reduced Data Redundancy
- Unlike file systems where the same data may be stored in multiple files, a DBMS stores data in a centralized manner, reducing duplication.
5. Easy Data Access and Sharing
- Multiple users can access the same database simultaneously.
- Data can be shared across departments and applications efficiently.
Part 3: Database System Architectures (5 marks)
The following are the main types of database system architectures:
1. Centralized Database System
Definition: A centralized database system is a system which stores the entire information as well as the whole database in one main server, and all other computers access the data from that server computer.
Key Features:
- Works on a client-server model.
- There is one central computer called the database server that stores all data and files.
- The server is responsible for processing the data.
- All client machines in the network access data from this single server.
Diagram:
[Client 1] \
[Client 2] ----> [Central Database Server]
[Client 3] /
Examples:
- Database systems used by schools, colleges, and banks are centralized database systems.
Advantages:
- Easy to manage and maintain since all data is in one place.
- Strong data security and access control.
- Data consistency is easy to maintain.
Disadvantages:
- If the central server fails, the entire system goes down (single point of failure).
- Performance may degrade as the number of clients increases.
2. Distributed Database System
Definition: A distributed database system stores data across multiple physical locations (different computers or sites), but appears to the user as a single unified database.
Key Features:
- Data is distributed across multiple nodes/sites.
- Nodes are connected via a network.
- Each site can process local queries independently.
Types:
- Homogeneous: All sites use the same DBMS software.
- Heterogeneous: Different sites may use different DBMS software.
Advantages:
- No single point of failure -- system continues even if one node fails.
- Faster local data access.
- Scalable and reliable.
Disadvantages:
- Complex to design and manage.
- Data synchronization across nodes is challenging.
3. Client-Server Architecture
Definition: In a client-server architecture, the database server provides database services and the client machines request those services.
Key Features:
- The server handles data storage, processing, and security.
- Clients send requests (queries) to the server and receive results.
- This is the underlying model on which the centralized database system is built.
[Client: Sends Query] <-----> [Server: Processes & Returns Result]
Advantages:
- Centralized control of data.
- Clients do not need to store data locally.
- Easy to update and maintain data at the server level.
4. Cloud Database System
Definition: A cloud database is a database that runs on a cloud computing platform and is accessed over the internet.
Key Features:
- Data is stored on remote servers managed by cloud providers (e.g., AWS, Google Cloud).
- Users access the database via the internet.
- Highly scalable and available on demand.
Advantages:
- No need for physical hardware maintenance.
- Accessible from anywhere.
- Cost-effective (pay-as-you-use model).
Summary Table
| Architecture | Data Location | Access Method | Example Use |
|---|---|---|---|
| Centralized | Single server | Network/LAN | Banks, Schools |
| Distributed | Multiple sites | Network | Large enterprises |
| Client-Server | Server | Client requests | Web applications |
| Cloud | Remote servers | Internet | Online services |
Conclusion
A database is a fundamental component of modern information systems. The choice of database system architecture depends on the scale, security requirements, and availability needs of the organization. Centralized database systems are widely used in schools, colleges, and banks due to their simplicity and ease of management.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.