I'm new to pluggable databases and am puzzled by the dictionary views DBA_PDBS
and V$PDBS
. What's the differnence? The documentation is not helpful, either:
V$PDBS
displays information about PDBs associated with the current instance. 1
SELECT * FROM v$pdbs;
CON_ID NAME OPEN_MODE ...
2 PDB$SEED READ ONLY
3 XEPDB1 READ WRITE
DBA_PDBS
describes PDBs belonging to a given CDB. 2
SELECT * FROM dba_pdbs;
PDB_ID PDB_NAME STATUS ...
2 PDB_SEED NORMAL
3 XEPDB1 NORMAL
Internally, V$PDBS
seems to be based on SYS.X$CON
, while DBA_PDBS
is based on SYS.CONTAINERS$
.