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

本站中文解释

Oracle视图:V$TYPE_SIZE

用途:V$TYPE_SIZE是在Oracle中用来查询指定的数据类型最大和最小可能值大小的视图。

使用方法:可以使用select语句查询V$TYPE_SIZE视图来获取指定数据类型的最大和最小可能值。查询语句需要指定想要查询的数据类型,并且还可以限定查询结果的格式,以免输出的结果太多而不便于查看。

例如:

SELECT TYPE_NAME, BYTES, MIN_VALUE, MAX_VALUE
FROM V$TYPE_SIZE
WHERE TYPE_NAME=’NUMBER’;

上面这条查询语句可以找出NUMBER类型的最大和最小可能值大小,查询结果如下:

TYPE_NAME BYTES MIN_VALUE MAX_VALUE
NUMBER 22 -999_999_999_999_999_999_999 999_999_999_999_999_999_999

官方英文解释

V$TYPE_SIZE displays the sizes of various database components for use in estimating data block capacity.

Column Datatype Description

COMPONENT

VARCHAR2(8)

Component name, such as segment or buffer header

TYPE

VARCHAR2(8)

Component type

DESCRIPTION

VARCHAR2(32)

Description of the component

TYPE_SIZE

NUMBER

Size of the component

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$TYPE_SIZE 官方解释,作用,如何使用详细说明