/*以管理员身份登录*/
sqlplus / as sysdba
/*查看CDB的状态*/
select status from v$instance;
/*开启startup,默认是open*/
startup;
/*查看CDB的状态*/
select status from v$instance;
/*查看当前所有PDB以及状态 */
select name,open_mode from v$pdbs;
/*找到要启动的PDB, 例子:dev_pdb*/
alter session set container =dev_pdb;
/* 启动pdb */
alter pluggable database open;
/*查看当前所有PDB以及状态 */
select name,open_mode from v$pdbs;