

















Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!


















(^) I am indebted to Arturas Mazeika for providing me his slides of the last year course.
J. Gamper
Semantic Data Control
(^) authorized (^) users perform
(^) correct
operations on the database, contributing to the maintenance of database
(^) integrity .
-^ •^ In RDBMS semantic data control can be achieved in a uniform way that the system automatically enforcesviews, security constraints, and semantic integrity constraints can be defined as rules
J. Gamper
View Management in Centralized Databases
J. Gamper
View Management in Centralized Databases...
SELECT^ –^ Involves the view SYSAN and the relation ASG(ENO,PNO,RESP,DUR)responsibility?”
SELECT^ is translated into
J. Gamper
View Management in Centralized Databases...
(^) The updates to the view
(^) cannot (^) be propagated to the base
relations without ambiguity. CREATE VIEW
J. Gamper
View Management in Distributed Databases
-^ •^ Definition of views in DDBMS is similar as in centralized DBMS different sitesHowever, a view in a DDBMS may be derived from fragmented relations stored at - (possibly) distributed directory/catalogue^ •^ Views are conceptually the same as the base relations, therefore we store them in the queries due to possible fragmentation of data^ –^ Queries on views are translated into queries on base relations, yielding distributedThus, views might be centralized at one site, partially replicated, fully replicated -^ •^ Views derived from distributed relations may be costly to evaluate
J. Gamper
Data Protection
(^) prevents unauthorized users from understanding the physical content of
- (^) Public-key encryption schemes – (^) Data encryption standard^ •^ Well established standards existdata.
J. Gamper
Authorization Control
(^) must guarantee that only authorized users perform operations
- users^ •^ Three actors are involved in authorizationthey are allowed to perform on the database. , who trigger the execution of application programms - operations , which are embedded in applications programs - database objects
, on which the operations are performed
(^) (user, operation type, object)
(^) which
- (^) In a DBMS: Data objects are views, (fragments of) relations, tuples, attributes – (^) In a file system: data objects are files^ •^ Authorization control in (D)DBMS is more complicated as in operating systems^ •^ Authentication of (groups of) users is typically done by username and passwordobject.specifies that the user has the right to perform an operation of operation type on an
J. Gamper
Distributed Authorization Control
(^) authorization control in a distributed environment
(^) stem from
(^) is necessary since any site of a DDBMS may accept
beneficial if the users move from a site to a site
J. Gamper
Semantic Integrity Constraints
(^) consistent (^) if it satisfies a set of constraints, called
(^) semantic
- Structural constraints^ •^ Two main types of constraints can be distinguished:procedural methods – (^) avoid data dependency problem, code redundancy, and poor performance of theembedded in application programs) to declarative methods^ •^ Semantic integrity control evolved from procedural methods (in which the controls were^ •^ Maintain a database consistent by enforcing a set of constraints is a difficult problem integrity constraints
: basic semantic properties inherent to a data model e.g.,
- Behavioral constraints unique key constraint in relational model
: regulate application behavior e.g., dependencies
(functional, inclusion) in the relational model
-^ •^ A semantic integrity control system has 2 components: - (^) Integrity constraint enforcementIntegrity constraint specification
J. Gamper
Semantic Integrity Constraint Specification...
(^) are based on simple keywords and specify the more common
-^ •^ Unique key:
-^ •^ Foreign key:
-^ •^ Functional dependency:
J. Gamper
Semantic Integrity Constraint Specification...
(^) express preconditions that must be satisfied by all tuples in a
WHEN
update^ –^ OLD and NEW are implicitly defined variables to identify the tuples that are subject to
J. Gamper
Semantic Integrity Constraints Enforcement
(^) consists of rejecting update programs that
(^) efficient algorithms
- Detection:^ •^ Two methods to enforce integrity constraints:
u
u (^) is inconsistent then compensate
u (^) or undo′
(^) posttest
u (^) only if
will be consistent
(^) pretest
immediately for each tupleAdd the assertion qualification (constraint) to the update query and check it
J. Gamper
Semantic Integrity Constraints Enforcement...
and the domain constraint
The query modification algorithm transforms the query into:
J. Gamper