HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oracle Optimizer mode
Operating System - HP-UX
1826073
Members
3645
Online
109690
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 09:36 PM
09-07-2005 09:36 PM
As I may know, after analyzing tables;indexes and setting optimizer mode is CHOOSE,Oracle chooses best optimal path to execute a sql-query.
Is it necessary to tune manually sql-query if oracle itself tune internally choosing cost based optimization.
Waiting for reply
Regards,
Mehul
Is it necessary to tune manually sql-query if oracle itself tune internally choosing cost based optimization.
Waiting for reply
Regards,
Mehul
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 09:54 PM
09-07-2005 09:54 PM
Solution
Mehul,
The cost based optimization is as goodas it good be but knows nothing about your application(s), therefore sometimes you may have "strange" behaviour and you may have to tune the SQL itself (hints) to use a different approach.
Also, statsistics should be analysed regularly and again the caluclated path may differ at some stage due to the changes in statistics (either calculated or estimated).
see attachment
Regards
Jean-Luc
The cost based optimization is as goodas it good be but knows nothing about your application(s), therefore sometimes you may have "strange" behaviour and you may have to tune the SQL itself (hints) to use a different approach.
Also, statsistics should be analysed regularly and again the caluclated path may differ at some stage due to the changes in statistics (either calculated or estimated).
see attachment
Regards
Jean-Luc
fiat lux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 11:48 PM
09-07-2005 11:48 PM
Re: Oracle Optimizer mode
With all stats in place, and the cost base optimizer (CBO) active through the mode=choose setting Oracle tends to 'get it right', but it may still be necessary to hand tune query, for example to put in an index hint. The more recent the Oracle version, the more right it is likely to get.
What version are you using?
IMHO the working assumption should be that the CBO is getting it right and only investigate if and when there is a sign of excessive cost. Some indication in statspack, or some response time requirement in the application not being met.
Trust but verify!
fwiw,
Hein.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP