?
SQL> select * from t3, t4 where t3.id = t4.t3_id;
10000 rows selected.
Execution Plan
----------------------------------------------------------
Plan hash value: 1396201636
---------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
---------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 10000 | 1250K| 35 (3)| 00:00:01 |
|* 1 | HASH JOIN | | 10000 | 1250K| 35 (3)| 00:00:01 |
| 2 | TABLE ACCESS FULL| T3 | 1000 | 63000 | 5 (0)| 00:00:01 |
| 3 | TABLE ACCESS FULL| T4 | 10000 | 634K| 29 (0)| 00:00:01 |
---------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
1 - access("T3"."ID"="T4"."T3_ID")
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
779 consistent gets
0 physical reads
0 redo size
1376470 bytes sent via SQL*Net to client
7745 bytes received via SQL*Net from client
668 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
10000 rows processed
SQL>
select /*+ leading(t3) use_nl(t4) */* from t3, t4 where t3.id = t4.t3_id;
10000 rows selected.
Execution Plan
----------------------------------------------------------
Plan hash value: 2039660043
-----------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
-----------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 10000 | 1250K| 11007 (1)| 00:02:13 |
| 1 | NESTED LOOPS | | | | | |
| 2 | NESTED LOOPS | | 10000 | 1250K| 11007 (1)| 00:02:13 |
| 3 | TABLE ACCESS FULL | T3 | 1000 | 63000 | 5 (0)| 00:00:01 |
|* 4 | INDEX RANGE SCAN | T4_T3_ID | 10 | | 1 (0)| 00:00:01 |
| 5 | TABLE ACCESS BY INDEX ROWID| T4 | 10 | 650 | 11 (0)| 00:00:01 |
-----------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
4 - access("T3"."ID"="T4"."T3_ID")
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
12605 consistent gets
0 physical reads
0 redo size
342258 bytes sent via SQL*Net to client
7745 bytes recei