DB2
The JDBC 4 driver for DB2 contains a reference to pdq.jar. This casuses a FileNotFoundException to be thrown when loading the driver in Apache Tomcat. The solutions offered by IBM Support are to either:
- Manually modify the
MANIFEST.MFfile in the JAR to remove theClass-Path: pdq.jarline - Update Tomcatโs
context.xmlto include the following:
<Context>
<!-- ... -->
<JarScanner scanClassPath="false" />
<!-- ... -->
</Context>
Note that this is not a surgical change and will impact all class path scanning.
Open Connectionsโ
A few options:
- From the command line:
db2 list applications - As a query:
The schema changed from
SELECT * FROM sysibmadm.applications;sysibmtosysibmadmin DB2 v8.
Useful links:
Gotchasโ
-
DB2โs isolation level is set through the whole query. When doing a
UNIONor subselect, you cannot specifyWITH URwithin the middle of the statement; it must be put at the end.Wrong:
SELECT * FROM foo WITH UR
UNION
SELECT * FROM bar WITH UR
ORDER BY idCorrect:
SELECT * FROM foo
UNION
SELECT * FROM bar
ORDER BY id
WITH UR