oracle并行查询一例
SQL> select /*+parallel (tbl_userinfo 8)*/ count(ui.usin_uid_fk) 2 from table1 av, table2 ui3 where av.av_usse_activatedate >= to_date('20090101', 'yyyymmdd')
4 and av.av_usse_activatedate < to_date('20090401', 'yyyymmdd')
5 and av.av_usse_uid_fk = ui.usin_uid_fk
6 and ui.usin_mcnc_fk like '460%';
COUNT(UI.USIN_UID_FK)
---------------------
1949033
Elapsed: 00:00:20.60
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
2607524 consistent gets
55050 physical reads
0 redo> 395 bytes sent via SQL*Net to client
503 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
页:
[1]