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] Error with SQL CONNECT

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Error with SQL CONNECT
 Login/Join
 
Member
posted
Hello I need to do a select to the next bbdd:

Host: 10.94.137.155
Port: 1521
service name: ORABPM
user: xxxx
password: xxxx

With TOAD, the connection is direct.

I do this:

SET SQLEngine = SQLORA
SQL SERVER SET ORABPM
SET SQL CONNECTION_ATTRIBUTES 10.94.137.155:1521 / BPMTAOBI, BPMTAOBI

SQL SQLORA
SELECT * FROM BPMTAOBI.ACTIVIDAD_TRAMITADOR
END

return error

SET SQLEngine = SQLORA
SQL SERVER SET ORABPM
ORABPM@10.94.137.155 CONNECTION_ATTRIBUTES SQL SET: 1521/BPMTAOBI, BPMTAOBI
SQL SQLORA
SELECT * FROM BPMTAOBI.ACTIVIDAD_TRAMITADOR
END
(FOC1671) INSTRUCTION SET SERVER TO ORACLE ORABPM INTERFACE OUT OF SEQUENCE
(FOC1671) INSTRUCTION SET SERVER TO ORACLE ORABPM INTERFACE OUT OF SEQUENCE
(FOC1400) SQLCODE IS 942 (HEX: 000003AE)
(FOC1409) SQL TABLE NOT FOUND. TABLE FOR REVIEW AND TABLE segname
: ORA-00942: table or view does not exist
: Erroneous token: ACTIVIDAD_TRAMITADOR
L (FOC1405) SQL PREPARE ERROR.


I need help please

Thank you,
Javier

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


WF Prod: WebFOCUS & Dev.Studio 7.7.0.2
WF Test: WebFOCUS & Dev.Studio 7.7.0.3
BBDD: Oracle 9i,10g,11g SQL Server, DB2
ETL: OWB, Kettle
Other BI tools: Pentaho, MicroStrategy
 
Posts: 6 | Registered: September 02, 2011Report This Post
Master
posted Hide Post
try this,

ENGINE SQLORA SET CONNECTION_ATTRIBUTES ORABPM userid pwd
SQL SQLORA


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Virtuoso
posted Hide Post
Hola Javier, welcome to the forum Smiler.

Try this to see if it makes a difference:

ENGINE SQLORA SET CONNECTION_ATTRIBUTES ORABPM BPMTAOBI/BPMTAOBI@//10.94.137.155:1521/ORABPM
ENGINE SQLORA SET DEFAULT_CONNECTION ORABPM

SQL SQLORA
SELECT * FROM BPMTAOBI.ACTIVIDAD_TRAMITADOR;
TABLE FILE SQLOUT
PRINT *
END



I would advise though that you create an Oracle adapter connection in the Reporting Server's Web Console so it would be available at the server level and not buried in your code (which is also exposing your user credentials Eeker)

In addition, I've found it easier to use
"named" TNS connections intead of the EZCONNECT approach you are following. they both work but in terms of maintenance and debugging the former works best, in my opinion.

Hope this helps.



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
Virtuoso
posted Hide Post
quote:
ENGINE SQLORA SET CONNECTION_ATTRIBUTES ORABPM userid pwd


Kamesh, that is the way to go provided there is an "ORABPM" connection configured in the tnsnames.ora (Oracle client on the Reporting Server side) which apparently Javier doesn't have as he's attempting to connect by directly providing specific server/host/port info. Hopefully he'll find a way to create a TNS entry for that connection to simplify his configuration.



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
Hello! Thanks to all....

I have the oracle client, but not the tnsnames.ora

I think you can make a direct connection ....

Javier

This message has been edited. Last edited by: Javier Gómez,


WF Prod: WebFOCUS & Dev.Studio 7.7.0.2
WF Test: WebFOCUS & Dev.Studio 7.7.0.3
BBDD: Oracle 9i,10g,11g SQL Server, DB2
ETL: OWB, Kettle
Other BI tools: Pentaho, MicroStrategy
 
Posts: 6 | Registered: September 02, 2011Report This Post
Virtuoso
posted Hide Post
And you can! Did you try my sample code above? I tried that in my local environment and it 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
Member
posted Hide Post
Hello!
I think the connection must be created within the WebFocus connection manager.

Thanks to all
Javier


WF Prod: WebFOCUS & Dev.Studio 7.7.0.2
WF Test: WebFOCUS & Dev.Studio 7.7.0.3
BBDD: Oracle 9i,10g,11g SQL Server, DB2
ETL: OWB, Kettle
Other BI tools: Pentaho, MicroStrategy
 
Posts: 6 | Registered: September 02, 2011Report This Post
Member
posted Hide Post
I added the connection in the WebFocus connection manager, and I solved my problem.

But, I think, that you should be able to create a quick, temporary connection, without using the WebFOCUS connection manager; inside de focexec.

It would be a good improvement for future versions ... Wink


WF Prod: WebFOCUS & Dev.Studio 7.7.0.2
WF Test: WebFOCUS & Dev.Studio 7.7.0.3
BBDD: Oracle 9i,10g,11g SQL Server, DB2
ETL: OWB, Kettle
Other BI tools: Pentaho, MicroStrategy
 
Posts: 6 | Registered: September 02, 2011Report 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] Error with SQL CONNECT

Copyright © 1996-2020 Information Builders