I ran the following db2 script with no problem on my terminal. but when I try to access the actual front end page involved with this table I get the error (code 57016) that indicates the table is inactive. I restarted the db2 but still this issue is happening.
Can anyone please help me out here
and the rollback was:
The error I receive:
UncategorisedDatabaseException: Query=[SELECT * FROM CUSTOMER WHERE ID = ?], database vendor error message is: DB2 SQL error: SQLCODE: -668, SQLSTATE: 57016, SQLERRMC: 7;CUSTOMER, UncategorisedDatabaseException errorCode = -668
db2 => ? 57016
SQLSTATE 57016: The table cannot be accessed, because it is inactive.
Can anyone please help me out here
Code:
alter table CUSTOMER alter column Delivery set default 0!
alter table CUSTOMER alter column Delivery set not null!
alter table CUSTOMER add constraint pref_ck4 check (Delivery between 0 and 1)!
commit!
quit!
Code:
alter table CUSTOMER alter Delivery drop DEFAULT!
alter table CUSTOMER alter COLUMN Delivery drop NOT NULL!
alter table CUSTOMER drop constraint pref_ck4!
reorg table CUSTOMER!
commit!
quit!
UncategorisedDatabaseException: Query=[SELECT * FROM CUSTOMER WHERE ID = ?], database vendor error message is: DB2 SQL error: SQLCODE: -668, SQLSTATE: 57016, SQLERRMC: 7;CUSTOMER, UncategorisedDatabaseException errorCode = -668
db2 => ? 57016
SQLSTATE 57016: The table cannot be accessed, because it is inactive.