exam questions

Exam 1z0-083 All Questions

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

Exam 1z0-083 topic 1 question 34 discussion

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

You are managing this configuration:
1. CDB1 is a container database.
2. PDB1 and PDB2 are two pluggable databases in CDB1.
3. USER1.EMP is a table in PDB1 and USER2.DEPT is a table in PDB2.
CDB1 user SYS executes these commands after connecting successfully to PDB2:

Which two are true? (Choose two.)

  • A. The inserts on USER1.EMP remain uncommitted when the session connected to PDB2.
  • B. The inserts on USER1.EMP were committed when the session inserted a row into USER2.DEPT.
  • C. The insert on USER2.DEPT fails because of the active transaction in the parent container.
  • D. The insert on USER2.DEPT is a recursive autonomous transaction by the child session and is committed.
  • E. The inserts on USER1.EMP were rolled back when the session connected to PDB2.
  • F. The insert on USER2.DEPT is uncommitted.
  • G. The inserts on USER1.EMP were committed when the session connected to PDB2.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

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
you1234
Highly Voted 4 years, 6 months ago
other session to check any transaction Version 19.5.0.0.0 SQL> SQL> alter session set container=ELC20MIG; Session altered. SQL> select * from user1.emp; no rows selected correct answer is A & C
upvoted 25 times
...
you1234
Highly Voted 4 years, 6 months ago
tested in 19c. correct answer is A & C
upvoted 17 times
...
df404e2
Most Recent 2 months ago
Selected Answer: AC
Instead of my previous comment, F is FALSE. This is because the insert failed, there is no uncommitted insert. There just is no insert at all.
upvoted 1 times
...
df404e2
2 months ago
Answer: A, F F is TRUE, there is no commit at all. Reasoning for C being false might be the keyword "parent container".
upvoted 2 times
...
cujar2003
2 months ago
Selected Answer: AC
Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.9.0.0.0 SQL> alter session set container=PDBDEV; Session altered. SQL> insert into hr.emp values(100,'acujar'); 1 row created. SQL> insert into hr.emp values(101,'arozo'); 1 row created. SQL> alter session set container=PDBDEV2; Session altered. SQL> insert into hr.dept values (100, 'afaa'); insert into hr.dept values (100, 'afaa') * ERROR at line 1: ORA-65023: active transaction exists in container PDBDEV SQL>
upvoted 1 times
...
guretto
1 year ago
A C From MyOracleSupport note "Oracle Multitenant: Frequently Asked Questions (Doc ID 1511619.1)" Can a transaction span across PDBS ? No, though "alter session set container" is allowed after starting a transaction in a PDB, only select is allowed in the second PDB.Transaction is preserved and you can do commit or rollback after switch back to original PDB
upvoted 2 times
...
Shunpin
1 year, 1 month ago
Selected Answer: AC
SQL> alter session set container=ORCLPDB; Session altered. SQL> create table a (col1 varchar2(10)); Table created. SQL> insert into a values ('1'); 1 row created. SQL> alter session set container=APPCON1; Session altered. SQL> create table a (col1 varchar2(10)); create table a (col1 varchar2(10)) * ERROR at line 1: ORA-65023: active transaction exists in container ORCLPDB
upvoted 2 times
...
Guhborges
1 year, 5 months ago
Selected Answer: AC
A C 100% Here my own test. SQL> insert into in1 values(1); 1 row created. SQL> alter session set container=pdb2; Session altered. SQL> insert into in2 values(2); insert into in2 values(2) * ERROR at line 1: ORA-65023: active transaction exists in container PDB1
upvoted 1 times
...
kaka321
1 year, 6 months ago
I will go for GF. all ddl command when issued on a session automatically commit any existing dml on that same session. that makes G correct.
upvoted 2 times
Guhborges
1 year, 5 months ago
A and C 100%
upvoted 1 times
...
...
ScottL
1 year, 8 months ago
Selected Answer: AC
A and C
upvoted 1 times
...
_gio_
1 year, 8 months ago
Selected Answer: AC
i think ac
upvoted 1 times
...
vkra
1 year, 11 months ago
Selected Answer: AC
A+C is correct
upvoted 1 times
...
AliNawab
3 years, 3 months ago
Surely A & C sqlplus / as sysdba SQL*Plus: Release 19.0.0.0.0 - Production on Tue Sep 14 16:58:07 2021 Version 19.11.0.0.0 Copyright (c) 1982, 2020, Oracle. All rights reserved. Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.11.0.0.0 SQL> ALTER SESSION SET CONTAINER=PDB1; Session altered. SQL> INSERT INTO USER1.EMP VALUES(100); 1 row created. SQL> INSERT INTO USER1.EMP VALUES(200); 1 row created. SQL> ALTER SESSION SET CONTAINER=PDB2; Session altered. SQL> INSERT INTO USER2.DEPT VALUES(300); INSERT INTO USER2.DEPT VALUES(300) * ERROR at line 1: ORA-65023: active transaction exists in container PDB1 SQL>
upvoted 9 times
...
kameni
3 years, 4 months ago
A transaction cannot span multiple containers. If you start a transaction and use ALTER SESSION SET CONTAINER to switch to a different container, then you cannot issue DML, DDL, COMMIT, or ROLLBACK statements until you switch back to the container in which you started the transaction.
upvoted 2 times
...
Neil107
3 years, 5 months ago
A and F. Refer to The 12c DBA Guide p. 399.
upvoted 1 times
...
ObserverPL
3 years, 7 months ago
SQL> alter session set container=PDB1; Session altered. SQL> insert into emp values(1); 1 row created. SQL> alter session set container=PDB2; Session altered. SQL> insert into emp values(2); insert into emp values(2) * ERROR at line 1: ORA-65023: active transaction exists in container PDB1
upvoted 4 times
...
you1234
4 years, 6 months ago
SQL> alter session set container=ELC20MIG; Session altered. SQL> select * from user1.emp; no rows selected SQL> insert into user1.emp values(100); 1 row created. SQL> insert into user1.emp values(200); 1 row created. SQL> alter session set container=PDB2; Session altered. SQL> insert into user2.emp values(100); insert into user2.emp values(100) * ERROR at line 1: ORA-65023: active transaction exists in container ELC20MIG
upvoted 6 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