473,569 Members | 2,489 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Alter Table causes SQL0901N ( SQLSTATE=58004 )

Hi,

I am trying to run the following SQL through the DB2 command line for
version 9.1.0:

alter table SCHEMA.TABLE1
drop column A;

alter table SCHEMA.TABLE2
alter column B set data type decimal(15,4);

* Column B was Integer.

The commands both successfully return:
DB20000I The SQL command completed successfully.

However, when I try and run a seemingly un-related query (i.e. The
query does not directly reference either TABLE1 or TABLE2 although
they do both have foreign key relationships with the query) I get the
following error:

ERROR [58004] [IBM][DB2/NT] SQL0901N The SQL statement failed because
of a non-severe system error. Subsequent SQL statements can be
processed. (Reason "column number out of range".) SQLSTATE=58004

I have tried reorg on all the tables in both the above SQL and my
query.
Any help would be much appreciated.
Jun 27 '08 #1
1 6439
Chris wrote:
Hi,

I am trying to run the following SQL through the DB2 command line for
version 9.1.0:

alter table SCHEMA.TABLE1
drop column A;

alter table SCHEMA.TABLE2
alter column B set data type decimal(15,4);

* Column B was Integer.

The commands both successfully return:
DB20000I The SQL command completed successfully.

However, when I try and run a seemingly un-related query (i.e. The
query does not directly reference either TABLE1 or TABLE2 although
they do both have foreign key relationships with the query) I get the
following error:

ERROR [58004] [IBM][DB2/NT] SQL0901N The SQL statement failed because
of a non-severe system error. Subsequent SQL statements can be
processed. (Reason "column number out of range".) SQLSTATE=58004

I have tried reorg on all the tables in both the above SQL and my
query.
Any help would be much appreciated.
As always with -901s please call support. I recall issues with "column
number out of range" after ALTERs. So there is a reasonable chance that
support will point you to an existing APAR.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Jun 27 '08 #2

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

Similar topics

10
160520
by: Jane | last post by:
Does any one know why this statement is failing? db2 => ALTER TABLE ELMT_T ALTER COLUMN CDTY_CD SET DATA TYPE VARCHAR(51) DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0901N The SQL statement failed because of a non-severe system...
3
14132
by: JDb2 | last post by:
Hi there.. we had a disaster on our Raid configuration running our DB2 (UDB 7.2.5). We used Tivoli to get our data backup and we had restore succesfully 17 of 18 db. We have problem only on the last one : on rollforward we get this error: SQL1042C An unexpected system error occurred. SQLSTATE=58004
4
12707
by: marklawford | last post by:
Not having earned my DBA badge from the scouts just yet I'm a little lost with an error I'm getting. We've just upgraded our development database from 7.2 to 8.2 as the first step in upgrading our wider environment. Of course, development doesn't stop so I'm running some explain plans over some new views. The problem is, when the view is...
3
9221
by: Gregor Kovač | last post by:
Hi! I have a table with a column of BIGINT and I want to change the type to SMALLINT. Command ALTER TABLE TABLE1 ALTER COLUMN COL1 SET DATA TYPE SMALLINT does not work since I cannot specify SMALLINT in set data type clause (acording to...
0
2074
by: rawu | last post by:
last week , i get my db version from DB2/AIX64 8.1.10 down to DB2/AIX64 8.1.5 . After that , a application called "CalRate" has something wrong . when it tries to open a cursor , it presents a error : SQL0901N The SQL statement failed because of a non-severe error . Subsequent SQL statements can be processed . (Reason "sqlriResolveOpFunc:...
3
9437
by: rawu | last post by:
last week , i get my db version from DB2/AIX64 8.1.10 down to DB2/ AIX64 8.1.5 . After that , a application called "CalRate" has something wrong . when it tries to open a cursor , it presents a error : SQL0901N The SQL statement failed because of a non-severe error . Subsequent SQL statements can be processed . (Reason...
0
3081
by: cuddles | last post by:
Hi all, iv getting this error message and im not sure what to do, any help would be appreciated. What i do know is that if i remove a single line of code, the procedure is successfully built.. this is the error: Create stored procedure returns -901 5259: SQL0901N The SQL statement failed because of a non-severe system error....
1
21364
by: bytesmalli | last post by:
Hi All, When i'm running the db2start i'm getting following error message. But when i ran it for second time m able to start successfully. Can you please tell me what could be the issue for the first run. This is happening everytime when i start database manager. Please let me know if i'm missing something. $ ./db2 db2start SQL1042C An...
0
2331
by: HARVEER | last post by:
Hi, My procedure compiles perfectly, but sometimes when I execute it. I receive following error: DB2 Database Error: ERROR SQL0901N The SQL statement failed because of a non-severe system error. Subsequent SQL statements can be processed. (Reason "Sdir len bad: 1542!=1520+14".) SQLSTATE=58004 However, surprisingly when i commented...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7618
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6286
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5222
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3656
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
944
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.