Databases 2
Databases 2
Databases 2
Lecture # 2
Types of Databases
There are various types of databases used for storing different
varieties of data:
• Centralized Database
• Distributed Database
• Relational Database
• Cloud Database
• Hierarchical Databases
• Network Databases
• Personal Database
• Operational Database
• Enterprise Database
Types of Databases
Centralized Database
o It has decreased the risk of data management, i.e., manipulation of data will not
affect the core data.
o It is less costly because fewer vendors are required to handle the data sets.
Disadvantages of Centralized Database
o The size of the centralized database is large, which increases the response time
for fetching the data.
• If any server failure occurs, entire data will be lost, which could be a huge loss
Types of Databases
Distributed Database
o One server failure will not affect the entire data set.
Types of Databases
Relational Database
Four commonly known properties of a relational model known as ACID properties, where:
• A means Atomicity: This ensures the data operation will complete either with success or
with failure. It follows the 'all or nothing' strategy. For example, a transaction will either be
committed or will abort.
• C means Consistency: If we perform any operation over the data, its value before and
after the operation should be preserved. For example, the account balance before and after
the transaction should be correct, i.e., it should remain conserved.
• I means Isolation: There can be concurrent users for accessing data at the same time from
the database. Thus, isolation between the data should remain isolated. For example, when
multiple transactions occur at the same time, one transaction effects should not be visible to
the other transactions in the database.
• D means Durability: It ensures that once it completes the operation and commits the
data, data changes should remain permanent.
Types of Databases
Cloud Database
• A type of database where data is stored in a virtual environment and executes over
the cloud computing platform. It provides users with various cloud computing services
(SaaS, PaaS, IaaS, etc.) for accessing the database. There are numerous cloud platforms,
but the best options are:
o Microsoft Azure
o Kamatera
o PhonixNAP
o ScienceSoft
• Data get stored in the form of records that are connected via links. Each child record
in the tree will contain only one parent. On the other hand, each parent record can have
multiple child records.
Types of Databases
Network Databases
• It is the database that typically follows the network data model. Here, the
representation of data is in the form of nodes connected via links between them. Unlike
the hierarchical database, it allows each record to have multiple children and parent
nodes to form a generalized graph structure.
Personal Database
• Collecting and storing data on the user's system defines a Personal Database. This
database is basically designed for a single user.
• The type of database which creates and updates the database in real-time. It is
basically designed for executing and handling the daily data operations in several
businesses. For example, An organization uses operational databases for managing per
day transactions.
Enterprise Database
• Large organizations or enterprises use this database for managing a massive amount
of data. It helps organizations to increase and improve their efficiency. Such a database
allows simultaneous access to users.
2. Physical schema.
3. View schema.
What is DBMS Schema
1. Physical schema:
• In the physical schema, the database is designed at the physical level.
At this level, the schema describes how the data block is stored and how
the storage is managed. OR
• Physical data refers to the data stored in the secondary memory.
2. Logical schema:
• In the logical schema, the database is designed at a logical level. At
this level, the programmer and data administrator perform their work.
Also, at this level, a certain amount of data is stored in a structured way.
But the internal implementation data are hidden in the physical layer for
the security purpose. OR
• Logical data are the data for the table created by user in primary
memory.
What is DBMS Schema
3. View schema:
2. access paths eg. specification of primary and secondary keys, indexes etc