Oracle在推出了新的执行计划的同时,还提供了两个控制这个执行计划的提示NATIVE_FULL_OUTER_JOIN和NO_NATIVE_FULL_OUTER_JOIN。
这两个HINT的使用十分简单,不需要其他的任何参数。下面继续上一篇文章的例子:
SQL> SELECT /*+ NO_NATIVE_FULL_OUTER_JOIN */ T1.ID, T2.ID
2 FROM T1 FULL OUTER JOIN T2
3 ON T1.ID = T2.ID;
ID ID
--------------------
2 2
3 3
4 4
5 5
6 6
7 7
8 8
1
0
10
9
已选择11行。
执行计划
----------------------------------------------------------
Plan hash value: 2841162349
-----------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
-----------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 18 | 468 | 17 (6)| 00:00:01 |
| 1 | VIEW | | 18 | 468 | 17 (6)| 00:00:01 |
| 2 | UNION-ALL | | | | | |
|* 3 | HASH JOIN OUTER | | 9 | 234 | 9 (12)| 00:00:01 |
| 4 | TABLE ACCESS FULL| T1 | 9 | 117 | 4 (0)| 00:00:01 |
| 5 | TABLE ACCESS FULL| T2 | 9 | 117 | 4 (0)| 00:00:01 |
|* 6 | HASH JOIN ANTI | | 9 | 234 | 9 (12)| 00:00:01 |
| 7 | TABLE ACCESS FULL| T2 | 9 | 117 | 4 (0)| 00:00:01 |
| 8 | TABLE ACCESS FULL| T1 | 9 | 117 | 4 (0)| 00:00:01 |
-----------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
3 - access("T1"."ID"="T2"."ID"(+))
6 - access("T1"."ID"="T2"."ID")
Note
-----
- dynamic sampling used for this statement (level=2)
统计信息
----------------------------------------------------------
13 recursive calls
0 db block gets
61 consistent gets
0 physical reads
0 redo size
733 bytes sent via SQL*Net to client
520 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
本栏目更多精彩内容:http://www.bianceng.cn/database/Oracle/
以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索access
, table
, 00
, id
, 两个
, hibernate全外连接
full
oracle11g 新增用户名、oracle 11g 内存优化、weblogic11g优化配置、oracle 11g 优化、oracle 11g性能优化,以便于您获取更多的相关知识。