[Oracle]PDB Clone 方法

Source:

SQL> alter pluggable databse pdb1 open;

Target:

SQL> alter session set container=cdb$root;
SQL> create database link dbk connect to system identified by oracle using 'REMOTE';
SQL> alter session set global_names=false;
SQL> CREATE PLUGGABLE DATABASE tempPDB FROM PDB1@dbk;

SQL> alter pluggable database tempPDB open;
SQL> alter pluggable database tempPDB close immediate;
SQL> alter pluggable database tempPDB open read only;
SQL> alter pluggable database tempPDB save state;

SQL> shu immediate
SQL> startup

posted @ 2017-09-28 16:41  健哥的数据花园  阅读(594)  评论(0编辑  收藏  举报