Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with connection to db2 for i #8

Open
peter1504 opened this issue Aug 19, 2022 · 1 comment
Open

problem with connection to db2 for i #8

peter1504 opened this issue Aug 19, 2022 · 1 comment

Comments

@peter1504
Copy link

Hi,
we try to connect fom Rocky Linux 9 to db2 for i (AS400) with different jdbc drivers (for example jt400-10.6.jar) with different settings.

But we always hit an exeption in those jdbc drivers, that always point to
IMPORT FOREIGN SCHEMA TEST FROM server jdbc_db2 into DB2_01 OPTIONS (recreate 'true');
Exception in thread "Thread-6" java.sql.SQLException: [SQL7049] Die Grenze eines internen Objekts wurde überschritten.
at com.ibm.as400.access.JDError.createSQLExceptionSubClass(JDError.java:962)
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:745)
at com.ibm.as400.access.AS400JDBCStatement.commonExecute(AS400JDBCStatement.java:1084)
at com.ibm.as400.access.AS400JDBCPreparedStatementImpl.execute(AS400JDBCPreparedStatementImpl.java:1434)
at com.ibm.as400.access.AS400JDBCDatabaseMetaData.getColumns(AS400JDBCDatabaseMetaData.java:1106)
at JDBCUtils.getColumnNames(JDBCUtils.java:335)

Further investigation implies that possibly opened resources are not freed by jdbc_fdw.

Any help is appreciated.

Regards

Peter

@nxhai98
Copy link

nxhai98 commented Dec 6, 2022

Hi @peter1504,

Thank for your reporting.

db2 for i is not a target of jdbc_fdw for now. It will have some unexpected behaviors when connect to db2 for i.

However, there is an issue related to IMPORT FOREIGN SCHEMA make this feature work correctly with GridDB only.
We will fix it and release for you soon.

Thank you and best regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants