The DBMS_PDB
package provides an interface to examine and manipulate data about pluggable databases.
See Also:
For information on related topics -Oracle Database Security Guide regarding how to create audit policies in a multitenant environment
Oracle Database Reference for descriptions of all the Pluggable Databases belonging to a given container, see the DBA_PDBS
view; for information about Pluggable Databases associated with the current instance, see the V$PDBS
view
Oracle Database Administrator's Guide for information about Pluggable Databases
Oracle XML DB Developer's Guide for information about configuring protocol ports and DNS mappings
Oracle Database SQL Language Reference for information about creating Pluggable Databases
This chapter contains the following topics:
Overview
Security Model
Table 110-1 DBMS_PDB Package Subprograms
Subprogram | Description |
---|---|
Uses an XML file describing a pluggable database (PDB) to determine whether it may be plugged into a given multitenant container database (CDB) |
|
Generates an XML file describing the specified pluggable database (PDB) |
|
Generates an XML file describing a pluggable database by using data files belonging to the pluggable database (PDB) |
This function uses an XML file describing a pluggable database (PDB) to determine whether it may be plugged into a given multitenant container database (CDB).
DBMS_PDB.CHECK_PLUG_COMPATIBILITY ( pdb_descr_file IN VARCHAR2, pdb_name IN VARCHAR2 DEFAULT NULL) RETURN BOOLEAN;
Table 110-2 CHECK_PLUG_COMPATIBILITY Procedure Parameters
Parameter | Description |
---|---|
|
Path of the XML file that will contain description of a PDB |
|
Name which will be given to the PDB represented by |
TRUE
if the PDB described by pdb_descr_file
is compatible with the given CDB, FALSE
otherwise. If this function returns FALSE
, then query the PDB_PLUG_IN_VIOLATIONS
data dictionary view to find information about the errors that are found.
This procedure generates an XML file describing the specified pluggable database (PDB). This file can then be passed to the CHECK_PLUG_COMPATIBILITY Function to determine if the PDB described by the XML file may be plugged into a given multitenant container database (CDB).
This procedure generates an XML file describing a pluggable database by using data files belonging to the pluggable database. This XML file can then be used to plug the pluggable database into a multitenant container database (CDB) using CREATE
PLUGGABLE
DATABASE
statement.This procedure is intended for cases when an XML file describing a pluggable database is corrupted or lost.
Table 110-4 RECOVER Procedure Parameters
Parameter | Description |
---|---|
|
Path of the XML file that contains description of a pluggable database |
|
Name of a pluggable database |
|
Comma-separated list of datafile paths and/or directories containing datafiles for the pluggable database |