Podcast
Questions and Answers
What is the primary purpose of a data model?
What is the primary purpose of a data model?
Which of the following operations can be considered basic model operations in a data model?
Which of the following operations can be considered basic model operations in a data model?
What do constraints in a data model ensure?
What do constraints in a data model ensure?
Which category of data models is known for providing concepts that are close to user perceptions of data?
Which category of data models is known for providing concepts that are close to user perceptions of data?
Signup and view all the answers
What characterizes physical data models?
What characterizes physical data models?
Signup and view all the answers
Which type of data model falls between conceptual and physical models?
Which type of data model falls between conceptual and physical models?
Signup and view all the answers
What are constructs in data models primarily used for?
What are constructs in data models primarily used for?
Signup and view all the answers
Which of the following is an example of a user-defined operation in a data model?
Which of the following is an example of a user-defined operation in a data model?
Signup and view all the answers
What term is also used to refer to a database schema?
What term is also used to refer to a database schema?
Signup and view all the answers
Which level of the Three-Schema Architecture describes the physical storage structure of the database?
Which level of the Three-Schema Architecture describes the physical storage structure of the database?
Signup and view all the answers
What is the consequence of changing the internal schema in a system that fully supports physical data independence?
What is the consequence of changing the internal schema in a system that fully supports physical data independence?
Signup and view all the answers
Which level in the Three-Schema Architecture is concerned with a specific user group's interests?
Which level in the Three-Schema Architecture is concerned with a specific user group's interests?
Signup and view all the answers
What does logical data independence allow you to change?
What does logical data independence allow you to change?
Signup and view all the answers
In the context of database architecture, what does 'state' refer to?
In the context of database architecture, what does 'state' refer to?
Signup and view all the answers
Which of the following is not an aspect of Three-Schema Architecture?
Which of the following is not an aspect of Three-Schema Architecture?
Signup and view all the answers
Why are mappings among schema levels necessary in a database system?
Why are mappings among schema levels necessary in a database system?
Signup and view all the answers
What is the primary purpose of data abstraction in data models?
What is the primary purpose of data abstraction in data models?
Signup and view all the answers
Which of the following best describes an entity in the context of data models?
Which of the following best describes an entity in the context of data models?
Signup and view all the answers
What does a database schema describe?
What does a database schema describe?
Signup and view all the answers
In a physical data model, what is the purpose of an index?
In a physical data model, what is the purpose of an index?
Signup and view all the answers
Which statement accurately describes a valid database state?
Which statement accurately describes a valid database state?
Signup and view all the answers
What distinguishes the relational data model from the object data model?
What distinguishes the relational data model from the object data model?
Signup and view all the answers
What does a schema diagram display?
What does a schema diagram display?
Signup and view all the answers
In object data models, how do they relate to conceptual data models?
In object data models, how do they relate to conceptual data models?
Signup and view all the answers
What is the primary function of Open Database Connectivity (ODBC)?
What is the primary function of Open Database Connectivity (ODBC)?
Signup and view all the answers
Which layer is responsible for storing web connectivity software and business logic in a three-tier architecture?
Which layer is responsible for storing web connectivity software and business logic in a three-tier architecture?
Signup and view all the answers
Which classification of Database Management Systems (DBMSs) is characterized by being typically used with personal computers?
Which classification of Database Management Systems (DBMSs) is characterized by being typically used with personal computers?
Signup and view all the answers
What distinguishes a heterogeneous DDBMS from a homogeneous DDBMS?
What distinguishes a heterogeneous DDBMS from a homogeneous DDBMS?
Signup and view all the answers
How can a three-tier architecture enhance security?
How can a three-tier architecture enhance security?
Signup and view all the answers
What is one major characteristic of distributed database systems?
What is one major characteristic of distributed database systems?
Signup and view all the answers
Which of the following is NOT an example of a free relational DBMS?
Which of the following is NOT an example of a free relational DBMS?
Signup and view all the answers
What is the cost range for Database Management Systems (DBMSs)?
What is the cost range for Database Management Systems (DBMSs)?
Signup and view all the answers
What is the primary function of a file server in a client/server architecture?
What is the primary function of a file server in a client/server architecture?
Signup and view all the answers
Which type of server is specifically concerned with handling print requests from clients?
Which type of server is specifically concerned with handling print requests from clients?
Signup and view all the answers
What kind of access do client machines require to utilize server resources?
What kind of access do client machines require to utilize server resources?
Signup and view all the answers
Which of the following terms refers to relational DBMS servers?
Which of the following terms refers to relational DBMS servers?
Signup and view all the answers
What must be installed on both client and server for ODBC or JDBC connectivity?
What must be installed on both client and server for ODBC or JDBC connectivity?
Signup and view all the answers
In a two-tier client/server architecture, what are data sources?
In a two-tier client/server architecture, what are data sources?
Signup and view all the answers
Which standard provides a way for Java programs to access databases?
Which standard provides a way for Java programs to access databases?
Signup and view all the answers
Which option best describes a diskless client machine?
Which option best describes a diskless client machine?
Signup and view all the answers
What type of language is used to specify user views and mappings to the conceptual schema?
What type of language is used to specify user views and mappings to the conceptual schema?
Signup and view all the answers
Which of the following is NOT a characteristic of high level or non-procedural languages?
Which of the following is NOT a characteristic of high level or non-procedural languages?
Signup and view all the answers
What is the primary purpose of a query optimizer in a database system?
What is the primary purpose of a query optimizer in a database system?
Signup and view all the answers
Which interface type is primarily aimed at casual users needing occasional database information?
Which interface type is primarily aimed at casual users needing occasional database information?
Signup and view all the answers
Which language is specifically used for retrieving, inserting, deleting, and modifying data in a database?
Which language is specifically used for retrieving, inserting, deleting, and modifying data in a database?
Signup and view all the answers
What does the stored data manager do in a DBMS environment?
What does the stored data manager do in a DBMS environment?
Signup and view all the answers
How do low-level or procedural languages typically retrieve data?
How do low-level or procedural languages typically retrieve data?
Signup and view all the answers
Which language defines both schemas and is used by Database Administrators (DBAs) and designers?
Which language defines both schemas and is used by Database Administrators (DBAs) and designers?
Signup and view all the answers
Study Notes
Chapter 2: Database System Concepts and Architecture
- Fundamentals of Database Systems, Sixth Edition, by Elmasri and Navathe
- Copyright © 2011 Pearson Education, Inc.
Data Models
- A set of concepts to describe database structure, operations, and constraints.
- Data Model Structure and Constraints
- Constructs define database structure.
- Includes elements (and their data types), groups of elements (e.g., entity, record, table), and relationships among them.
- Constraints specify restrictions on valid data and must be enforced.
- Data Model Operations
- Used for database retrievals and updates.
- Include basic model operations (insert, delete, update) and user-defined operations (e.g., compute_student_gpa, update_inventory).
Categories of Data Models
- Conceptual (high-level, semantic)
- Close to how users perceive data.
- Also called entity-based or object-based.
- Physical (low-level, internal)
- Describes how data is stored in the computer.
- Usually specified in ad-hoc manner through DBMS design and administration manuals.
- Implementation (representational)
- Falls between conceptual and physical models.
- Used by many commercial DBMS implementations (e.g., relational data models).
Data Models, Schemas, and Instances
- Data abstraction
- Suppresses details of data organization and storage.
- Highlights essential features for better understanding.
- Database schema
- Description of a database.
- Includes descriptions of the database structure, data types, and constraints.
- Schema diagram
- Displays selected aspects of the schema.
- Schema construct
- Each object in the schema.
- Database state (or snapshot)
- Data in the database at a particular moment in time.
Categories of Data Models (continued)
- Entity: Represents a real-world object or concept.
- Attribute: Represents a property of interest that further describes an entity.
- Relationship: Represents an association among two or more entities.
- Entity-Relationship model
- A type of data model.
- Relational data model
- Commonly used in commercial DBMSs.
- Object data model
- A new family of higher-level implementation models, closer to conceptual data models.
- Physical data models
- Describes how data is stored as files in the computer.
- Access path: Structure to efficiently search for specific database records (active).
- Index: Allows direct access to data using an index term or keyword.
Schemas, Instances, and Database State (continued)
- Defining a new database involves specifying the database schema to the DBMS.
- Initial state: Populated or loaded with initial data, satisfies the structure and constraints.
- Valid state
Database Schema vs. Database State
- Database schema changes infrequently, while the database state changes every time the database is updated.
- Schema is also called intension (building).
- State is also called extension.
Three-Schema Architecture and Data Independence
- Internal level: Describes the physical storage structure of the database.
- Conceptual level: Describes the overall database structure for a community of users.
- External or view level: Describes the part of the database that a particular user group is interested in.
- Mappings among schema levels are needed for transforming requests.
Data Independence
- Logical Data Independence: Changing the conceptual schema without affecting the external schemas and their associated application programs.
- Physical Data Independence: Changing the internal schema without affecting the conceptual schema.
DBMS Languages
- Data Definition Language (DDL): Defines schemas (used by DBA and DB designers).
- Storage Definition Language (SDL): Specifies the internal schema.
- View Definition Language (VDL): Specifies user views / mappings to conceptual schema (external level).
- Data Manipulation Language (DML): Allows retrieval, insertion, deletion, and modification.
- High-Level (Non-procedural) Language
- Low-Level (Procedural) Language
DBMS Interfaces
- Menu-based interfaces (Web clients or browsing), forms-based interfaces, graphical user interfaces, natural language interfaces, speech input and output, interfaces for parametric users, interfaces for the DBA.
The Database System Environment
- DBMS component modules
- Buffer management: Schedules disk read/write to improve performance.
- Stored data manager: Controls access to information stored on disk (database and catalog).
- Interactive query interface: Interface for casual database users.
- Query compiler: Compiles queries to internal form and validates syntax.
- Query optimizer: Reorders operations, eliminates redundancies, and uses correct algorithms and indexes.
- Precompiler: Extracts DML commands from host programming languages, compiles those commands into object code for database access.
- Runtime database processor: Executes privileged commands, executable query plans, and transaction plans with runtime parameters
- System catalog: Information about the database itself (metadata)
- Concurrency control system: Manages concurrent access to data.
- Backup and recovery system: Creates backups and restores the database
Database System Utilities
- Loading: Loads existing data files.
- Backup: Creates backup copies of the database
- Database storage reorganization: Reorganizes database files.
- performance monitoring : Provides stats for DBA
Tools, Application Environments, and Communications Facilities
- Data dictionary / repository: Stores schema descriptions and other information about design decisions, application programs, users, standards, etc.
- Active vs Passive
Centralized and Client/Server Architectures for DBMSs
- Centralized DBMS architecture: Combines everything (DBMS software, hardware, application programs, user interface) into a single system. Users connect through remote terminals.
- Basic Client/Server Architectures
- Servers with specific functionalities (file servers, print servers, Web servers, email servers)
- Client Machines (diskless, PCs with client software, network connection)
- DBMS Server (SQL servers, query servers, Transaction Servers), ODBC (Open Database Connectivity), JDBC (Java Database Connectivity)
Two-Tier Client/Server Architectures for DBMSs
- Client program connects to multiple DBMSs (or data sources).
- Data sources can be files or other non-DBMS software.
Two-Tier Client/Server Architectures (continued)
- Open Database Connectivity
- Provides application programming interface (API) to allow client-side programs to call the DBMS.
- JDBC
- Allows Java client programs to access one or more DBMSs through a standard interface.
Three-Tier and n-Tier Architectures for Web Applications
- Application server (or Web Server): Intermediate layer between the client and the database server.
- Stores web connectivity software and business logic.
- Conduit for sending partially processed data.
- Three-tier architecture enhances security; clients cannot directly access the database server.
Classification of Database Management Systems
- Based on the data model being used (relational, network, hierarchical, object-oriented, object-relational).
- Other classifications
- Single-user (personal computers) vs. multi-user (most DBMSs)
- Centralized (single computer, one database) vs. distributed (multiple computers, multiple databases)
Variations of Distributed DBMSs (DDBMSs)
- Homogeneous DDBMS
- Heterogeneous DDBMS
- Federated or Multidatabase Systems
- Distributed DBMSs are now frequently implemented as client-server systems consisting of database servers supporting a set of clients. They do not support a totally distributed environment.
Cost Considerations for DBMSs
- Cost range: from free open-source systems to high-cost commercial configurations.
- Examples of free relational DBMSs: MySQL, PostgreSQL, etc.
- Commercial DBMSs: offer specialized modules (e.g., time-series, spatial data, document, XML) that are purchased separately.
- Various licensing options and costs
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
This quiz covers Chapter 2 of 'Fundamentals of Database Systems' by Elmasri and Navathe. Explore the various data models, their structures, operations, and constraints. Test your understanding of conceptual and physical data models and how they relate to database architecture.