2.Database System Concepts and Architecture
2.Database System Concepts and Architecture
and Architecture
Data Models
A data model—a collection of concepts that can be used to describe the
structure of a database.
• The internal level has an internal schema, which describes the physical
stor-age structure of the database. The internal schema uses a physical data
model and describes the complete details of data storage and access paths
for the database.
VDL
Once the database schemas are compiled and the database is populated with
data, users must have some means to manipulate the database. Typical
manipulations include retrieval, insertion, deletion, and modification of the
data. The DBMS pro-vides a set of operations or a language called the data
manipulation language (DML) for these purposes.
• Queries are parsed and validated for correctness of the query syntax, the
names of files and data elements, and so on by a query compiler that
compiles them into an internal form.
• These commands are sent to the DML compiler for compilation into object
code for database access. The rest of the program is sent to the host
language compiler.
• This utility can be used to reorganize a set of database files into different
file organizations, and create new access paths to improve performance.
4. Performance monitoring
• Such a utility monitors database usage and provides statistics to the DBA.
• The DBA uses the statistics in making decisions such as whether or not to reorganize
files or whether to add or drop indexes to improve performance.