转载:http://blog.csdn.net/cartersyc/article/details/2237689Operation not allowed for reason code "7" on table 原因码 "7"的解决2008-03-07 16:17对表进行任何操作都不被允许,提示SQLSTATE=57016 SQLCODE=-668 ,原因码 "7"的错误:SQL0668N Operation not allowed for reason code "...【阅读全文】
1:查找主键 describe indexes for table <instancename>.<tablename> 例子:db2 "DESCRIBE INDEXES FOR TABLE Students"2:删除表主键 alter table <instancename>.<tablename> drop primary key 例子:db2 "ALTER TABLE Students DROP PRIMARY KEY"...【阅读全文】
经常能够遇到类似的需求,使用生产环境的一个备份,到测试server上面进行测试环境的搭建。 这种需求的解决,通常有三种做法:1、利用数据库的重建恢复(1)在数据库1上面新建数据库:db2 "create database tpcd automatic storage no on /db2home"(2)创建schema,并创建一些表:db...【阅读全文】
进行数据库online备份的时候,在备份结束的时候,会强制归档日志,然后完成online备份过程。这样对一个online的数据库备份,查看其history$ db2 list history backup since 20130824 for leotest Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log Bac...【阅读全文】