473,396 Members | 2,036 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,396 software developers and data experts.

URGENT HELP on NICKNAMES

We have defined a NICKNAME to go to Mainframe table and when do a
SELECT * FROM NICKNAME from a version 8 client we get SQL0101N error.

The same select from V7 client works fine. The SELECT returns 5 rows.

From IBM support site,

http://www-1.ibm.com/support/search....c=SSEPGG&rs=71

I could see two problems opened for V8 namely JR19670 and
IY56225, but It is a protected link and I am not able to go through
it.


V8, db2level is:
DB21085I Instance "db2inst1" uses "32" bits and DB2 code release
"SQL08015"
with level identifier "02060106".
Informational tokens are "DB2 v8.1.0.48", "s040212", "MI00069", and
FixPak "5".
Product is installed at "/opt/IBM/db2/V8.1".
Nov 12 '05 #1
8 3583
"db2sysc" <db*****@yahoo.com> wrote in message
news:69**************************@posting.google.c om...
We have defined a NICKNAME to go to Mainframe table and when do a
SELECT * FROM NICKNAME from a version 8 client we get SQL0101N error.


Maybe:
o Increase the size of the statement heap (stmtheap) in the database
configuration file.

Regards
Paul Vernon
Business Intelligence, IBM Global Services

C:\SQL>db2 ? SQL0101N
SQL0101N The statement is too long or too complex.

Explanation:

The statement could not be processed because it exceeds a system
limit for either length or complexity, or because too many
constraints or triggers are involved.

If the statement is one that creates or modifies a packed
description, the new packed description may be too large for its
corresponding column in the system catalogs.

Federated system users should also check to see if the
statement:

o Exceeds either a federated server system limit or a data
source system limit for length or complexity.

o Violates some other data source specific limit.

The statement cannot be processed.

Note: Where character data conversions are performed for
applications and databases running under different
codepages, the result of the conversion is exceeding the
length limit.

User Response:

Either:

o Break the statement up into shorter or less complex SQL
statements.

o Increase the size of the statement heap (stmtheap) in the
database configuration file.

o Reduce the number of check or referential constraints
involved in the statement or reduce the number of indexes on
foreign keys.

o Reduce the number of triggers involved in the statement.

o Federated system users: determine which data source is
failing the statement (see the problem determination guide
for procedures to follow to identify the failing data source)
and determine the cause of the rejection. If the rejection
is coming from the federated server, increase the size of the
statement heap (stmtheap) in the database configuration
file.

sqlcode : -101

sqlstate : 54001

Nov 12 '05 #2
"db2sysc" <db*****@yahoo.com> wrote in message
news:69**************************@posting.google.c om...
We have defined a NICKNAME to go to Mainframe table and when do a
SELECT * FROM NICKNAME from a version 8 client we get SQL0101N error.


Maybe:
o Increase the size of the statement heap (stmtheap) in the database
configuration file.

Regards
Paul Vernon
Business Intelligence, IBM Global Services

C:\SQL>db2 ? SQL0101N
SQL0101N The statement is too long or too complex.

Explanation:

The statement could not be processed because it exceeds a system
limit for either length or complexity, or because too many
constraints or triggers are involved.

If the statement is one that creates or modifies a packed
description, the new packed description may be too large for its
corresponding column in the system catalogs.

Federated system users should also check to see if the
statement:

o Exceeds either a federated server system limit or a data
source system limit for length or complexity.

o Violates some other data source specific limit.

The statement cannot be processed.

Note: Where character data conversions are performed for
applications and databases running under different
codepages, the result of the conversion is exceeding the
length limit.

User Response:

Either:

o Break the statement up into shorter or less complex SQL
statements.

o Increase the size of the statement heap (stmtheap) in the
database configuration file.

o Reduce the number of check or referential constraints
involved in the statement or reduce the number of indexes on
foreign keys.

o Reduce the number of triggers involved in the statement.

o Federated system users: determine which data source is
failing the statement (see the problem determination guide
for procedures to follow to identify the failing data source)
and determine the cause of the rejection. If the rejection
is coming from the federated server, increase the size of the
statement heap (stmtheap) in the database configuration
file.

sqlcode : -101

sqlstate : 54001

Nov 12 '05 #3
Hey Paul.

Thanks. I am issuing the select from nickname from a Db2 client. The
database server has STMTHEAP at a good number. SQL0101N only happens
when the select is issued from a V8 client. The nickname is created to
go to a mainframe Db2 table.
When the nickname is access thru V7 instance, it gives the result.

Any pointers? The total recs of the select is only 5.

Thanks

"Paul Vernon" <pa*********@ukk.ibmm.comm> wrote in message news:<c6**********@gazette.almaden.ibm.com>...
"db2sysc" <db*****@yahoo.com> wrote in message
news:69**************************@posting.google.c om...
We have defined a NICKNAME to go to Mainframe table and when do a
SELECT * FROM NICKNAME from a version 8 client we get SQL0101N error.


Maybe:
o Increase the size of the statement heap (stmtheap) in the database
configuration file.

Regards
Paul Vernon
Business Intelligence, IBM Global Services

C:\SQL>db2 ? SQL0101N
SQL0101N The statement is too long or too complex.

Explanation:

The statement could not be processed because it exceeds a system
limit for either length or complexity, or because too many
constraints or triggers are involved.

If the statement is one that creates or modifies a packed
description, the new packed description may be too large for its
corresponding column in the system catalogs.

Federated system users should also check to see if the
statement:

o Exceeds either a federated server system limit or a data
source system limit for length or complexity.

o Violates some other data source specific limit.

The statement cannot be processed.

Note: Where character data conversions are performed for
applications and databases running under different
codepages, the result of the conversion is exceeding the
length limit.

