ORACLE11G 性能调优学习

news/2024/10/18 5:40:00/
Oracle? Database 2 Day + Performance Tuning Guide
11g Release 2 (11.2)
E10822-04

================================================================================
重点需要掌握的工具
ADDM
ASH
ASSM


Part I
一:调优工具
1、Oracle Database 11g Enterprise Edition
2、Oracle Enterprise Manager
3、Oracle Diagnostics Pack
4、Oracle Diagnostics Pack
4.1、SQL Tuning Advisor
4.2、SQL Access Advisor
5、Oracle Real Application Testing
5.1、Database Replay
5.2、SQL Performance Analyzer

二:Oracle Database Performance Method

1、Gathering Database Statistics Using the Automatic Workload Repository


和AWR相关的两个初始化参数:
?STATISTICS_LEVEL
?CONTROL_MANAGEMENT_PACK_ACCESS


The database statistics collected and processed by AWR include:

?Time Model Statistics
优化目标:减少database time,提高应用程序的响应时间
?Wait Event Statistics
?Session and System Statistics
?Active Session History Statistics
?High-Load SQL Statistics


2、Using the Oracle Performance Method

Database tuning is performed in two phases: proactively and reactively.

Applying the Oracle performance method involves the following:
?Performing pre-tuning preparations, as described in "Preparing the Database for Tuning"
?Tuning the database proactively on a regular basis, as described in "Tuning the Database Proactively"
?Tuning the database reactively when performance problems are reported by the users, as described in "Tuning the Database Reactively"
?Identifying, tuning, and optimizing high-load SQL statements, as described in "Tuning SQL Statements"
To improve database performance, you must apply these principles iteratively.

常用的工具
ADDM
ASH


3、Common Performance Problems Found in Oracle Databases

常见问题:
?CPU bottlenecks
?Undersized memory structures
?I/O capacity issues
?Suboptimal use of Oracle Database by the application
?Concurrency issues
?Database configuration issues
?Short-lived performance problems
?Degradation of database performance over time
?Inefficient or high-load SQL statements
?Object contention
?Unexpected performance regression after tuning SQL statements



==============================================================================================

Part II
Proactive Database TuningPart II describes how to tune Oracle Database proactively on a regular basis and contains the following chapters:
?Chapter 3, "Automatic Database Performance Monitoring"
?Chapter 4, "Monitoring Real-Time Database Performance"
?Chapter 5, "Monitoring Performance Alerts"

三 Automatic Database Performance Monitoring

Automatic Database Diagnostic Monitor (ADDM)
查看ADDM报告应作为每天的日常工作

spfile参数:
CONTROL_MANAGEMENT_PACK_ACCESS建议设置为DIAGNOSTIC+TUNING (default) or DIAGNOSTIC;如设置为NONE则将关闭ADDM等特性;
STATISTICS_LEVEL设置为TYPICAL (default) or ALL;如设置为BASIC则将关闭ADDM等新特性;

DBIO_EXPECTED   随机读单独一个数据块的微妙时间
可通过自带语句评测出该时间;

AWR

=======================================================================================================
Part III
Reactive Database TuningPart III describes how to tune Oracle Database in response to a reported problem, such as when the user reports a performance problem with the database that must be tuned immediately.

This part contains the following chapters:

?Chapter 6, "Manual Database Performance Monitoring"

?Chapter 7, "Resolving Transient Performance Problems"

?Chapter 8, "Resolving Performance Degradation Over Time"

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29519108/viewspace-1579055/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29519108/viewspace-1579055/


http://www.ppmy.cn/news/157616.html

相关文章

linux安装11g rac

 1、检查系统所需的软件包 rpm -qa | grep -E "binutils|compat-libstdc|elfutils-libelf|gcc|glibc|libaio|libgcc|libstdc|make|sysstat|unixODBC|pdksh" [roottestdb01 /]# rpm -qa | grep -E "binutils|compat-libstdc|elfutil…

Jzoj4743 积木

由于n很小(<15)我们考虑状态压缩 显然可以用三进制&#xff08;雾&#xff09;但是太浪费了 我们令f[i][j][s]表示现在已用的积木状态为S&#xff0c;最上面那个积木是第i个&#xff0c;其中这个积木的第j(0<j<3)条边是竖着的&#xff08;不在上表面&#xff09; 转移…

宏碁笔记本安装黑苹果过程记录

之前用这台笔记本装过Ubuntu&#xff0c;装过Deepin&#xff0c;今天继续折腾装一个黑苹果。 首先先做一个启动盘。我用的工具是Rufus&#xff0c;一款特别小众的软件&#xff0c;不过还是挺好用的。 image.png 然后就是写入镜像 image.png 镜像写入好之后插上电脑开机&#xf…

宏碁4743G+固态硬盘(SSD)+机械硬盘(HHD)混合用

原材料&#xff1a;&#xff08;某东上买的&#xff0c;二手东有个好处就是可以退货&#xff0c;开始买的某顿&#xff0c;评价貌似不太好&#xff0c;直接退货&#xff09; 三星理论上&#xff0c;SATA3接口能达到500M/S&#xff0c;可惜本本太老&#xff0c;只支持SATA2的了&…

接口幂等方案

文章目录 概要方案乐观锁数据库唯一索引令牌tokentoken通过另一个接口从服务端获取客户端自身生成token 总结 概要 所谓接口幂等性&#xff0c;就是一次和多次请求某一个资源对于资源本身应该具有同样的影响。接口幂等的应用很广&#xff0c;小到防止表单重复提交&#xff0c;…

前端042_图表展现_自适应

自适应 当缩小窗口时,饼图和柱状图不会自动自适应,会被遮挡住。因为 ECharts 本身并不是自适应的,当你父级容器的宽度发生变化的时候需要手动调用它的 .resize() 方法。 其中 vue-element-admin项目中已经实现了自适应效果,只要将对应代码拷贝引用即可。将 vue-element-adm…

罗技鼠标键盘没法使用,可以尝试安装此驱动

罗技鼠标键盘如果安装了新驱动之后打不开&#xff0c;没法使用&#xff0c;可以尝试安装此驱动&#xff0c;亲试可用 链接&#xff1a;https://pan.baidu.com/s/11cVMH4IwR4h-Ca_QJLpp7g 提取码&#xff1a;mils 复制这段内容后打开百度网盘手机App&#xff0c;操作更方便哦

罗技鼠标驱动G HUB导致触摸板无法使用

因为需要调节鼠标的亮度所以下载了罗技的鼠标驱动&#xff0c;但是在使用过程中发现&#xff0c;触摸板无法使用。 处理步骤如下&#xff1a; 1.卸载罗技G HUB 驱动软件。 2.在设备管理器中&#xff0c;禁用触摸板设备。 3.重新启动即可。 无鼠标下快捷键&#xff1a; 1.SHift…