Oracle:SQL优化的四种基本方案

源自《Troubleshooting Oracle Performance》

1. 调整访问结构,比如加索引,调整聚簇

2. 修改SQL语句

3. SQL Hint

4. 在session级别或SQL语句级别调整运行时参数,比如把all_rows临时变成first_rows  — 注意:如果使用了连接池,则不要使用这个技术。因为它会导致一个物理连接可能被频繁修改参数,而修改参数的开销并不小。

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.