DB2 - Problem description
Problem IT02854 | Status: Closed |
CREATION OF A VIEW MIGHT RESULT IN SQL0973N ERROR | |
product: | |
DB2 FOR LUW / DB2FORLUW / A50 - DB2 | |
Problem description: | |
Should the view that you want to create reference a table name that does not exist or the name given to the view be a duplicate name to an existing database object, the create statement may wrongly return error SQL0873N "Not enough storage is available in the "AGENT_STACK_SZ" heap or stack to process the statement" Consider the following scenario: db2 "create database MyTstDB" db2 "connect to MyTstDB" db2 "create table existingObj ( c1 char(10))" Both the following statements might return SQL0973N instead of an error pertaining to the wrong use of an object name: $ db2 "CREATE VIEW existingObj AS SELECT * FROM existingObj, (VALUES 'T') AS X(SOURCE_TAB)" DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0973N Not enough storage is available in the "AGENT_STACK_SZ" heap or stack to process the statement. SQLSTATE=57011 $ db2 "CREATE VIEW notFoundObj AS SELECT * FROM notFoundObj, (VALUES 'T') AS X(SOURCE_TAB)" DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0973N Not enough storage is available in the "AGENT_STACK_SZ" heap or stack to process the statement. SQLSTATE=57011 | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * all creating views * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to version 10.5 FP5 * **************************************************************** | |
Local Fix: | |
Solution | |
First fixed in version 10.5 FP5 | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 30.06.2014 19.01.2016 19.01.2016 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) | |
10.5.0.7 |