Chap 2 (Database System Concepts and Architecture) Flashcards

(86 cards)

1
Q

A set of concepts to describe the structure of a database, the operations for manipulating these structures, and certain constraints that the database should obey.

A

Data Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

are used to define the database structure

A

Constructs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Constructs typically include

A

elements (and their data types)
groups of elements (e.g. entity, record, table)
relationships among such groups

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

specify some restrictions on valid data; these constraints must be enforced at all times

A

Constraints

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

These operations are used for specifying database retrievals and updates by referring to the constructs of the data model.

A

Data Model Operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Operations on the data model may include

A

basic model operations (e.g. generic insert, delete, update)
user-defined operations (e.g. compute_student_gpa, update_inventory)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Provide concepts that are close to the way many users perceive data.

A

Conceptual (high-level, semantic) data models

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Conceptual (high-level, semantic) data models are also called

A

entity-based or object-based data models

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Provide concepts that describe details of how data is stored in the computer. These are usually specified in an ad-hoc manner through DBMS design and administration manuals

A

Physical (low-level, internal) data models

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Provide concepts that fall between conceptual and physical data models, used by many commercial DBMS implementations (e.g. relational data models used in many commercial systems).

A

Implementation (representational) data models

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Combine the description of data with the data values. Examples include XML, key-value stores and some NOSQL systems.

A

Self-Describing Data Models

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The description of a database.

A

Database Schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Database schema includes

A

descriptions of the database structure, data types, and the constraints on the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

An illustrative display of (most aspects of) a database schema.

A

Schema Diagram

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A component of the schema or an object within the schema, e.g., STUDENT, COURSE.

A

Schema Construct

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The actual data stored in a database at a particular moment in time. This includes the collection of all the data in the database.

A

Database State

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Database State also called

A

Database Instance (or Occurrence/Snapshot)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

The term _____ is also applied to individual database components in database state

A

