Set: Computer Science 304 Introduction to Database Systems

Familiarize

Learn

Test

Play Scatter

Play Space Race

Combine with other sets Login to add to Favorites
Print: Term List | Flashcards Editing not allowed
Export Deleting not allowed

Share these flash cards

With group: UBC Computer Science
HTML link to set: Tiny link:
Share on Facebook Share on MySpace

All 85 terms

TermDefinition
Schemalogical structure of the Database
InstanceThe actual content of a database at a certain point in time
Physical data independenceBeing able to change the physical schema without changing the logical schema
logical data independencebeing able to change the conceptual schema without changing the application (provided by views)
relational modeluses a N-ary relation between attribute sets to model entity set
relation instancea table with a column for each attribute which is atomic; each row represents an entity
relation schemarelation name followed by a parenthesized list of attribute names with associated domains followed by constraints
database schemacollection of relation schemas
type constraintvalue in column must be of corresponding data type
data atomicitysingle value in each column
key constraintany relation or table has at most one row for some combination of values of key attributes
foreign keyan attribute of a relation which serves as a primary key of another relation
candidate keya minimal set of attributes which is a key
superkeyany key including a set of all attributes of a relation
functional dependencya set of attributes x which uniquely determines a set of Y attributes
determinantleft side of a functional dependency
anomalyan error or inconsistency due to redundant data resulting from insertion, update or deletion
binary relationa relation between two entity sets
cardinality constrainta bound on the number of times an instance of an entity can be related to an instance of another entity
composite keya key consisting of more than one attribute
relational databasea database consisting of relations (tables)
partial dependencya functional dependency in which non-key attributes are functionally dependent on part but not all of the primary key attributes
transitive dependencyan attribute that does not depend on the key of the table
3rd Normal formno transitive dependencies
Boyce Codd Normal Forma relation in which every determinant is a candidate key
foreign key constraintthere is a tuple or row of the primary key table with same value as value of foreign key
atomicityeither all actions in a transaction occur, or none
consistencymaking sure that if a DBMS starts in a consistent state, that it ends up in a consistent state.
IsolationOne transaction does not affect other transactions
DurabilityIf a transactions commits then that effect is persistent
stealWhen the system writes a page to disk if it needs it even if the transaction that changed it is still active
no-stealkeep page in memory if active transaction is updating it
forcewhen a transaction commits, write all pages modified by it
no-forceonly write pages when their buffers are needed
analysis1st Aries phase: Start from some point in log and scan forward to identify all active transactions and all dirty pages
redo2nd ARIES phase: start from a point and repeat all actions up to crash point
undo3rd ARIES phase, undo the actions that did not commit. Work backwards from log
Write-ahead loggingwrite any db changes to the log in stable storage before updating the DB
logging changes during undoAction that ensures that actions are not repeated during repeated faliures
logA file of action records stored in stable storage
Log Sequence NumberEach log record has its own unique _______
transaction tabletable containing entries for active transactions. Elements include tranID, status, lastLSN
dirty page tabletable containing entries for all the dirty pages in the buffer pool contains recLSN
write-ahead loggingA strategy for writing the log pages to stable storage. Forces the writing of log records before the data page is written. Writes all log records for a transaction before commit
checkpointpoint in a log where the DBMS should start the recovery from
transactionseries of reads and writes that are expected to be executed as a unit
activetransaction state where it is making progress or waiting for resources
failedtransaction state where execution cannot continue
abortedtransaction state after rolling the DB back to before the transaction occurred
committedtransaction state after a commit command
schedulea time-ordered sequence of actions for one or more transactions
concurrent scheduleschedule where the actions of two or more transactions are interleaved
serial scheduleschedule that does not interleave the transactions of different transactions
equivalent schedulea schedule what when executed produces the same effect as another.
serializable schedulea schedule that is equivalent to some serial schedule
conflictthis occurs when two actions are both on the same data and one is a write
recoverablea schedule that commits a transaction only after all the transactions that modify data read by that transaction have committed
conflict serializablea schedule that is conflict equivalent to a serial schedule
conflict equivalenta schedule that has all of its pairs of conflicting transactions ordered in the same way as another transaction
view equivalenta schedule that always reads the same values as another schedule and that has the same transactions writing the final values as the other schedule
view serializablea schedule that is view equivalent to a serial schedule
lockstructure that restricts access to database objects
shared locka lock that can be shared by many transactions
exclusive locka lock that can only be held by one transaction at a time
locking protocolrules that define how locks should be used
strict 2PLeach transaction must obtain an S lock before reading and an X lock before writing. All locks are released on a commit or abort
2PLeach transaction must obtain an S lock before reading and an X lock before writing. Locks can be released at any time, but they cannot request additional locks after releasing one
lock tablea hash table containing one entry for each data object that lists the number of transactions holding each lock
transaction tablecontains lists of locks for each transaction
lock upgradeconverting a S lock to a X lock
lock downgradeconverting a X lock to an S lock (can only happen if it does not change the object)
blockeda transaction that is waiting for a lock
deadlockwhen two or more transactions are blocked, waiting for each other
waits-for graphgraph used to detect deadlocks by discovering cycles
wait-diedeadlock policy: If T1 wants something T2 has, T1 waits if it has a higher priority than T2 else T1 aborts
wound-waitdeadlock policy: If T1 wants something T2 has, T2 aborts if T1 has a higher priority else T1 waits
multiple-granularity locka lock that works on nested objects
intention sharelock that conflicts only with X
intention exclusivelock that conflicts only with S and X
predicate lockinggranting locks on all records that satisfy some kind of predicate
index lockinglocking index pages containing data entries with a rating =1
Thomas Write RuleRule saying that you can ignore a write if it know that will be overwritten before it is read again
stable storagenon-volatile storage that is redundant and with very high probability is protected from loss.
CLRThis is inserted before an action described by an update log record is undone. These are never undone and contain an undoNextLSN field
loser transactiona transaction that is active at the time of a crash

Set Information

Terms 85
Creator ramcio
Created April 11, 2009
Group UBC Computer Science
Subjects computer science, database
Access Anyone
Edit Group: UBC Computer Science
Get rid of ads on Quizlet
Pop out

Discuss

christianvelasquez : You made this about 8 minutes ago. :)
Last Message: 7 months ago

You must be logged in to discuss this set.

Top Users

  1. snolte - 174 scores
  2. VMcEachern - 157 scores
  3. ramcio - 145 scores
  4. christianvelasquez - 4 scores

Most Missed Words

  1. write-ahead logging A strategy for writing the log pages to stable storage. Forces the writing of log records before the data page is written. Writes all log records for a transaction before commit - 8 misses
  2. relation instance a table with a column for each attribute which is atomic; each row represents an entity - 8 misses
  3. data atomicity single value in each column - 7 misses
  4. transitive dependency an attribute that does not depend on the key of the table - 7 misses
  5. Write-ahead logging write any db changes to the log in stable storage before updating the DB - 6 misses
  6. binary relation a relation between two entity sets - 6 misses
  7. Boyce Codd Normal Form a relation in which every determinant is a candidate key - 5 misses