As multiple databases can be created under the same/different Oracle home(s) in Oracle 11g on a host, please advise me on creating multiple container databases to create multiple pluggable databases under them to overcome monolithicity of Oracle 12c.
How to create multiple container databases in 12c R1
oracleoracle-12c
Related Question
- Linux – How to create oracle user for more than one version
- Oracle – Can a Standby Database Be Pluggable or Vice Versa?
- Install Oracle 12c and NOT use pluggable databases
- Oracle SQLPlus – How to Connect to Oracle 12c from SQLPlus Without Password in Command Line
- Oracle 12c EM Express – Creating Tables
- Oracle 12c installation
- Can’t connect to Oracle 12c Release 1 in docker container from host
- Oracle 18c _oracle_script=true Impact Explained
Best Answer
you can create it manually or automatically through
dbca
How to start and stop pluggable databases in Oracle 12c
Because the instance architecture of pluggable databases is entirely different from a non-container database, one would imagine that managing their state of readiness is also different. Well, it’s true.
The first thing to remember is that because the CDB maintains the instance for which all PDBs share, that instance must be up and open for people to be able to connect to the PDBs. Starting and stopping the CDB is not different from non-CDBs. The next thing to remember is that when you start a CDB, all of its associated PDBs are left in MOUNT state, which means
that, by default, they are not opened with the CDB.
Unfortunately, 12cR1 doesn’t offer an option to change this behavior. However, 12c does provide a new type of trigger that will fire if it detects a CDB opening and will then open specified PDBs. See the Oracle documentation for further information on setting this up. After starting and opening a CDB, you can open any corresponding PDBs like so
To close PDBs, you can essentially do the opposite of the preceding commands:
To drop pluggable database
You can unplug a PDB from a CDB with this syntax:
reference0
reference1