Closed alwaysbemark closed 5 months ago
@alwaysbemark SchemaCrawler database tests run regularly with IBM DB2 11.5.8.0. The database server information is printed correctly in that case.
It seems that you are using IBM DB2 10.x, which is not supported by SchemaCrawler. Please take a look at the consulting information if you would like support for this version. The server information is reported as a warning and does not affect the operation of SchemaCrawler. Do you need this information?
You can override this with your own SQL by putting something like this below into a properties file, and specifying it on the command-line with -g <properties-file-path>
.
select.ADDITIONAL_INFO.SERVER_INFORMATION= \
SELECT \
'HOST_NAME' AS NAME, \
HOST_NAME AS VALUE, \
'Server host name.' AS DESCRIPTION \
FROM \
SYSIBMADM.ENV_SYS_INFO
Thank you!
Description
Hello, first of all - thanks for all the effort you put into SchemaCrawler, it's an amazing tool. Trying to retrieve catalog information for DB2 11.5.x does not retrieve the server information due to what seems like a broken SQL statement.
How to Reproduce
DB2 docker run -itd --name xdb2 --privileged=true -p 50000:50000 -e LICENSE=accept -e DB2INST1_PASSWORD=t1e2s3t4 -e DB2NAME=testdb -v .:/database cwds/db2
This runs the Dockerised DB2 database that we are. Then, fetch the catalog programatically.
Relevant log output
SchemaCrawler Version
16.21.1
Java Version
11
Operating System and Version
Mac OS X 14.2.1
Relational Database System and Version
DB2/LINUXX8664 SQL10055
JDBC Driver and Version
IBM Data Server Driver for JDBC and SQLJ 4.25.13