exam questions

Exam 1z0-071 All Questions

View all questions & answers for the 1z0-071 exam

Exam 1z0-071 topic 1 question 159 discussion

Actual exam question from Oracle's 1z0-071
Question #: 159
Topic #: 1
[All 1z0-071 Questions]

You currently have an active transaction in your session and have been granted SELECT access to
V$TRANSACTION.

Executing:

SELECT xid, status FROM v$transaction;

in your session returns:



In which three situations will re-executing this query still return a row but with a different XID, indicating a new transaction has started? (Choose three.)

  • A. after successfully executing a CREATE TABLE statement followed by a CREATE INDEX statement
  • B. after successfully executing a TRUNCATE statement followed by a DML statement
  • C. after successfully executing a DML statement following a failed DML statement
  • D. after successfully executing a CREATE TABLE AS SELECT statement followed by a SELECT FOR UPDATE statement
  • E. after successfully executing a COMMIT or ROLLBACK followed by a DML statement
  • F. after successfully executing a COMMIT or ROLLBACK followed by a SELECT statement
Show Suggested Answer Hide Answer
Suggested Answer: BDE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ArslanAltaf
2 months, 3 weeks ago
The Transaction END with Comitt or DDL The new Transaction starts with INSERT, UPDATE, DEL, MERGE (Not even select TESTED) OR A transaction can be start manually by begin transaction command (which is irrelevent in context of this question).
upvoted 1 times
...
ArslanAltaf
2 months, 3 weeks ago
A. after successfully executing a CREATE TABLE statement followed by a CREATE INDEX statement CREATE WILL END THE TRANSACTION BUT AGAIN CREATE INDEX WILL NOT START NEW TRANSACTION. FALSE B. after successfully executing a TRUNCATE statement followed by a DML statement. TRUNC WILL END TRANS... AND LET SUPPOSE DML IS NOT SELECT IN THIS CASE SO THIS IS A POSSIBLE TRUE. TRUE C. after successfully executing a DML statement following a failed DML statement. DML WILL NOT END TRANSATION AT ALL. FALSE D. after successfully executing a CREATE TABLE AS SELECT statement followed by a SELECT FOR UPDATE statement. CREATE IS DDL WHICH IS IMPLICIT COMIT AND SELECT FOR UPDATE IS A START OF NEW TRANSACTION. TRUE E. after successfully executing a COMMIT or ROLLBACK followed by a DML statement. SO COMIT END TRANSACTION AND DML CAN POTENTIALLY START NEW TRANSACTION (OTHER THAN SELECT). TRUE F. after successfully executing a COMMIT or ROLLBACK followed by a SELECT statement. TRANSACTION ENDS HOWEVER ONLE SELECT, LET SAY SELEC * FROM EMP WILL NOT START A NEW TRANSACTION. FALSE TRUE ---- BDE
upvoted 1 times
...
yaya32
5 months, 3 weeks ago
Selected Answer: BDE
BDE is correct
upvoted 2 times
...
WingL
1 year ago
Selected Answer: BDE
BEST ANSWERS
upvoted 2 times
...
Darnun
1 year, 3 months ago
BDE is correct, tested all on DB. F is incorrect as SELECT is a limited DML statement which means it can only access data in the database, it cannot manipulate data.
upvoted 2 times
...
Thorc
1 year, 3 months ago
Selected Answer: BDE
I would said BDE because STATUS means that the Transaction must be active so not yet completed
upvoted 1 times
...
Beesho
1 year, 4 months ago
I would say BDE
upvoted 1 times
...
greenneem
1 year, 4 months ago
I think new transaction can't start in the following case. C.after successfully executing a DML statement following a failed DML statement and I didn't find the difference between E and F.Can I get any reference link?
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago