Oracle 视图 V$KEY_VECTOR 官方解释,作用,如何使用详细说明
本站中文解释
视图
V$KEY_VECTOR视图是DBMS_CRYPTO包中更改密码时使用的概念,它用于存储临时密码。当启用数据库加密文件功能以更改数据库的掩码时,需要建立一个变换向量矩阵,将变量映射到每台数据库服务器。存储过程和函数根据这个变量来确定当前的掩码值以及要使用的值。系统每次新访问时启用或更新掩码时会更新此变量。V$KEY_VECTOR视图当前变量的最新值。
V$KEY_VECTOR常用变量有两个:V$KEY_VECTOR.V1和V$KEY_VECTOR.V2,两个变量用于存储两个掩码值。V$KEY_VECTOR.V3用于存储视图状态,0表示未使用,1表示已使用。
使用V$KEY_VECTOR视图的步骤如下:
(1)更改V$KEY_VECTOR.V1和V$KEY_VECTOR.V2的值,将其更改为新输入的掩码值。
(2)更改V$KEY_VECTOR.V3的值,将其更改为1,以表示当前新设置掩码值已生效。
(3)执行DBMS_CRYPTO包中的函数,以更新掩码值。
官方英文解释
V$KEY_VECTOR
provides debugging information related to the data structures used by in-memory aggregation for current and recent queries using key vectors.
Column | Datatype | Description |
---|---|---|
|
|
Session ID |
|
|
The ID of the container to which the data pertains. Possible values include:
|
|
|
Translation vector ID |
|
|
SQL ID that uses the translation vector |
|
|
Time when the execution of the SQL started |
|
|
SQL execution identifier |
|
|
Operating system client process ID |
|
|
State of the in-memory aggregation operation:
One query will probably have multiple key vectors if it has gone through the vector transform. Also, if the query is operating in parallel, there may be multiple entries per PQ slave. The |
|
|
Type of translation vector created:
|
|
|
Width (number of bits) of DOUBLEIND, SIMPLE, INDIRECT, or OFFSETvector translation array:
|
|
|
The internal join column key data type of either DOUBLEIND, SIMPLE, INDIRECT, or OFFSET translation vectors:
Also, a value of |
|
|
Number of join columns. |
|
|
Number of join key values used to build translation vector |
|
|
Indicates the number of key values in the key vector that have more than one parent value |
|
|
Min join key value in translation vector |
|
|
Max join key value in translation vector |
|
|
Max dense grouping key value. This value is computed while the data that creates the translation vector is processed. |
|
|
Number of rows filtered by translation vector |
|
|
Number of rows that probed the translation vector in key vector use row source |
|
|
Number of active translation vectors used as filters across all slaves |
|
|
Number of translation vector filters across all slaves that were disabled |
|
|
Amount of memory allocated for the key vector |
|
|
Amount of memory used out of the allocated space |
|
|
The owner of the fact table. Null when the fact table is null. |
|
|
The table that contains measure data. May be null if more than one fact table is used in the query. |
|
|
When a single table is used to construct the key vector, the table owner will appear in this column. If multiple tables are joined to serve as the dimension (more of a snowflake than a star schema shape, for one example), then this column will be null. |
|
|
The table that contains attribute data and is joined to the fact table. May be null if two or more tables are used (for example, snowflake style dimension tables). |
|
|
Records the total time in seconds that it took to create the key vector |
|
|
The number of columns being carried from the dimension table to the fact table scan for processing without joinback |
|
|
Indicates whether and how the key vector has been sent to an Exadata cell. Possible values:
|
|
|
If the value of |
|
|
If the value of |
See Also:
Oracle Database SQL Tuning
Guide for more information about in-memory aggregation