DB2 v8 FP5
Red Hat AS 2.1
We are encountering a strange error where the default schema name
that is specified w/ a SET SCHEMA command is being inconsistently
ignored, causing all table references to be prefixed with the
connecting username, and throwing many SQL -204 SQLSTATE 42704
exceptions.
There does not appear to be a pattern to this, except that heavy
DB usage makes it more frequent.
The connection comes from a pooling mechanism written in Java,
whereby each new connection added to the pool gets a SET SCHEMA
done against it. This pooling mechanism has worked flawlessly
for over a year against DB2 v7 - the behavior only started when
I upgraded to DB2 v8 FP5. I am not using the JDBC2
com.ibm.db2.jdbc.DB2PooledConnection pooling, but rather the
com.ibm.db2.jcc.DB2Driver class.
A thread entitled "Default schema in db2cli.ini intermittantly ignored"
dated 2003-04-17 mentions the same behavior, but not really a resolution.
Anyone have any thoughts?
I have rebound the db2schema.bnd, db2ubind.lst and db2cli.lst packages.
This database was a clean migration from a v7 offline RESTORE.
db2dart and inspect check database comes up clean...
PS - whats the diff between SET SCHEMA and SET CURRENT SCHEMA?
TIA
aj |