3 下面我们来看测试结果
3.1 采用非PIPELINED方式执行(嵌套表方式返回)
C:\Documents and Settings\Administrator>sqlplus tpcctest/******@102.com
SQL*Plus: Release 10.2.0.4.0 - Production on 星期四 4月 11 16:30:24 2013
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> set timing on
SQL> select count(*) from table(TEST_PIPELLINED.WITH_NOPIPELINED());
COUNT(*)
----------
500000
<span style="color: rgb(255, 0, 0);">已用时间: 00: 00: 29.73</span>
SQL> select count(*) from table(TEST_PIPELLINED.WITH_NOPIPELINED());
COUNT(*)
----------
500000
<span style="color: rgb(255, 0, 0);">已用时间: 00: 00: 29.75</span>
SQL> quit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options 断开
3.2 采用PIPELINED方式执行
C:\Documents and Settings\Administrator>sqlplus tpcctest/******@102.com
SQL*Plus: Release 10.2.0.4.0 - Production on 星期四 4月 11 16:40:03 2013
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> set timing on
SQL> select count(*) from table(TEST_PIPELLINED.WITH_PIPELINED());
COUNT(*)
----------
500000
<span style="color: rgb(255, 0, 0);">已用时间: 00: 00: 01.37</span>
SQL> select count(*) from table(TEST_PIPELLINED.WITH_PIPELINED());
COUNT(*)
----------
500000
<span style="color: rgb(255, 0, 0);">已用时间: 00: 00: 00.25</span>
SQL> select count(*) from table(TEST_PIPELLINED.WITH_PIPELINED());
COUNT(*)
----------
500000
<span style="color: rgb(255, 0, 0);">已用时间: 00: 00: 00.23</span>
SQL> quit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options 断开
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