User Response:

Either:

o Break the statement up into shorter or less complex SQL
statements.

o Increase the size of the statement heap (stmtheap) in the
database configuration file.

o Reduce the number of check or referential constraints
involved in the statement or reduce the number of indexes on
foreign keys.

o Reduce the number of triggers involved in the statement.

o Federated system users: determine which data source is
failing the statement (see the problem determination guide
for procedures to follow to identify the failing data source)
and determine the cause of the rejection. If the rejection
is coming from the federated server, increase the size of the
statement heap (stmtheap) in the database configuration
file.

sqlcode : -101

sqlstate : 54001

Nov 12 '05 #4
Hey Paul.

Thanks. I am issuing the select from nickname from a Db2 client. The
database server has STMTHEAP at a good number. SQL0101N only happens
when the select is issued from a V8 client. The nickname is created to
go to a mainframe Db2 table.
When the nickname is access thru V7 instance, it gives the result.

Any pointers? The total recs of the select is only 5.

Thanks

"Paul Vernon" <pa*********@ukk.ibmm.comm> wrote in message news:<c6**********@gazette.almaden.ibm.com>...
"db2sysc" <db*****@yahoo.com> wrote in message
news:69**************************@posting.google.c om...
We have defined a NICKNAME to go to Mainframe table and when do a
SELECT * FROM NICKNAME from a version 8 client we get SQL0101N error.


Maybe:
o Increase the size of the statement heap (stmtheap) in the database
configuration file.

Regards
Paul Vernon
Business Intelligence, IBM Global Services

C:\SQL>db2 ? SQL0101N
SQL0101N The statement is too long or too complex.

Explanation:

The statement could not be processed because it exceeds a system
limit for either length or complexity, or because too many
constraints or triggers are involved.

If the statement is one that creates or modifies a packed
description, the new packed description may be too large for its
corresponding column in the system catalogs.

Federated system users should also check to see if the
statement:

o Exceeds either a federated server system limit or a data
source system limit for length or complexity.

o Violates some other data source specific limit.

The statement cannot be processed.

Note: Where character data conversions are performed for
applications and databases running under different
codepages, the result of the conversion is exceeding the
length limit.

User Response:

Either:

o Break the statement up into shorter or less complex SQL
statements.

o Increase the size of the statement heap (stmtheap) in the
database configuration file.

o Reduce the number of check or referential constraints
involved in the statement or reduce the number of indexes on
foreign keys.

o Reduce the number of triggers involved in the statement.

o Federated system users: determine which data source is
failing the statement (see the problem determination guide
for procedures to follow to identify the failing data source)
and determine the cause of the rejection. If the rejection
is coming from the federated server, increase the size of the
statement heap (stmtheap) in the database configuration
file.

sqlcode : -101

sqlstate : 54001

Nov 12 '05 #5
"db2sysc" <db*****@yahoo.com> wrote in message
news:69**************************@posting.google.c om...
Hey Paul.

Thanks. I am issuing the select from nickname from a Db2 client. The
database server has STMTHEAP at a good number.


What number? STMTHEAP no matter how big can always be blown if you issue
complex enougth SQL.

Check it on both your server and the server you are federating to.

Regards
Paul Vernon
Business Intelligence, IBM Global Services
Nov 12 '05 #6
"db2sysc" <db*****@yahoo.com> wrote in message
news:69**************************@posting.google.c om...
Hey Paul.

Thanks. I am issuing the select from nickname from a Db2 client. The
database server has STMTHEAP at a good number.


What number? STMTHEAP no matter how big can always be blown if you issue
complex enougth SQL.

Check it on both your server and the server you are federating to.

Regards
Paul Vernon
Business Intelligence, IBM Global Services
Nov 12 '05 #7
A "select * from nickname" shouldn't blow the statement heap.
There is something fishy going on here.
There is nothing in there to use up memory that I coudl think of.

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #8
A "select * from nickname" shouldn't blow the statement heap.
There is something fishy going on here.
There is nothing in there to use up memory that I coudl think of.

Cheers
Serge

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

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

Similar topics

4
by: global | last post by:
Hi, we have UDB 8.1.4 on W2K and defined federated database with nicknames, which cann't be seen in control center. (filter is not activ). Thx
1
by: dbtoo_dbtoo | last post by:
Hello If we have nicknames created in DB1 to, say, three other databases (DB2,DB3, and DB4) in the same instance. How can one find out what table/database is a nickname pointing to? For...
1
by: _link98 | last post by:
On Linux or Solaris with UDB 8.2.2, can an SQL/PL stored-procedure use two-phase-commit with nicknames and if DB2 provides the Transaction-manager? i.e. in the same transaction, can an SQL/PL...
37
by: Art | last post by:
Hello everyone, I am interested in starting an all volunteer website which will be directed at recovering missing children. I am aware that there are few other sites out there with the same...
28
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
1
by: Prasad | last post by:
Hi, We have DB2 version 7 fixpak 14 on AIX 5.1. We have nicknames to another RDBMS tables. These nicknames have views and specification only indexes. I would like to know how we can extract...
1
by: ebusiness | last post by:
I am trying to create nicknames for tables in a remote database. The federated database and remote database are both DB2 UDB V8.2, both OS are AIX. Could anyone tell me how to create a nickname...
0
by: VikingDK | last post by:
Hi all Please bear with me, I'm still very inexperienced when it comes to DB2, so my questions might seem a little silly. With that covered, now on to the question :) I have a DB2 Enterprise...
1
by: DataFinder | last post by:
Not wanting to re-create the wheel, I have a need for a two-column table that links nicknames and given names if they are a derivative or source of another. Can you help? Using an Access...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.