Skip to main content

ACID properties of transaction

Transaction :-
                      A transaction is collection of operations that performs a single logical function in a database application that may lead to success or failure in operation maintaining integrity.

ACID properties of transaction :-

Atomicity :-
Transaction must be either performed full or not at all.
It will run to completion as as individual unit ,at the end of which either no change have
occurred to database or database has been changed in consistent manner .
At the end of transaction update it will be accessible to all.

Consistency :-
A correct execution of transaction must take DB from one consistent state to another,
programmer is responsible for this.
This property implies that if database was in consistent state before start of transaction ,then
at any time of termination too it must be consistent.

Independence:-
Transaction must not make its update visible to other transactions.
All actions performed by it must be independent.
This property gives transaction a measure of relative independence.

Durability:-
Once changes are committed must never be lost .
And any updating in database may not loss updates made by transaction.

Comments

Popular posts from this blog

Solve

Directions: In each Q1 to Q3 of the following questions, there are five letter groups or words in each question. Four of these letter groups or words are alike in some way, while one is different. Find the one which is different. Q.1.    (1) black    (2) red    (3) green    (4) paint    (5) yellow Answer:- (4) paint Q.2.    (1) BC    (2) MN    (3) PQ    (4) XZ    (5) ST Answer :-(4)XZ Q.3.    (1) Mango    (2)Apple    (3) Orange    (4) Guava    (5) Rose Answer :- (5) Rose Directions : In each of the following questions, there is a question mark in which only one of the five alternatives given under the question satisfies the same relationship as is found between the two terms to the left of the sign :: given in the question. Find the correct answer ...

Solved practical slips of 12th Computer Science journal

Program 1:- Write a function in C++ that exchanges data (passing by references )using swap function to interchange the given two numbers.*/ # include<iostream.h> # include<conio.h> void swap(float &x ,float &y) { float t=x; x=y; y=t; } void main() { void swap(float &,float &); float a,b; cin>>a>>b; cout<<” a := ” << a <<” b := ”<< b<< endl; swap(a,b); cout<< ”a:= ”<< a<< ” b := ”<< b<< endl; } Output : 2 4 a := 2 b:= 4 a:= 4 b: =2   Program 2:- Write a program in C++ with a ratio class using member functions like assign () function to initialize its member data integer numerator and denominator ,convert() function to convert the ratio into double, invert() to get the inverse of the ratio and print() function to print the ratio and its reciprocal.*/ ...

SOLVE QUESTION ANSWERS ON OPERATING SYSTEM .

1.One can interface with operating system by means of ------- A) Operating system call in a program B) Operating system commands C) Operating system process D) Both by operating system call and operating system commands Answer :-  D) Both by operating system call and operating system commands 2. Which of the following is not type of processing ? A) Serial B) Network C) Batch D) Multiprogramming Answer :- B) Network 3. Kernel is _____ A) A part of operating system B) An operating system C) A hardware D) A register Answer :-  A) A part of operating system 4. UNIX operating system is based on ______ A) Language structure B) Kernel approach C) Virtual machine D) Time sharing Answer :-   B) Kernel approach 5. A transition between two memory resident process in a memory resident process in amultiprograming system is called ______ A) Process switch B) Mode switch C) Transition switch D) None of these Answer :-    A) Process ...