Differences between sessions and transactions in Oracle

Source: Internet
Author: User
Tags file system sessions

A session can start multiple transactions, which are sessions, meaning one connection at a time.

A transaction is a unit of action that either succeeds or fails and has no intermediate state.

Multiple transactions can be completed in a session.

For example:

A session is analogous to connecting a database in an application to perform a connection and then shutting it down, which counts as a session.

Transaction, it is like executing one or more of the operations on the database in the program after you open the session.

The best example of things is the transfer of money from one account to another, two tables of data modification, or all successful, and the door completely changed back to the original.

Conversation See V$session

Affairs See V$transaction

These two views are connected by v$session.taddr= V$transaction.addr,

Transactions are a feature that separates the database from the file system

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

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.