Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question, Mikhail.
Asked: January 20, 2021 - 9:28 am UTC
Last updated: January 21, 2021 - 3:07 pm UTC
Version: 12.1.0.2
Viewed 1000+ times
alter session set workarea_size_policy = manual; alter session set sort_area_size = 5000; set serveroutput off alter session set statistics_level = all; set feed only select /*+ use_hash ( o oi )*/ * from co.orders o join co.order_items oi using ( order_id ); set feed on select * from dbms_xplan.display_cursor ( format => 'ALLSTATS LAST') ; --------------------------------------------------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads | Writes | OMem | 1Mem | Used-Mem | Used-Tmp| --------------------------------------------------------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 1 | | 3914 |00:00:00.08 | 37 | 114 | 29 | | | | | |* 1 | HASH JOIN | | 1 | 3914 | 3914 |00:00:00.08 | 37 | 114 | 29 | 1185K| 1185K| 311K (6)| 1024K| | 2 | TABLE ACCESS FULL| ORDERS | 1 | 1950 | 1950 |00:00:00.01 | 15 | 0 | 0 | | | | | | 3 | TABLE ACCESS FULL| ORDER_ITEMS | 1 | 3914 | 3914 |00:00:00.01 | 22 | 0 | 0 | | | | | --------------------------------------------------------------------------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 1 - access("O"."ORDER_ID"="OI"."ORDER_ID") select operation_type, optimal_executions, onepass_executions, multipasses_executions from v$sql_workarea where sql_id = 'fcrs9ngfh0adu'; OPERATION_TYPE OPTIMAL_EXECUTIONS ONEPASS_EXECUTIONS MULTIPASSES_EXECUTIONS HASH-JOIN 0 0 1
The Oracle documentation contains a complete SQL reference.