当执行一条SQL语句时,产生的对其他SQL语句的调用,这些额外的语句称之为''recursive calls''或''recursive SQL statements''.
触发Recursive Call的几种情况:
如:
(1)我们做一条insert 时,没有足够的空间来保存row记录,Oracle 通过Recursive Call 来动态的分配空间。
(2)执行DDL语句时,ORACLE总是隐含的发出一些recursive SQL语句,来修改数据字典信息,以便成功的执行该DDL语句。
(3)当Shared Pool过小,data dictionary cache 也会相应的过小,没有足够的空间存储ORACLE的系统数据字典信息时,会发生
Recursive calls,这些Recursive calls会将数据字典信息从硬盘读入内存中。
(4)存储过程、触发器内如果有SQL调用的话,也会产生recursive SQL。
Recursive calls can be generated by the following activities:
(1)An object requiring an additional extent for storage (dynamic extension)
(2)Misses on the dictionary cache (in buffer cache)
(3)Firing of database triggers
(4)DDL statements
(5)Execution of SQL statements within stored procedures, packages, functions, and anonymous PL/SQL blocks
(6)Enforcement of referential integrity constraints
(2)Misses on the dictionary cache (in buffer cache)
(3)Firing of database triggers
(4)DDL statements
(5)Execution of SQL statements within stored procedures, packages, functions, and anonymous PL/SQL blocks
(6)Enforcement of referential integrity constraints
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-741416/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/35489/viewspace-741416/
本文详细介绍了SQL语句执行过程中可能引发的递归调用现象,包括插入操作、DDL语句执行、缓存缺失、触发器触发、存储过程调用等多种情况,并解释了这些递归调用的触发机制。
2301

被折叠的 条评论
为什么被折叠?



