4、活动复制
duplicate pluggable database PDB1 to orclcdb from active database;
duplicate pluggable database PDB2 to orclcdb from active database;
duplicate pluggable database PDB3 to orclcdb from active database;
duplicate pluggable database PDB4 to orclcdb from active database;
5、检查pdb能否正常关闭与启动
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDB1 READ WRITE YES
SQL> alter session set container=PDB1;
Session altered.
SQL>alter pluggable database PDB1 close;
SQL>alter pluggable database PDB1 open;
6、PDB保存打开状态,下次重启CDB,自动启动PDB
alter pluggable databse all save state;