Dbms Unit III
Dbms Unit III
Database Security means keeping sensitive information safe and prevent the
loss of data. Security of data base is controlled by Database Administrator
(DBA).
The following are the main control measures are used to provide security of
data in databases:
---
*Firewalls**
A firewall is a security system designed to monitor and control
incoming and outgoing network traffic. It acts as a barrier between
trusted internal networks and untrusted external networks (e.g., the
internet).
#### **Types of Firewalls**
1. **Packet-Filtering Firewalls**: Examine packets based on
predefined rules (e.g., IP addresses, ports).
2. **Stateful Inspection Firewalls**: Track the state of active
connections and make decisions based on context.
3. **Proxy Firewalls**: Act as intermediaries between clients and
servers, adding a layer of isolation.
4. **Next-Generation Firewalls (NGFWs)**: Include advanced
features like deep packet inspection (DPI), intrusion prevention, and
application-layer filtering.
5. **Cloud-Based Firewalls**: Provide firewall functionality as a
service for cloud environments.
2. **Transaction Logs**
- Record all changes to the database for replay during recovery.
3. **Replication**
- Maintain a real-time copy of the database on a secondary server.
5. **Snapshot Recovery**
- Use storage snapshots for quick restoration.
1. **Data Distribution**
: Data is stored on multiple nodes,
which may be geographically dispersed.
2. **Transparency**
The system hides the complexity of the
distribution from users (e.g., data
location, fragmentation).
3. **Scalability**:
The system can handle increased loads
by adding more nodes.
4. **Fault Tolerance**: The system continues
to operate even if some nodes fail.
5. **Concurrency**: Multiple users can access
the database simultaneously without
interference.
### Advantages
- **Reliability**: Data is available even if
some nodes fail.
- **Scalability**: Can grow by adding more
nodes.
- **Performance**: Queries can be processed
locally on distributed nodes, reducing
latency.
- **Flexibility**: Data can be stored closer to
where it is needed (e.g., near users).
### Challenges
- **Data Consistency**: Ensuring data is
consistent across nodes is complex.
- **Synchronization**: Replicated data must
be kept up to date across nodes.
- **Complexity**: Designing, implementing,
and managing distributed databases is
challenging.
- **Latency**: Communication between
nodes can introduce delays.