1.1

Table Of Contents
You receive output similar to:
MEMBER_PLAN
--------------------------------------------------------------------------------------------------------------------------------
ORIGINATOR peridot(38741)<v1>:27275 BEGIN TIME 2013-01-30 15:28:12.63
END TIME 2013-01-30 15:28:12.691
DISTRIBUTION to 1 members&
Slowest Member Plan:
member peridot(38733):2790 begin_execution 2013-01-30 15:28:12.632
end_execution 2013-01-30 15:28:12.68&
Fastest Member Plan:
member peridot(38733):2790 begin_execution 2013-01-30 15:28:12.632
end_execution 2013-01-30 15:28:12.68&
In this example, the query is distributed from the peer client (the ORIGINATOR) to the single data store in
the cluster. As there is only one data store member in the cluster, the fastest and slowest plans reported in
the output refer to the same plan.
6.
Query the sys.statementplans table to determine the statement ID (STMT_ID) of the query plan you
generated:
select STMT_ID, STMT_TEXT from SYS.STATEMENTPLANS;
You receive output similar to:
STMT_ID |STMT_TEXT
--------------------------------------------------------------------------------------------------------------------------------------------------------------
00000001-ffff-ffff-ffff-00010000050f| select * from flights f,
flightavailability fa where f.flight_id=fa.flight_id and f.flight_id=<?>
1 row selected
7.
Copy the STMT_ID (00000001-ffff-ffff-ffff-00010000050f in the above example) and paste it into a new
EXPLAIN command to display the full query plan:
EXPLAIN '00000001-ffff-ffff-ffff-00010000050f';
You receive output similar to:
stmt_id 00000001-ffff-ffff-ffff-00010000050f SQL_stmt select * from
flights f, flightavailability fa where f.flight_id=fa.flight_id and
f.flight_id=<?> begin_execution 2013-01-30 15:28:12.63 end_execution
2013-01-30 15:28:12.691
QUERY-SCATTER execute_time 54.8 ms member_node peridot(38733):2790
QUERY-SEND execute_time 0.291 ms member_node peridot(38733):2790
RESULT-RECEIVE execute_time 0.154 ms member_node peridot(38733):2790
SEQUENTIAL-ITERATION (2.41%) execute_time 1.384 ms returned_rows
14 no_opens 1
RESULT-HOLDER execute_time 1.296 ms returned_rows 14 no_opens
1 member_node peridot(38733):2790
DISTRIBUTION-END (97.58%) execute_time 55.937 ms returned_rows
14
member peridot(38733):2790 begin_execution 2013-01-30 15:28:12.632
end_execution 2013-01-30 15:28:12.685
QUERY-RECEIVE execute_time 53.474 ms member_node peridot(38741)<v1>:27275
RESULT-SEND execute_time 0.045 ms member_node peridot(38741)<v1>:27275
RESULT-HOLDER execute_time 2.752 ms returned_rows 14 no_opens 1
269
Evaluating Query Plans and Query Statistics