Académique Documents
Professionnel Documents
Culture Documents
AlertMultitenantCustomers:Theobjectscreatedbythepostinstallstepsof12.1.0.2Generic
DataPumpPatchesArenotSharedAcrossAllPDBS(DocID2175021.1)
InthisDocument
Description
Occurrence
Symptoms
Workaround
Patches
History
References
APPLIESTO:
OracleDatabaseEnterpriseEditionVersion12.1.0.2to12.1.0.2[Release12.1]
Informationinthisdocumentappliestoanyplatform.
DESCRIPTION
ThisalertisforBug23321125"DPLOADDOESN'TCREATETHESHAREDOBJECTSACROSSALLPDBS"whichcancause
dictionarycorruptioninthecontainerdatabasewhenapplyingGenericDataPumppatches.
OCCURRENCE
Thisissuehaspotentialtoaffectall12.1.0.2Multitenantenvironments.
ItwasdiscoveredwhenrunningthepostinstallstepofGenericDataPumpPatch22763372.
SYMPTOMS
Whendploadscriptisinternallylaunchedbydatapatchanditcreatesanewdatadictionaryobject,thisnewobjectisnot
markedasmetadatalinkedinacontainerdatabase.
Thenewdatadictionaryobjectsarecreatedonlyintherootcontainer(CDB$ROOT)andarenotmarkedasmetadatalinked.
ADDLinvokedbydatapatch(throughdpload)tocreateadatadictionaryobjectfailstocreatethesharedobjectsacrossall
PDBs.
Inacontainerwith3pluggabledatabases(includingPDBseed):
SQL>showpdbs
CON_IDCON_NAMEOPENMODERESTRICTED
2PDB$SEEDREADONLYNO
3PDB1READWRITENO
4PDB_TESTREADWRITENO
weshouldseethefollowingoutputfromcdb_objectsforanynewcreateddatadictionaryobject:.
selectcon_id,status,object_id,object_type,owner||'.'||object_name"OWNER.OBJECT"
fromcdb_objectswhereobject_namelike'%<NEW_OBJECT_NAME>%'orderby4,1
CON_IDSTATUSOBJECT_IDOBJECT_TYPEOWNER.OBJECT
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrlstate=eyq8qkr24_4 1/3
5/9/2017 DocumentDisplay
1VALID96022TYPE<NEW_OBJECT_NAME>
2VALID<object_id>TYPE<NEW_OBJECT_NAME>
3VALID<object_id>TYPE<NEW_OBJECT_NAME>
4VALID<object_id>TYPE<NEW_OBJECT_NAME>
Note:ReplaceNEW_OBJECT_NAMEwiththedatadictionaryobjectwhichiscreatedbythegenericDPpatch.Forexample,
withPatch22763372inplace,weshouldhaveKU$_RLS_POLICY_LIST_TcreatedacrossallPDBs.
butbecauseofBug23321125,theobjectiscreatedonlyinthecontainerdatabase(CDB$ROOT):
CON_IDSTATUSOBJECT_IDOBJECT_TYPEOWNER.OBJECT
1VALID96022TYPESYS.KU$_RLS_POLICY_LIST_T
andthesharedobjectsacrossallpluggabledatabasesaremissing.
Becauseofthisproblem,theDataPumpUtility(expdp/impdp)isnotusableonthepluggabledatabaseswhereaGenericDP
Patchisapplied.
WORKAROUND
ThereisnoworkaroundavailableotherthanreloadtheDataPumpUtilitybyrunningthedploadscriptversionsuppliedbyPatch
23321125.
TocorrecttheMultitenantenvironmentsalreadypatchedwithGenericDataPumpPatcheswhichmightintroducethisdata
dictionaryinconsistency,applyGenericPatch23321125andinstalltheSQLportionofthepatchbyrunningthefollowing
command:
$datapatch
Note:ForaRACenvironment,performthesestepsononlyonenode.
PATCHES
ThefixforBug22763372willbeincludedin12.2.
Inany12.1.0.2MultitenantenvironmentwherethereareplanstoinstallaGenericDataPumpPatch,applyfirstGenericPatch
23321125andinstalltheSQLportionofthepatchbyrunningthefollowingcommand:
$datapatchverbose
ForwhateverPBDalreadyaffectedbythisproblem,tofixtheissue,execute:
CDB
sqlplus/assysdba
@$ORACLE_HOME/rdbms/admin/utlrp.sql
PDB's
cd$ORACLE_HOME/rdbms/admin
$ORACLE_HOME/perl/bin/perlcatcon.pln1ec<PDB_NAME>butlrpd'''.'''utlrp.sql
$ORACLE_HOME/perl/bin/perlcatcon.pln1ec<PDB_NAME>bdploadd'''.'''dpload.sql
connect/assysdba
altersessionsetcontainer=<PDB_NAME>
TobesurethatweareinthePDB,execute:
showcon_name
executesys.dbms_metadata_util.load_stylesheets
HISTORY
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrlstate=eyq8qkr24_4 2/3
5/9/2017 DocumentDisplay
23AUG2016Documentcreated.
REFERENCES
BUG:23321125DPLOADDOESN'TCREATETHESHAREDOBJECTSACROSSALLPDBS
BUG:22763372DATAPUMPRETURNSORA1427WHENEXPORTINGXS_SECURITY_CLASS
Didn'tfindwhatyouarelookingfor?
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrlstate=eyq8qkr24_4 3/3