Oracle 12C-Use local PDB to clone new PDB

Source: Internet
Author: User

1. The PDB to be used for cloning as read-only status: Startup Open Read Only

Select  from V$pdbs;    con_id NAME                           open_mode--------------------------------------------------         2  pdb$seed                       READ          only 3 PDB1                           Mounted         4  P4                             mountedsqlset container=pdb1; SQL> ALTER DATABASE open Read only;

2. Login CDB

Sql> Connect/ asSysdbasql> Create pluggable Database pdb2 fromPDB1 file_name_convert= ('PDB1','PDB2'); SQL> Alter SESSIONSetContainer=pdb2; SQL>Startupsql>SelectCon_id,name,open_mode fromV$pdbs; con_id NAME Open_mode---------- ------------------------------ ----------2pdb$seed READ only3PDB1 READ only4P4 Mounted5PDB2 READ Writesql>

3. Open the original PDB

set container=pdb1; SQL> shutdownsql> Startup

Oracle 12C-Use local PDB to clone new PDB

Related Article

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.