Chapter 1: Database systems & applications Flashcards

1
Q

DBMS contains…

A
  • a collection of interrelated data
  • set of programs to access data
  • convenient and efficiently usable environment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

DBMS used for…

A

manage valuable, large data that can be accessed by multiple users, often at the same time

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

data definition language (DDL)

A

notation for defining database schema (create)

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

data manipulation language (DML)

A

language for accessing and updating data (update, select, update)

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

prodecural DML

A

user must specify what data and how to get it

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

declarative DML (AKA non-procedural DML)

A

user must specify what data but not how to get it (easier to learn)

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

portion of DML that involves info retrieval is called a _____

A

query language

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

SQL query language is non-procedural or procedural?

A

non-procedural (also no turing machine equivalent language)

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

def: application programs

A

used to interact with database

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

def: logical design

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

def: physical design

A

physical layout of database

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

functional components of a database system (3) -> partitioned into modules to deal with several responsibilities of system

A
  • storage manager
  • query processor component
  • transaction management component
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

def: storage manager

A

provides interface b/w low-level data in database and application programs/queries submitted to the system

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

storage manager tasks (2)

A
  • interact with OS file manager
  • efficient storing, retrieving and updating of data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

storage manager components (4)

A
  • authorization and integrity manager
  • transaction manager
  • file manager
  • buffer manager
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

storage manager implements data structures as a part of physical system (3)

A
  • data files
  • data dictionary
  • indices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

def: data file

A

store database itself

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

def: data dictionary

A

stores metadata about database structure AKA the schema

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

def: indices

A

index that provides pointers to data that can help access data quickly

20
Q

query processor components (3)

A
  • DDL interpreter
  • DML compiler
  • query evaluation engine
21
Q

def: DDL interpreter

A

interprets DDL statements and records definitions in data dictionary

22
Q

def: DML compiler

A

translates DML statements in query language into lowest cost evaluation plan of low-level instructions that query evaluation engine understands

23
Q

def: query evaluation engine

A

executes low-level instructions generated by DML compiler

24
Q

components of transaction management (3)

A
  • transaction
  • transaction-management component
  • concurrency-control manager
25
def: transaction
collection of operations that perform single logical function in database application
26
def: transaction-management component
ensures database is in consistent state despite system and transaction failures
27
def: concurrency- control manager
controls interaction among concurrent transactions, ensures consistency of database
28
database architecture (4)
- centralized databases - client server - parallel databases - distributed databases
29
centralized databases
ont to a few cores, shared memeory
30
client server
one server machine executes work on behalf of multiple client machines
31
parallel databases
many core shared memory, shared disk, shared nothing
32
distributed databases
- geographical distribution - schema/ data heterogeneity
33
two-tier architecture
application resided at client machine, invokes database system at server machine
34
three-tier machine
- client communicates with application server through interface - application server communication with database to get data
35
def: database administrator
person who has central control over the system
36
function of database administrator
- schema definition and modification - storage structure definition - physical organization modification - granting authorization of data access backing up database ensuring free disk space and upgrading - monitoring jobs on database and maintenance
37
def: data models
collection of conceptual tools for describing data, relationships, semantics and constraints
38
def: data abstraction
hiding complexity of data structures through several levels of data abstraction
39
levels of abstraction (3)
- physical level - logical level - view level
40
def: physical level
described how a record is stored
41
def: logical level
described data stored in database and relationships
42
def: view level
application programs hide details of data types and info related to security
43
def: logical schema
overall logical structure of database
44
def: physical schema
overall physical structure of database
45
def: instance
actual content of database at certain point in time
46
def: physical data independence
ability to modify physical schema without changing logical schema