A security policy specifies who can access what in a database. Access control mechanisms enforce this policy. The two main mechanisms at the DBMS level are discretionary access control and mandatory access control. Discretionary access control is based on access privileges for database objects like tables and views. Mandatory access control assigns security classes to objects and clearances to users, governing access based on these classifications. Most commercial databases only support discretionary access control.