Silahkan Melihat Tutorial di website kami dengan nyaman ENJOY YOUR LIFE ☕

Clone a Pluggable Database (PDB) Manually


[oracle@VTGDB.BLOGSPOT.COM ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Tue Feb 2 08:34:44 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options


SQL> show pdbs;

    CON_ID CON_NAME  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED  READ ONLY  NO
3 OLD_PDB  READ WRITE NO

SQL> ALTER PLUGGABLE DATABASE "OLD_PDB" CLOSE IMMEDIATE;
Pluggable database altered.

SQL> ALTER PLUGGABLE DATABASE "OLD_PDB" OPEN READ ONLY;
Pluggable database altered.

SQL> CREATE PLUGGABLE DATABASE "NEW_PDB" FROM "OLD_PDB"
      STORAGE UNLIMITED TEMPFILE REUSE
      FILE_NAME_CONVERT=NONE';
Pluggable database altered.

SQL> ALTER PLUGGABLE DATABASE "OLD_PDB" CLOSE IMMEDIATE;

SQL> ALTER PLUGGABLE DATABASE "OLD_PDB" OPEN READ WRITE;

SQL> ALTER PLUGGABLE DATABASE "NEW_PDB" OPEN READ WRITE;


SQL> show pdbs;

    CON_ID CON_NAME  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED  READ ONLY  NO
3 OLD_PDB  READ WRITE NO
4 NEW_PDB  READ WRITE NO





0 komentar:

Post a Comment

Clone a Pluggable Database (PDB) Manually