Skip to main content

Posts

Showing posts related to Multitenant

How to Configure a Refreshable Clone PDB

Introduction A Refreshable Clone PDB is a special type of Pluggable Database introduced in Oracle Database 12.2 that allows you to periodically synchronize a cloned PDB with its source by applying redo data. In this article, we will configure the Refreshable Clone PDB. Refresh Mode Automatic Refresh Mode: the clone is automatically synchronized with its source PDB at fixed, predefined time intervals. The refresh occurs based on the interval specified in the REFRESH MODE EVERY n MINUTES clause during creation or modification of the clone. Manual Refresh Mode: synchronization with the source PDB occurs only when explicitly initiated by the DBA. The clone is created using the REFRESH MODE MANUAL clause and refreshed on demand using the ALTER PLUGGABLE DATABASE pdb_name REFRESH command. Note: the refreshable clone PDB must be closed (mount state) during the refresh process. It cannot be open, not even in read-only mode. This applies regardless of refresh mode. Prerequisi...

How to Create, Rename, and Drop a PDB in Oracle 19c

Introduction This article covers manually creating a Pluggable Database (PDB) in several different ways using SQL, plus renaming and dropping a PDB once it exists. Prerequisites An RMAN backup, so you have a rollback path if anything in this article needs to be undone. Free disk space, which depends on the size of the PDB you're creating or cloning. What This Guide Covers Jump to any section directly: Creating a clone PDB from an existing PDB Creating a blank PDB Creating a clone PDB from an existing PDB in a different container database Renaming a PDB Dropping a PDB Clone the Existing PDB Cloning creates a full, independent copy of an existing PDB, datafiles included. Here we clone a new PDB named TESTPDB from the existing ORCLPDB . The precheck below captures size, object validity, and row counts so you have a baseline to confirm the clone matches its source afterward. Take precheck: SQL> show pdbs CON_ID CON_NAME OPEN MODE...

How to Restore a Single PDB from RMAN Backup

Introduction In this article, we will restore a single PDB from an RMAN backup. This is useful when the source database has multiple PDBs, but you only need to restore one specific PDB onto the target machine, without pulling across the others. Prerequisites A valid RMAN full backup. Environment used here Source Database Hostname orcl.oraeasy.com Database Name ORCL PDB Name ORCLPDB Database Version 19c (19.27) Target Database Hostname uat.oraeasy.com Database Version 19c (19.27) On the source, we have two PDBs, ORCLPDB and TESTPDB . We will restore only ORCLPDB on the target machine. Now let's proceed to restore the single PDB via RMAN, step by step. Step 1: Run a Precheck So Data Can Be Verified Post-Restoration Before backing anything up, capture a snapshot of the current state of ORCLPDB : da...
↑