当前位置:网站首页>数据库性能分析与优化(爱测未来团队内训材料)
数据库性能分析与优化(爱测未来团队内训材料)
2022-07-28 16:29:00 【itest_2016】








内存管理方式:MSMM、ASMM(sga_target)、AMM(memory_target) 小内存有小内存的问题,大内存有大内存的麻烦!ORA-04031 Buffer cache 和 sharedpool size 的 begin/end值在 ASMM、AMM 和 11gR2MSMM 下可是会动

Parses 解析次数,包括软解析+硬解析,我们希望的是 解析一次 到处运行!HardParses 万恶之源.Cursorpin s on X, librarycache: mutex X , latch: row cache objects /sharedpool……………..。硬解析最好少于每秒 20 次


log file sync:一般此类等待时间是由于 LGWR 进程讲 redo log buffer 写入 redo log 中发生。
commit次数是否过多


有的组件对响应时间要求比较高,测试过程中我们应将慢查询阈值,设置尽量小。
有的SQL可能是做一些统计用的,没有实时性的要求,这时在测试时,慢查询阈值可以设置高一点。




Statspack-生成快照




建议:计算一下使用率:10% < 连接数使用率 < 85% .




10046 trace来跟踪Oracle













1、索引是用来提高查询SQL性能的,但有些情况下的查询是无法使用索引的,建了也没用
2、接下来我们看下我们常用的查询类型有哪些。
3、不同类型的查询,建立索引时我们需要注意些什么


1、不同的存储引擎支持的索引方法不同
2、这里以InnoDB引擎,支持的Btree索引为例说明


这里不我们不光查询条件firstname要加索引,排序的字段也需要加入索引

1、对查询结果使用group by进行分组时,需要加索引。
2、使用distinct进行唯一性查询时,firstname字段虽然不是作为查询条件,需要加入索引。


左连接:以左表为基准(左表取的是全部数据),到右表按条件匹配数据。搜索条件都在右表启作用,所以索引建立在右表。

(喜欢请转发,谢谢!)
加入爱测未来qq群,获取更专业的技术知识分享:
274166295 (爱测未来二群)
610934609 (爱测未来三群)
195730410 (爱测未来四群)
更多精彩文章:
——————————————————
爱测未来公众号
WX:itest_forever

测试之道 | 测试技术
长按识别二维码,关注爱测未来公众号,了解更多精彩内容
边栏推荐
- 面试官:算法刷题实录.pdf我居然答不上来
- Create a custom paging control
- Master the key points of JVM interview
- Firewalld防护墙
- Mysql database addition, deletion, modification and query (detailed explanation of basic operation commands)
- Selection of resistance in high speed circuit
- Use of influxdb2
- Verilog daily question (vl29 single port RAM)
- 【atlas】atlas 编译报错整理(全)
- [Presto] details of the new version upgrade of Presto
猜你喜欢

WPF command button transparent style

Verilog 每日一题(VL2 异步复位的串联T触发器--牛客网)

MySQL数据库增删改查(基础操作命令详解)

Awk of shell script

格雷码和二进制的转换及典型例题(4bits格雷码计数器)

Shell脚本之AWK

Redis源码剖析,狠狠地拿捏了,赶紧码住

Gray code and binary conversion and typical examples (4bits gray code counter)

Why do I choose to use go language?

Using SQL server agent job to restore the database regularly
随机推荐
Role of Fortress machine
Verilog daily question (vl26 simple stopwatch)
数据库优化——深入理解Mysql索引底层数据结构与算法
[Presto] common commands of Presto
[impala] [error reporting solution] impala cannot read or execute the parent directory of dfs.domain.socket.path
你能读懂这个故事吗?
[ansible] the ansible shell encountered the problem of $symbol in awk when executing remote commands
线性代数及矩阵论(七)
The practice of beego framework in goweb development: Section I Introduction to beego framework
Gray code and binary conversion and typical examples (4bits gray code counter)
Master the key points of JVM interview
Editor MAVON editor for offline use
线性代数及矩阵论(八)
Convert multidimensional object array to one-dimensional array
谈谈你知道的发布上线(二)
深度分享阿里(蚂蚁金服)技术面试流程,附前期准备,学习方向
漫谈测试平台—平台建设思路(上)
区分ES6的export与Nodejs的module.exports的区别
LNMP源码编译安装
Verilog 每日一题(VL8 使用generate…for语句简化代码)