exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 69 discussion

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

An Oracle Database session has an uncommitted transaction in progress which updated 5000 rows in a table.
In which three situations does the transaction complete thereby committing the updates? (Choose three.)

  • A. when a CREATE TABLE AS SELECT statement is issued in the same session but fails with a syntax error
  • B. when a DBA issues a successful SHUTDOWN TRANSACTIONAL statement and the user then issues a COMMIT
  • C. when the session logs out successfully
  • D. when a CREATE INDEX statement is executed successfully in the same session
  • E. when a DBA issues a successful SHUTDOWN IMMEDIATE statement and the user then issues a COMMIT
  • F. when a COMMIT statement is issued by the same user from another session in the same database instance
Show Suggested Answer Hide Answer
Suggested Answer: BCD 🗳️

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
HassanMkhlalati
2 months, 1 week ago
Selected Answer: BCD
A is not successful DML
upvoted 2 times
...
jm9999
3 months ago
Selected Answer: BCD
For A to be true the statement would have to be syntactically valid.
upvoted 2 times
...
ramonciks
3 months, 2 weeks ago
Should be BCD: A - FALSE - it is syntax error therefore does not implicitly commit: Oracle Database issues an implicit COMMIT under the following circumstances: Before any syntactically valid data definition language (DDL) statement, even if the statement results in an error After any data definition language (DDL) statement that completes without an errorhttps://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/COMMIT.html#GUID-6CD5C9A7-54B9-4FA2-BA3C-D6B4492B9EE2
upvoted 1 times
...
HassanMkhlalati
3 months, 4 weeks ago
Selected Answer: BCD
A is wrong, ddl is still in compilation mode, so no ddl considered.
upvoted 1 times
...
Shrimathi
5 months, 1 week ago
A - false since it is syntax error (checked ) if it is run time error then it commits the transaction. B is true The SHUTDOWN TRANSACTIONAL waits for all uncommitted transactions to complete before shutting down the database instance. This saves the work for all users without requesting them to log off. BCD would be the right answer
upvoted 1 times
TheOracleWasTaken
5 months, 1 week ago
A works. It commits before and after every ddl statement so A will implicitly commit despite failing due to a syntax error
upvoted 1 times
...
...
yanoolthecool
7 months, 3 weeks ago
Selected Answer: ACD
Chat GPT says A is correct and B is wrong. as SHUTDOWN TRANSACTIONAL functionality is that it waits all transactions to end then it shuts down the database, but he says since it was 'successful' then that means that the database already was shut down before the user committed. I think there is some logical problem with the answer.. its confusing, how is it successful but there was still a transaction in progress?
upvoted 1 times
...
Oratns
10 months, 1 week ago
ALTER TABLE and CREATE INDEX , which do cause a commit. Oracle performs an implicit commit after any SQL DDL (Data Definition Language) statement (even if this DDL statement fails). This includes table / index creation. So no open transaction should exist.
upvoted 1 times
...
BARNABA23
11 months, 2 weeks ago
I CHECKED making an experiment and A IS CORRECT answer. Looks like just CREATE TABLE AS creates a COMMIT (error was placed later - I used unexisting table as a source)
upvoted 2 times
...
dexdinh91
1 year ago
Don't know why A is correct answer
upvoted 1 times
jr_C
10 months, 1 week ago
Because before any DDL instructions, there is an implicit COMMIT
upvoted 2 times
...
...
heoj10272
1 year, 2 months ago
Selected Answer: BCD
BCD is correct.
upvoted 3 times
...
iuliana23
1 year, 2 months ago
Selected Answer: BCD
B should be correct, because the session will be killed after the last transaction will be committed or the user will use rollback... A is incorrect because the statement failed with a syntax error
upvoted 2 times
...
Peter_Chen
1 year, 3 months ago
why is not B? C used SQLPLUS is right but use sql developer ....Maybe not
upvoted 3 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