Topic: 1z0-083 topic 1 question 99

Your CDB has two regular PDBs as well as one application container with two application PDBs and an application seed.
No changes have been made to the standard PDB$SEED.
How many default temporary tablespaces can be assigned in the CDB?

A.
six
B.
seven
C.
five
D.
eight
E.
three

Re: 1z0-083 topic 1 question 99

We can verify that, by default, neither PDB$SEED nor APP SEED create temporary tablespace (at least that's how it seems to work in 19.3.0)

SQL> show pdbs
    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 TOYS_ROOT                      READ WRITE NO
         4 TOYS_ROOT$SEED                 READ WRITE NO
         5 PDB1                           READ WRITE NO
         6 HR_ROOT                        READ WRITE NO
         7 OPERATIONS                     READ WRITE NO
         8 RESEARCH                       READ WRITE NO

SQL> select name from v$pdbs where con_id not in (select con_id from cdb_temp_files);
NAME
---------------
PDB$SEED
TOYS_ROOT$SEED

I think A is correct (CDB$ROOT + pdb1 + pdb2 + app_root + app_pdb1 + app_pdb2 = 6)

Re: 1z0-083 topic 1 question 99

PDB$SEED has a emporary tablespace. Test:

alter session set container=pdb$seed;
select name from v$tempfile;
/u02/oradata/CDB1/pdbseed/temp012024-03-19_22-14-16-931-PM.dbf

Re: 1z0-083 topic 1 question 99

Agree, i dont see any tempfiles in 19c.

SQL> select con_id, file_name from cdb_temp_files;

    CON_ID
----------
FILE_NAME
--------------------------------------------------------------------------------
         1
E:\ORADATA\CEQTESTDB\DATAFILE\O1_MF_TEMP_JKT0HX3S_.TMP

         3
E:\ORADATA\CEQTESTDB\0D866E7293684B4AB3DFA708272C5DB4\DATAFILE\O1_MF_TEMP_JKT2N9
BQ_.DBF


SQL> show pdbs;

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 EQTESTDB                       READ WRITE NO

Re: 1z0-083 topic 1 question 99

D
(every container including pdb$seed)

Re: 1z0-083 topic 1 question 99

D, 8 tested.
show pdbs
CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO       
         3 APP1                           READ WRITE NO       
         4 APP1$SEED                      READ WRITE NO       
         5 PDB2                           READ WRITE NO       
         6 APPPDB1                        READ WRITE NO       
         7 APPPDB2                        READ WRITE NO       
         8 PDB1                           READ WRITE NO       

select count(1) from v$datafile where name like '%undo%';
  COUNT(1)
----------
         8

Re: 1z0-083 topic 1 question 99

A is absolutely correct

Re: 1z0-083 topic 1 question 99

D is the right answer

Re: 1z0-083 topic 1 question 99

8 as explained ABAJ

Re: 1z0-083 topic 1 question 99

Choosing D -

  1* select sys_context('userenv', 'db_name') db_name, property_name, property_value from database_properties where property_name = 'DEFAULT_TEMP_TABLESPACE'
SYS@CDB1:CDB1>/

DB_NAME    PROPERTY_NAME                  PROPERTY_VALUE
---------- ------------------------------ ------------------------------
PDB$SEED   DEFAULT_TEMP_TABLESPACE        TEMP

Re: 1z0-083 topic 1 question 99

D : https://docs.oracle.com/en/database/oracle/oracle-database/19/multi/creating-and-configuring-a-cdb.html#GUID-A976FE53-2BFA-4A80-B570-563391396DE9

Re: 1z0-083 topic 1 question 99

Did you try alter session to PDB$SEED then query for the temp file? The following is what I found in version 19.14.0.0
SQL> alter session set container=PDB$SEED;

Session altered.

SQL> SELECT con_id, name FROM v$containers;

    CON_ID NAME
---------- ----
         2 PDB$SEED

SQL> SELECT con_id,tablespace_name,file_name FROM cdb_temp_files ORDER BY con_id;

    CON_ID TABLESPACE_NAME                FILE_NAME
---------- ------------------------------ ---------
         2 TEMP                           /dbbssdev_data/oradata/CBSSDEV/datafile/temp012022-05-04_18-20-27-034-PM.dbf

I think the SEED's temp tablespace is hidden from CDB, but it's still existed.
I will choose D, eight for this.

Re: 1z0-083 topic 1 question 99

B is the right answer. pdb$seed and app seed can also have their own tempfiles as shown below from lab output.  So the correct answer is 8 .

SQL> select TABLESPACE_NAME,file_name from dba_temp_files;

TABLESPACE_NAME
------------------------------
FILE_NAME
--------------------------------------------------------------------------------
TEMP
C:\USERS\APP\ORACLE\ORADATA\ORCL\PDBSEED\TEMP012021-03-08_15-37-15-070-PM.DBF

Re: 1z0-083 topic 1 question 99

6 only in 19.13
select TABLESPACE_NAME,file_name from cdb_temp_files;

Re: 1z0-083 topic 1 question 99

I mean 8

Re: 1z0-083 topic 1 question 99

D is the right answer

Re: 1z0-083 topic 1 question 99

B is correct

A default temporary tablespace exists for every container in the CDB. Therefore, the CDB root and every PDB, application root, and application PDB has its own default temporary tablespace.

Re: 1z0-083 topic 1 question 99

>> Therefore, the CDB root and every PDB, application root, and application PDB has its own default temporary tablespace.
1+1*2+1+1*2=?

Re: 1z0-083 topic 1 question 99

I recheck and agree with @mporislav. CDB$ROOT, PDB$SEED, Two PDBs, Application Root, Application Seed, 2 Application PDBs. So 8 is correct.