GTU MCA MATERIAL FOR DBMS II

RSS
  • Home
  • Quick Review
  • Assignment
  • Backup and Recovery
  • Differences
  • About Me

Sunday, April 10, 2011

Mid Term Exam Feedback


Posted by Dr. Parag Shukla at 9:50:00 PM 0 comments
Email This BlogThis! Share to X Share to Facebook

Saturday, April 9, 2011

Assignment - 4 Database Security


Assignment – 4     Database Security   Submission Date : 13-Apr-2011  


Q.1
Explain the Following Questions in detail.

1.    What is database security? Explain the goal of database security?
2.    Describe the Granting & Revoking privileges using SQL with syntax and example. Explain account level, table level and column level privileges.
3.    Explain concept of audit train in detail
4.    Explain the Mandatory Access Control with Bell-Lapadulla model.
5.    What is statistics database security?
6.    What do you mean by firewall? What are firewall techniques that are used in database Security?
7.    Explain data encryption with different schemes.
8.   Using Polyalphabetic substitution method and encryption key, “SECURITY”, encrypt the plaintext message “SELL ALL STOCKS”
Q.2
Differentiate the following :

1.    Security Vs integrity
2.    Discretionary Access Control Vs Mandatory Access Control
3.    Authorization Vs Authentication.
4.    Simple Property Vs Star Property
5.    Audit Trail Vs Transaction Log
6.    Simple Substitution Method Vs Polyalphabetic Substitution Method
Posted by Dr. Parag Shukla at 12:05:00 AM 0 comments
Email This BlogThis! Share to X Share to Facebook

Monday, March 21, 2011

Starvation Vs Deadlock


Starvation
Deadlock
Starvation happens if same transaction is always choosen as victim.
A deadlock is a condition in which two or more transaction are waiting for each other.
It occurs if the waiting scheme for locked items in unfair, giving priority to some transactions over others.
A situation where two or more transactions are unable to proceed because each is waiting for one of the other to do something.
Starvation is also known as lived lock.
Deadlock is also known as circular waiting.
Avoidance:
->switch priorities so that every thread has a chance to have high priority.
-> Use FIFO order among competing request.
Avoidance:
->Acquire locks are predefined order.
->Acquire locks at once before starting.
It means that transaction goes in a state where transaction never progress.
It is a situation where transactions are waiting for each other.
Example :
Example :
Posted by Dr. Parag Shukla at 11:59:00 PM 0 comments
Email This BlogThis! Share to X Share to Facebook

Lost Update Vs Uncommitted Data


Lost Update
Uncommitted Data
This problem is also known as “Multiple Update problem”
This problem is also known as “Dirty Read”
In the multiple update problem, the data written by one transaction is being overwritten by another transaction.
In Dirty read, data written by one transaction is read by another transaction before that transaction commits.
Two transaction accessing the same database item have their operations interleaved in a way that makes the database item incorrect.
This problem occurs when one transaction is allowed to see the intermediate result of the another transaction before it is committed.
Example :

Connection A
Connection B
   ………
   ………
SELECT Row1
   ………
   ………
   ………
   ………
SELECT Row1
   ………
   ………
UPDATE Row1
   ………
   ………
   ………
   ………
UPDATE Row1
Example :

Connection A
Connection B
   ………
   ………
   ………
 UPDATE Row1
   ………
   ………
SELECT Row1
   ………
   ………
   ………
   ………
 ROLLBACK
Situation :

Connection A and B both read a record and then update it, the effect of the first update will be overwritten by the second update.
Situation :
Connection A reads an object that has been modified by Connection B but Connection B has not committed yet. Here, Connection B rollback transaction and uncommitted data is already read by Connection A.
This is known as “Uncommitted Dependency”
Problem : Connection A and B both reading old value. Here Connection A updates row after some time Connection B updates that row. So, changes made by Connection A would be lost.

Problem : Connection A was permitted to read the intermediate result of Connection B before the Connection B was terminated.

Solution :
  • Prohibit a shared lock
  • Use batch processing
  • Implementing locking scheme
  • Two phase locking also solve this problem
Solution : Prevent Connection A from reading the account balance until the Connection B is terminated. i.e. either committed or rollback.

Posted by Dr. Parag Shukla at 11:54:00 PM 0 comments
Email This BlogThis! Share to X Share to Facebook
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Total Pageviews

Blog Archive

  • ▼  2019 (1)
    • ▼  March (1)
      • Privacy Policy
  • ►  2016 (7)
    • ►  August (6)
    • ►  July (1)
  • ►  2011 (16)
    • ►  May (2)
    • ►  April (6)
    • ►  March (5)
    • ►  February (3)
  • ►  2010 (9)
    • ►  May (4)
    • ►  March (5)
  • ►  2009 (1)
    • ►  December (1)

Followers

Blog List

Search

Parag Shukla. Powered by Blogger.

Popular Posts

  • Serial Schedule Vs Non-Serial Schedule
    Serial Schedule Non-Serial Schedule A serial schedule is a sequence of operat...
  • Dirty Read Vs Unrepeatable Read
    Dirty Read Unrepeatable Read A dirty read problem occurs when one transaction updates a ...
  • Log Based Recovery
    Log Based Recovery The most widely used structure for recording database modification is the log. The log is a sequence of log ...
  • Lost Update Vs Uncommitted Data
    Lost Update Uncommitted Data This problem is also known as “Multiple Update...
  • Shadow Paging
    Shadow Paging This technique does not require LOG in single user environment In mult...
  • Starvation Vs Deadlock
    Starvation Deadlock Starvation happens if same transaction is always choosen ...
  • Checkpoints
    Checkpoints When System failure occurs o We must consult log to determine those transaction that need to be redone and those tra...
  • Defferred Update method
    Deferred update Do not physically update the database on disk until after a transaction reaches its commit point; Then updates are r...
  • Assignment - 7 Query Processing & Optimization
    Assignment – 7         Query Processing & optimization    Submission Date 30-05-11   Q-1. Explain th...
  • Immediate Update Method
    Immediate update technique Database may be updated by some operations of a transaction before the transaction reaches its commit poi...
Copyright © 2010 GTU MCA MATERIAL FOR DBMS II