• Index
  •  » Talend Open Studio for Data Integration » Installation
  •  » Can't retrieve schema through JDBC

#1 2011-01-05 19:50:53

mhedrich
Member
Registered: 2010-11-04
Posts: 27

Can't retrieve schema through JDBC

Tags: [jdbc, schema]

We have set up a JDBC connection to a Progress/OpenEdge database, but when trying to retrieve schema objects nothing shows up. We can enter a value in the name filter, but when we hit Next no schemas appear in the 'list' of schemas (table structures)  to retrieve.  The tables can be queried through the SQL Builder window (Edit Queries) - we just can't retrieve their definitions. 

We think this is because the userName we connect with is not the owner of the tables, but has privileges on them.  Is there a way to connect as ‘userName’ and see the tables owned by ‘owner’?   What options do we have?


TOS 4.1.1

Any ideas?

Last edited by mhedrich (2011-01-05 20:44:56)

Offline

#2 2011-01-05 22:31:51

cantoine
Talend team
Registered: 2006-09-19
Posts: 719
Website

Re: Can't retrieve schema through JDBC

First of all, can you try to use the owner as a userName to retrieve the table definition and see if that works.
If that works, I advice to use this userName who is the owner for the step of Retrieve the table definition.
Then when the step of Retrieve schema is done, you can edit the connection and reuse again your favorite userName.


Second solution is to find in the JDBC documentation of Progress; what's the correct JDBC URL to connect and specify the Schema you want to use as the default schema. Adding this into the JDBC URL can help you to focus your retrieve action on the correct schema catalog.

Best regards.

Offline

#3 2011-01-06 21:55:46

mhedrich
Member
Registered: 2010-11-04
Posts: 27

Re: Can't retrieve schema through JDBC

Thanks for the quick response.

We tried adding schema to the URL, but that didn't help.
    jdbc:datadirect:openedge://<IP>:<PORT>;databaseName=SUBS;schema=PUB

When creating the database connection there is a warning message at the top of the window that says "Schema must be specified".  Can you tell me how to do that?  Which field should it be in?  What might the syntax be?

Thanks

Offline

#4 2011-04-09 12:06:07

rscott
New member
Registered: 2009-04-02
Posts: 2

Re: Can't retrieve schema through JDBC

Did you ever get this to work?

Offline

#5 2011-04-11 04:01:22

shong
Talend team
Registered: 2007-08-29
Posts: 10357
Website

Re: Can't retrieve schema through JDBC

Hi mhedrich

Have you tried cantoine's solution to retrieve schema use the owner as a userName to retrieve the table definition, you can't see the owner of table through Talend, you could find its information on database server.

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#6 2012-03-27 17:21:52

Roman_be
Guest

Re: Can't retrieve schema through JDBC

Did you get this to work? I have the same problem and would be happy about a solution.

Best regards

Roman

#7 2012-06-22 21:58:08

tale103108
Member
Registered: 2010-08-10
Posts: 47

Re: Can't retrieve schema through JDBC

General JDBC

JDBC URL -> jdbc:datadirect:openedge://100.10.10.10:20000;databaseName=DATABASE;schema=PUB
Driver jar -> C:\skyward\dlc\java\openedge.jar
Class name -> com.ddtek.jdbc.openedge.OpenEdgeDriver
User name -> user
Password -> password
Mapping file -> mysql_id

The above worked for me in retrieving the table schemas and building (and running) any SQL. 
However, when used within a job I get the following error:

Exception in thread "main" java.lang.Error: java.lang.NoClassDefFoundError: com/ddtek/jdbc/base/BaseDriver
    at jdbc_connectivity_test.jdbc_connect_to_db_0_1.JDBC_Connect_to_db.tJDBCInput_2Process(JDBC_Connect_to_db.java:701)
    at jdbc_connectivity_test.jdbc_connect_to_db_0_1.JDBC_Connect_to_db.runJobInTOS(JDBC_Connect_to_db.java:872)
    at jdbc_connectivity_test.jdbc_connect_to_db_0_1.JDBC_Connect_to_db.main(JDBC_Connect_to_db.java:746)
Caused by: java.lang.NoClassDefFoundError: com/ddtek/jdbc/base/BaseDriver

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Installation
  •  » Can't retrieve schema through JDBC

Board footer

Powered by FluxBB