Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Oracle Hint

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Oracle Hint
 Login/Join
 
Guru
posted
Is there a way to use a "database hint" in WebFOCUS, without having to use SQL pass through? I want to pass an Oracle Hint to force Oracle to use a specific Index.

This message has been edited. Last edited by: Kerry,


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Expert
posted Hide Post
I don't believe there is, but you can always ask techsupport.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
Ultimately I had to get this done quickly so I re-wrote the procedure as SQL Pass-Through to take advantage of the SQL Hint aka;
 SELECT /*+ index(T1 F42119_10) */ FIELD,LIST FROM TABLENAME WHERE FILTERS 


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Expert
posted Hide Post
Although it will not happen quickly, I would suggest putting in a New Feature Request for setting hints.

There may already be one, but the more that request it, the better change there is to get it created.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
quote:
I would suggest putting in a New Feature Request for setting hints.There may already be one, but the more that request it, the better change there is to get it created.

Many thanks to those WF Professionals who put in the NFR.

Kudos to IB for the implementation.

Stuck my nose in the latest Adapter Administration manual and was happy to see support for placing Oracle Hints within the TABLE command:
SQL SQLORA SET HINT /* +hint_text */ 

Works like a charm.

Great way to end the year. :-)




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
Virtuoso
posted Hide Post
If you need query hints in Oracle, you may be trying to solve the wrong problem.

If you're using the rule-based optimizer, that's your real problem. There are very few benefits to this (officially obsolete) approach.

If you're using the cost-based optimizer and you're running into performance problems, that probably means that your table statistics are not up-to-date and you need to tune the database for that.

The problem with query hints is that with a growing table and changing contents, an optimization that was good initially can become a performance problem over time. You're hard-coding (parts of) the query plan, preventing the cost-based optimizer from making smarter choices based on the data in the tables.

There are probably some corner-cases where the database is making the wrong plan choice regardless, no matter how you tune it. That's when you have no choice other than to add some query hints, but that should be rare in this day and age.

Admittedly, the cost-based optimizer is a fairly fresh feature in Oracle, but 11g does have it.

See: http://www.erpgreat.com/oracle...-based-optimizer.htm


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Master
posted Hide Post
Thanks for the knowledge share, Wep.

Yep, we didn't consider adding an Oracle hint lightly.

Checking with internal and external Oracle experts, and with testing, we felt we had a situation were it was needed. (Anyone...feel free to PM for details, as otherwise, I think they'd be off topic.)

Thanks again, Wep.
 
Posts: 822 | Registered: April 23, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Oracle Hint

Copyright © 1996-2020 Information Builders