Oracle 视图 V$DATABASE_INCARNATION 官方解释,作用,如何使用详细说明

本站中文解释

Oracle视图V$DATABASE_INCARNATION是用于显示数据库当前存在的实例(incarnation)信息的V$表视图。它包括当前存在的所有数据库版本、各个数据库版本下所拥有的实例,以及实例的状态。

要使用这个视图,首先需要登录数据库,然后可以通过在SQL*Plus中键入如下SQL语句来查询:

SELECT * FROM v$database_incarnation;

这句话将显示数据库当前拥有的所有incarnation信息。

官方英文解释

V$DATABASE_INCARNATION displays information about all database incarnations.

Oracle creates a new incarnation whenever a database is opened with the RESETLOGS option. Records about the current and immediately previous incarnation are also contained in the V$DATABASE view.

Column Datatype Description

INCARNATION#

NUMBER

Record ID for the branch record in the control file

RESETLOGS_CHANGE#

NUMBER

Resetlogs system change number (SCN) for the incarnation of the current row

RESETLOGS_TIME

DATE

Resetlogs timestamp for the incarnation of the current row

PRIOR_RESETLOGS_CHANGE#

NUMBER

Resetlogs SCN for the previous incarnation

PRIOR_RESETLOGS_TIME

DATE

Resetlogs timestamp for the previous incarnation

STATUS

VARCHAR2(7)

Incarnation status:

  • ORPHAN – Orphan incarnation

  • CURRENT – Current incarnation of the database

  • PARENT – Parent of the current incarnation

RESETLOGS_ID

NUMBER

Branch ID for the incarnation of the current row (used by user-managed recovery/RMAN restore to get unique names for archived logs across incarnations)

PRIOR_INCARNATION#

NUMBER

Parent incarnation record ID if nonzero

FLASHBACK_DATABASE_ALLOWED

VARCHAR2(26)

Indicate whether or not Flashback Database can be performed into SCNs or timestamps in the incarnation. A value of YES means that you can flashback to some point in that incarnation. A value of NO indicates that you cannot flashback into the incarnation.

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data

See Also:

“V$DATABASE”


数据运维技术 » Oracle 视图 V$DATABASE_INCARNATION 官方解释,作用,如何使用详细说明