claracruz
asked on
Operation not allowed for reason code "1"
hELLO EXPERTS,
I am using IBM DB2 VERSION 8 devloper edition....
I needed to amend that data in a table, and so I used the load operation to load data from a tab delimited .txt file.
Unfortunately, now I can no longer open the table, I get error;-
com.ibm.db.DataException: A database manager error occurred. : [IBM][CLI Driver][DB2/NT] SQL0668N Operation not allowed for reason code "1" on table "SCHEDULE". SQLSTATE=57016
Is this fixable? All other tables open OK.
I am using IBM DB2 VERSION 8 devloper edition....
I needed to amend that data in a table, and so I used the load operation to load data from a tab delimited .txt file.
Unfortunately, now I can no longer open the table, I get error;-
com.ibm.db.DataException: A database manager error occurred. : [IBM][CLI Driver][DB2/NT] SQL0668N Operation not allowed for reason code "1" on table "SCHEDULE". SQLSTATE=57016
Is this fixable? All other tables open OK.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if 'amend' means replace the data, simply load the file with the replace option instead of insert option
if amend means update data, then use import with the insert update option, although if your file is quite large, import will take a while
or
simply drop the constraint first, re load the data, and add the constraint, but of course the constraint will not be created if your data does not support it.
to load without doing any of the above:
to create exception tables:
db2 create table schemaname.xschedule as (select * from schedule) defintion only
db2 alter table schemaname.schedule add column timestamp add column description clob(32k)
use of load utility with exception table
db2 load..... for exception schemaname.xschedule
after load
db2 select * from xschedule