DBMS Privileges Explained: How the Central Controller Manages User Access

Functions of the Central Controller and User Privileges in DBMS

In a Database Management System (DBMS), the central controller (usually the Database Administrator - DBA) manages user access and privileges to ensure data security and integrity. Here’s a detailed overview:


1. Functions of the Central Controller

  • Granting Privileges: Allow users or roles to perform specific operations on database objects.
  • Revoking Privileges: Remove or restrict access rights from users when needed.
  • User Management: Create, modify, or delete user accounts and assign roles.
  • Role and Group Management: Assign privileges to roles or groups for simplified administration.
  • Monitoring and Auditing: Track user access and detect unauthorized activities.

2. Types of Privileges

A. System Privileges

Allow users to perform administrative operations on the database.

PrivilegeDescription
CREATE USERCreate new database users
ALTER USERModify user properties
DROP USERDelete a database user
CREATE TABLECreate new tables
DROP TABLEDelete tables
CREATE SESSIONConnect to the database
ALTER SYSTEMModify system-level parameters
BACKUP DATABASEPerform database backup

B. Object Privileges

Allow users to perform operations on specific database objects like tables, views, or procedures.

PrivilegeDescription
SELECTRead data from a table or view
INSERTAdd new rows to a table
UPDATEModify existing rows in a table
DELETERemove rows from a table
EXECUTERun a stored procedure or function
REFERENCESUse columns in constraints or foreign keys

3. SQL Commands for Privilege Management

Granting Privileges

GRANT SELECT ON Employees TO Rahim;
GRANT SELECT, INSERT, UPDATE ON Employees TO Rahim;

Revoking Privileges

REVOKE UPDATE ON Employees FROM Rahim;
REVOKE SELECT, INSERT ON Employees FROM Rahim;

Conclusion

The central controller or DBA ensures proper access control by granting or revoking privileges, managing users and roles, and auditing database operations. Understanding system and object privileges helps maintain security and integrity in database systems.

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন