4) Distributed Database Administrator
4) Distributed Database Administrator
Database control is one of the primary tasks of the database administrator (DBA).
The three dimensions of database control are −
• Authentication
• Access rights
• Integrity constraints
Authentication
In a distributed database system, authentication is the process through which only legitimate(legal) users
can gain access to the data resources.
Access Rights
• A user’s access rights refers to the privileges that the user is given regarding DBMS operations such as
the rights to create a table, drop a table, add/delete/update tuples in a table or query upon the table.
• In distributed environments, since there are large number of tables and yet larger number of users, it is
not feasible to assign individual access rights to users. So, DDBMS de nes certain roles. A role is a
construct with certain privileges within a database system.
For example, the following SQL statements create a role "Accountant" and then assigns this
role to user "ABC"
For example, in the above hostel table, the hostel number can be assigned as the primary key
through the following SQL statement (ignoring the checks) −
For example,
let us consider a student table where a student may opt to live in a hostel. To include this, the primary key
of hostel table should be included as a foreign key in the student table.
The following SQL statement incorporates this −
fi
fi
fi
fi
fi