Snail-oracle Basic Business Study (Fri)

Source: Internet
Author: User

---------------Transaction---The transaction is completed when it executes to commit, otherwise the rollback operation is performed. Declarev_money acount.money%type:=1223;ex exception;begin  update acount set Money=money-v_money where id=1;  Raise ex;  Update acount set Money=money+v_money where id=2;  commit;  Exception when others and then    dbms_output. Put_Line (' power Down ');    Rollback;end;


the task of a transaction is to transform a database from one state to another, unlike a file system, which is a database-specific use. It has four properties:TOMsummarized asACIDthat
Atomic Natureatomicity:statement-level atomicity, process-level atomicity, transactional-level atomicity
ConsistencyConsistency:same State, no two states in the same transaction
Isolation ofIsolation:the separation between transactions is mutually exclusive.(There may also be autonomous matters here)
DurabilityDurability:The transaction commits, then the state is permanent.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.