Parallel query & views
session 1
SQL> select sid from v$mystat where rownum=1;
SID
----------
18
SQL>select /*+ parallel(a,4) */ * from temp_3006;
----------
18
SQL>select /*+ parallel(a,4) */ * from temp_3006;
print............
session 2
SQL> select sid,qcsid,server#,degree from v$px_session;
SID QCSID SERVER# DEGREE
---------- ---------- ---------- ----------
18 18
21 18 1 4
24 18 2 4
15 18 3 4
20 18 4 4
SQL> select sid,username,program from v$session where sid in (select sid from v$px_session where qcsid=18) order by 3;
---------- ---------- ---------- ----------
18 18
21 18 1 4
24 18 2 4
15 18 3 4
20 18 4 4
SQL> select sid,username,program from v$session where sid in (select sid from v$px_session where qcsid=18) order by 3;
SID USERNAME PROGRAM
---------- ------------------------------ ------------------------------
21 YXY oracle@restore (P000)
24 YXY oracle@restore (P001)
15 YXY oracle@restore (P002)
20 YXY oracle@restore (P003)
18 YXY sqlplus@restore (TNS V1-V3)
---------- ------------------------------ ------------------------------
21 YXY oracle@restore (P000)
24 YXY oracle@restore (P001)
15 YXY oracle@restore (P002)
20 YXY oracle@restore (P003)
18 YXY sqlplus@restore (TNS V1-V3)
[oracle@restore ~]$ ps -ef | grep ora_p | sort | grep -v grep
oracle 2547 1 0 17:48:11 ? 0:00 ora_p000_oramdb
oracle 2549 1 0 17:48:11 ? 0:00 ora_p001_oramdb
oracle 2551 1 0 17:48:11 ? 0:00 ora_p002_oramdb
oracle 2553 1 0 17:48:11 ? 0:00 ora_p003_oramdb
oracle 10186 1 0 Mar 2 ? 1:30 ora_pmon_oramdb
oracle 2547 1 0 17:48:11 ? 0:00 ora_p000_oramdb
oracle 2549 1 0 17:48:11 ? 0:00 ora_p001_oramdb
oracle 2551 1 0 17:48:11 ? 0:00 ora_p002_oramdb
oracle 2553 1 0 17:48:11 ? 0:00 ora_p003_oramdb
oracle 10186 1 0 Mar 2 ? 1:30 ora_pmon_oramdb
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7364032/viewspace-17460/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 關於Parallel queryParallel
- Parallel Query Wait EventsParallelAI
- Oracle並行操作——並行查詢(Parallel Query)Oracle並行Parallel
- Parallel Query Tuning(並行化查詢優化)Parallel並行優化
- alter session force parallel query與執行計劃變化SessionParallel
- How to Get a 10046 trace for a Parallel Query [ID 1102801.1]Parallel
- ORA-12801: error signaled in parallel query server PZ99分析ErrorParallelServer
- DML ViewsView
- oracle hint_no_parallel_no_parallel_indexOracleParallelIndex
- oracle hint_parallel_parallel_indexOracleParallelIndex
- 8.1.1 V$ ViewsView
- 8.1.2 GV$ ViewsView
- External Views (33)View
- Overview of Views (174)View
- Tasks in parallelParallel
- Parallel DMLParallel
- barbajs-ViewsJSView
- Some Dictionary Views For ASMViewASM
- Views and Base Tables (243)View
- How Views are Stored (175)View
- How Views Are Used (176)View
- Mechanics of Views (177)View
- Dependencies and Views (180)View
- Object Views (182)ObjectView
- Oracle's V$ Views(轉)OracleView
- About Static Data Dictionary ViewsView
- Views with the Prefix USER (267)View
- Views with the Prefix ALL (268)View
- Views with the Prefix DBA (269)View
- Globalization Support Parameters in Views (178)View
- Updatable Join Views (181)View
- Overview of Materialized Views (184)ViewZed
- Refresh Materialized Views (189)ZedView
- about datapump parallelParallel
- 並行(Parallel)並行Parallel
- Oracle Parallel ParametersOracleParallel
- Oracle's ParallelOracleParallel
- Oracle Parallel ExecutionOracleParallel