Dms
Dms
ROLL NO:-242122
COURSE NAME :- CM-Diploma in Computer Technology
ENROLLMENT NUMBER :- 24111610031
SEAT NO:- 135151
Database Administration
• Database administration is the process of managing and
maintaining a database to ensure that it works well, stays secure,
and is available whenever needed
Introduction to database administration:
Database
End Users Application System Designers
Programmers Analysts
Database Administrators
(DBAs)
END USER
•Description: End users interact with the database through applications without directly accessing
the database itself.
•Access Level: Limited access, usually restricted to querying and viewing data relevant to their
needs.
•Examples: Employees using a web application to view customer records, clients viewing account
information on a banking app.
Application Programmers
•Description: These are developers who write software applications that interact with the database.
•Access Level: Typically, they have more access than end users, including permissions to create, read,
update, and delete data as needed for application functionality.
•Examples: Programmers developing e-commerce websites, inventory management systems, or other
software that requires data storage and retrieval
Database Administrators (DBAs)
•Description: DBAs are responsible for the overall management, maintenance, and
security of the database. They ensure data integrity, performance, and availability.
•Access Level: Highest level of access, including privileges to manage user
permissions, optimize performance, create backups, and perform recovery.
•Examples: IT professionals managing databases for large organizations, setting
user roles, and implementing security policies.
System Analysts
•Description: System analysts design databases and determine the requirements for database
applications based on organizational needs.
•Access Level: They often have access to define the database schema and determine the structure,
though their direct data manipulation access might be limited.
•Examples: Analysts planning the architecture for data warehouses, setting up data models for
applications.
Database Designers
•Description: These users are responsible for defining the logical and physical structure of the
database. They decide how data will be stored, organized, and related.
•Access Level: Access to design schema, tables, relationships, and indexes but typically less access
to day-to-day data manipulation.
•Examples: Data architects designing a database for a new CRM or ERP system.
User Management
When a user is no longer needed, the database administrator can delete the user to prevent
unauthorized access. This can be done using a simple DROP USER command.
DROP USER 'username'@'hostname’;
Assigning Privileges to Users
Privileges define what actions a user is allowed to perform on the database. These privileges can be
granted at various levels (e.g., global, database, table, or column level) depending on the needs of
the user.
Granting Privileges To grant privileges, you can use the GRANT command. You can assign specific
privileges to users, such as SELECT (read), INSERT (write), UPDATE (modify), DELETE (remove),
and administrative privileges like CREATE, ALTER, and DROP.
GRANT SELECT, INSERT, UPDATE ON database_name.* TO 'username'@'hostname’;
In this example: