Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Hi have DB2 9.7.200.358/Windows 7 Ult SP1. After an Alter Table Add Column command, the DB engine retrieves the error in the object for any select into that table. I restarted the DB, I restarted windows, but the issue remains.

I noted this:
SQL
SELECT * FROM SYSIBMADM.ADMINTABINFO where TabName like 'MF_S%'

(retrieving two tables)
The difference between them the indict table is that have INDEXES_REQUIRE_REBUILD setted as 'Y'.

I droped all indexes and reference keys, but the issue and the flag remain.

I tried also this:
SQL
REORG TABLE <MyTable> ALLOW NO ACCESS;
REORG INDEXES ALL FOR TABLE <MyTable> ALLOW NO ACCESS;
RUNSTATS ON TABLE <MyTable> ON ALL COLUMNS WITH DISTRIBUTION ON ALL COLUMNS AND DETAILED INDEXES ALL;


The first statement runs well. The second and the third return the same error (even if there is no index).

What I have to do?

[News:]
Hi,

I think the problem is deeper than i thought. In fact I made a database bakcup and I restored it in a different PC, the problem has remained.

Lucio
Posted
Updated 21-Oct-15 22:30pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900