- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
oracle sql 报错解决办法(国外英语资料)
oracle sql 报错解决办法(国外英语资料)
Insert statement to modify the table, if in a row-level trigger to read or modify a mutating table, often will encounter ORA - 04091 error. For example, if use the select in the trigger or access the table where the trigger DML statements, will receive this error.
Oracle8i, however, did not explain and 9 I document type before and after the row the trigger in the treatment of two different types of the insert statement (insert values into...... and select insert into......). When the difference:
For each row level at the after type, no matter which insert statement triggers the trigger, it is not allowed to access the table that the trigger relies on in the trigger, and the test is as follows:
SQL create table t1 (c1 number, c2 varchar2 (10));
The Table created
SQL create or replace trigger tri_t1
2 after insert on t1 for each row
3 declare
4 cvar varchar2 (10);
5 the begin
6 select Y into cvar from t1 WHERE ROWNUM = 1; Here, the trigger table is accessed
7 the end;
8 /
The Trigger created
SQL insert into t1 values (1, a);
ORA - 04091: the table TEST. The T1 is mutating, trigger/function may not see it
ORA 06512: at test.tri_t1, line 4
Error during execution of trigger tes.tri_t1
SQL insert into t1 select 1, a from dual
ORA - 04091: the table TEST. The T1 is mutating, trigger/function may not see it
ORA 06512: at test.tri_t1, line 4
Error during execution of trigger test.tri_t1
For each row level triggers for before type, if you use insert into... The values statement triggers the trigger, and there is no problem accessing this table in the trigger.
But if you use insert into select.. The from statement triggers the trigger, which is reported in the trigger for the ora-04091 error;
Only in the Oracle 7 standard development documentation is this description:
From the Application Developers Guide
There is an exception to this restriction.
For single row INSERTs, constraining tables are mutating the For
AFTER row triggers, but not for BEF
您可能关注的文档
- ecshop 快速订购 直接购买 插件(国外英语资料).doc
- edius6.2常用快捷键,后期制作人员必备(国外英语资料).doc
- EC与BIOS间的关系和上电原理(国外英语资料).doc
- EDNOTE使用(国外英语资料).doc
- ED快捷键(国外英语资料).doc
- ED快捷键)(国外英语资料).doc
- Element TD 1.5 cc2006说明文档(国外英语资料).doc
- EIB系统在智能住宅中的应用(国外英语资料).doc
- ELF图文教程(国外英语资料).doc
- em4095(国外英语资料).doc
- Oracle-客户端-使用-expdp_impdp-示例-说明(国外英语资料).doc
- oracle作业(包)(国外英语资料).doc
- Oracle备份恢复(国外英语资料).doc
- oracle回收站Recyclebin对象删除机制(国外英语资料).doc
- Oracle安装日志(国外英语资料).doc
- oracle crs起停步骤及srvctl crsctl 命令用法(国外英语资料).doc
- ORACLE常用数值函数、转换函数、字符串函数介绍(国外英语资料).doc
- oracle建表空间语句(国外英语资料).doc
- Oracle开发知识积累(国外英语资料).doc
- Oracle数据库备份技术(国外英语资料).doc
文档评论(0)