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.
Has anybody tried holding a file with an output format of SQLORA? The documentation states, "Creates an Oracle table, if you have the Oracle Data Adapter and permission to create tables."
For example, I would like to output the CAR file as an oracle table and make it available on the Oracle database.
How do you define which database, username, p/w and schema to use?
Thanks, Dan
Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10 QA: WebFOCUS 7.6.10, Data Migrator 7.6.10 Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8 Windows 2K3, Tomcat 5.5.17, IIS 6 Usage: HTML, PDF, Excel, Self-serve, BID and MRE
Posts: 197 | Location: Roseville, CA | Registered: January 24, 2005
SQL SET CONNECTION_ATTRIBUTES CBMLOL/BMLIBI,BMLIBI -RUN
In the SET CONNECTION_ATTRIBUTES command, one of the values is the User ID, one is the password. If the SET CONNECTION_ATTRIBUTES command is set in edasprof.prf, then I don't think you need it in the fex.
The UserID you're logging-in to the server with requires create table access for the hold file creation to work.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
-*XYZ is an input-file of any format TABLE FILE XYZ PRINT * BY KEYXYZ ON TABLE HOLD AS 'ORAIN' END -RUN -*ORAXYZ is an existing Oracle table with existing AFD and MFD MODIFY FILE ORAXYZ FIXFORM FROM ORAIN MATCH KEYXYZ ON MATCH UPDATE FIELD1 FIELD2 etc. ON NOMATCH INCLUDE LOG DUPL MSG OFF DATA ON ORAIN END -RUN
If all you are doing is inserting rows, after the MODIFY FILE statement, insert:
SQL SET LOADONLY
This will dramatically improve the performace of the load as MODIFY will not do an initial read to see if the row exists. I remove the ON MATCH UPDATE and after the ON NOMATCH INCLUDE insert a ON MATCH/NOMATCH GOTO TOP.
The other option is to use a mixture of Dialogue Manager and SQL. This is also a lot faster than MODIFY if you have a lot of rows to update or want to update rows based on partial keys and other conditions. For example:
-UPDLOOP
-READ HOLD1 NOCLOSE &CASE.8. &RENEWDT.8.
-IF &IORETURN NE 0 THEN GOTO UPDEND;
-*
SET SQLENGINE=SQLORA
SQL SET SERVER &&KIDS_SERVER
SQL UPDATE TCASE
SET RENEWAL_DT = TO_DATE('&RENEWDT.EVAL','YYYYMMDD'),
INTFC_TYP_CDE = 15671
WHERE CAS_ID = &CASE;
SQL COMMIT ;
END
-*
SET SQLENGINE=SQLORA
SQL SET SERVER &&KIDS_SERVER
SQL UPDATE TCL_ADPSUBSIDY
SET RENEWAL_DT = TO_DATE('&RENEWDT.EVAL','YYYYMMDD'),
INTFC_TYP_CDE = 15671
WHERE (CAS_ID = &CASE)
AND (STRT_DT <= TO_DATE('&RENEWDT.EVAL','YYYYMMDD'))
AND (END_DT >= TO_DATE('&RENEWDT.EVAL','YYYYMMDD'))
AND (SUBSDY_DETL_TYP_CD IN (2193,2195,7238))
AND (APRV_DT IS NOT NULL);
SQL COMMIT ;
END
-RUN
-GOTO UPDLOOP
-*
-UPDEND
-CLOSE HOLD1
In the first update, the key is CAS_ID.
In the second, the key is CAS_ID, CL_ID and SEQ_NO. Here I needed to update renewal date for all rows for a given CAS_ID where the other conditions were met.
Just some other options.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006
How do I select which schema to use? We have a database with multiple schema. However, when you define a adapter, you only get to use 1 (depending on the usr/pwd). Currently, we ready have an adapter existing for that database for a particular schema.
Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10 QA: WebFOCUS 7.6.10, Data Migrator 7.6.10 Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8 Windows 2K3, Tomcat 5.5.17, IIS 6 Usage: HTML, PDF, Excel, Self-serve, BID and MRE
Posts: 197 | Location: Roseville, CA | Registered: January 24, 2005
I had the same problem to solve and found the following trick: per adapter you may define several connections but only one per TNS name (we are working with security on on the WebFOCUS server and explicit security for the Orcale adapter). Now the trick works as follows: per schema I defined a TNS name for the Oracle client used by WebFOCUS in file tnsnames.ora (for simplicity I used the schema names) and afterwards I created the respective connections per schema/TNS name for the adapter. In the fex I select simply the the oracle schema to use by selecting the respective connection: