I had to perform an ALTER on a table in Db2 on IBM Cloud (DashDb). Thereafter, I tried to
ALTER TABLE REFT_BRAND_DIM ALTER COLUMN BRAND_CD SET NOT NULL;
Now that table is inaccessible. For example:
SELECT * FROM RQG40283.REFT_BRAND_DIM
Error message
Operation not allowed for reason code "7" on table "RQG40283.REFT_BRAND_DIM".. SQLCODE=-668, SQLSTATE=57016, DRIVER=4.26.14
This error is
The table is in the reorg pending state. This can occur after an ALTER TABLE statement containing a REORG-recommended operation. However, neither REORG TABLE RQG40283.REFT_BRAND_DIM
or REORG TABLESPACE rqg40283space1
seems to be recognized.
I would appreciate whatever help someone could provide.