Beruflich Dokumente
Kultur Dokumente
Database System
Concepts
15.1
Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
Data Integrity
Ensuring the integrity of the organization's databases is a key component of the
DBA's job. A database is of little use if the data it contains is inaccurate or if it
cannot be accessed due to integrity problems. The DBA has many tools at his
disposal to ensure data integrity.
Database structure integrity The DBMS uses internal structures and pointers
to maintain database objects in the proper order
Semantic data integrity Semantic data integrity deals with the DBMS features
and processes that can be used to ensure the accuracy and viability of the data
contents of a database
Structural database integrity refers to the consistency of the "holders" of the
data (the database objects), semantic data integrity refers to the consistency of
the data itself
System Concepts
15.2
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
Backup files are another potential area for a structural integrity problem. Each
DBMS formats and maintains a specific structure for its database backup files. If
the backup file is not formatted correctly, or if data is in the wrong location in the
backup file, it cannot be used by the DBMS for recovery purposes. Media
failures, tape degradation, and bugs can cause such problems.
System Concepts
15.3
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
System Concepts
15.4
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
Database Checking
DBCC CHECKDB(database_name)
DBCC CHECKCATALOG(database_name)
DBCC CHECKALLOC(database_name)
Memory Usage
DBCC MEMUSAGE
The DBCC command can be used to monitor current memory allocation and
usage.
System Concepts
15.5
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
When DBMS facilities are used to enforce data integrity, less code needs to be
written, and therefore less code needs to be tested. This can reduce the time
and cost to get the "product" out the door.
Many forms of semantic data integrity can be enforced by using features of the
DBMS
System Concepts
15.6
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
Data Types Data type and data length are the most fundamental integrity
constraints; specifying the data type for each column when a table is created,
the DBMS will automatically ensure that only the correct type of data is stored in
that column.
User-Defined Data Types provides a mechanism for extending the type of
data that can be stored in databases and the way that the data is treated
System Concepts
15.7
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
System Concepts
15.8
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
System Concepts
15.9
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
System Concepts
15.10
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
System Concepts
15.11
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
System Concepts
15.12
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
Pendant DELETE
processing cannot
be implemented
using declarative
RI.
System Concepts
15.13
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins
System Concepts
15.14
Database Administration:
The Complete Guide to Practices and Procedures
Silberschatz, KorthCraig
and Sudarshan
S. Mullins