What is the difference between sessions and transactions in Oracle?

Source: Internet
Author: User

A session can start multiple transactions. A session is a session and refers to a connection.
A transaction is an operation unit, either successful or failed, with no intermediate state.
The session can complete multiple transactions.
For example:
A session is like a connection to the database in an application. The connection is closed. This is a session.
A transaction is like executing one or more operations on the database in the program after a session is opened.
The best example of a transaction is to transfer money from an account to another account. The data in the two tables is either completely modified or changed to the original one.
View sessions v $ session
Transaction v $ transaction
These two views are connected through v $ session. taddr = v $ transaction. addr,
Transactions are a feature that separates databases from file systems.

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.