You want to export the pluggable database (PDB) hr pdb1 from the multitenant container
database (CDB)CDB1 and import it into the cdb2 CDB as the emp_pdb1 PDB. Examine the
list of possible steps required to perform the task: 1.Create a PDB named emp_pdb1.
2.Export the hr_pdb1 PDB by using the full clause. 3.Open the emp_pdb1 PDB. 4.Mount the
emp_pdb1 PDB. 5.Synchronize the emp_pdb1 PDB in restricted mode. 6.Copy the dump
file to the Data Pump directory. 7.Create a Data Pump directory in the emp_pdb1 PDB.
8.Import data into emp_pdb1 with the full and remap clauses. 9.Create the same
tablespaces in emp_pdb1 as in hr_pdb1 for new local user objects. Identify the required
steps in the correct order.
A.
2, 1, 3, 7, 6, and 8
B.
2, 1, 4, 5, 3, 7, 6, 9, and 8
C.
2, 1, 3, 7, 6, 9, and 8
D.
2, 1, 3, 5, 7, 6, and 8
C the trick here is to understand that all the data are exported using the data pump utility and there to create the tablespaces is necessary. If you use a full transportable database you do not have to create the tablespaces but you have to transfer the datafiles to the destination.
C
2.Export the hr_pdb1 PDB by using the full clause
1.Create a PDB named emp_pdb1.
3.Open the emp_pdb1 PDB
7.Create a Data Pump directory in the emp_pdb1 PDB
6.Copy the dump file to the Data Pump directory.
9.Create the same tablespaces in emp_pdb1 as in hr_pdb1 for new local user objects.
8.Import data into emp_pdb1 with the full and remap clauses.
A
Because the step 2 says that you perfom an expdp with the full clause and you dont need to create the tablespaces when you perform the impdp.
FULL=yes will export tablespace definitions. So no need step 9.
https://docs.oracle.com/cd/B10501_01/server.920/a96652/ch01.htm
A
Correct Ans is A
Because the step 2 says that you perfom an expdp with the full clause and you don’t need to create the tablespaces when you perform the impdp.
If local tablespace/users or any other objects with the same name already exists in the destination PDB, impdp will fail/skip that object creation but data will be imported. Hence step 9 is not needed.
Again doing both step 9 and 8 doesn’t make sense, as per step 9 we are creating tablespaces in destination pdb with the same name as in source pdb, and in step 8 we are importing with remap clauses to remap the tablespaces. In actual case remap is not needed. Even if you want to mention remap tablespace clause then you will not be mapping it to the same name tablespace, you will be pre-creating the new tablespace and mapping new tablespace or you will be mapping the already existing tablespace with the different name. mapping tablespace with the same name doesn’t make any sense.