테이블이 생성되었습니다.
SQL> exec dbms_stats.gather_table_stats(user, '고객');
PL/SQL 처리가 정상적으로 완료되었습니다.
{CODE}
Execution Plan
Id | Operation | Name | Rows | Bytes | Cost (%CPU) | Time | TQ | IN-OUT | PQ Distrib |
0 | SELECT STATEMENT | 1000 | 18000 | 3 (34) | 00:00:01 | ||||
1 | PX COORDINATOR | ||||||||
2 | PX SEND QC (ORDER) | :TQ10001 | 1000 | 18000 | 3 (34) | 00:00:01 | Q1,01 | P->S | QC (ORDER) |
3 | SORT ORDER BY | 1000 | 18000 | 3 (34) | 00:00:01 | Q1,01 | PCWP | ||
4 | PX RECEIVE | 1000 | 18000 | 2 (0) | 00:00:01 | Q1,01 | PCWP | ||
5 | PX SEND RANGE | :TQ10000 | 1000 | 18000 | 2 (0) | 00:00:01 | Q1,00 | P->P | RANGE |
6 | PX BLOCK ITERATOR | 1000 | 18000 | 2 (0) | 00:00:01 | Q1,00 | PCWC | ||
7 | TABLE ACCESS FULL | 고객 | 1000 | 18000 | 2 (0) | 00:00:01 | Q1,00 | PCWP |
...
1000 개의 행이 선택되었습니다.
SQL> break on dfo_no on tq_id on server_type
SQL> SELECT tq_id
2 , server_type
3 , process
4 , num_rows
5 , bytes
6 , waits
7 FROM v$pq_tqstat
8 ORDER BY dfo_number
9 , tq_id
10 , DECODE(SUBSTR(server_type, 1, 4), 'Rang', 1, 'Prod', 2, 'Cons', 3)
11 , process
12 ;
TQ_ID SERVER_TYPE PROCESS NUM_ROWS BYTES WAITS
8 개의 행이 선택되었습니다.
{CODE}
Execution Plan
Id | Operation | Name | Rows | Bytes | Cost (%CPU) | Time | TQ | IN-OUT | PQ Distrib |
0 | SELECT STATEMENT | 1000 | 11000 | 3 (34) | 00:00:01 | ||||
1 | PX COORDINATOR | ||||||||
2 | PX SEND QC (RANDOM) | :TQ10001 | 1000 | 11000 | 3 (34) | 00:00:01 | Q1,01 | P->S | QC (RAND) |
3 | HASH GROUP BY | 1000 | 11000 | 3 (34) | 00:00:01 | Q1,01 | PCWP | ||
4 | PX RECEIVE | 1000 | 11000 | 2 (0) | 00:00:01 | Q1,01 | PCWP | ||
5 | PX SEND HASH | :TQ10000 | 1000 | 11000 | 2 (0) | 00:00:01 | Q1,00 | P->P | HASH |
6 | PX BLOCK ITERATOR | 1000 | 11000 | 2 (0) | 00:00:01 | Q1,00 | PCWC | ||
7 | TABLE ACCESS FULL | 고객 | 1000 | 11000 | 2 (0) | 00:00:01 | Q1,00 | PCWP |
...
1000 개의 행이 선택되었습니다.
SQL> break on dfo_no on tq_id on server_type
SQL> SELECT tq_id
2 , server_type
3 , process
4 , num_rows
5 , bytes
6 , waits
7 FROM v$pq_tqstat
8 ORDER BY dfo_number
9 , tq_id
10 , DECODE(SUBSTR(server_type, 1, 4), 'Rang', 1, 'Prod', 2, 'Cons', 3)
11 , process
12 ;
TQ_ID SERVER_TYPE PROCESS NUM_ROWS BYTES WAITS
7 개의 행이 선택되었습니다.
{CODE}
Execution Plan
Id | Operation | Name | Rows | Bytes | Cost (%CPU) | Time | TQ | IN-OUT | PQ Distrib |
0 | SELECT STATEMENT | 1000 | 11000 | 3 (34) | 00:00:01 | ||||
1 | PX COORDINATOR | ||||||||
2 | PX SEND QC (ORDER) | :TQ10001 | 1000 | 11000 | 3 (34) | 00:00:01 | Q1,01 | P->S | QC (ORDER) |
3 | SORT GROUP BY | 1000 | 11000 | 3 (34) | 00:00:01 | Q1,01 | PCWP | ||
4 | PX RECEIVE | 1000 | 11000 | 2 (0) | 00:00:01 | Q1,01 | PCWP | ||
5 | PX SEND RANGE | :TQ10000 | 1000 | 11000 | 2 (0) | 00:00:01 | Q1,00 | P->P | RANGE |
6 | PX BLOCK ITERATOR | 1000 | 11000 | 2 (0) | 00:00:01 | Q1,00 | PCWC | ||
7 | TABLE ACCESS FULL | 고객 | 1000 | 11000 | 2 (0) | 00:00:01 | Q1,00 | PCWP |
...
1000 개의 행이 선택되었습니다.
SQL>
SQL> break on dfo_no on tq_id on server_type
SQL> SELECT tq_id
2 , server_type
3 , process
4 , num_rows
5 , bytes
6 , waits
7 FROM v$pq_tqstat
8 ORDER BY dfo_number
9 , tq_id
10 , DECODE(SUBSTR(server_type, 1, 4), 'Rang', 1, 'Prod', 2, 'Cons', 3)
11 , process
12 ;
TQ_ID SERVER_TYPE PROCESS NUM_ROWS BYTES WAITS
8 개의 행이 선택되었습니다.
{CODE}
Execution Plan
Id | Operation | Name | Rows | Bytes | Cost (%CPU) | Time | TQ | IN-OUT | PQ Distrib |
0 | SELECT STATEMENT | 10 | 30 | 3 (34) | 00:00:01 | ||||
1 | PX COORDINATOR | ||||||||
2 | PX SEND QC (RANDOM) | :TQ10001 | 10 | 30 | 3 (34) | 00:00:01 | Q1,01 | P->S | QC (RAND) |
3 | HASH GROUP BY | 10 | 30 | 3 (34) | 00:00:01 | Q1,01 | PCWP | ||
4 | PX RECEIVE | 10 | 30 | 3 (34) | 00:00:01 | Q1,01 | PCWP | ||
5 | PX SEND HASH | :TQ10000 | 10 | 30 | 3 (34) | 00:00:01 | Q1,00 | P->P | HASH |
6 | HASH GROUP BY | 10 | 30 | 3 (34) | 00:00:01 | Q1,00 | PCWP | ||
7 | PX BLOCK ITERATOR | 1000 | 3000 | 2 (0) | 00:00:01 | Q1,00 | PCWC | ||
8 | TABLE ACCESS FULL | 고객 | 1000 | 3000 | 2 (0) | 00:00:01 | Q1,00 | PCWP |
고객등급 CNT
10 개의 행이 선택되었습니다.
SQL> break on dfo_no on tq_id on server_type
SQL> SELECT tq_id
2 , server_type
3 , process
4 , num_rows
5 , bytes
6 , waits
7 FROM v$pq_tqstat
8 ORDER BY dfo_number
9 , tq_id
10 , DECODE(SUBSTR(server_type, 1, 4), 'Rang', 1, 'Prod', 2, 'Cons', 3)
11 , process
12 ;
TQ_ID SERVER_TYPE PROCESS NUM_ROWS BYTES WAITS
7 개의 행이 선택되었습니다.
{CODE}
COLUMN_NAME NUM_DISTINCT NUM_NULLS SELECTIVITY CARDINALITY