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     [CLOSED] Script error while using oracle hints in passthru

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Script error while using oracle hints in passthru
 Login/Join
 
Member
posted
I am trying to use oracle hint /*+ USE_HASH(Q1,SHRTCKN) ORDERED */ in a query using passthru. when I run the procedure, I keep getting a number of script errors and then the page shows only a reset button.

When I remove the hint, the sql passthru works fine.

Please advice.

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 3 | Registered: March 24, 2014Report This Post
Master
posted Hide Post
Did you try executing same SQL along with HINT in oracle client?

Are you able to execute without any issues there?

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Guru
posted Hide Post
Hi Ritu,

Welcome to the forum.

We're using Oracle hint in SQLPASSTHRU and works perfect.

ENGINE SQLORA SET DEFAULT_CONNECTION CONNECTION_NAME
SQL SQLORA PREPARE SQLOUT FOR
SELECT /*+ parallel(a,4) */ DISTINCT LTRIM(COLUMN_NAME) AS SAMPLE FROM TABLENAME
;
END
TABLE FILE SQLOUT 
PRINT *
END

Is that running fine in Oracle Client as Ram questioned?

Thanks,
Rifaz


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Member
posted Hide Post
The query runs fine in SQL Developer and Toad. Also when I remove the hint the query runs fine in pass thru.

Following is the query
SELECT SFRSTCR_PIDM,
SSBSECT_SUBJ_CODE,
SSBSECT_CRSE_NUMB,
SSBSECT_SEQ_NUMB,
SSBSECT_SUBJ_CODE || ' ' || SSBSECT_CRSE_NUMB || SSBSECT_SEQ_NUMB AS COURSE,
MIN(SFRSTCR_TERM_CODE),
SHRTCKG_GRDE_CODE_FINAL
FROM (SELECT /*+ USE_HASH(Q1,SHRTCKN) ORDERED */ DISTINCT SFRSTCR_PIDM,
SFRSTCR_TERM_CODE,
SSBSECT_SUBJ_CODE,
SSBSECT_CRSE_NUMB,
CASE WHEN SSBSECT_SEQ_NUMB LIKE '%CC' THEN ' CC'
WHEN SSBSECT_SEQ_NUMB LIKE '%E' THEN ' E'
WHEN SSBSECT_SEQ_NUMB LIKE '%I' THEN ' I'
WHEN SSBSECT_SEQ_NUMB LIKE '%S' THEN ' S'
ELSE '' END AS SSBSECT_SEQ_NUMB,
SHRTCKG_GRDE_CODE_FINAL
FROM SFRSTCR
JOIN SSBSECT
ON SFRSTCR_CRN = SSBSECT_CRN
AND SFRSTCR_TERM_CODE = SSBSECT_TERM_CODE
LEFT OUTER JOIN SHRTCKN
ON SSBSECT_CRN = SHRTCKN_CRN
AND SSBSECT_TERM_CODE = SHRTCKN_TERM_CODE
AND SSBSECT_SUBJ_CODE IN ('ENG', 'MAT', 'INT', 'CAR', 'REA')
AND SHRTCKN_PIDM = SFRSTCR_PIDM
LEFT OUTER JOIN (SELECT SHRTCKG_PIDM,
SHRTCKG_TCKN_SEQ_NO,
SHRTCKG_TERM_CODE,
SHRTCKG_GRDE_CODE_FINAL
FROM SHRTCKG M
WHERE SHRTCKG_SEQ_NO IN (SELECT MAX(SHRTCKG_SEQ_NO)
FROM SHRTCKG N
WHERE M.SHRTCKG_PIDM = N.SHRTCKG_PIDM
AND M.SHRTCKG_TCKN_SEQ_NO = N.SHRTCKG_TCKN_SEQ_NO
AND M.SHRTCKG_TERM_CODE = N.SHRTCKG_TERM_CODE
AND SHRTCKG_TERM_CODE >= 200909)) Q1
ON Q1.SHRTCKG_TCKN_SEQ_NO = SHRTCKN.SHRTCKN_SEQ_NO
AND Q1.SHRTCKG_PIDM = SHRTCKN.SHRTCKN_PIDM
AND Q1.SHRTCKG_TERM_CODE = SHRTCKN.SHRTCKN_TERM_CODE
AND NVL (SHRTCKN.SHRTCKN_REPEAT_COURSE_IND, '!') <> 'E'
WHERE SFRSTCR_RSTS_CODE IN (SELECT STVRSTS_CODE
FROM STVRSTS
WHERE STVRSTS_INCL_SECT_ENRL = 'Y')
AND SFRSTCR_TERM_CODE >= '200909')
WHERE SSBSECT_SUBJ_CODE || ' ' || SSBSECT_CRSE_NUMB || SSBSECT_SEQ_NUMB = '&S_COURSE'
GROUP BY SFRSTCR_PIDM, SSBSECT_SUBJ_CODE, SSBSECT_CRSE_NUMB, SSBSECT_SEQ_NUMB, SHRTCKG_GRDE_CODE_FINAL


8004, Windows 7 64 Bit
 
Posts: 3 | Registered: March 24, 2014Report This Post
Virtuoso
posted Hide Post
Ritu,

Put your hints on a separate line and prefix them with -*


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Master
posted Hide Post
I have used oracle hints. It works perfect in 8005. Can you share the error message that you get while using hints.

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Member
posted Hide Post
I still get the errors when I put -* before the hint an put in a different line as follows:
..
SHRTCKG_GRDE_CODE_FINAL
FROM (SELECT
-*/*+ USE_HASH(Q1,SHRTCKN) ORDERED */
DISTINCT SFRSTCR_PIDM,
..

-----------------------------
Following are the errors I get:

1.
Line: 118
Char 442
Errors: Syntax error
Code: 0
URL:https://dev-focus-02.dccc.edu/ibi_apps/WFServlet.ibfs

2.
Line: 10
Char 21
Errors: 'jsData' is undefined
Code: 0
URL:https://dev-focus-02.dccc.edu/ibi_apps/ibi_html/S59_13781483881F/javaassist/ibi/html/describe/APHTMLGen.js

3.
Line: 381
Char 18
Errors: 'jsData' is undefined
Code: 0
URL:https://dev-focus-02.dccc.edu/ibi_apps/ibi_html/S59_13781483881F/javaassist/ibi/html/describe/APAutoprompt.js

4.
Line: 1172
Char 13
Errors: 'jsData' is undefined
Code: 0
URL:https://dev-focus-02.dccc.edu/ibi_apps/WFServlet.ibfs

5.
Line: 1145
Char 30
Errors: THe calue of the property 'onLoadDescribeForm' is null or undefined, not a Function Object
Code: 0
URL:https://dev-focus-02.dccc.edu/ibi_apps/WFServlet.ibfs


Thanks,
Ritu


8004, Windows 7 64 Bit
 
Posts: 3 | Registered: March 24, 2014Report 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     [CLOSED] Script error while using oracle hints in passthru

Copyright © 1996-2020 Information Builders