Cloning a PDB using an existing PDB

Source: Internet
Author: User

Use an existing PDB clone pdb$ sqlplus '/as sysdba ' sql*plus:release 12.1.0.1.0 Production on Tue June 13:46:53 2015Copyright (c) 1982, 2  013, Oracle. All rights reserved. Connected to:oracle Database 12c Enterprise Edition Release 12.1.0.1.0-64bit productionwith The partitioning, OLAP, Adva nced Analytics and Real application testing optionssql> show Con_name;    Con_name------------------------------cdb$rootsql> Select con_id,name,open_mode,restricted from V$pdbs order by 1; con_id NAME open_mode RES-----------------------------------------------------2 PDB                            $SEED READ only NO 3 YB mounted 4 YB1 Mountedsql> alter session set CONTAINER=YB; Session altered. #用来克隆的pdb必须是以read only mode to open sql> startup open Read only; Pluggable Database opened. Sql> alter session set Container=cdb$root; Session altered. Sql> Show Con_namecon_name------------------------------cdb$rootsQl> Create pluggable database clonedb from YB file_name_convert= ('/u12/app/oracle/oradata/ora12/yb/', '/u12/app/ oracle/oradata/ora12/clonedb/'); Pluggable database created.    Sql> Select con_id,name,open_mode,restricted from V$pdbs order by 1; con_id NAME open_mode RES-----------------------------------------------------2 PDB                            $SEED Read Only no. 3 YB READ only No 4 YB1  Mounted 5 Clonedb mountedsql>

Using an existing PDB to clone a PDB

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.