Oracle11.2.0.1.0下ACS测试(三)

2015-01-22 21:55:33 · 作者: · 浏览: 32
------------------------ select * from test where name=:ccc Plan hash value: 1357081020 -------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | -------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | | | 2663 (100)| | |* 1 | TABLE ACCESS FULL| TEST | 50000 | 43M| 2663 (1)| 00:00:38 | -------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 1 - filter("NAME"=:CCC) SQL> exec :ccc:='100'; SQL> set autotrace trace stat SQL> select * from test where name=:ccc; 已选择99999行。 统计信息 ---------------------------------------------------------- 0 recursive calls 0 db block gets 13515 consistent gets 0 physical reads 0 redo size 1564422 bytes sent via SQL*Net to client 73664 bytes received via SQL*Net from client 6668 SQL*Net roundtrips to/from client 0 sorts (memory) 0 sorts (disk) 99999 rows processed SQL>
set autotrace off SQL> select hash_value, child_number from v$sql where sql_text = 'select * from test where name=:ccc'; HASH_VALUE CHILD_NUMBER ---------- ------------ 1301684711 0 SQL> exec :ccc:='100'; SQL> set autotrace trace stat SQL> select * from test where name=:ccc; 已选择99999行。 统计信息 ---------------------------------------------------------- 0 recursive calls 0 db block gets 13515 consistent gets 0 physical reads 0 redo size 1564422 bytes sent via SQL*Net to client 73664 bytes received via SQL*Net from client 6668 SQL*Net roundtrips to/from client 0 sorts (memory) 0 sorts (disk) 99999 rows processed SQL> set autotrace off SQL> select hash_value, child_number from v$sql where sql_text = 'select * from test where name=:ccc'; HASH_VALUE CHILD_NUMBER ---------- ------------ 1301684711 0

?