设为首页 加入收藏

TOP

Oracle hint之DRIVING_SITE(二)
2017-04-07 10:24:34 】 浏览:563
Tags:Oracle hint DRIVING_SITE
p; |      |


|*  2 |  HASH JOIN        |            |  327 |  8502 |    10  (10)| 00:00:01 |        |      |


|  3 |    REMOTE          | TEST_REMOTE |  327 |  4251 |    2  (0)| 00:00:01 | TO_S12 | R->S |


|  4 |    TABLE ACCESS FULL| TEST_LOCAL  |  1536 | 19968 |    7  (0)| 00:00:01 |        |      |


---------------------------------------------------------------------------------------------------


Predicate Information (identified by operation id):


---------------------------------------------------


  2 - access("L"."RN"="R"."RN")


Remote SQL Information (identified by operation id):


----------------------------------------------------


  3 - SELECT "RN" FROM "TEST_REMOTE" "R" (accessing


      'TO_S12.REGRESS.RDBMS.DEV.US.ORACLE.COM' )


Note


-----


  - dynamic sampling used for this statement


已选择27行。


已用时间:  00: 00: 00.01


-- 2. 通过driving_site,将本地表test_local发送到远程执行,再将结果集返回本地。耗时0.34m


SQL> select/*+driving_site(r)*/ count(*) from test_local l, test_remote@to_s12 r


  2  where l.rn = r.rn;


  COUNT(*)


----------


      1536


已用时间:  00: 00: 00.34


SQL> explain plan for


  2  select/*+driving_site(r)*/ count(*) from test_local l, test_remote@to_s12 r


  3  where l.rn = r.rn;


已解释。


已用时间:  00: 00: 00.14


SQL> select * from table(dbms_xplan.display);


PLAN_TABLE_OUTPUT


-------------------------------------------------------------------------------------------------------


Plan hash value: 3396146028


------------------------------------------------------------------------------------------------------


| Id  | Operation              | Name        | Rows  | Bytes | Cost (%CPU)| Time    | Inst  |IN-OUT|


------------------------------------------------------------------------------------------------------


|  0 | SELECT STATEMENT REMOTE|            |    1 |    26 |  4970  (1)| 00:01:00 |        |      |


|  1 |  SORT AGGREGATE        |            |    1 |    26 |            |          |        |      |


|*  2 |  HASH JOIN            |            |  327 |  8502 |  4970  (1)| 00:01:00 |        |      |


|  3 |    REMOTE              | TEST_LOCAL  |  327 |  4251 |    3  (0)| 00:00:01 |      ! | R->S |


|  4 |    TABLE ACCESS FULL  | TEST_REMOTE |  1130K|    14M|  4961  (1)| 00:01:00 | DWTEST |      |


--------------------------------------------------------------------------------------------

首页 上一页 1 2 3 下一页 尾页 2/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Linux2.6内核下的MySQL5.5通用包.. 下一篇服务器时间异常造成ORA-00600 [22..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目