473,241 Members | 1,626 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,241 software developers and data experts.

Bind abends with 0C4 when DEGREE(ANY) option is used

Hi!

We are running DB2 V8 on z/OS in compatibility mode. There is one
specific query (embedded as static SQL in a COBOL program) that causes
the bind job to abend when we use the DEGREE(ANY) option. The bind
works fine with DEGREE(1). The bind job binds the DBRM into a plan.

The query uses parameter markers. If we replace the parameter markers
with literals in the query, the bind goes through without problems.
Also, if we change the definition of the view referenced by the query,
we find that the problem goes away for certain view definitions. After
playing with the view definition for some time, it looks to us that the
problem occurs whenever the access path chosen for the query includes
(CP) parallel access for one of the tables involved (ACCESS_DEGREE = 0
in the plan table entry).

If anyone came across a similar problem, please advise.

Thanks and Regards,
Venkata

Nov 12 '05 #1
3 3570
I should have said "host variables" instead of "parameter markers".

The view definition that causes the abend looks like:

Select ... From TableA
where field1 = :value1
and field2 = :value2
and ( exists ( correlated subquery 1) or exists (correlated subquery 2)
)

TableA (field1, field2) is a unique index. DB2 chooses CPU parallelism
for accessing this table for whatever reason - the plan_table entry has
ACCESS_DEGREE = 0, meaning that DB2 will decide on the degree of
parallelism after looking at the values of the host variables. There
will be at most one row retrieved from tableA. The reason for choosing
parallelism is unclear.

The only characteristic of the view rewrites that don't cause the abend
is that DB2 doesn't choose parallelism for tableA's access. DB2 doesn't
choose parallelism when literals are substituted for host variables
either.

This is a PeopleSoft environment. We were originally getting this error
in a CLI client running on an AIX box, accessing the DB2 server on z/OS
through DB2 Connect. The query that selects from the view gets a -1224
SQL code, and further SQL requests a -30081 SQL code. At the same time
as the -1224 SQL code error on the client, we see message in the master
log on z/OS that a DB2 agent abended with a 0C4, reason code 0.

After a good deal of testing, we eliminated PeopleSoft and DB2 Connect
from consideration by reproducing the error in a COBOL program on z/OS.

Nov 12 '05 #2
I suspect you're better off opening a PMR than hoping to get a resolution
here.

"Venkata C" <ve*************@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I should have said "host variables" instead of "parameter markers".

The view definition that causes the abend looks like:

Select ... From TableA
where field1 = :value1
and field2 = :value2
and ( exists ( correlated subquery 1) or exists (correlated subquery 2)
)

TableA (field1, field2) is a unique index. DB2 chooses CPU parallelism
for accessing this table for whatever reason - the plan_table entry has
ACCESS_DEGREE = 0, meaning that DB2 will decide on the degree of
parallelism after looking at the values of the host variables. There
will be at most one row retrieved from tableA. The reason for choosing
parallelism is unclear.

The only characteristic of the view rewrites that don't cause the abend
is that DB2 doesn't choose parallelism for tableA's access. DB2 doesn't
choose parallelism when literals are substituted for host variables
either.

This is a PeopleSoft environment. We were originally getting this error
in a CLI client running on an AIX box, accessing the DB2 server on z/OS
through DB2 Connect. The query that selects from the view gets a -1224
SQL code, and further SQL requests a -30081 SQL code. At the same time
as the -1224 SQL code error on the client, we see message in the master
log on z/OS that a DB2 agent abended with a 0C4, reason code 0.

After a good deal of testing, we eliminated PeopleSoft and DB2 Connect
from consideration by reproducing the error in a COBOL program on z/OS.

Nov 12 '05 #3
Mark,

We do have a PMR open, but it has been open for about three weeks. I
just wanted to see if anyone else is facing the problem.

Thanks,
Venkata

Nov 12 '05 #4

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

Similar topics

2
by: CViniciusM | last post by:
Hello, a) I have a .h (header file) that declares a struct: .... typedef struct { UINT4 state; /* state (ABCD) */ UINT4 count; /* number of bits, modulo 2^64 (lsb first) */ unsigned char...
4
by: Newbie | last post by:
Is it possible to set up an event handler or something else so that when *any* link on the page is clicked it 'fires-up', executes some JS and then continues to process the link that was clicked?...
15
by: pranab_bajpai | last post by:
So I want to define a method that takes a "boolean" in a module, eg. def getDBName(l2): .... Now, in Python variables are bound to types when used, right? Eg. x = 10 # makes it an INT...
10
by: Not Available | last post by:
On the host server: namespace JCart.Common public class JCartConfiguration : IConfigurationSectionHandler private static String dbConnectionString; public static String ConnectionString { get...
3
by: Starbuck | last post by:
Hi The following generates an error when Option Strict is On Can anytell tell me how to get round this please. Private Sub optWithTone_CheckedChanged(ByVal eventSender As System.Object, ByVal...
10
by: Lyle Fairfield | last post by:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaac11/html/acfctNZ_HV05186465.asp "If the value of the variant argument is Null, the Nz function returns the number zero or a...
3
by: Greg | last post by:
this template won't compile when used with bool, the erorr is "invalid initialization of non const reference" template < typename T > class Vec : public std::vector< T { public: Vec() { }...
1
by: devathi | last post by:
suggest My sql query that gives message when any insert or delete or select query is executed on a table.
2
by: uwcssa | last post by:
I have a third-party Java application running queries with parameter markers (through PreaparedStatement). I wish the server optimize all queries from scratch as there is oppotunity to match...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...

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.