
Copyright (c) 2020, Oracle. All rights reserved. Oracle Confidential.
Multitenant Unplug/Plug Best Practices (Doc ID 1935365.1)
In this Document
Goal
Solution
Preparation:
Scenarios:
Scenario 1 – No plug in violations
Scenario 2 – SQL patch present in target container but not in source container
Scenario 3 – SQL patch present in source container but not in target container
Scenario Summary and Actions
References
APPLIES TO:
Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.
GOAL
To provide the Multitenant Unplug/Plug Best Practices
SOLUTION
When plugging into a new container a PDB may have violations due to Database version (12.1.0.1 vs 12.1.0.2)
SQL patch mismatches
Database parameter mismatches such as character sets or block size
The dbms_pdb.describe and dbms_pdb.check_plug_compatibility APIs can be used to determine if a given PDB can be plugged in
successfully to a target container. Here are the steps to invoke dbms_pdb.describe and dbms_pdb.check_plug_compatibility to investigate
this further:
Preparation:
1) Create PDB description XML file for PDB(PDB1) in question:
exec dbms_pdb.describe (‘PDB1_Unplug.xml’, ‘PDB1’);
2) In the target container environment, check plug compatibility
begin
if dbms_pdb.check_plug_compatibility('PDB1_Unplug.xml', ‘PDB1') then
dbms_output.put_line(‘no violations found');
else
dbms_output.put_line(‘violations found');
end if;
end;
Plugin compatibility issues, if any, will be reported in
pdb_plug_in_violations view
Scenarios:
Scenario 1 – No plug in violations
SQL> BEGIN
2 IF dbms_pdb.check_plug_compatibility('/tmp/PDBORCL.xml') THEN
Document 1935365.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_ad...
第1页 共3页 2020/1/13 9:22
评论