For 12.1.0.2, How to Create a Container Database (CDB) With Selected Options
For 12.2.0.1, we don’t need create scripts from DBCA first, then manually modify scripts, and run the scripts sequentially to create a CDB/PDB database with required options in both CDB and PDB.
In 12.2.0.1, CDB and PDB can have different options installed. here are the steps to do so :
1)Launch DBCA -> Create a Database -> Advanced Configuration -> Custom Database -> ……->……-> Database Options:
we can select all components for CDB$ROOT, and subset of options for PDB according to your licence bought from Oracle.
Please note below three components have been disabled as per Oracle Doc ID 948061.1.
Oracle Advanced Analytics |
Oracle OLAP |
Oracle Real Application Testing |
2) Continue the rest steps, and create the database.
3) Check the options installed in both CDB and CDB.
a) in CDB$ROOT:
SQL> show con_name CON_NAME ------------------------------ CDB$ROOT SQL> select COMP_NAME,STATUS from dba_registry order by 1; COMP_NAME STATUS -------------------------------------------- ----------------- JServer JAVA Virtual Machine VALID Oracle Application Express VALID Oracle Database Catalog Views VALID Oracle Database Java Packages VALID Oracle Database Packages and Types VALID Oracle Database Vault VALID Oracle Label Security VALID Oracle Multimedia VALID Oracle Real Application Clusters VALID Oracle Text VALID Oracle Workspace Manager VALID Oracle XDK VALID Oracle XML Database VALID Spatial VALID 14 rows selected.
b) In PDB:
SQL> show con_name CON_NAME --------------- RACTESTPDB SQL> select COMP_NAME,STATUS from dba_registry; COMP_NAME STATUS ----------------------------------- ---------- Oracle Database Catalog Views VALID Oracle Database Packages and Types VALID JServer JAVA Virtual Machine VALID Oracle XDK VALID Oracle Database Java Packages VALID Oracle Real Application Clusters VALID Oracle XML Database VALID Oracle Workspace Manager VALID Oracle Text VALID Oracle Multimedia VALID 10 rows selected.