设为首页 加入收藏

TOP

游标共享之cursor_sharing=similar(二)
2014-11-24 01:21:42 来源: 作者: 【 】 浏览:15
Tags:游标 共享 cursor_sharing similar
eration id): --------------------------------------------------- 1 - filter("OBJECT_NAME"='bbb') 统计信息 ---------------------------------------------------------- 0 recursive calls 0 db block gets 702 consistent gets 0 physical reads 0 redo size 992 bytes sent via SQL*Net to client 374 bytes received via SQL*Net from client 1 SQL*Net roundtrips to/from client 0 sorts (memory) 0 sorts (disk) 0 rows processed SQL> select /*+test_similar*/* from t where object_name='ccc'; 执行计划 ---------------------------------------------------------- Plan hash value: 1601196873 -------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | -------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 2 | 186 | 149 (1)| 00:00:02 | |* 1 | TABLE ACCESS FULL| T | 2 | 186 | 149 (1)| 00:00:02 | -------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 1 - filter("OBJECT_NAME"='ccc') 统计信息 ---------------------------------------------------------- 0 recursive calls 0 db block gets 702 consistent gets 0 physical reads 0 redo size 992 bytes sent via SQL*Net to client 374 bytes received via SQL*Net from client 1 SQL*Net roundtrips to/from client 0 sorts (memory) 0 sorts (disk) 0 rows processed SQL> select /*+test_similar*/* from t where object_name='ddd'; 执行计划 ---------------------------------------------------------- Plan hash value: 1601196873 -------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | -------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 2 | 186 | 149 (1)| 00:00:02 | |* 1 | TABLE ACCESS FULL| T | 2 | 186 | 149 (1)| 00:00:02 | -------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 1 - filter("OBJECT_NAME"='ddd') 统计信息 ---------------------------------------------------------- 0 recursive calls 0 db block gets 702 consistent gets 0 physical reads 0 redo size 992 bytes sent via SQL*Net to client 374 bytes received via SQL*Net from client 1 SQL*Net roundtrips to/from client 0 sorts (memory) 0 sorts (disk) 0 rows processed SQL> Set autotrace off SQL> select sql_id,child_number,sql_text from v$sql where sql_text like '%/*+test_similar*/%' and sql_text not like '%sql_text%' And sql_text not like '%EXPLAIN PLAN%'; SQL_ID CHILD_NUMBER SQL_TEXT ------------- ------------ --------------------------------------------------------------------------- 2uff8qc1h3jyx 0 select /*+test_similar*/* from t where object_name=:"SYS_B_0"


首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇ora-00257错误以及oracle字符集 下一篇ORACLE函数大全

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: