文档解释
ORA-25035: cannot perform DML on remote object from a crossedition trigger
Cause: An attempt was made to do DML from a crossedition trigger that would modify data in a remote database. DML from a crossedition trigger has special rules applied regarding what triggers will fire as part of that DML; these special rules cannot be applied across database links and therefore the DML cannot be allowed.
Action: Perform the DML in a helper function separate from the crossedition trigger itself; the special rules are not applied when the DML is not issued from within the crossedition trigger itself.
ORA-25035: cannot perform DML on remote object from a crossedition trigger
这是当从混合修改触发器中执行远程对象上的DML操作,而该触发器定义于一个旧版本的Oracle数据库中时出现的错误。发生此错误的原因是不允许在一个旧版本的数据库中定义的混合修改触发器来编辑一个新版本中创建的对象,尤其是远程对象。有时,使用混合修改触发器并调用远程对象来执行DML操作可能会出现此错误。
官方释义:
ORA-25035:无法传播混合修改触发器从远程对象执行DML操作。
常见案例
当在一个旧版本的数据库中定义一个混合修改触发器,并尝试从中执行对远程对象上的DML操作时,就会出现此错误。
正常处理方法及步骤
1.从应用程序中删除导致出现此错误的DML操作。
2.确保混合修改触发器正确定义在最新版本上,以便可以将此触发器与正确的远程对象关联。
3.可以考虑使用DBMS_ASSERT包将触发器混合修改重新定义在新的版本上。