






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







A database is a collection of interrelated data items that are managed as a single unit.
This definition is deliberately broad because so much variety exists across the various software vendors that provide database systems. For example, Microsoft Access places the entire database in a single data file, so an Access database can be defined as the file that contains the data items.
Oracle Corporation defines its database as a collection of physical files that are managed by an instance of its database software product. An instance is a copy of the database software running in memory.
Microsoft SQL Server and Sybase Adaptive Server Enterprise (ASE) define a database as a collection of data items that have a common owner, and multiple databases are typically managed by a single instance of the database management software.
This can all be quite confusing if you work with multiple products, because, for example, a database as defined by Microsoft SQL Server or Sybase ASE is exactly what Oracle Corporation calls a schema.
in the database; if the transaction fails, none of the changes it made are recorded in the database.
database user employs to retrieve data from the database.
from failures.
and modification.
A data bank and a database are the same thing. Data bank is merely an older term that was used by the scientists who developed early database systems. In fact, the term data bank is still used in a few human languages.
Databases are unique in their ability to present multiple users with their own distinct views of the data while storing the underlying data only once. These are collectively called user views.
A user in this context is any person or application that signs on to the database for the purpose of storing and/or retrieving data.
The architecture shown in Figure 1-1 was first developed by ANSI/SPARC (American National Standards Institute/Standards Planning and Requirements Committee) in the 1970s and quickly became a foundation for much of the database research and development efforts that followed. Most modern DBMSs follow this architecture, which is composed of three primary layers: the physical layer, the logical layer, and the external layer.
The physical layer contains the data files that hold all the data for the database.
The logical layer or logical model comprises the first of two layers of abstraction in the database: the physical layer has a concrete existence in the operating system files, whereas the logical layer exists only as abstract data structures assembled from the physical layer as needed.
The external layer or external model is the second layer of abstraction in the database. This layer is composed of the user views, which are collectively called the subschema.
Flat files are “ordinary” operating system files, in that records in a file contain no information to communicate the file structure or any relationship among the records to the application that uses the file.
Flat files are often used to store database information. In this case, the operating system is still unaware of the contents and structure of the files, but the DBMS has metadata that allows it to translate between the flat files in the physical layer and the database structures in the logical layer.
Metadata , which literally means “data about data,” is the term used for the information that the database stores in its catalog to describe the data stored in the database and the relationships among the data. The metadata for a customer, for example, might include all the data items collected about the customer (such as name, address, and account status), along with the length, minimum and maximum data values, and a brief description of each data item, figure 1-2 shows a sample flat file system.
An application program is a unit of computer program logic that performs a particular function within an application system.
The earliest databases followed the hierarchical model, which evolved from the file systems that the databases replaced, with records arranged in a hierarchy much like an organization chart.
Each file from the flat file system became a record type , or node in hierarchical terminology—but the term record is used here for simplicity. Records were connected using pointers that contained the address of the related record. Pointers told the computer system where the related record was physically located, much as a street address directs you to a particular building in a city, a URL directs you to a particular web page on the Internet, or GPS coordinates point to a particular location on the planet.
Each pointer establishes a parent-child relationship, also called a one-to-many relationship , in which one parent can have many children, but each child can have only one parent, figure 1-3 shows the hierarchical structure of the hierarchical model.
The relational model is based on the notion that any preconceived path through a data structure is too restrictive a solution, especially in light of ever-increasing demands to support ad hoc requests for information. Database users simply cannot think of every possible use of the data before the database is created; therefore, imposing predefined paths through the data merely creates a “data jail.”
The relational model allows users to relate records as needed rather than as predefined when the records are first stored in the database. Moreover, the relational model is constructed such that queries work with sets of data (for example, all the customers who have an outstanding balance) rather than one record at a time, as with the network and hierarchical models.
The relational model presents data in familiar two-dimensional tables, much like a spreadsheet does. Unlike a spreadsheet, the data is not necessarily stored in tabular form and the model also permits combining ( joining in relational terminology) tables to form views , which are also presented as two-dimensional tables. Instead of linking related records together with physical address pointers, as is done in the hierarchical and network models, a common data item is stored in each table; just as was done in flat file systems, figure 1-4 shows the relational model.
In Figure 1-5, three of the five tables have been represented with sample data in selected columns.
The object-oriented (OO) model actually had its beginnings in the 1970s, but it did not see significant commercial use until the 1990s.