Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

2011-10-26 Autonomous affairs

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Http://www.itpub.net/thread-1499223-9-1.html

85th floor

An autonomous transaction (autonomous transaction) is an independent transaction that is invoked by another transaction (called the main transaction). Which of the following statements about autonomous affairs are true?

(A)

In a program unit that contains autonomous transactions, there can be only one COMMIT or ROLLBACK.

(B)

If the autonomous transaction in the main transaction invocation subroutine changes, then the rollback in the main transaction will still roll back those changes.

(C)

After the autonomous transaction commits changes and returns control to the main transaction, it is possible that although these changes are visible to other sessions, they are not visible to the main transaction.

(D)

If a row of data in the table is locked by the main transaction, the autonomous transaction cannot modify the row.

The answer shows that the 88th floor

2011-10-26 answer CD. (a) the process of autonomous transactions must not leave unfinished transactions. It must be committed or rolled back before it can be returned. As for the number of commits or rollbacks, there is no limit, you can commit / rollback multiple times. (B) obvious error, sub-transaction is independent. (C) correct, if the isolation level of the main transaction is set to SERIALIZABLE, it will not see the modification of the autonomous transaction. (d) correct, this can lead to deadlock.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report