Clone a pluggable database for existing PDB, clone the PDB within the same CDB, Cloning Pluggable Databases - Oracle

Clone a pluggable database for existing PDB, clone the PDB within the same CDB, Cloning Pluggable Databases - Oracle 

A container database can contain multiple PDBs, so we can either create new PDB’s or clone existing PDBs. Here i am going to do pdb cloning within the cdb.

                      Connect and check the existing PDBs.


                      First start the PDB in read only, which need to be cloned.


                      Connect to the container and clone the pluggable:


                     Set the file dest location:

            ALTER SYSTEM SET DB_CREATE_FILE_DEST = '+DATA';

                     Execute the script to clone:

            create pluggable database RFINUAT from FINUAT3;

                     Now make the existing PDB ( FINUAT3) from read only to read write:

            SQL> alter session set CONTAINER=FINUAT3;

            SQL> shutdown immediate;

            Pluggable Database closed.

            SQL> startup

            Pluggable Database opened.

                      start the new cloned PDB( RFINUAT)

            SQL> alter session set container=RFINUAT;

            Session altered.

            SQL> startup

            Pluggable Database opened.

 Note: - The cloned Pluggable database is always in mounted stage

                      Check the container status:

 

                     Where can I find Alert log in pluggable Database

A Single copy of Alert log is generated which contains warnings and alert information for all PDBs.

XML version of alert can be found in "Diag Alert" and text formatted Alert log can be found in "Diag Trace" of the container database.

                      Where can I find trace files in pluggable Database

All traces generated from all PDBs are currently found in "Diag Trace" of the container database.

Note:-You can find both (alert and trace) details by selecting from v$diag_info;

 

Some more articles you might also be interested in :-

   Pluggable Database in Details

   Clone a Pluggable Database

   Drop a Pluggable Database

   


Comments

Popular posts from this blog

Remove ACL and privileges, Drop ACL in oracle

ORA-02050: transaction rolled back, some remote DBs may be in-doubt

Distributed transaction, Oracle Distributed Transactions, distributed transaction in oracle