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.
I am trying to read data from a focus table and store it in a temporary table in Oracle to speed up the subsequent oracle join operation.
If i have the following statements
ENGINE SQLORA SET DEFAULT_CONNECTION RGSProd TABLE FILE MYSTORS PRINT STOREID ON TABLE HOLD AS STORLST2 FORMAT SAME_DB PERSISTENCE GLOBAL_TEMPORARY END SQL SQLORA PREPARE SQLOUT FOR select Store_Number, StoreID, Addr1, City, State from STORLST2 inner join StoreMaster SM ON SM.Store_Number = STORLST2.StoreID where month_number = 10 AND year_number = 2008 order by STore_number ; END TABLE FILE SQLOUT PRINT .......
where MYSTORS is a FOCUS table
I am getting an error message when I try to join STORLST2 with the other Oracle table.
The error message is
(FOC1400) SQLCODE IS 942 (HEX: 000003AE) (FOC1409) SQL TABLE NOT FOUND. (FOR TABLE: CHECK SEGNAME AND TABLE) : ORA-00942: table or view does not exist : Erroneous token: STORLST2 L (FOC1405) SQL PREPARE ERROR.
Does the ON HOLD statement create an oracle temp table or a FOCUS table?This message has been edited. Last edited by: Kerry,
The SAME_DB syntax is for relational tables only and it know which one based on the engine specified in the master file description. If you want the table saved in Oracle, you will have to say something like ON TABLE HOLD AS STORELST2 FORMAT SQLORA. That will not make it a temporary table however.
The MYSTORS hold file was created after reading the stor list from a SQL Server database. Here is the code...
ENGINE SQLMSS SET DEFAULT_CONNECTION SalesAssist_Dev SQL SQLMSS PREPARE SQLOUT FOR select distinct convert(integer, store_id) as STOREID from [dbo].tblMerchStoreForMDN S_MDN where S_MDN.MDN = 27002 ; END TABLE FILE SQLOUT PRINT * ON TABLE HOLD AS MYSTORS END
Now since the SAME_DB command applies only to relational DBs would it not consider the RGSProd database (specified in the ENGINE SQLORA SET DEFAULT_CONNECTION RGSProd statement) as the one where the temporary table needs to be created?This message has been edited. Last edited by: Balram,
Have you read the doc on this feature? The way it goes is:
SQL SQLMSS
SELECT some_columns
FROM some_table
WHERE something_is_true;
TABLE
ON TABLE HOLD AS some_filename FORMAT SAME_DB PERSISTENCE GLOBAL_TEMPORARY
END