To start a CDB instance, the current user must be a common user whose current container is the root.##启动CDB,需要使用root用户When you open a CDB, its PDBs are mounted. Use the ALTER PLUGGABLE DATABASE statement to modify the open mode of one or more PDBs.##打开一个CDB,PDB确实mount,需要使用alter pluggable database 修改open模式
<roidb01:cdb1:/home/oracle> $sqlplus/as sysdbasql*plus:release 12.1.0.2.0 Production on Mon Mar 5 20:13:46 2018Cop Yright (c) 1982, Oracle. All rights reserved. Connected to an idle instance. Sql> Startuporacle instance started. Total System Global area 1174405120 bytesfixed size 2923680 bytesvariable size 436208480 byte Sdatabase buffers 721420288 Bytesredo buffers 13852672 bytesdatabase mounted. Database opened. Sql> show Con_namecon_name------------------------------cdb$rootsql> show PDBs con_id con_name OPEN MODE RESTRICTED------------------------------------------------------------2 pdb$seed READ only no. 3 PDB11 mountedsql> alter pluggable database all open; Pluggable database altered. Sql> show PDBs; con_id con_name OPEN MODE RESTRICTED------------------------------------------------------------2 Pdb$seed Read only No 3 PDB11 read WRITE NO # # The default is read-write sql>
12CR1 Learning starting up a CDB instance