Oracle 数据库性能优化与运维最佳实践
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. | Confidential – Oracle Internal
优化
• 优化方法论
• SQL优化
• 实例优化
运维
• 定制运维工具
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |
Confidential – Oracle Internal
优化方法论
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. | Confidential – Oracle Internal
系统运行缓慢可能的原因
• 数据库
• 应用
• 主机配置
• 网络环境
• 存储配置与状态
• 部署方式
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. | Confidential – Oracle Internal
谁进行优化
• 数据库
• 应用
• 主机配置
• 数据库管理员
• 应用架构师/开发人员
• 系统管理员
• 网络环境
• 存储配置与状态
• 部署方式
• 网络管理员
• 存储管理员
• 系统架构师
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |
Confidential – Oracle Internal
进行优化的范围
• 性能优化范围:
– 应用程序:
• SQL 语句性能
• 更改管理
– 实例优化:
DBA
• 内存
• 数据库结构
• 实例配置
– 其他系统交互:
• 存储I/O
• 网络
DBA与应用相关人员共享
DBA与其他管理员共享
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. | Confidential – Oracle Internal
有效的优化目标
• 具备下列特征:
– 具体化
– 可量化
– 可实现
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |
Confidential – Oracle Internal
优化的指导思想
– 自上而下优化以下内容:
• 在优化应用程序代码之前先优化设计
• 在优化实例之前先优化代码
– 对可以带来最大潜在好处的方面进行优化,
并确定:
• 最长的等待
• 最慢的SQL
– 达到目标时停止优化。
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. | Confidential – Oracle Internal