Oracle 12c Migration Pluggable database to heterogeneous library

Source: Internet
Author: User

1. SOURCE Library:

Sql> Show PDBs


con_id con_name OPEN MODE RESTRICTED

---------- ------------------------------ ---------- ----------

2 pdb$seed READ only NO

3 PDB READ WRITE NO

4 TEST READ WRITE NO


2. Target Library:

Sql> Show PDBs


con_id con_name OPEN MODE RESTRICTED

---------- ------------------------------ ---------- ----------

2 pdb$seed READ only NO

3 PDB READ WRITE NO

Sql>


Migrate the test of the source library to the target library.


operation on the Source library:

sql> alter pluggable database test close immediate;


Pluggable database altered.


Sql> Show PDBs


con_id con_name OPEN MODE RESTRICTED

---------- ------------------------------ ---------- ----------

2 pdb$seed READ only NO

3 PDB READ WRITE NO

4 TEST mounted


sql> alter pluggable database test unplug into '/u01/test/test.xml ';


Pluggable database altered.



Target Library:

[Email protected] cdb]$ mkdir/u01/app/oracle/oradata/cdb/test

[Email protected] cdb]$ mkdir/u01/test


SOURCE Library:

[Email protected] ~]$ scp-r/u01/test/test.xml [email protected]:/u01/test/test.xml

[Email protected] ~]$ scp-r/u01/app/oracle/oradata/cdb/test/* [email protected]:/u01/app/oracle/oradata/cdb/test/


Target Library:


Sql> Create pluggable database test using '/u01/test/test.xml ' nocopy tempfile reuse;


Pluggable database created.


Sql> Show PDBs


con_id con_name OPEN MODE RESTRICTED

---------- ------------------------------ ---------- ----------

2 pdb$seed READ only NO

3 PDB READ WRITE NO

4 TEST mounted


Sql> exec dbms_pdb. Sync_pdb ();


PL/SQL procedure successfully completed.


This article is from the "unity of Knowledge" blog, please be sure to keep this source http://dovelauren.blog.51cto.com/9876026/1718235

Oracle 12c Migration Pluggable database to heterogeneous library

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.