Oracle数据库中的cursor_sharing参数是一个非常重要的参数,它主要用于控制SQL语句的解析行为。这个参数有三个可能的值:EXACT、FORCE和SIMILAR,每个值都有其特定的用途和影响。 首先,我们来看看EXACT。这是cursor_sharing参数的默认值。当这个参数设置为EXACT时,Oracle会对每个提交的SQL语句进行精确的解
(4)If stored outlines were generated with CURSOR_SHARING set to EXACT, then the database does not use stored outlines generated with literals. To avoid this problem, generate outlines with CURSOR_SHARING set to FORCE or SIMILAR and use the CREATE_STORED_OUTLINES parameter. When deciding whether ...
Cursor_sharing参数有3个值可以设置: 1)、EXACT:通常来说,exact值是Oracle推荐的,也是默认的,它要求SQL语句在完全相同时才会重用,否则会被重新执行硬解析操作。 2)、SIMILAR:similar是在Oracle认为某条SQL语句的谓词条件可能会影响到它的执行计划时,才会被重新分析,否则将重用SQL。 3)、FORCE:force是在任何情况下,...
Cursor_sharing参数有3个值可以设置: 1)、EXACT:通常来说,exact值是Oracle推荐的,也是默认的,它要求SQL语句在完全相同时才会重用,否则会被重新执行硬解析操作。 2)、SIMILAR:similar是在Oracle认为某条SQL语句的谓词条件可能会影响到它的执行计划时,才会被重新分析,否则将重用SQL。 3)、FORCE:force是在任何情况下,...
执行上述sql语句之后,使用select NAME,value from v$sysstat where name='parse count (hard)'查询,其硬解析的值依然是10207,这个就是将cursor_sharing的值为force 的作用,只要sql语句相同,不管谓词值是否相同,都会当成相同的sql,重用之前的cursor,不会进行硬解析。
1.1 CURSOR_SHARING CURSOR_SHARING determines what kind of SQL statements can share the same cursors. Values: (1)FORCE Allows the creation of a new cursor if sharing an existing cursor, or if the cursor plan is not optimal. (2)SIMILAR ...
目前看起来虽然系统没有这样设置但是 应用里面极可能设置了: alter session set cursor_sharing = force 。 因为从v$sqlarea中提取出的sql可能一看出来,现在查询 v$sqlarea.version_count的最大值是485,来自metalink 的bug 列表中显示,当这个数字大于100的时候 就可能导致问题。
1.1 CURSOR_SHARING CURSOR_SHARING determines what kind of SQL statements can share the same cursors. Values: (1)FORCE Allows the creation of a new cursor if sharing an existing cursor, or if the cursor plan is not optimal. (2)SIMILAR ...
1.1 CURSOR_SHARING CURSOR_SHARING determines what kind of SQL statements can share the same cursors. Values: (1)FORCE Allows the creation of a new cursor if sharing an existing cursor, or if the cursor plan is not optimal. (2)SIMILAR ...
阿里云为您提供专业及时的oracle数据库一键上云cursor_sharing的相关问题及解决方案,解决您最关心的oracle数据库一键上云cursor_sharing内容,并提供7x24小时售后支持,点击官网了解更多内容。