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

本站中文解释

V$VERSION是一个V视图,它的功能是查看在当前系统中已安装的Oracle数据库的版本及其相关信息。通过查询该视图,您可以得到当前实例的数据库类型、发行版本、版本及相关的唯一标识等信息,以及Oracle服务端和客户端的版本号、组件等详细信息。

要使用V$VERSION视图,您需要创建允许SELECT操作的Oracle表,然后使用以下简单SQL命令来查询:

SELECT * from V$VERSION;

将会显示当前Oracle数据库系统上设置的数据库版本和组件信息。

官方英文解释

V$VERSION displays the version number of Oracle Database. The database components have the same version number as the database, so the version number is returned only once.

Column Datatype Description

BANNER

VARCHAR2(80)

Component name and version number

BANNER_FULL

VARCHAR2(160)

The new 2 line banner format introduced in Oracle Database 18c. The banner displays the database release and version number.

BANNER_LEGACY

VARCHAR2(80)

The legacy 1 line banner used before Oracle Database 18c. This column displays the same value as the BANNER column.

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


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