nerdexam
Oracle

1Z0-497 · Question #100

After a ___________ statement is issued, a transaction ends.

The correct answer is A. COMMIT B. ROLLBACK E. CREATE. https://docs.oracle.com/database/121/CNCPT/transact.htm#CNCPT1115 Beginning of a Transaction A transaction begins when the first executable SQL statement is encountered. An executable SQL statement is a SQL statement that generates calls to a database instance, including DML…

Managing the Database Instance

Question

After a ___________ statement is issued, a transaction ends.

Options

  • ACOMMIT
  • BROLLBACK
  • CSAVEPOINT
  • DSELECT
  • ECREATE

How the community answered

(50 responses)
  • A
    80% (40)
  • C
    6% (3)
  • D
    14% (7)

Explanation

https://docs.oracle.com/database/121/CNCPT/transact.htm#CNCPT1115 Beginning of a Transaction A transaction begins when the first executable SQL statement is encountered. An executable SQL statement is a SQL statement that generates calls to a database instance, including DML and DDL statements and the SET TRANSACTION statement. When a transaction begins, Oracle Database assigns the transaction to an available undo data segment to record the undo entries for the new transaction. A transaction ID is not allocated until an undo segment and transaction table slot are allocated, which occurs during the first DML statement. A transaction ID is unique to a transaction and represents the undo segment number, slot, and sequence number. End of a Transaction A transaction ends when any of the following actions occurs: - A user issues a COMMIT or ROLLBACK statement without a SAVEPOINT clause. In a commit, a user explicitly or implicitly requested that the changes in the transaction be made permanent. Changes made by the transaction are permanent and visible to other users only after a transaction commits. - A user runs a DDL command such as CREATE, DROP, RENAME, or ALTER. The database issues an implicit COMMIT statement before and after every DDL statement. If the current transaction contains DML statements, then Oracle Database first commits the transaction and then runs and commits the DDL statement as a new, single-statement transaction. - A user exits normally from most Oracle Database utilities and tools, causing the current transaction to be implicitly committed. The commit behavior when a user disconnects is application-dependent and configurable.

Topics

#COMMIT#ROLLBACK#DDL transactions#transaction end

Community Discussion

No community discussion yet for this question.

Full 1Z0-497 Practice