oracle查詢,查看sql_一鍵查看Oracle數據庫當前SQL_WORKAREA_ACTIVE的相關操作

 2023-10-20 阅读 25 评论 0

摘要:概述今天主要介紹Oracle一個數據字典:V$SQL_WORKAREA_ACTIVE,下面一起來看看吧~V$SQL_WORKAREA_ACTIVEoracle查詢、V$SQL_WORKAREA_ACTIVE contains an instantaneous view of the work areas currently allocated by the system. You can join this view again

概述

今天主要介紹Oracle一個數據字典:V$SQL_WORKAREA_ACTIVE,下面一起來看看吧~


V$SQL_WORKAREA_ACTIVE

oracle查詢、V$SQL_WORKAREA_ACTIVE contains an instantaneous view of the work areas currently allocated by the system. You can join this view against V$SQL_WORKAREA on WORKAREA_ADDRESS to access the definition of that work area. If a work area spills to disk, then this view contains information for the temporary segment created on behalf of this work area.

V$SQL_WORKAREA_HISTOGRAM 視圖確是對真實發生的情況統計出來的數據,所以根據這個數據,可以對PGA做適當地調整。


V$SQL_WORKAREA_ACTIVE的結構

SQL> desc V$SQL_WORKAREA_ACTIVE
e32e9e459a2c92165349b1d4691949b2.png

sql查看數據庫中的表?列說明如下:

c00b88c7fbbe6758dce25a61559abc1c.png

通過這張視圖,可以看到當前SQL_WORKAREA_ACTIVE的相關操作如sort,hash join等及內存信息。


常用sql

SQL> SELECT to_number(decode(SID, 65535, NULL, SID)) sid, operation_type OPERATION, trunc(EXPECTED_SIZE / 1024) ESIZE, trunc(ACTUAL_MEM_USED / 1024) MEM, trunc(MAX_MEM_USED / 1024) "MAX MEM

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/3/152109.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息