WSR报告解读

WSR报告解读

report summary

average load, 平均负载 high

Database Load

temp allocates 临时表空间申请次数

Tpp 30 events by total wait time

TOP等待时间的事件,如果出现了direct path write temp(临时表空间写)说明使用到了临时表空间,一般是内存temp buff 不够引起的

Data Buffer & Temp Buffer

TempFree 为0,表示temp buff用尽了

SQL Statistics

SQL order by Elapsed Time

Long SQL ordered by Elapsed Time

Session Statistics

Session ordered by Long SQL

Event 指等待的事件

问题现象,

TEMP表空间不足

code=10002,dbErrCode=786,excueSql failed,could not find datafile to extend extent in tablespaces TEMP,

问题分析

为了提高查询效率,当查询需要对数据进行排序,分组,聚合等操作时,可能会产生大量的临时数据,这些数据就会存储在内存的temp buffer 空间中。当temp buffer不够时,就会就会将查询中产生的临时数据保存到临时表空间,临时表空间是直接操作磁盘,查询性能会大大下降。

Tpp 30 events by total wait time

Data Buffer & Temp Buffer

进一步查看什么查询导致temp buffer用尽了

Session ordered by Long SQL

相关推荐
ClouGence9 小时前
Oracle CDC 架构优化:从主库直连到 DataGuard 备库同步
数据库·后端·oracle
无响应de神11 小时前
三、用户与权限管理
数据库·mysql
麦聪聊数据1 天前
数据服务化时代:企业数据能力输出的核心路径
数据库
shushangyun_1 天前
2026年快消品B2B系统推荐:支持终端门店订货、促销政策自动化的工具?
java·运维·网络·数据库·人工智能·spring·自动化
DARLING Zero two♡1 天前
【MySQL数据库】数据类型与表约束
数据库·mysql
曹牧1 天前
Oracle EXPLAIN PLAN
数据库·oracle
BD_Marathon1 天前
SQL学习指南——视图
数据库·sql
活宝小娜1 天前
mysql详细安装教程
数据库·mysql·adb
贤时间1 天前
codex 助力oracle ebs 开发
数据库·oracle
秉承初心1 天前
PostgreSQL 数据性能瓶颈突破实战
数据库·postgresql·oracle