Oracle 视图 DBA_PDBS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_PDBS 是表示当前实例中的所有可用的 Pluggable Databases (PDBs)的一个视图。它的的内容包括PDB的GUID, 名称,容器数据库,状态,是否可用等。
使用DBA_PDBS视图,可以查询存在与数据库实例中的PBD的基本信息, 如PDB的GUID,名称,容器数据库,是否可用等。
使用方法:
1. 查询特定容器中的PDB:
SELECT * FROM DBA_PDBS WHERE CON_ID=&CON_ID
2. 查询所有可用PDB:
SELECT * FROM DBA_PDBS WHERE OPEN_MODE=’READ WRITE’
官方英文解释
DBA_PDBS
describes PDBs belonging to a given CDB.
When queried from a CDB root, this view describes all PDBs that belong to the CDB. When queried from an application root, it describes all PDBs that belong to the application container. When queried from a regular PDB or from an application PDB, it describes the regular PDB or the application PDB.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Container ID of the PDB |
|
|
|
Name of the PDB |
|
|
|
PDB identifier calculated when the PDB is created and stored in all file headers associated with the PDB |
|
|
|
Unique identifier associated with the container |
|
|
Globally unique immutable ID assigned to the PDB at creation time |
|
|
|
State of the PDB. Possible values:
|
|
|
|
Creation SCN |
|
|
|
The version number of the PDB |
|
|
|
Shows the current logging mode for the PDB. Possible values:
|
|
|
|
Specifies whether force logging is turned on for the PDB. Possible values:
|
|
|
|
Specifies whether force nologging is turned on for the PDB. Possible values:
|
|
|
|
Indicates whether the PDB is an application root. |
|
|
|
Indicates whether a PDB is an application PDB |
|
|
|
Indicates whether a PDB is an application seed (an application seed is also an application PDB) |
|
|
|
If this PDB is an application PDB, the container ID of an application root to which this application PDB belongs. If this PDB is an application root clone, the container ID of an application root to which this application root clone belongs. Otherwise, NULL. |
|
|
|
Indicates whether this PDB is a proxy PDB |
|
|
|
|
The ID of the container that
|
|
|
The upgrade priority of the PDB. |
|
|
|
Indicates whether this PDB is an application root clone ( |
|
|
|
The foreign CDB’s DBID |
|
|
|
SCN at which the PDB was unplugged |
|
|
|
The foreign PDB ID |
|
|
|
|
PDB creation timestamp |
|
|
PDB refresh mode. Possible values:
|
|
|
|
PDB refresh interval. This is applicable only when |
|
|
|
For internal use only |
|
|
|
System change number (SCN) of the last refresh operation |
|
|
|
Pluggable database tenant key |
|
|
|
Pluggable database snapshot mode |
|
|
|
Pluggable database snapshot interval, in minutes |
|
|
|
Credential object name associated with the PDB |
|
|
|
Time of the last refresh operation |
|
|
|
Cloud identifier for the PDB |
|
|
|
Name of the source PDB |
|
|
|
Name of the source database link |
Footnote 1 This column is available starting with Oracle Database 21c.