instance (e.g record instance, table instance, etc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Refers to the database state when it is initially loaded into the system.

A

Initial Database State

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

A state that satisfies the structure and constraints of the database.

A

Valid State

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

The _______ changes very infrequently

A

database schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

The ______ changes every time the database is updated.

A

database state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Schema is also called

A

Intension

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

State is also called

A

extension

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Three-Schema Architecture was proposed to support DBMS characteristics of
Program-data interdependence Support multiple views of data
26
Three-Schema Architecture defines DBMS Schemas at three levels which are
Internal schema Conceptual schema External schema
27
at the internal level to describe physical storage structures and access paths (e.g indexes).
Internal Schema
28
at the conceptual level to describe the structure and constraints for the whole database for a community of users.
Conceptual Schema
29
at the external level to describe the various user views.
External schema
30
What does internals schema typically use
Physical data model
31
Conceptual schema uses what model
conceptual or implementation data model
32
External schema uses what model
conceptual or implementation data model
33
In Three-Schema Architecture, _____ among schema levels are needed to transform requests and data
mappings
34
The capacity to change the conceptual schema without having to change the external schemas and their associated application programs
Logical Data Independence
35
The capacity to change the internal schema without having to change the conceptual schema
Physical Data Independence
36
When a schema at a lower level is changed, only the _____ between this schema and higher-level schemas need to be changed in a DBMS that fully supports data independence.
mappings
37
Types of DBMS Languages
Data Definition Language (DDL) Data Manipulation Language (DML) Low Level or Procedural Languages
38
Used by the DBA and database designers to specify the conceptual schema of a database
Data Definition Language (DDL)
39
In many D B M S s, the D D L is also used to define ______ and ______ schemas
internal and external
40
In some DBMSs, separate ________ (SDL) and ________ (VDL) are used to define internal and external schemas.
storage definition language (internal) View definition language (external)
41
Used to specify database retrievals and updates
Data Manipulation Language (DML)
42
DML commands (data sublanguage) can be embedded in a __________ (host language), such as COBOL, C, C++, or Java.
general-purpose programming language
43
A library of ______ can also be provided to access the DBMS from a programming language
functions
44
stand-alone DML commands can be applied directly (called a ___________).
query language
45
Types of DML
High Level or Non-procedural Language Low Level or Procedural Language
46
High Level or Non-procedural Language also called
declarative languages
47
Are “set”-oriented and specify what data to retrieve rather than how to retrieve it
High Level or Non-procedural Language
48
Retrieve data one record-at-a-time
Low Level or Procedural Language
49
Constructs such as looping are needed to retrieve multiple records, along with positioning pointers
Low Level or Procedural Language
50
Types of DBMS Interfaces
Stand-alone query language interfaces Programming interfaces User-friendly interfaces Mobile interfaces
51
DBMS Programming Language Interfaces
Embedded Approach Procedural Call Approach Database Programming Language Approach Scripting Languages
52
SQL is embedded directly in the source code of a host language (C, C++, Java, etc.), often requiring a precompiler.
Embedded Approach
53
Use of database APIs to interact with the database. SQL commands are passed as parameters to functions or methods.
Procedural Call Approach
54
A specialized language (often SQL with procedural extensions) that allows seamless integration of SQL and programming logic.
Database Programming Language Approach
55
High-level scripting languages like PHP or Python use database connectors/modules to interact with databases.
Scripting languages
56
User-Friendly DBMS Interfaces
Menu-based (web-based) Forms-based Graphics-based Natural language Combinations
57
Other DBMS Interfaces
Natural language Speech Web Browser Parametric interfaces
58
Used to store schema descriptions and other information such as design decisions, application program descriptions, user information, usage standards, etc.
Data dictionary/repository
59
is accessed by DBMS software and users/DBA.
Active data dictionary
60
is accessed by users/DBA only.
Passive data dictionary
61
Combines everything into single system including- DBMS software, hardware, application programs, and user interface processing software.
Centralized DBMS
62
In a centralized DBMS, User can still connect through a remote terminal – however, all processing is done at ________
centralized site
63
Specialized Servers with Specialized functions and Clients can access the specialized servers as needed
Basic 2-Tier Client-Server Architectures
64
What are the types of Specialized Servers with Specialized functions
Print server File server DBMS server Web server Email server
65
Provide appropriate interfaces through a client software module to access and utilize the various server resources.
Clients
66
Clients may be ____ machines or P C s or Workstations with disks with only the client software installed.
diskless
67
Connected to the servers via some form of a network.
Clients
68
Provides database query and transaction services to the clients
DBMSServer
69
Relational DBMS servers are often called ________
SQL servers, query servers, or transaction servers
70
Applications running on clients utilize an __________ to access server databases via standard interface
Application Program Interface (API)
71
Applications running on clients utilize an Application Program Interface (A P I) to access server databases via standard interface such as?
ODBC: Open Database Connectivity standard JDBC: Java programming access
72
Client and server must install appropriate ______ and ______ software for ODBC or JDBC
client and server module
73
A client program may connect to several DBMSs, sometimes called the _______
data sources
74
In general, data sources can be ____ or other non-DBMS software that manages data.
files
75
It is common for web applications regarding client and server
Three Tier Client-Server Architecture
76
Three Tier Client-Server Architecture has an intermediate layer called
Application Server or Web Server
77
Stores the web connectivity software and the business logic part of the application used to access the corresponding data from the database server
Intermediate Layer
78
Acts like a conduit for sending partially processed data between the database server and the client.
Intermediate Layer
79
Variations of Distributed DBMSs (DDBMSs)
Homogeneous DDBMS Heterogeneous DDBMS Federated or Multidatabase Systems Distributed Database Systems
80
Participating Databases are loosely coupled with high degree of autonomy.
Federated or Multidatabase Systems
81
Distributed Database Systems have now come to be known as _______ database systems
client-server based
82
organizes data in a tree-like structure, where each record has a single parent and potentially many children.
Hierarchical data model
83
similar to the hierarchical model but allows each child node to have multiple parent nodes
Network Data Model
84
organizes data into tables (relations), which consist of rows (tuples) and columns (attributes)
Relational Data Model
85
integrates concepts from object-oriented programming (OOP) into databases
Object-Oriented Data Model
86
combines the strengths of both relational and object-oriented models.
Object-Relational Data Model