oracle tuning 分为3个阶段
1. application 调优阶段, 包括设计的调优, SQL语句调优, 管理权限等内容, (这部分是我的重点) (调优人员 application designer and application developer)
2. instance 调优阶段, 这部分主要是DBA来进行调优 (调优人员 dba)
3. I/O, cpu 等等 操作系统和硬件的调优, 这部分主要是DBA和SYSTEM administrator 一起来调优. (调优人员 system administrator and dba)
调优的方法
1. check alert log and trace files for errors.
2. Check the parameter file for any diagnostic or inappropriate parameter setting.
3. Check memory, I/O, and CPU usage. Identify processes with resource usage anomalies.
4. Identify and tune SQL statements that are heavy consumers of CPU or I/O.
一般情况下的调优生产库步骤
1. Locate the bottleneck by using tools. such as STATSPACK, UTLBSTAT and TULESTAT or Oracle Enterprise Manager.
2. Determine the reason for the bottleneck.
3. Resolve the cause. 比如修改 SGA 参数等
4. Check that the bottleneck has been rosolved.