General Flashcards

(15 cards)

1
Q

What are the 4 transaction control problems?

A

Lost Update
Dirty Read
Non-repeatable read
Phantom Read

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

Explain read uncommitted (isolation level)

A

can read not yet committed changes made by other transactions
No isolation

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

Explain Read committed (isolation level)

A

Read or write lock on the current row

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

Explain repeatable read (isolation level)

A

holds read locks on all rows it references and write locks on all rows it inserts, updates, or deletes
data is locked for the complete rest of a transaction

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

Explain serialisable (isolation level)

A

no transaction to data that is the subject of any other transaction

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

PMON (Process Monitor)

A

performs process recovery when a user process fails
- cleans the database buffer cache
- frees resources

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

SMON (System Monitor)

A

performs recovery
cleans up temporary segments

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

DBWR (Database Writer)

A

writes modified buffers in the database buffer cache to disk

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

LGWR (Log Writer)

A

writes the redo log buffer to a redo log file on disk

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

CKPT (Checkpoint Process)

A

updates the headers of all data files to record the details of the checkpoint

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

ARCH (Archiver)

A

copies redo log files to a designated storage device after a log switch has occurred

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

What are the types of Database languages? (DDL, DML, QL)

A
  • Data Definition Language (DDL): creating, modifying, and deleting data structures;
  • Data Manipulation Language (DML): recording, reading, modifying and deleting data objects;
  • Query Language (QL)
    specially developed for ad hoc queries;
    often offer natural language commands;
    form a subset of DML from a functional point of view.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Explain the first normal form

A

No repeating groups
Atomic (indivisible) values
Each field contains only one value

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

Explain the second normal form

A

Must be in 1NF
No partial dependency (composite key split up)
All non-key attributes must depend on the entire primary key

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

Explain the third normal form

A

Must be in 2NF
No transitive dependency
Non-key attributes should depend only on the primary key

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