Oracle 视图 DBA_WORKLOAD_CAPTURES 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_WORKLOAD_CAPTURES,是查看数据库凭据分析的诊断信息的工具。它提供了有关当前运行的Workload Capture的属性和结果的信息,例如捕获类型、时间戳、状态及捕获文件等。
使用方法:
1. 首先,需要使用数据库视图v$session_longops来显示正在运行的Workload Capture操作,它将存储当前运行捕获和捕获创建者的会话。
2. 其次,使用DBA_Workload_Captures视图查询当前运行的Workload Capture任务。
3. 最后,使用Net Manager或其他网络工具来查看Workload Capture的结果,或使用SQL*Plus来解析捕获中的SQL语句。
官方英文解释
DBA_WORKLOAD_CAPTURES
displays all the workload captures that have been performed in the current database.
It also lists captures on which DBMS_WORKLOAD_CAPTURE.GET_CAPTURE_INFO()
or DBMS_WORKLOAD_REPLAY.GET_REPLAY_INFO()
have been called. Each row contains information about one workload capture.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Internal key for the workload capture |
|
|
|
Name for the workload capture |
|
|
|
ID of the database in which the workload was captured |
|
|
|
Name of the database in which the workload was captured |
|
|
|
Version of the database in which the workload was captured |
|
|
Indicates whether the database in which the workload was captured is an Oracle RAC database ( |
|
|
|
|
Name of the directory object for workload capture |
|
|
|
Current status of the workload capture:
|
|
|
|
Datetime when the capture began |
|
|
Datetime when the capture completed or failed; NULL if the capture is still in progress |
|
|
|
Duration of the workload capture (in seconds) |
|
|
|
|
Start SCN value for this capture |
|
|
End SCN value for this capture; NULL if the capture is still in progress |
|
|
|
|
Mode in which to apply workload capture filters:
|
|
|
Number of filters that were used for this capture |
|
|
|
Total size of workload capture |
|
|
|
Total amount of database time (in microseconds) that has been recorded in this workload capture |
|
|
|
Total amount of database time (in microseconds) across the entire database during the workload capture, including the part of the workload that was not captured. |
|
|
|
Total number of user calls that have been recorded in this workload capture |
|
|
|
Total number of user calls across the entire database during the workload capture, including the part of the workload that was not captured. |
|
|
|
Total number of user calls that will not be replayed in a subsequent replay of this workload capture |
|
|
|
Total size of workload capture for SQL executed from PL/SQL |
|
|
|
Total number of PL/SQL calls recorded in the workload capture |
|
|
|
Total number of calls recorded in the workload capture for SQL executed from PL/SQL |
|
|
|
Total amount of database time (in microseconds) from PL/SQL calls that have been recorded in the workload capture |
|
|
|
Total number of transactions that have been recorded in this workload capture |
|
|
|
Total number of transactions across the entire database during the workload capture, including the part of the workload that was not captured. |
|
|
|
Total number of session connects that have been recorded in this workload capture |
|
|
|
Total number of session connects across the entire database during the workload capture, including the part of the workload that was not captured |
|
|
|
Total number of errors that have been recorded in this workload capture |
|
|
|
Database ID of the AWR snapshots that correspond to this workload capture. For captures that were performed in the current database, this value is equal to the current database’s DBID. For captures that were performed in other databases, this value will either be NULL or will be populated by |
|
|
|
Begin snapshot ID of the AWR snapshots that correspond to this workload capture |
|
|
|
End snapshot ID of the AWR snapshots that correspond to this workload capture |
|
|
|
Indicates whether the AWR snapshots that correspond to this workload capture have been exported using |
|
|
|
Error code for this workload capture |
|
|
|
Error message for this workload capture |
|
|
|
|
Full directory path for the workload capture directory object |
|
|
|
Indicates whether the workload capture directory is shared by all the instances of the recording database (applicable only for Oracle RAC databases) |
|
|
Database version in which this capture was preprocessed using |
|
|
|
User name of the SQL tuning set owner |
|
|
|
Name of the SQL tuning set for this workload capture |
|
|
|
Capture options for PL/SQL calls. Possible values:
|
|
|
|
Indicates the encryption standard used for the given capture:
|
|
|
|
Data used internally for creating an encrypted capture |
|
|
|
Database workload capture and replay patch name This column is populated only for backports to Oracle Database 12c Release 1 (12.1) and earlier releases. |
|
|
|
Describes where the captured workload is stored |
See Also:
-
Oracle Database PL/SQL
Packages and Types Reference for more information about theDBMS_WORKLOAD_CAPTURE
package -
Oracle Database PL/SQL
Packages and Types Reference for more information about theDBMS_WORKLOAD_REPLAY
package