# Securing Oracle 12c Multitenant Pluggable Databases

- URL: https://www.integrigy.com/security-resources/securing-oracle-12c-multitenant-pluggable-databases
- Published: 2017-01-23
- Type: Webinar
- Products: Oracle Database
- Focus areas: Security Strategy and Standards, Auditing
- Audience: DBA
- Applies to: DB 12c
- PDF: https://www.integrigy.com/sites/default/files/Integrigy%20Securing%20Oracle%2012c%20Multitenant%20Pluggable%20Databases.pdf
- Recording: https://www.youtube.com/watch?v=Lkg7Xqj-a4U

> Webinar on how Oracle 12c Multitenant changes database security: how pluggable databases can cause breaches, auditing, the Advanced Security Option, and recommended practices.

Oracle Multitenant was built to consolidate databases: a container database (CDB) hosts many pluggable databases (PDBs), which simplifies provisioning and management, and only the CDB is patched. However, accidental or intentional acts can create security breaches with pluggable databases. We review the features the multitenant option introduces and how it changes basic database security, from common users, roles and grants to startup parameters and file system access, then cover auditing and the Advanced Security Option (ASO) with pluggable databases.

We finish with our recommended practices, so DBAs and security teams can revise their database security policies and update their audit and monitoring scripts before moving databases into a CDB.

## Key Points

- Common users, roles and profiles exist in all current and future PDBs, need the `C##` prefix and do not move with a PDB plugged into another CDB, so create them sparingly and only for maintenance, and take care granting `CREATE SESSION` commonly, which opens every PDB, or `SET CONTAINER`, which lets users move among PDBs without authenticating.
- PDBs inherit startup parameters from the CDB and can override, in `PDB_SPFILE$`, only the 184 where `ISPDB_MODIFIABLE` is TRUE, not the 199 others such as auditing, FIPS-140 and `UTL_FILE_DIR`, so add parameter changes in both the CDB and each PDB to your monitoring and audit scripts.
- In 12.1 all PDBs share one Oracle Home owned by a single OS account, so `UTL_FILE`, directories, external tables, SQL*Loader and EXTPROC must be isolated by hand in each PDB, which 12.2 fixes with PDB lockdown profiles and the `PDB_OS_CREDENTIAL`, `PATH_PREFIX` and `CREATE_FILE_DEST` parameters; both releases are now desupported.
- The CDB and all PDBs share one alert log and either traditional auditing, which Oracle desupported in 23ai (now 26ai) in favor of Unified Auditing, or Unified Auditing, but each has its own audit trail in its own SYSAUX tablespace, `CDB_UNIFIED_AUDIT_TRAIL` holds all PDB activity, and common audit policies do not move with a PDB.
- TDE, an additional license option, works with Multitenant, keeping the keystore (wallet) in the operating system and a master encryption key for each PDB, each PDB needs its own wallet and SSL certificates, and Database Vault, pre-installed with 12c, need not be used in every PDB, but its `DV_OWNER` account must not be locked.
- Before using Multitenant, use separate CDBs for production and non-production, customize PDBs rather than the CDB and never `PDB$SEED`, keep the `C##` common user prefix, remove APEX from the CDB, and update all audit and monitoring scripts for the new `CDB_` views, the `ORACLE_MAINTAINED` and `COMMON` columns, and the `CDB_DBA` and `PDB_DBA` roles.
