We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 4
#11 [te 2 A ELS | SOL AC ei Le « Acs by Google
Multitenant : Clone a Remote PDB or Non-CDB in Oracle Database 12c wiry iis 96?
(12.1.0.2)
‘Theres sn update ofthis atl for Oracle Database T2e Release 2 (122) hee,
Inthe inialrelese of Orsele Database 12¢ Release 1 (1210.1) remote cloning of PBs ws listed 36a feature, but
ids work The 12.02 pateh has fed that, but ako acd the ability to create a POB as a clone of emote non-CDB
ce ommeo
emote clone
“This provies an alternative tothe intial migration path fom non-CD8 to PDB descrived here
+ Preeavisites
“+ Cloning a Remote pos
+ Cloning-a Remote Non-cO8
Rebsted stiles
Multzenant:AlLAiles
‘Mulitenant; YouTube Playlist
‘Muttenant: Create and Configure 2 Phuggable Database (PDA in Oracle Database 2c Release 1 (121)
‘Mulienant: Migtate a Non-ContainerDataase (CDR) ta 2 Pluggabl Database (PDA in Oracle Database 12 Release 1 (123)
‘Mulitenant; Metadata Only PDR Clones in Oracle Datahase I2c Release (12.102)
MubitenantPD8 Subset Cloning ia Oracle Database 12c Release 112.102)
Prerequisites
‘The prerequisites fr ning remote POB or non-CDS ae ery sia wl deal wth them together
In this context, the word “loca refers to the destination or taget CD tha wll Muse the cloned PDB. The word "emote" refers tothe PDB or non-CDB thats
the source of the lone,
1+ The userin the local database mast have the CREATE PLUGGABLEoATABAE piilege in the root container.
1 The ramote database (PDB or non-CDB) must be open in read-only node
1 The local database must havea database lin othe remote database. If the remote database ss PDB, the database ink can pont tothe remote COB using a
‘common use, o the PDB using lecsl or common use.
+The userin the remote database that the database in connects to must have the CREATE PLUSABLE SATABASE prlge
1+ The local and remote databases must have the same endiannes, option installed ane characte et.
«+ tf the remote database uses Transparent Data Encryption {TD} the local CDB must be conigued appropriately before a
with s new PDB tat wil only open in resected med,
+The default tablespaces foreach common usr inthe mote PDB “must! ens in loca CDB ths isnot teu, cea the mising tablespace inthe root cntsinet
‘ofthe local POB, you dont do this your new POB wil only be able to open estrited made Bug 19174942)
‘+ when cloning fom a non-CD8, oth the the local an remote dolasses must using version 12.102 er hignee
smpting the clone If not you willbe let
Inthe examples below have thre databases running on the same wits machin, but they could be running on saparate physical or wits servers
‘+ ebt: The local database that wll eventually house the cones
4 db12e: The remote nan-Cb8,
1 edb The emote CDB, used for cloning remote POR (od).
e's possible to intate and complete a clone without putting the source database nto read-only mods, but this sometimes resus in an ORA-00600. Since its
net documented you should not de thin a real sytem.
Cloning a Remote PDBConnect to the remote COB and prepare the remote PDB for cloning
selpus / 0s syste
Create a usr in the remote database forse withthe database Ink In this case, we ill use a cal use inthe remote POS
(Open the remate PDB in exc-only mods.
[ALTER PLUGGOLE OATABASEpabs CLOSES
ALTER PLUGGADLE DATABASE abs GPUN READ ONLY:
remote database for use nthe sins cause ofthe databace nk
Swen tothe local server and creat a "nsnames ora" ent pointing
OCscuetien =
(ones ast =
[UDORES ~ (PROTOCOL TEP) (HOST ~ 017-125 localdemain)(P0RT~ 15219)
>
(ower pata =
(SERVIC HE =
>
>
Connect to the local databae tints the done
Create a database nk the lcs database, painting tothe remote datas
COWIECT TO renote_clone_user IDENTIFIED BY renote_clone_user USING *odbS*;
DESC user_tablesBcLone_Ank
Create anew 208 in the local database by ning the remete POB In this case we are using Oracle Managed files (OME), so we dont need to bother with
FTUE_wwe_caweRr parameter fr file name conversions
CREATE PLUGGABLE DATABASE pebSnce FON pdb Scone Ink:
seus
\We can see the new PDB hasbeen crests, butt iin the MOUNTED stat,
SELECT name, opens FADH vSgcDs ERE rane = “TORSKEN”s
seus
‘Tha POS fe opened in recsnte made to complete the processALTER PLUGEARLE OATABASE pare OPEN;
SELECT name, open_vde F#DH vSgeDs MIRE rane = “FORSKEN";
seus
‘A wth any PDR clone, check common users andthe temporary tablespace i configured as expected.
Cloning a Remote Non-CDB
Connect tothe remote database to prepare for doning
spe (a5 syedoa
reste a user inthe remote database for use withthe databate Ink.
‘open the remote database in re-only mode
pointing to the remote database for vs inthe usin clause ofthe database fn
Swit othe laa server an crest a "nenames ore
oescurtien =
(ness ast =
[USORESS = (PROTOCOL = TEP) (HOST = 017-125 loaldemasn) (PORT = 15209)
>
(owe pata =
Connect to the local database tints the done
‘Create a database nk in the local database, panting tothe remote database
CREATE DATABASE LEM clone_1ine
DESC user_tablesBcLone_iok
Create anew 08 inthe local database by cloning the remote non-CDB. In thi case we ae using Oracle Managed Files (OMF) so we don't need to bather with
F1Ur_wve_canenr parameter fr file name conversions. Since there n0 PDR to name, we use ‘NONSCDBY a the PDB name,
CREATE PLUGGABLE TANASE do:2epdb FAD NOUSCDBcTera_DLk:
sau
\We can se the new PDB hasbeen created, butt iin the MOUNTED stat,1 open_sote FROM pete MHERE ane = 0812008";
sau
Since this POB was created 362 clone of non-CD8, before it canbe opened we need to run the “SORACLE.HOME/sdbms/admnvnoncdsto_pdbsatserpt to clean it
ALTER sesstoy ser cowraznsabiaepdh;
SouNcLE HOME /ade/orcdh to 98. sa
he PDB can now be opened in tead-urite made
SELECT name, opennde FAOH vigobs MERE rane = “08120908;
seus
‘A wth any PDR clone, check common users andthe temporary tablespace i configured as expected.
For mote information se:
‘+ Mutitanant A ils
‘+ Cloning a emote PDR or Non-CDR
‘Mulitenant; YouTube Plast
‘Mutttenant: Creat and Configure a Phiggable Database (PDB in Oracle Database 12s Release 1(121)
‘Mulitenant: Migtate a Non-ContainerDataase (CDA) toa Pliggable Database (PDA in Oracle Database 1c Release 1 (129)
‘Mulitenant; Metadata Only PDR Clones in Oracle Database I2c Release 1(12.1021|
‘Mulienant; PDR Subset Cloning jn Oracle Database 12c Release (12.02),
Hope this helps. Regard Tm.
ack tothe Too,
Crested 201-0728 Updated 2019-07-51
Contact us
nnmeo
Home | stices| Scns | log | Certification | Videos | Mis | Aout
About Tim Hal
‘Copyright & Disclaimer