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] Query across multiple Oracle Instances...

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Query across multiple Oracle Instances...
 Login/Join
 
Member
posted
We have a reporting instance of our production data that gets created every night. This means that our data is always a day behind, but for 99% of our reports that is fine. There are several reasons we do not hit the production system, but last week we received a request for real-time data in one of our reports.

I created a database link in oracle that hits the correct data and in my normal SQL tools, it works great. However, when I try to use the link in WebFOCUS in a SQL Report, it get the following error:

(FOC1400) SQLCODE IS 2019 (HEX: 000007E3)
: ORA-02019: connection description for remote database not found
L (FOC1405) SQL PREPARE ERROR.
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: SQLOUT
BYPASSING TO END OF COMMAND

My SQL statement is very basic, and works on the report table, but not with the link.
Here is the SQL that does NOT work:

ENGINE SQLORA SET DEFAULT_CONNECTION BANCLONE
SQL SQLORA PREPARE SQLOUT FOR
select *
from course_term_schedule@prod_db t
where t.term_code = '&TERM_CODE'
END

Here is the SQL that DOES work:

ENGINE SQLORA SET DEFAULT_CONNECTION BANCLONE
SQL SQLORA PREPARE SQLOUT FOR
select *
from course_term_schedule t
where t.term_code = '&TERM_CODE'
END

I guess the real question is how can I use a database link with a SQL report in WebFocus?

THanks

WA

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


WF 7.6.10
Dev Studio 7.6.10
Windows Server 2003
all output (Excel, HTML, PDF)
 
Posts: 3 | Registered: May 06, 2010Report This Post
Expert
posted Hide Post
Have you tried a Cross Server Query?

ENGINE SQLORA SET DEFAULT_CONNECTION BANCLONE
SQL SQLORA
select *
from OpenQuery("255.255.255.0"   <--- replace this with your server's IP address
             , 'select *
                  from course_term_schedule t
                 where t.term_code = '&TERM_CODE'
;
TABLE FILE SQLOUT
PRINT
END

I use this syntax in an Oracle table insert from an MS SQL Server. CHeck out OpenQuery via your favorite search engine.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
quote:
ORA-02019: connection description for remote database not found


I think the error is clear enough and I think this may be related to underlying privileges on the Oracle user id.

Have you checked that the Oracle user that makes the connection from WebFOCUS to your Oracle instance can "see" and "use" your PROD_DB database link in Oracle?

quote:
I created a database link in oracle that hits the correct data and in my normal SQL tools


Which Oracle user did you connect as when testing the DB links through the SQL tools? Make sure that user is the same one defined in your WebFOCUS connection.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Member
posted Hide Post
The Reporting user on Oracle did not have access to hit the production system, so I created a view on my reporting database that just pulled the data using the database link from the production database. Then created a synonym of the view and it is working.

Thank you to both of you for your response...


WF 7.6.10
Dev Studio 7.6.10
Windows Server 2003
all output (Excel, HTML, PDF)
 
Posts: 3 | Registered: May 06, 2010Report This Post
Virtuoso
posted Hide Post
You're welcome, TSU. I'm glad the suggestions worked.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report 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] Query across multiple Oracle Instances...

Copyright © 1996-2020 Information Builders