互联网服务数据库

数据库触发器报错

数据库做了个迁移,现在after类型触发器有问题,报-989的错误

参与11

4同行回答

casper105casper105数据库管理员HTSEC
如果是db2move的迁移,确定你的表空间状态。syscat.tables里有无status为'C'的。然后确定定你的触发器原来好用不,有无改变。显示全部

如果是db2move的迁移,确定你的表空间状态。syscat.tables里有无status为'C'的。然后确定定你的触发器原来好用不,有无改变。

收起
证券 · 2016-08-01
浏览1412
李英杰李英杰数据库技术专家烁林软件
错误的解释:SQL0989N AFTER trigger "" attempted to modify a           row in table "" that was modified by an SQL           data  change statement within a FROM clause.  Ex...显示全部

错误的解释:

SQL0989N AFTER trigger "" attempted to modify a

          row in table "" that was modified by an SQL

          data  change statement within a FROM clause.  

Explanation:

An SQL data change statement was specified in the FROM clause,

but the underlying target base table of the SQL data change

statement has an AFTER trigger defined which modifies the same

table. This is disallowed.  

The statement cannot be processed.  

User Response:

Avoid using the SQL data change statement within a FROM clause,

or change  the trigger so that it does not modify the table that

is the target of the SQL data change statement.  

sqlcode :  -0989

sqlstate :  560C3

收起
系统集成 · 2016-08-01
浏览1423
Scott_jinScott_jin数据库管理员环境
SQL0909N  The object has been deleted.Explanation: The application program has either (1) dropped a table and thenattempted to access it, or (2) dropped an index and then tried to accessits object table using that index.User response: The l...显示全部

SQL0909N  The object has been deleted.

Explanation:

The application program has either (1) dropped a table and then

attempted to access it, or (2) dropped an index and then tried to access

its object table using that index.

User response:

The logic of the application program must be corrected such that it does

not attempt to access or use an object after it has been dropped.

Dropping indexes within an application program is especially hazardous,

because there is no way of determining whether or not the plan that has

been generated for the application (by BIND or REBIND) actually uses a

particular index for access to its object table.

sqlcode: -909

sqlstate: 57007

收起
互联网服务 · 2016-08-05
浏览1351
fantlfantl软件开发工程师北京国电南自亿通科技有限公司
触发器原来好用,现在不好用了。syscat.tables里有status为'C'的。疯了,真不知道该怎么办了。after类型改为before好使,但是不是所有的after都能改成before。显示全部

触发器原来好用,现在不好用了。syscat.tables里有status为'C'的。疯了,真不知道该怎么办了。after类型改为before好使,但是不是所有的after都能改成before。

收起
互联网服务 · 2016-08-02
浏览1330

提问者

fantl
软件开发工程师北京国电南自亿通科技有限公司
擅长领域: 中间件前置系统服务器

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2016-08-01
  • 关注会员:4 人
  • 问题浏览:3194
  • 最近回答:2016-08-05
  • X社区推广