在19C中将NON-CDB迁移到PDB中:
1、将源库以read only方式启动
2、在源库中执行:exec dbms_pdb.describe('/tmp/cdbtopdb.xml');
3、在目标库中执行:create pluggable database cdbtopdb using '/tmp/cdbtopdb.xml' create_dest_file='/u01/oracle/product/cdbtopdb/';
4、在目标库中执行:
alter session set container=cdbtopdb; --此时,目标PDB是MOUNT,不要打开
@/ORACLE_HOME/rdbms/admin/noncdb_to_pdb.sql
5、alter pluggable database cdbtopdb open;
2万+

被折叠的 条评论
为什么被折叠?



