Oracle 视图 DBA_HIST_SQLTEXT 官方解释,作用,如何使用详细说明
本站中文解释
Oracle数据库中的DBA_HIST_SQLTEXT视图可以用来存储历史SQL语句。它包含有关已执行SQL语句的所有信息,比如SQL_TEXT, SQL_ID等等。可以使用DBA_HIST_SQLTEXT视图来查询已执行的SQL语句,查看SQL语句的详细执行计划,以及查看关于SQL语句的执行时间等信息。此外,还可以使用此视图来查找慢SQL,分析SQL语句执行时间长的原因,或查询某个时间段内系统中最活跃的SQL语句。
官方英文解释
DBA_HIST_SQLTEXT
displays the text of SQL statements belonging to shared SQL cursors captured in the Workload Repository.
This view captures information from V$SQL
and is used with the DBA_HIST_SQLSTAT
view.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
| Database ID |
|
|
| SQL identifier of the parent cursor in the library cache |
|
| Full text for the SQL statement exposed as a CLOB column | |
|
| Oracle command type definition | |
|
| The database ID of the PDB for the sampled session | |
|
| The ID of the container that
|
See Also:
“V$SQL”
“DBA_HIST_SQLSTAT”
编辑:广州鸿名健康科技有限公司
标签:语句,视图,还可以,执行时间,信息