Hi !
I'm currently trying to read out ddl-structures from a db2-database
with schemacrawler (http://schemacrawler.sourceforge.net/)
but without success. Some people in this newsgroup recommended this
tool for analyzing and diff-ing ddl-structures of databases.
My configuration looks like this:
---
.....
vk1xap04.host=127.0.0.1
vk1xap04.port=60020
vk1xap04.database=vk1xap04
vk1xap04.schemapattern=%
vk1xap04.user=vk1xap04
vk1xap04.password=<removed>
vk1xap04.driver=com.ibm.db2.jcc.DB2Driver
vk1xap04.url=jdbc:db2://${host}:${port}
....
---
I got the following error-message:
--
$ java -cp $CLASSPATH -jar `ls -1 schemacrawler-*.jar` \
-command=maximum_schema \
-outputformat=text \
-g /application/shared/install/schemacrawler/current/schemacrawler.config.properties \
-connection=vk1xap04
exception in thread "main" dbconnector.datasource.PropertiesDataSourceExcepti on: Driver class not found - com.ibm.db2.jcc.DB2Driver
at dbconnector.datasource.PropertiesDataSource.constr uctPropertiesDataSource(PropertiesDataSource.java: 202)
at dbconnector.datasource.PropertiesDataSource.<init> (PropertiesDataSource.java:153)
at dbconnector.Main.createDataSource(Main.java:215)
at schemacrawler.Main.doMain(Main.java:117)
at schemacrawler.Main.main(Main.java:82)
Caused by: java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at dbconnector.datasource.PropertiesDataSource.constr uctPropertiesDataSource(PropertiesDataSource.java: 197)
... 4 more
--
This looks like a simple classpath problem - but the class is resolvable:
---
# positive test
java com.ibm.db2.jcc.DB2Driver
Exception in thread "main" java.lang.NoSuchMethodError: main
# negative test
java com.ibm.db2.jcc.DB2DriverXXXXXXXXXXX
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/db2/jcc/DB2DriverXXXXXXXXXXX
---
Any ideas ?
Is there a another free tool which eases comparison of databases ?
Best regards
Marc Schoechlin
--
I prefer open/free file formats:
http://en.wikipedia.org/wiki/Open_fo...f_open_formats
http://en.wikipedia.org/wiki/Free_file_format