There are several ways to create a PDB, but we recommend using the DBCA utility. It is assumed that you have already created PDBs.
While performing this integration we have used Linux path in the SQL commands, change the path according to the appropriate operating system.
For the purpose of this guide, we are using the PDB "utimacopdb".
-
Edit the tnsnames.ora file to add a new service for the PDB. By default, the
tnsnames.orafile is in the$ORACLE_HOME/network/admindirectory or in the location set by theTNS_ADMINenvironment variable. Ensure that you have properly set theTNS_ADMINenvironment variable to point to the correcttnsnames.orafile.
|
›_ console |
|---|
|
-
Restart the Listener Service.
|
›_ console |
|---|
|
-
Log in to the database instance as a user who has been granted the SYSDBA administrative privilege.
|
›_ sqlplus console |
|---|
|
-
Set the
WALLET_ROOTparameter.
|
›_ sqlplus console |
|---|
|
-
Shutdown and startup database.
|
›_ sqlplus console |
|---|
|
-
Set the
TDE_CONFIGURATIONparameter.
|
›_ sqlplus console |
|---|
|
-
Open the hardware keystore in the
CDB$ROOTcontainer.
|
›_ sqlplus console |
|---|
|
-
Set the master encryption key in the
CDB$ROOTcontainer onto HSM. Skip this step if the master encryption key is already generated onto HSM.
|
›_ sqlplus console |
|---|
|
-
Connect as sysdba.
|
›_ sqlplus console |
|---|
|
-
Open the pdb in read write mode.
|
›_ sqlplus console |
|---|
|
-
Set the container to the pdb.
|
›_ sqlplus console |
|---|
|
-
Grant the following privileges to the PDB Admin.
|
›_ sqlplus console |
|---|
|
-
Connect to the PDB using the PDB username.
|
›_ sqlplus console |
|---|
|
-
Run the
ADMINISTER KEY MANAGEMENTSQL statement to open PDB database.
|
›_ sqlplus console |
|---|
|
-
Create the PDB Master Key onto the HSM.
|
›_ sqlplus console |
|---|
|