Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

db2 table inactive after a patch

$
0
0
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

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!

and the rollback was:

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!

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.

Viewing all articles
Browse latest Browse all 13329

Trending Articles