473,394 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

SET SCHEMA command sometimes ignored?

aj
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
Nov 12 '05 #1
1 3835
AJ,

The difference between SET SCHEMA and SET CURRENT SCHEMA is the parser
token CURRENT. That's it. There is none. Same code. Just syntax
toleration. likely one is SQL Standard, the other DB2 SQL.

Now one major piece of work in V8 was the complete rework of the clients
to use DRDA. Possibly your Java code was unwittingly exploiting some
quirk in the V7 client behaviour that the V8 client doesn't possess
anymore. Pure guesswork.
I would be surprised if this would be solved within this group.
I would start revisiting your pooling code to ensure it's correct and
then open a PMR if needed.

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sony Antony | last post by:
Hello: ( Please redirect me to the correct list if this is not where I m supposed to ask this question ) Our application essentially sends xml 'commands' to another system. These commands...
1
by: Andy | last post by:
Hello All! Is there any way to validate XML document agains schema, but at the same time ignore any attributes or elements that are not specified in schema? Example: <Customer>...
2
by: Zombie | last post by:
Hi all, I wish to create a namespace other than the default one. Let's say, the Schema looks like: ----------------------------------------------------------------------- <?xml version="1.0"...
10
by: wackyphill | last post by:
I know in SQL Server the terms Database and Catalog are used interchangably. But a table is also assigned a schema. As seen in the INFORMATION_SCHEMA.Tables View. I don't get what this schema...
3
by: N. Shamsundar | last post by:
In DB2 V8.1.5, if one uses SET SCHEMA to a schema other than the default schema, and subsequently issues a LIST TABLES command, it is still the tables in the default schema that are shown. Is this...
1
by: awebguynow | last post by:
I've seen the syntax in the J. Stephens/C. Russell book and believe the "alter table" would be: ALTER TABLE tbl FOREIGN KEY (column_list) REFERENCES tbl_name (column_list) the Syntax is...
3
by: Chris Lieb | last post by:
I am new to XML Schema and am running into a bit of a snag. I have defined an XML-based scripting language for an updater program that I am working on. I would like to make a schema for this...
3
by: dkacher | last post by:
Hi - I'm looking for a way to generate a list of the fully-qualified paths to all of the leaf nodes in an XML Schema. The reason: I have a large schema for which I'm building a transform...
2
by: Amber | last post by:
On my DB2 UDB 8.2.7 database user User1 has been granted IMPLICIT_SCHEMA privilege, but when he issues "create schema test", the error message "SQL0552N, USER1 does not have the previliege to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.