0% found this document useful (0 votes)
197 views9 pages

Switching Over A Refreshable Clone PDB

This document discusses switching over to a refreshable clone pluggable database (PDB). It describes how to: 1. Create a database link between the source PDB and refreshable clone PDB. 2. Alter the source PDB to switch roles with the clone PDB using the refresh_mode from clause and specifying the database link. 3. This reverses the source and clone PDB roles, with the clone PDB becoming the new primary and the source PDB becoming refreshable. The process provides a level of data protection, but personal opinion is it should not be used solely for protection.

Uploaded by

Logis M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
197 views9 pages

Switching Over A Refreshable Clone PDB

This document discusses switching over to a refreshable clone pluggable database (PDB). It describes how to: 1. Create a database link between the source PDB and refreshable clone PDB. 2. Alter the source PDB to switch roles with the clone PDB using the refresh_mode from clause and specifying the database link. 3. This reverses the source and clone PDB roles, with the clone PDB becoming the new primary and the source PDB becoming refreshable. The process provides a level of data protection, but personal opinion is it should not be used solely for protection.

Uploaded by

Logis M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Switching Over a

Refreshable Clone PDB

By Ahmed Baraka
Objectives

By the end of this lecture, you should be able to perform the


following:
• Switchover to a Refreshable Clone PDB

Oracle Multitenant Architecture Administration – a course by Ahmed Baraka


Creating a Refreshable PDB

DB link
Database Database
Files Files

CREATE PLUGGABLE DATABASE ..


FROM pdb1@dblink
REFRESH MODE [MANUAL | EVERY]
PDB1 PDB1_R

CDB1 CDB2

Oracle Multitenant Architecture Administration – a course by Ahmed Baraka


Reading from the Refreshable PDB

DB link
Database Database
Files Files Reports

Open the target PDB in


Read Only mode
PDB1 PDB1_R
Read Only

CDB1 CDB2

Oracle Multitenant Architecture Administration – a course by Ahmed Baraka


Switching over to a Refreshable Clone PDB

DB link
Database Database
Files Files

PDB1 PDB1_R
Read Only R/W

ALTER PLUGGABLE DATABASE


CDB1 refresh_mode FROM CDB2
clonepdb@dblink SWITCHOVER;

Oracle Multitenant Architecture Administration – a course by Ahmed Baraka


About Switching over to a Refreshable
Clone PDB
• The process of reversing the roles between a source PDB
and its associated refreshable clone PDB
• Could be considered as a level of data protection
– Personal opinion: do not use it for protection
• When tried on a 19.8:
ORA-17628: Oracle error 65016 returned by remote Oracle server
ORA-65016: FILE_NAME_CONVERT must be specified

Oracle Multitenant Architecture Administration – a course by Ahmed Baraka


Switching over to a Refreshable Clone PDB

1. From the source PDB system, create a database link to


the CDB that hosts the refreshable PDB :
CREATE DATABASE LINK CDB2_LINK CONNECT TO c##ruser IDENTIFIED
BY *** USING 'CDB2';

Note: If the source PDB and clone PDB are in separate CDBs,
then the user specified in the database link must have the
same name and password in the source PDB and clone PDB

Oracle Multitenant Architecture Administration – a course by Ahmed Baraka


Switching over to a Refreshable Clone PDB

2. From the source PDB system, issue the command:


ALTER PLUGGABLE DATABASE <pdb name> <refresh_mode>
FROM refresh_pdb@dblink SWITCHOVER;

Oracle Multitenant Architecture Administration – a course by Ahmed Baraka


Summary

By the end of this lecture, you should have learnt how to:
• Switchover to a Refreshable Clone PDB

Oracle Multitenant Architecture Administration – a course by Ahmed Baraka

You might also like