Professional Documents
Culture Documents
M.T. Özsu and P. Valduriez, Principles of Distributed Database Systems: Third Edition, 171
DOI 10.1007/978-1-4419-8834-8_5, © Springer Science+Business Media, LLC 2011
172 5 Data and Access Control
One of the main advantages of the relational model is that it provides full logical
data independence. As introduced in Chapter 1, external schemas enable user groups
to have their particular view of the database. In a relational system, a view is a virtual
relation, defined as the result of a query on base relations (or real relations), but not
materialized like a base relation, which is stored in the database. A view is a dynamic
window in the sense that it reflects all updates to the database. An external schema
can be defined as a set of views and/or base relations. Besides their use in external
schemas, views are useful for ensuring data security in a simple way. By selecting a
subset of the database, views hide some data. If users may only access the database
through views, they cannot see or manipulate the hidden data, which are therefore
secure.
In the remainder of this section we look at view management in centralized
and distributed systems as well as the problems of updating views. Note that in
a distributed DBMS, a view can be derived from distributed relations, and the
access to a view requires the execution of the distributed query corresponding to
the view definition. An important issue in a distributed DBMS is to make view
materialization efficient. We will see how the concept of materialized views helps in
solving this problem, among others, but requires efficient techniques for materialized
view maintenance.
Most relational DBMSs use a view mechanism where a view is a relation derived
from base relations as the result of a relational query (this was first proposed within
the INGRES [Stonebraker, 1975] and System R [Chamberlin et al., 1975] projects).
It is defined by associating the name of the view with the retrieval query that specifies
it.
Example 5.1. The view of system analysts (SYSAN) derived from relation EMP
(ENO,ENAME,TITLE), can be defined by the following SQL query: