Chapter 1 Flashcards
(15 cards)
Purpose of a database?
store, manipulate and retrieve data.
The data stored in a database should be ______.
durable; data remains consistent and valid
A good database system should provide ______, ________, and _______.
CRUD, ACID, and security
CRUD
create, read, update and delete
Transactions
a single operation or series of operations that retrieves or alters the data in a database.
What is the goal of a successful transaction?
to change the database form one consistent state to another consistent state.
What are the two results of a transaction?
committed or rolled back
A committed transaction
the results of the transaction are written to the database, resulting in a new consistent state (a commit).
A Rollback
the database is placed back into the consistent state it was in before the transaction started.
ACID
Atomicity, OCnsistencyy, Isolation, Durability
Atomicity
The transaction is a complete unit, and is executed in its entirety or not at all
Consistency
a transaction changes the database from one consistent state to another consistent state or the transaction is rolled back
Isolation
An incomplete transaction should not be visible to others. Users only see the previous consistent state or the resulting consistent state (not the inconsistent state as the transaction is completed)
Durability
Committed transactions are permanent. (Once committed, it cannot be rolled back.)
Database security is accomplished through. . .
a combination of physical, network access and design methods.