Views/Security/Transactions Flashcards
Advantages Views
Data independence
Security
Easier querying
Convenience/Customization
Disadvantages of views
Updatable views are not always supported and are restrictive
Performance - Views add increased overhead: During query parsing and especially if they are materialized
SQL privileges
SELECT - The user can retrieve data from table
INSERT - The user cam insert data into the table
UPDATE - The user can modify data in the table
DELETE - The user can delete rows from table
REFERENCES - The ability to reference columns of a named table in integrity constraints
USAGE - The ability to use domains, character sets and translations
INSERT and UPDATE can be restricted to certain columns
When a user creates a table they become the owner and have full privileges on the table
GRANT
GRANT command gives privileges on database objects to users
REVOKE
Command used to remove privileges on database objects from users
Atomicity
Either all operations of the transaction are properly reflected in the database or none are
Consistency
Execution of a transaction in isolation preserves the consistency of the database
Isolation
Although multiple transactions may execute concurrently, each transaction must be unaware of other concurrently executing transaction
Durability
After a transaction successfully completes, the change it has made to the database persist, even if there are system failures