SQL Monitor Report

trace_id query_sql RETURN_ROWS REQUEST_TIME REQUEST_END_TIME ELAPSED_TIME TENANT_NAME user_name db_name plan_id tenant_id mysql_version svr_ip svr_port params_value
YB42C0A8001A-000644EA3E986579-0-0 SELECT /*ligang1603*/ a.order_id, a.use_type, ( SELECT COUNT( 1 ) FROM t_order_file g,t_file h WHERE g.order_id = a.order_id AND h.file_id = g.file_id AND (h.sensi_flag is null OR h.sensi_flag in (1,1000))) unfinished_count, ( SELECT COUNT( 1 ) FROM t_order_file g,t_file h WHERE g.order_id = a.order_id AND h.file_id = g.file_id AND h.sensi_flag in (2,96,97) ) sensi_count, ( SELECT COUNT( 1 ) FROM t_order_file g,t_file h WHERE g.order_id = a.order_id AND h.file_id = g.file_id AND h.sensi_flag in (98,99)) black_count, u.censor_flag,u.sensi_handle_flag FROM t_order a LEFT JOIN t_set s ON a.set_id = s.set_id LEFT JOIN t_set_security_policy t on s.set_id = t.set_id LEFT JOIN t_security_policy u on t.policy_id = u.policy_id WHERE a.state_date > DATE_ADD(now(),INTERVAL - 3 HOUR) and a.r_tenant_id = 'woqu' AND a.state_date < DATE_ADD(now(),INTERVAL - 60 SECOND) AND a.state = '00' AND a.checked_flag is null 0 2025-12-08 16:08:01.923100 2025-12-08 16:08:52.626000 50702838 woqu rd_read cprint 135532 1002 5.7.25-OceanBase_CE-v4.4.1.0 192.168.0.26 2882
explain extended SELECT /*ligang1603*/         a.order_id,         a.use_type,         ( SELECT COUNT( 1 ) FROM t_order_file g,t_file h WHERE g.order_id = a.order_id AND h.file_id = g.file_id AND         (h.sensi_flag is null OR h.sensi_flag in (1,1000))) unfinished_count,         ( SELECT COUNT( 1 ) FROM t_order_file g,t_file h WHERE g.order_id = a.order_id AND h.file_id = g.file_id AND         h.sensi_flag in (2,96,97) ) sensi_count,         ( SELECT COUNT( 1 ) FROM t_order_file g,t_file h WHERE g.order_id = a.order_id AND h.file_id = g.file_id AND         h.sensi_flag in (98,99)) black_count,         u.censor_flag,u.sensi_handle_flag         FROM         t_order a         LEFT JOIN t_set s ON a.set_id = s.set_id         LEFT JOIN t_set_security_policy t on s.set_id = t.set_id         LEFT JOIN t_security_policy u on t.policy_id = u.policy_id         WHERE         a.state_date > DATE_ADD(now(),INTERVAL - 3 HOUR) and a.r_tenant_id = 'woqu'         AND a.state_date  <  DATE_ADD(now(),INTERVAL - 60 SECOND)         AND a.state = '00'         AND a.checked_flag is null
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Query Plan                                                                                                                                                                                                                                       |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| =====================================================================================                                                                                                                                                            |
| |ID|OPERATOR                                  |NAME           |EST.ROWS|EST.TIME(us)|                                                                                                                                                            |
| -------------------------------------------------------------------------------------                                                                                                                                                            |
| |0 |SUBPLAN FILTER                            |               |1       |16005892    |                                                                                                                                                            |
| |1 |├─HASH OUTER JOIN                         |               |1       |56298       |                                                                                                                                                            |
| |2 |│ ├─NESTED-LOOP OUTER JOIN                |               |1       |56295       |                                                                                                                                                            |
| |3 |│ │ ├─PX COORDINATOR                      |               |1       |56274       |                                                                                                                                                            |
| |4 |│ │ │ └─EXCHANGE OUT DISTR                |:EX10001       |1       |56274       |                                                                                                                                                            |
| |5 |│ │ │   └─NESTED-LOOP OUTER JOIN          |               |1       |56273       |                                                                                                                                                            |
| |6 |│ │ │     ├─EXCHANGE IN DISTR             |               |1       |56261       |                                                                                                                                                            |
| |7 |│ │ │     │ └─EXCHANGE OUT DISTR (BC2HOST)|:EX10000       |1       |56260       |                                                                                                                                                            |
| |8 |│ │ │     │   └─TABLE RANGE SCAN          |a(idx_10)      |1       |56258       |                                                                                                                                                            |
| |9 |│ │ │     └─TABLE GET                     |s              |1       |16          |                                                                                                                                                            |
| |10|│ │ └─TABLE GET                           |t(udx_set_id)  |1       |27          |                                                                                                                                                            |
| |11|│ └─TABLE FULL SCAN                       |u              |6       |3           |                                                                                                                                                            |
| |12|├─PX COORDINATOR                          |               |1       |15858838    |                                                                                                                                                            |
| |13|│ └─EXCHANGE OUT DISTR                    |:EX20001       |1       |15858838    |                                                                                                                                                            |
| |14|│   └─SCALAR GROUP BY                     |               |1       |15858838    |                                                                                                                                                            |
| |15|│     └─NESTED-LOOP JOIN                  |               |6       |15858838    |                                                                                                                                                            |
| |16|│       ├─EXCHANGE IN DISTR               |               |501990  |637684      |                                                                                                                                                            |
| |17|│       │ └─EXCHANGE OUT DISTR (BC2HOST)  |:EX20000       |501990  |451269      |                                                                                                                                                            |
| |18|│       │   └─TABLE RANGE SCAN            |h(i_sensi_flag)|501990  |33203       |                                                                                                                                                            |
| |19|│       └─TABLE RANGE SCAN                |g(idx_4)       |1       |30          |                                                                                                                                                            |
| |20|├─PX COORDINATOR                          |               |1       |33985       |                                                                                                                                                            |
| |21|│ └─EXCHANGE OUT DISTR                    |:EX30001       |1       |33985       |                                                                                                                                                            |
| |22|│   └─SCALAR GROUP BY                     |               |1       |33984       |                                                                                                                                                            |
| |23|│     └─NESTED-LOOP JOIN                  |               |6       |33984       |                                                                                                                                                            |
| |24|│       ├─EXCHANGE IN DISTR               |               |1075    |1388        |                                                                                                                                                            |
| |25|│       │ └─EXCHANGE OUT DISTR (BC2HOST)  |:EX30000       |1075    |989         |                                                                                                                                                            |
| |26|│       │   └─TABLE RANGE SCAN            |h(i_sensi_flag)|1075    |94          |                                                                                                                                                            |
| |27|│       └─TABLE RANGE SCAN                |g(idx_4)       |1       |30          |                                                                                                                                                            |
| |28|└─PX COORDINATOR                          |               |1       |55577       |                                                                                                                                                            |
| |29|  └─EXCHANGE OUT DISTR                    |:EX40001       |1       |55577       |                                                                                                                                                            |
| |30|    └─SCALAR GROUP BY                     |               |1       |55576       |                                                                                                                                                            |
| |31|      └─NESTED-LOOP JOIN                  |               |6       |55576       |                                                                                                                                                            |
| |32|        ├─EXCHANGE IN DISTR               |               |1760    |2210        |                                                                                                                                                            |
| |33|        │ └─EXCHANGE OUT DISTR (BC2HOST)  |:EX40000       |1760    |1557        |                                                                                                                                                            |
| |34|        │   └─TABLE RANGE SCAN            |h(i_sensi_flag)|1760    |91          |                                                                                                                                                            |
| |35|        └─TABLE RANGE SCAN                |g(idx_4)       |1       |30          |                                                                                                                                                            |
| =====================================================================================                                                                                                                                                            |
| Outputs & filters:                                                                                                                                                                                                                               |
| -------------------------------------                                                                                                                                                                                                            |
|   0 - output([a.order_id(0x7fd1f063dfa0)], [a.use_type(0x7fd1f063e2f0)], [subquery(1)(0x7fd1f063e490)], [subquery(2)(0x7fd1f0667490)], [subquery(3)(0x7fd1f067c890)],                                                                            |
|        [u.censor_flag(0x7fd1f06a4e30)], [u.sensi_handle_flag(0x7fd1f06a5180)]), filter(nil), rowset=256                                                                                                                                          |
|       exec_params_([a.order_id(0x7fd1f063dfa0)(:0(0x7fd1f06653f0))], [a.order_id(0x7fd1f063dfa0)(:1(0x7fd1f067aeb0))], [a.order_id(0x7fd1f063dfa0)(:2(0x7fd1f06a33f0))]),                                                                        |
|        onetime_exprs_(nil), init_plan_idxs_(nil), use_batch=false                                                                                                                                                                                |
|   1 - output([a.order_id(0x7fd1f063dfa0)], [a.use_type(0x7fd1f063e2f0)], [u.censor_flag(0x7fd1f06a4e30)], [u.sensi_handle_flag(0x7fd1f06a5180)]), filter(nil), rowset=256                                                                        |
|       equal_conds([t.policy_id(0x7fd1f063a580) = u.policy_id(0x7fd1f063a710)(0x7fd1f063a430)]), other_conds(nil)                                                                                                                                 |
|   2 - output([a.order_id(0x7fd1f063dfa0)], [a.use_type(0x7fd1f063e2f0)], [t.policy_id(0x7fd1f063a580)]), filter(nil), rowset=256                                                                                                                 |
|       conds(nil), nl_params_([s.set_id(0x7fd1f0637090)(:4(0x7fd1feaa01a0))]), use_batch=true                                                                                                                                                     |
|   3 - output([a.order_id(0x7fd1f063dfa0)], [a.use_type(0x7fd1f063e2f0)], [s.set_id(0x7fd1f0637090)]), filter(nil), rowset=256                                                                                                                    |
|   4 - output([a.order_id(0x7fd1f063dfa0)], [a.use_type(0x7fd1f063e2f0)], [s.set_id(0x7fd1f0637090)]), filter(nil), rowset=256                                                                                                                    |
|       is_single, dop=1                                                                                                                                                                                                                           |
|   5 - output([a.order_id(0x7fd1f063dfa0)], [a.use_type(0x7fd1f063e2f0)], [s.set_id(0x7fd1f0637090)]), filter(nil), rowset=256                                                                                                                    |
|       conds(nil), nl_params_([a.set_id(0x7fd1f0636f00)(:3(0x7fd1fea87ba0))]), use_batch=true                                                                                                                                                     |
|   6 - output([a.order_id(0x7fd1f063dfa0)], [a.use_type(0x7fd1f063e2f0)], [a.set_id(0x7fd1f0636f00)]), filter(nil), rowset=256                                                                                                                    |
|   7 - output([a.order_id(0x7fd1f063dfa0)], [a.use_type(0x7fd1f063e2f0)], [a.set_id(0x7fd1f0636f00)]), filter(nil), rowset=256                                                                                                                    |
|       is_single, dop=1                                                                                                                                                                                                                           |
|   8 - output([a.order_id(0x7fd1f063dfa0)], [a.set_id(0x7fd1f0636f00)], [a.use_type(0x7fd1f063e2f0)]), filter([a.state_date(0x7fd1f063b410) > date_add(current_timestamp()(0x7fd1f063ae00),                                                       |
|        cast(-3(0x7fd1f063af40), VARCHAR(1048576))(0x7fd1f063b680), 3)(0x7fd1f063ac90)(0x7fd1f063b2c0)], [a.checked_flag(0x7fd1f063db60) IS NULL(0x7fd1f063da10)],                                                                                |
|        [a.r_tenant_id(0x7fd1f063bf90) = 'woqu'(0x7fd1f063bcf0)(0x7fd1f063be40)], [a.state_date(0x7fd1f063b410) < date_add(current_timestamp()(0x7fd1f063ae00),                                                                                   |
|        cast(-60(0x7fd1f063c690), VARCHAR(1048576))(0x7fd1f063cb60), 1)(0x7fd1f063c3e0)(0x7fd1f063ca10)]), rowset=256                                                                                                                             |
|       access([a.order_id(0x7fd1f063dfa0)], [a.set_id(0x7fd1f0636f00)], [a.state_date(0x7fd1f063b410)], [a.r_tenant_id(0x7fd1f063bf90)], [a.checked_flag(0x7fd1f063db60)],                                                                        |
|        [a.use_type(0x7fd1f063e2f0)]), partitions(p0)                                                                                                                                                                                             |
|       is_index_back=true, is_global_index=false, filter_before_indexback[true,false,false,true],                                                                                                                                                 |
|       range_key([a.state(0x7fd1f063d470)], [a.exec_print_flag(0x7fd1f07725d0)], [a.use_type(0x7fd1f063e2f0)], [a.print_mode(0x7fd1f0772760)], [a.state_date(0x7fd1f063b410)],                                                                    |
|        [a.order_id(0x7fd1f063dfa0)]), range(00,MIN,MIN,MIN,MIN,MIN ; 00,MAX,MAX,MAX,MAX,MAX),                                                                                                                                                    |
|       range_cond([a.state(0x7fd1f063d470) = '00'(0x7fd1f063d1d0)(0x7fd1f063d320)])                                                                                                                                                               |
|   9 - output([s.set_id(0x7fd1f0637090)]), filter(nil), rowset=256                                                                                                                                                                                |
|       access([GROUP_ID(0x7fd5111257c0)], [s.set_id(0x7fd1f0637090)]), partitions(p0)                                                                                                                                                             |
|       is_index_back=false, is_global_index=false,                                                                                                                                                                                                |
|       range_key([s.set_id(0x7fd1f0637090)]), range(MIN ; MAX),                                                                                                                                                                                   |
|       range_cond([:3(0x7fd1fea87ba0) = s.set_id(0x7fd1f0637090)(0x7fd1fea87d10)]),  is_fast_range = true                                                                                                                                         |
|  10 - output([t.policy_id(0x7fd1f063a580)]), filter(nil), rowset=256                                                                                                                                                                             |
|       access([GROUP_ID(0x7fd5111258c0)], [t.id(0x7fd1f06a7680)], [t.policy_id(0x7fd1f063a580)]), partitions(p0)                                                                                                                                  |
|       is_index_back=true, is_global_index=false,                                                                                                                                                                                                 |
|       range_key([t.set_id(0x7fd1f0639a90)], [t.shadow_pk_0(0x7fd1fea5e3d0)]), range(MIN ; MAX),                                                                                                                                                  |
|       range_cond([:4(0x7fd1feaa01a0) = t.set_id(0x7fd1f0639a90)(0x7fd1feaa0310)]),  is_fast_range = true                                                                                                                                         |
|  11 - output([u.policy_id(0x7fd1f063a710)], [u.censor_flag(0x7fd1f06a4e30)], [u.sensi_handle_flag(0x7fd1f06a5180)]), filter(nil), rowset=256                                                                                                     |
|       access([u.policy_id(0x7fd1f063a710)], [u.censor_flag(0x7fd1f06a4e30)], [u.sensi_handle_flag(0x7fd1f06a5180)]), partitions(p0)                                                                                                              |
|       is_index_back=false, is_global_index=false,                                                                                                                                                                                                |
|       range_key([u.policy_id(0x7fd1f063a710)]), range(MIN ; MAX)always true                                                                                                                                                                      |
|  12 - output([T_FUN_COUNT(*)(0x7fd1f06670d0)]), filter(nil), rowset=256                                                                                                                                                                          |
|  13 - output([T_FUN_COUNT(*)(0x7fd1f06670d0)]), filter(nil), rowset=256                                                                                                                                                                          |
|       is_single, dop=1                                                                                                                                                                                                                           |
|  14 - output([T_FUN_COUNT(*)(0x7fd1f06670d0)]), filter(nil), rowset=256                                                                                                                                                                          |
|       group(nil), agg_func([T_FUN_COUNT(*)(0x7fd1f06670d0)])                                                                                                                                                                                     |
|  15 - output(nil), filter(nil), rowset=256                                                                                                                                                                                                       |
|       conds(nil), nl_params_([h.file_id(0x7fd1f0665b20)(:7(0x7fd58045e9a0))]), use_batch=true                                                                                                                                                    |
|  16 - output([h.file_id(0x7fd1f0665b20)]), filter(nil), rowset=256                                                                                                                                                                               |
|  17 - output([h.file_id(0x7fd1f0665b20)]), filter(nil), rowset=256                                                                                                                                                                               |
|       is_single, dop=1                                                                                                                                                                                                                           |
|  18 - output([h.file_id(0x7fd1f0665b20)]), filter(nil), rowset=256                                                                                                                                                                               |
|       access([h.file_id(0x7fd1f0665b20)]), partitions(p0)                                                                                                                                                                                        |
|       is_index_back=false, is_global_index=false,                                                                                                                                                                                                |
|       range_key([h.sensi_flag(0x7fd1f0666c80)], [h.upload_time(0x7fd1febe74c0)], [h.file_id(0x7fd1f0665b20)]), range(NULL,MIN,MIN ; NULL,MAX,MAX), (1,MIN,                                                                                       |
|       MIN ; 1,MAX,MAX), (1000,MIN,MIN ; 1000,MAX,MAX),                                                                                                                                                                                           |
|       range_cond([h.sensi_flag(0x7fd1f0666c80) IS NULL(0x7fd1f0666440) OR h.sensi_flag(0x7fd1f0666c80) IN (1(0x7fd1f06669c0), 1000(0x7fd1f0666b10))(0x7fd1f06b33e0)(0x7fd1f0666590)(0x7fd1f0665ff0)])                                            |
|  19 - output(nil), filter([g.order_id(0x7fd1f0665260) = :0(0x7fd1f06653f0)(0x7fd1f0665110)]), rowset=256                                                                                                                                         |
|       access([GROUP_ID(0x7fd5111259c0)], [g.order_file_id(0x7fd1f06a69f0)], [g.order_id(0x7fd1f0665260)]), partitions(p0)                                                                                                                        |
|       is_index_back=true, is_global_index=false, filter_before_indexback[false],                                                                                                                                                                 |
|       range_key([g.file_id(0x7fd1f0665cb0)], [g.order_file_id(0x7fd1f06a69f0)]), range(MIN ; MAX),                                                                                                                                               |
|       range_cond([:7(0x7fd58045e9a0) = g.file_id(0x7fd1f0665cb0)(0x7fd58045eb10)]),  is_fast_range = true                                                                                                                                        |
|  20 - output([T_FUN_COUNT(*)(0x7fd1f067c4d0)]), filter(nil), rowset=256                                                                                                                                                                          |
|  21 - output([T_FUN_COUNT(*)(0x7fd1f067c4d0)]), filter(nil), rowset=256                                                                                                                                                                          |
|       is_single, dop=1                                                                                                                                                                                                                           |
|  22 - output([T_FUN_COUNT(*)(0x7fd1f067c4d0)]), filter(nil), rowset=256                                                                                                                                                                          |
|       group(nil), agg_func([T_FUN_COUNT(*)(0x7fd1f067c4d0)])                                                                                                                                                                                     |
|  23 - output(nil), filter(nil), rowset=256                                                                                                                                                                                                       |
|       conds(nil), nl_params_([h.file_id(0x7fd1f067b5e0)(:9(0x7fd62cc1cda0))]), use_batch=true                                                                                                                                                    |
|  24 - output([h.file_id(0x7fd1f067b5e0)]), filter(nil), rowset=256                                                                                                                                                                               |
|  25 - output([h.file_id(0x7fd1f067b5e0)]), filter(nil), rowset=256                                                                                                                                                                               |
|       is_single, dop=1                                                                                                                                                                                                                           |
|  26 - output([h.file_id(0x7fd1f067b5e0)]), filter(nil), rowset=256                                                                                                                                                                               |
|       access([h.file_id(0x7fd1f067b5e0)]), partitions(p0)                                                                                                                                                                                        |
|       is_index_back=false, is_global_index=false,                                                                                                                                                                                                |
|       range_key([h.sensi_flag(0x7fd1f067c250)], [h.upload_time(0x7fd5805ab350)], [h.file_id(0x7fd1f067b5e0)]), range(2,MIN,MIN ; 2,MAX,MAX), (96,MIN,MIN                                                                                         |
|       ; 96,MAX,MAX), (97,MIN,MIN ; 97,MAX,MAX),                                                                                                                                                                                                  |
|       range_cond([h.sensi_flag(0x7fd1f067c250) IN (2(0x7fd1f067be40), 96(0x7fd1f067bf90), 97(0x7fd1f067c0e0))(0x7fd1f06b3530)(0x7fd1f067ba10)])                                                                                                  |
|  27 - output(nil), filter([g.order_id(0x7fd1f067ad20) = :1(0x7fd1f067aeb0)(0x7fd1f067abd0)]), rowset=256                                                                                                                                         |
|       access([GROUP_ID(0x7fd511125f60)], [g.order_file_id(0x7fd1f06a6e20)], [g.order_id(0x7fd1f067ad20)]), partitions(p0)                                                                                                                        |
|       is_index_back=true, is_global_index=false, filter_before_indexback[false],                                                                                                                                                                 |
|       range_key([g.file_id(0x7fd1f067b770)], [g.order_file_id(0x7fd1f06a6e20)]), range(MIN ; MAX),                                                                                                                                               |
|       range_cond([:9(0x7fd62cc1cda0) = g.file_id(0x7fd1f067b770)(0x7fd62cc1cf10)]),  is_fast_range = true                                                                                                                                        |
|  28 - output([T_FUN_COUNT(*)(0x7fd1f06a48c0)]), filter(nil), rowset=256                                                                                                                                                                          |
|  29 - output([T_FUN_COUNT(*)(0x7fd1f06a48c0)]), filter(nil), rowset=256                                                                                                                                                                          |
|       is_single, dop=1                                                                                                                                                                                                                           |
|  30 - output([T_FUN_COUNT(*)(0x7fd1f06a48c0)]), filter(nil), rowset=256                                                                                                                                                                          |
|       group(nil), agg_func([T_FUN_COUNT(*)(0x7fd1f06a48c0)])                                                                                                                                                                                     |
|  31 - output(nil), filter(nil), rowset=256                                                                                                                                                                                                       |
|       conds(nil), nl_params_([h.file_id(0x7fd1f06a3b20)(:11(0x7fd62cdccfe0))]), use_batch=true                                                                                                                                                   |
|  32 - output([h.file_id(0x7fd1f06a3b20)]), filter(nil), rowset=256                                                                                                                                                                               |
|  33 - output([h.file_id(0x7fd1f06a3b20)]), filter(nil), rowset=256                                                                                                                                                                               |
|       is_single, dop=1                                                                                                                                                                                                                           |
|  34 - output([h.file_id(0x7fd1f06a3b20)]), filter(nil), rowset=256                                                                                                                                                                               |
|       access([h.file_id(0x7fd1f06a3b20)]), partitions(p0)                                                                                                                                                                                        |
|       is_index_back=false, is_global_index=false,                                                                                                                                                                                                |
|       range_key([h.sensi_flag(0x7fd1f06a4640)], [h.upload_time(0x7fd62cd6b440)], [h.file_id(0x7fd1f06a3b20)]), range(98,MIN,MIN ; 98,MAX,MAX), (99,MIN,MIN                                                                                       |
|       ; 99,MAX,MAX),                                                                                                                                                                                                                             |
|       range_cond([h.sensi_flag(0x7fd1f06a4640) IN (98(0x7fd1f06a4380), 99(0x7fd1f06a44d0))(0x7fd1f06b3680)(0x7fd1f06a3f50)])                                                                                                                     |
|  35 - output(nil), filter([g.order_id(0x7fd1f06a3260) = :2(0x7fd1f06a33f0)(0x7fd1f06a3110)]), rowset=256                                                                                                                                         |
|       access([GROUP_ID(0x7fd511126500)], [g.order_file_id(0x7fd1f06a7250)], [g.order_id(0x7fd1f06a3260)]), partitions(p0)                                                                                                                        |
|       is_index_back=true, is_global_index=false, filter_before_indexback[false],                                                                                                                                                                 |
|       range_key([g.file_id(0x7fd1f06a3cb0)], [g.order_file_id(0x7fd1f06a7250)]), range(MIN ; MAX),                                                                                                                                               |
|       range_cond([:11(0x7fd62cdccfe0) = g.file_id(0x7fd1f06a3cb0)(0x7fd62cdcd150)]),  is_fast_range = true                                                                                                                                       |
| Used Hint:                                                                                                                                                                                                                                       |
| -------------------------------------                                                                                                                                                                                                            |
|   /*+                                                                                                                                                                                                                                            |
|                                                                                                                                                                                                                                                  |
|   */                                                                                                                                                                                                                                             |
| Qb name trace:                                                                                                                                                                                                                                   |
| -------------------------------------                                                                                                                                                                                                            |
|   stmt_id:0, stmt_type:T_EXPLAIN                                                                                                                                                                                                                 |
|   stmt_id:1, SEL$1                                                                                                                                                                                                                               |
|   stmt_id:2, SEL$2 > SEL$B15E051B                                                                                                                                                                                                                |
|   stmt_id:3, SEL$3 > SEL$9C7D1284                                                                                                                                                                                                                |
|   stmt_id:4, SEL$4 > SEL$94AF091B                                                                                                                                                                                                                |
| Outline Data:                                                                                                                                                                                                                                    |
| -------------------------------------                                                                                                                                                                                                            |
|   /*+                                                                                                                                                                                                                                            |
|       BEGIN_OUTLINE_DATA                                                                                                                                                                                                                         |
|       PQ_SUBQUERY(@"SEL$1" ("SEL$B15E051B" "SEL$9C7D1284" "SEL$94AF091B") LOCAL LOCAL)                                                                                                                                                           |
|       LEADING(@"SEL$1" ((("a"@"SEL$1" "s"@"SEL$1") "t"@"SEL$1") "u"@"SEL$1"))                                                                                                                                                                    |
|       USE_HASH(@"SEL$1" "u"@"SEL$1")                                                                                                                                                                                                             |
|       USE_NL(@"SEL$1" "t"@"SEL$1")                                                                                                                                                                                                               |
|       PQ_DISTRIBUTE(@"SEL$1" "t"@"SEL$1" LOCAL LOCAL)                                                                                                                                                                                            |
|       USE_NL(@"SEL$1" "s"@"SEL$1")                                                                                                                                                                                                               |
|       PQ_DISTRIBUTE(@"SEL$1" "s"@"SEL$1" BC2HOST NONE)                                                                                                                                                                                           |
|       INDEX(@"SEL$1" "a"@"SEL$1" "idx_10")                                                                                                                                                                                                       |
|       INDEX(@"SEL$1" "s"@"SEL$1" "primary")                                                                                                                                                                                                      |
|       INDEX(@"SEL$1" "t"@"SEL$1" "udx_set_id")                                                                                                                                                                                                   |
|       FULL(@"SEL$1" "u"@"SEL$1")                                                                                                                                                                                                                 |
|       LEADING(@"SEL$B15E051B" ("h"@"SEL$2" "g"@"SEL$2"))                                                                                                                                                                                         |
|       USE_NL(@"SEL$B15E051B" "g"@"SEL$2")                                                                                                                                                                                                        |
|       PQ_DISTRIBUTE(@"SEL$B15E051B" "g"@"SEL$2" BC2HOST NONE)                                                                                                                                                                                    |
|       INDEX(@"SEL$B15E051B" "h"@"SEL$2" "i_sensi_flag")                                                                                                                                                                                          |
|       INDEX(@"SEL$B15E051B" "g"@"SEL$2" "idx_4")                                                                                                                                                                                                 |
|       LEADING(@"SEL$9C7D1284" ("h"@"SEL$3" "g"@"SEL$3"))                                                                                                                                                                                         |
|       USE_NL(@"SEL$9C7D1284" "g"@"SEL$3")                                                                                                                                                                                                        |
|       PQ_DISTRIBUTE(@"SEL$9C7D1284" "g"@"SEL$3" BC2HOST NONE)                                                                                                                                                                                    |
|       INDEX(@"SEL$9C7D1284" "h"@"SEL$3" "i_sensi_flag")                                                                                                                                                                                          |
|       INDEX(@"SEL$9C7D1284" "g"@"SEL$3" "idx_4")                                                                                                                                                                                                 |
|       LEADING(@"SEL$94AF091B" ("h"@"SEL$4" "g"@"SEL$4"))                                                                                                                                                                                         |
|       USE_NL(@"SEL$94AF091B" "g"@"SEL$4")                                                                                                                                                                                                        |
|       PQ_DISTRIBUTE(@"SEL$94AF091B" "g"@"SEL$4" BC2HOST NONE)                                                                                                                                                                                    |
|       INDEX(@"SEL$94AF091B" "h"@"SEL$4" "i_sensi_flag")                                                                                                                                                                                          |
|       INDEX(@"SEL$94AF091B" "g"@"SEL$4" "idx_4")                                                                                                                                                                                                 |
|       SIMPLIFY_GROUP_BY(@"SEL$2")                                                                                                                                                                                                                |
|       SIMPLIFY_GROUP_BY(@"SEL$3")                                                                                                                                                                                                                |
|       SIMPLIFY_GROUP_BY(@"SEL$4")                                                                                                                                                                                                                |
|       OPTIMIZER_FEATURES_ENABLE('4.4.1.0')                                                                                                                                                                                                       |
|       END_OUTLINE_DATA                                                                                                                                                                                                                           |
|   */                                                                                                                                                                                                                                             |
| Optimization Info:                                                                                                                                                                                                                               |
| -------------------------------------                                                                                                                                                                                                            |
|   a:                                                                                                                                                                                                                                             |
|       table_rows:14148572                                                                                                                                                                                                                        |
|       physical_range_rows:751469                                                                                                                                                                                                                 |
|       logical_range_rows:554099                                                                                                                                                                                                                  |
|       index_back_rows:1                                                                                                                                                                                                                          |
|       output_rows:1                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_3, idx_6, idx_7, idx_8, idx_dev_id, idx_exec_print_time, idx_group, idx_merchant_id, idx_set_id, idx_10, idx_9, i_station_create_time, idx_time_id, idx_create_time_state_tenant, idx_composite1, t_order] |
|       pruned_index_name:[idx_1, idx_3, idx_6, idx_7, idx_8, idx_dev_id, idx_exec_print_time, idx_group, idx_merchant_id, i_station_create_time, idx_time_id, idx_create_time_state_tenant]                                                       |
|       stats info:[version=2025-12-07 22:00:46.809593, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS, STORAGE]                                                                                                                                                                                          |
|   s:                                                                                                                                                                                                                                             |
|       table_rows:363                                                                                                                                                                                                                             |
|       physical_range_rows:1                                                                                                                                                                                                                      |
|       logical_range_rows:1                                                                                                                                                                                                                       |
|       output_rows:1                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_real_merchant_id, idx_total_set_id, t_set]                                                                                                                                                                 |
|       pruned_index_name:[idx_1, idx_real_merchant_id, idx_total_set_id]                                                                                                                                                                          |
|       stats info:[version=2025-12-03 07:35:07.668931, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS]                                                                                                                                                                                                   |
|   t:                                                                                                                                                                                                                                             |
|       table_rows:334                                                                                                                                                                                                                             |
|       physical_range_rows:1                                                                                                                                                                                                                      |
|       logical_range_rows:1                                                                                                                                                                                                                       |
|       index_back_rows:1                                                                                                                                                                                                                          |
|       output_rows:1                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[udx_set_id, idx_policy_id, t_set_security_policy]                                                                                                                                                                     |
|       pruned_index_name:[idx_policy_id, t_set_security_policy]                                                                                                                                                                                   |
|       stats info:[version=2025-12-03 07:35:05.054972, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS]                                                                                                                                                                                                   |
|   u:                                                                                                                                                                                                                                             |
|       table_rows:6                                                                                                                                                                                                                               |
|       physical_range_rows:7                                                                                                                                                                                                                      |
|       logical_range_rows:6                                                                                                                                                                                                                       |
|       output_rows:6                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[t_security_policy]                                                                                                                                                                                                    |
|       stats info:[version=2025-12-03 07:35:09.853051, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS, STORAGE]                                                                                                                                                                                          |
|   h:                                                                                                                                                                                                                                             |
|       table_rows:16351598                                                                                                                                                                                                                        |
|       physical_range_rows:678451                                                                                                                                                                                                                 |
|       logical_range_rows:501990                                                                                                                                                                                                                  |
|       output_rows:501990                                                                                                                                                                                                                         |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_2, idx_3, idx_detect_start_time, i_end_time_sensi_inst, i_sensi_flag, idx_upload_storage_flag, idx_upload_tenant, t_file]                                                                                  |
|       pruned_index_name:[idx_1, idx_2, idx_3, idx_detect_start_time, i_end_time_sensi_inst, idx_upload_storage_flag, idx_upload_tenant]                                                                                                          |
|       stats info:[version=2025-12-05 22:01:06.242261, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS, STORAGE]                                                                                                                                                                                          |
|   g:                                                                                                                                                                                                                                             |
|       table_rows:19236902                                                                                                                                                                                                                        |
|       physical_range_rows:2                                                                                                                                                                                                                      |
|       logical_range_rows:2                                                                                                                                                                                                                       |
|       index_back_rows:2                                                                                                                                                                                                                          |
|       output_rows:1                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, idx_time_id, t_order_file]                                                                                                       |
|       pruned_index_name:[idx_2, idx_3, idx_print_state, idx_update_time, idx_update_time_speed, idx_time_id]                                                                                                                                     |
|       unstable_index_name:[t_order_file]                                                                                                                                                                                                         |
|       stats info:[version=2025-12-07 22:01:11.194020, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS]                                                                                                                                                                                                   |
|   h:                                                                                                                                                                                                                                             |
|       table_rows:16351598                                                                                                                                                                                                                        |
|       physical_range_rows:1780                                                                                                                                                                                                                   |
|       logical_range_rows:1075                                                                                                                                                                                                                    |
|       output_rows:1075                                                                                                                                                                                                                           |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_2, idx_3, idx_detect_start_time, i_end_time_sensi_inst, i_sensi_flag, idx_upload_storage_flag, idx_upload_tenant, t_file]                                                                                  |
|       pruned_index_name:[idx_1, idx_2, idx_3, idx_detect_start_time, i_end_time_sensi_inst, idx_upload_storage_flag, idx_upload_tenant]                                                                                                          |
|       stats info:[version=2025-12-05 22:01:06.242261, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS, STORAGE]                                                                                                                                                                                          |
|   g:                                                                                                                                                                                                                                             |
|       table_rows:19236902                                                                                                                                                                                                                        |
|       physical_range_rows:2                                                                                                                                                                                                                      |
|       logical_range_rows:2                                                                                                                                                                                                                       |
|       index_back_rows:2                                                                                                                                                                                                                          |
|       output_rows:1                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, idx_time_id, t_order_file]                                                                                                       |
|       pruned_index_name:[idx_2, idx_3, idx_print_state, idx_update_time, idx_update_time_speed, idx_time_id]                                                                                                                                     |
|       unstable_index_name:[t_order_file]                                                                                                                                                                                                         |
|       stats info:[version=2025-12-07 22:01:11.194020, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS]                                                                                                                                                                                                   |
|   h:                                                                                                                                                                                                                                             |
|       table_rows:16351598                                                                                                                                                                                                                        |
|       physical_range_rows:1760                                                                                                                                                                                                                   |
|       logical_range_rows:1760                                                                                                                                                                                                                    |
|       output_rows:1760                                                                                                                                                                                                                           |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_2, idx_3, idx_detect_start_time, i_end_time_sensi_inst, i_sensi_flag, idx_upload_storage_flag, idx_upload_tenant, t_file]                                                                                  |
|       pruned_index_name:[idx_1, idx_2, idx_3, idx_detect_start_time, i_end_time_sensi_inst, idx_upload_storage_flag, idx_upload_tenant]                                                                                                          |
|       stats info:[version=2025-12-05 22:01:06.242261, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS, STORAGE]                                                                                                                                                                                          |
|   g:                                                                                                                                                                                                                                             |
|       table_rows:19236902                                                                                                                                                                                                                        |
|       physical_range_rows:2                                                                                                                                                                                                                      |
|       logical_range_rows:2                                                                                                                                                                                                                       |
|       index_back_rows:2                                                                                                                                                                                                                          |
|       output_rows:1                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, idx_time_id, t_order_file]                                                                                                       |
|       pruned_index_name:[idx_2, idx_3, idx_print_state, idx_update_time, idx_update_time_speed, idx_time_id]                                                                                                                                     |
|       unstable_index_name:[t_order_file]                                                                                                                                                                                                         |
|       stats info:[version=2025-12-07 22:01:11.194020, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS]                                                                                                                                                                                                   |
|   Plan Type:                                                                                                                                                                                                                                     |
|       DISTRIBUTED                                                                                                                                                                                                                                |
|   Parameters:                                                                                                                                                                                                                                    |
|       :0 => 1                                                                                                                                                                                                                                    |
|       :1 => 1                                                                                                                                                                                                                                    |
|       :2 => 1000                                                                                                                                                                                                                                 |
|       :3 => 1                                                                                                                                                                                                                                    |
|       :4 => 2                                                                                                                                                                                                                                    |
|       :5 => 96                                                                                                                                                                                                                                   |
|       :6 => 97                                                                                                                                                                                                                                   |
|       :7 => 1                                                                                                                                                                                                                                    |
|       :8 => 98                                                                                                                                                                                                                                   |
|       :9 => 99                                                                                                                                                                                                                                   |
|       :10 => -3                                                                                                                                                                                                                                  |
|       :11 => 'woqu'                                                                                                                                                                                                                              |
|       :12 => -60                                                                                                                                                                                                                                 |
|       :13 => '00'                                                                                                                                                                                                                                |
|   Note:                                                                                                                                                                                                                                          |
|       Degree of Parallelisim is 1 because of table property                                                                                                                                                                                      |
|   Expr Constraints:                                                                                                                                                                                                                              |
|       1 result is NOT NULL                                                                                                                                                                                                                       |
|       1 result is NOT NULL                                                                                                                                                                                                                       |
|       1 result is NOT NULL                                                                                                                                                                                                                       |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
select * from oceanbase.gv$ob_plan_cache_plan_explain where tenant_id = 1002 and plan_id = 135532  and svr_ip = '192.168.0.26' and svr_port = 2882
+-----------+--------------+----------+---------+------------+--------------+---------------------------------+-----------------+--------+----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| TENANT_ID | SVR_IP       | SVR_PORT | PLAN_ID | PLAN_DEPTH | PLAN_LINE_ID | OPERATOR                        | NAME            | ROWS   | COST     | PROPERTY                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
+-----------+--------------+----------+---------+------------+--------------+---------------------------------+-----------------+--------+----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 1002      | 192.168.0.26 | 2882     | 135532  | 0          | 0            | PHY_SUBPLAN_FILTER              | NULL            | 1      | 16004939 | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 1          | 1            |  PHY_VEC_HASH_JOIN              | NULL            | 1      | 56294    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 2          | 2            |   PHY_VEC_NESTED_LOOP_JOIN      | NULL            | 1      | 56291    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 3          | 3            |    PHY_VEC_PX_FIFO_COORD        | NULL            | 1      | 56270    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 4          | 4            |     PHY_VEC_PX_REDUCE_TRANSMIT  | NULL            | 1      | 56270    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 5          | 5            |      PHY_VEC_NESTED_LOOP_JOIN   | NULL            | 1      | 56269    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 6          | 6            |       PHY_VEC_PX_FIFO_RECEIVE   | NULL            | 1      | 56257    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 7          | 7            |        PHY_VEC_PX_DIST_TRANSMIT | NULL            | 1      | 56256    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 8          | 8            |         PHY_TABLE_SCAN          | a(idx_10)       | 1      | 56254    | table_rows:14148572, physical_range_rows:751429, logical_range_rows:554087, index_back_rows:0, output_rows:0, avaiable_index_name[idx_1,idx_3,idx_6,idx_7,idx_8,idx_dev_id,idx_exec_print_time,idx_group,idx_merchant_id,idx_set_id,idx_10,idx_9,i_station_create_time,idx_time_id,idx_create_time_state_tenant,idx_composite1,t_order], pruned_index_name[idx_1,idx_3,idx_6,idx_7,idx_8,idx_dev_id,idx_exec_print_time,idx_group,idx_merchant_id,i_station_create_time,idx_time_id,idx_create_time_state_tenant], estimation info[table_id:503291, (table_type:10, version:-1--1--1, logical_rc:550060, physical_rc:550060), (table_type:11, version:-1--1--1, logical_rc:3727, physical_rc:174925), (table_type:0, version:-1--1--1, logical_rc:300, physical_rc:26444)] |
| 1002      | 192.168.0.26 | 2882     | 135532  | 6          | 9            |       PHY_TABLE_SCAN            | s               | 1      | 15       | table_rows:363, physical_range_rows:1, logical_range_rows:1, index_back_rows:0, output_rows:1, avaiable_index_name[idx_1,idx_real_merchant_id,idx_total_set_id,t_set], pruned_index_name[idx_1,idx_real_merchant_id,idx_total_set_id]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| 1002      | 192.168.0.26 | 2882     | 135532  | 3          | 10           |    PHY_TABLE_SCAN               | t(udx_set_id)   | 1      | 26       | table_rows:334, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:1, avaiable_index_name[udx_set_id,idx_policy_id,t_set_security_policy], pruned_index_name[idx_policy_id,t_set_security_policy]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| 1002      | 192.168.0.26 | 2882     | 135532  | 2          | 11           |   PHY_VEC_TABLE_SCAN            | u               | 6      | 2        | table_rows:6, physical_range_rows:7, logical_range_rows:6, index_back_rows:0, output_rows:6, avaiable_index_name[t_security_policy], estimation info[table_id:502323, (table_type:10, version:-1--1--1, logical_rc:6, physical_rc:6), (table_type:0, version:-1--1--1, logical_rc:0, physical_rc:1)]                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 1          | 12           |  PHY_VEC_PX_FIFO_COORD          | NULL            | 1      | 15857888 | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 2          | 13           |   PHY_VEC_PX_REDUCE_TRANSMIT    | NULL            | 1      | 15857888 | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 3          | 14           |    PHY_VEC_SCALAR_AGGREGATE     | NULL            | 1      | 15857888 | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 4          | 15           |     PHY_VEC_NESTED_LOOP_JOIN    | NULL            | 6      | 15857888 | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 5          | 16           |      PHY_VEC_PX_FIFO_RECEIVE    | NULL            | 501960 | 637643   | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 6          | 17           |       PHY_VEC_PX_DIST_TRANSMIT  | NULL            | 501960 | 451240   | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 7          | 18           |        PHY_VEC_TABLE_SCAN       | h(i_sensi_flag) | 501960 | 33199    | table_rows:16351598, physical_range_rows:678384, logical_range_rows:501960, index_back_rows:0, output_rows:501960, avaiable_index_name[idx_1,idx_2,idx_3,idx_detect_start_time,i_end_time_sensi_inst,i_sensi_flag,idx_upload_storage_flag,idx_upload_tenant,t_file], pruned_index_name[idx_1,idx_2,idx_3,idx_detect_start_time,i_end_time_sensi_inst,idx_upload_storage_flag,idx_upload_tenant], estimation info[table_id:503313, (table_type:10, version:-1--1--1, logical_rc:501024, physical_rc:501024), (table_type:11, version:-1--1--1, logical_rc:860, physical_rc:156977), (table_type:0, version:-1--1--1, logical_rc:76, physical_rc:20383)]                                                                                                                     |
| 1002      | 192.168.0.26 | 2882     | 135532  | 5          | 19           |      PHY_TABLE_SCAN             | g(idx_4)        | 1      | 29       | table_rows:19236902, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:0, avaiable_index_name[idx_1,idx_2,idx_3,idx_4,idx_print_state,idx_update_time,idx_update_time_speed,idx_time_id,t_order_file], pruned_index_name[idx_2,idx_3,idx_print_state,idx_update_time,idx_update_time_speed,idx_time_id], unstable_index_name[t_order_file]                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 1          | 20           |  PHY_VEC_PX_FIFO_COORD          | NULL            | 1      | 33984    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 2          | 21           |   PHY_VEC_PX_REDUCE_TRANSMIT    | NULL            | 1      | 33984    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 3          | 22           |    PHY_VEC_SCALAR_AGGREGATE     | NULL            | 1      | 33983    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 4          | 23           |     PHY_VEC_NESTED_LOOP_JOIN    | NULL            | 6      | 33983    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 5          | 24           |      PHY_VEC_PX_FIFO_RECEIVE    | NULL            | 1075   | 1387     | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 6          | 25           |       PHY_VEC_PX_DIST_TRANSMIT  | NULL            | 1075   | 988      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 7          | 26           |        PHY_VEC_TABLE_SCAN       | h(i_sensi_flag) | 1075   | 93       | table_rows:16351598, physical_range_rows:1780, logical_range_rows:1075, index_back_rows:0, output_rows:1075, avaiable_index_name[idx_1,idx_2,idx_3,idx_detect_start_time,i_end_time_sensi_inst,i_sensi_flag,idx_upload_storage_flag,idx_upload_tenant,t_file], pruned_index_name[idx_1,idx_2,idx_3,idx_detect_start_time,i_end_time_sensi_inst,idx_upload_storage_flag,idx_upload_tenant], estimation info[table_id:503313, (table_type:10, version:-1--1--1, logical_rc:1254, physical_rc:1254), (table_type:11, version:-1--1--1, logical_rc:-179, physical_rc:516), (table_type:0, version:-1--1--1, logical_rc:0, physical_rc:10)]                                                                                                                                     |
| 1002      | 192.168.0.26 | 2882     | 135532  | 5          | 27           |      PHY_TABLE_SCAN             | g(idx_4)        | 1      | 29       | table_rows:19236902, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:0, avaiable_index_name[idx_1,idx_2,idx_3,idx_4,idx_print_state,idx_update_time,idx_update_time_speed,idx_time_id,t_order_file], pruned_index_name[idx_2,idx_3,idx_print_state,idx_update_time,idx_update_time_speed,idx_time_id], unstable_index_name[t_order_file]                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 1          | 28           |  PHY_VEC_PX_FIFO_COORD          | NULL            | 1      | 55576    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 2          | 29           |   PHY_VEC_PX_REDUCE_TRANSMIT    | NULL            | 1      | 55576    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 3          | 30           |    PHY_VEC_SCALAR_AGGREGATE     | NULL            | 1      | 55575    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 4          | 31           |     PHY_VEC_NESTED_LOOP_JOIN    | NULL            | 6      | 55575    | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 5          | 32           |      PHY_VEC_PX_FIFO_RECEIVE    | NULL            | 1760   | 2209     | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 6          | 33           |       PHY_VEC_PX_DIST_TRANSMIT  | NULL            | 1760   | 1556     | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| 1002      | 192.168.0.26 | 2882     | 135532  | 7          | 34           |        PHY_VEC_TABLE_SCAN       | h(i_sensi_flag) | 1760   | 90       | table_rows:16351598, physical_range_rows:1760, logical_range_rows:1760, index_back_rows:0, output_rows:1760, avaiable_index_name[idx_1,idx_2,idx_3,idx_detect_start_time,i_end_time_sensi_inst,i_sensi_flag,idx_upload_storage_flag,idx_upload_tenant,t_file], pruned_index_name[idx_1,idx_2,idx_3,idx_detect_start_time,i_end_time_sensi_inst,idx_upload_storage_flag,idx_upload_tenant], estimation info[table_id:503313, (table_type:10, version:-1--1--1, logical_rc:1759, physical_rc:1759), (table_type:11, version:-1--1--1, logical_rc:1, physical_rc:1), (table_type:0, version:-1--1--1, logical_rc:0, physical_rc:0)]                                                                                                                                           |
| 1002      | 192.168.0.26 | 2882     | 135532  | 5          | 35           |      PHY_TABLE_SCAN             | g(idx_4)        | 1      | 29       | table_rows:19236902, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:0, avaiable_index_name[idx_1,idx_2,idx_3,idx_4,idx_print_state,idx_update_time,idx_update_time_speed,idx_time_id,t_order_file], pruned_index_name[idx_2,idx_3,idx_print_state,idx_update_time,idx_update_time_speed,idx_time_id], unstable_index_name[t_order_file]                                                                                                                                                                                                                                                                                                                                                                                                       |
+-----------+--------------+----------+---------+------------+--------------+---------------------------------+-----------------+--------+----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
obclient> SELECT DBMS_XPLAN.DISPLAY_CURSOR(135532, 'all', '192.168.0.26',  2882, 1002) FROM DUAL
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| DBMS_XPLAN.DISPLAY_CURSOR(135532, 'all', '192.168.0.26',  2882, 1002)                                                                                                                                                                            |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ======================================================================================================================================                                                                                                           |
| |ID|OPERATOR                                  |NAME           |EST.ROWS|EST.TIME(us)|REAL.ROWS|REAL.TIME(us)|IO TIME(us)|CPU TIME(us)|                                                                                                           |
| --------------------------------------------------------------------------------------------------------------------------------------                                                                                                           |
| |0 |SUBPLAN FILTER                            |               |1       |16004940    |0        |0            |0          |0           |                                                                                                           |
| |1 |├─HASH OUTER JOIN                         |               |1       |56295       |0        |0            |0          |0           |                                                                                                           |
| |2 |│ ├─NESTED-LOOP OUTER JOIN                |               |1       |56292       |0        |0            |0          |0           |                                                                                                           |
| |3 |│ │ ├─PX COORDINATOR                      |               |1       |56271       |0        |0            |0          |0           |                                                                                                           |
| |4 |│ │ │ └─EXCHANGE OUT DISTR                |:EX10001       |1       |56271       |0        |0            |0          |0           |                                                                                                           |
| |5 |│ │ │   └─NESTED-LOOP OUTER JOIN          |               |1       |56270       |0        |0            |0          |0           |                                                                                                           |
| |6 |│ │ │     ├─EXCHANGE IN DISTR             |               |1       |56258       |0        |0            |0          |0           |                                                                                                           |
| |7 |│ │ │     │ └─EXCHANGE OUT DISTR (BC2HOST)|:EX10000       |1       |56257       |0        |0            |0          |0           |                                                                                                           |
| |8 |│ │ │     │   └─TABLE RANGE SCAN          |a(idx_10)      |1       |56255       |0        |0            |0          |0           |                                                                                                           |
| |9 |│ │ │     └─TABLE GET                     |s              |1       |16          |0        |0            |0          |0           |                                                                                                           |
| |10|│ │ └─TABLE GET                           |t(udx_set_id)  |1       |27          |0        |0            |0          |0           |                                                                                                           |
| |11|│ └─TABLE FULL SCAN                       |u              |6       |3           |0        |0            |0          |0           |                                                                                                           |
| |12|├─PX COORDINATOR                          |               |1       |15857889    |0        |0            |0          |0           |                                                                                                           |
| |13|│ └─EXCHANGE OUT DISTR                    |:EX20001       |1       |15857889    |0        |0            |0          |0           |                                                                                                           |
| |14|│   └─SCALAR GROUP BY                     |               |1       |15857889    |0        |0            |0          |0           |                                                                                                           |
| |15|│     └─NESTED-LOOP JOIN                  |               |6       |15857889    |0        |0            |0          |0           |                                                                                                           |
| |16|│       ├─EXCHANGE IN DISTR               |               |501960  |637644      |0        |0            |0          |0           |                                                                                                           |
| |17|│       │ └─EXCHANGE OUT DISTR (BC2HOST)  |:EX20000       |501960  |451241      |0        |0            |0          |0           |                                                                                                           |
| |18|│       │   └─TABLE RANGE SCAN            |h(i_sensi_flag)|501960  |33200       |0        |0            |0          |0           |                                                                                                           |
| |19|│       └─TABLE RANGE SCAN                |g(idx_4)       |1       |30          |0        |0            |0          |0           |                                                                                                           |
| |20|├─PX COORDINATOR                          |               |1       |33985       |0        |0            |0          |0           |                                                                                                           |
| |21|│ └─EXCHANGE OUT DISTR                    |:EX30001       |1       |33985       |0        |0            |0          |0           |                                                                                                           |
| |22|│   └─SCALAR GROUP BY                     |               |1       |33984       |0        |0            |0          |0           |                                                                                                           |
| |23|│     └─NESTED-LOOP JOIN                  |               |6       |33984       |0        |0            |0          |0           |                                                                                                           |
| |24|│       ├─EXCHANGE IN DISTR               |               |1075    |1388        |0        |0            |0          |0           |                                                                                                           |
| |25|│       │ └─EXCHANGE OUT DISTR (BC2HOST)  |:EX30000       |1075    |989         |0        |0            |0          |0           |                                                                                                           |
| |26|│       │   └─TABLE RANGE SCAN            |h(i_sensi_flag)|1075    |94          |0        |0            |0          |0           |                                                                                                           |
| |27|│       └─TABLE RANGE SCAN                |g(idx_4)       |1       |30          |0        |0            |0          |0           |                                                                                                           |
| |28|└─PX COORDINATOR                          |               |1       |55577       |0        |0            |0          |0           |                                                                                                           |
| |29|  └─EXCHANGE OUT DISTR                    |:EX40001       |1       |55577       |0        |0            |0          |0           |                                                                                                           |
| |30|    └─SCALAR GROUP BY                     |               |1       |55576       |0        |0            |0          |0           |                                                                                                           |
| |31|      └─NESTED-LOOP JOIN                  |               |6       |55576       |0        |0            |0          |0           |                                                                                                           |
| |32|        ├─EXCHANGE IN DISTR               |               |1760    |2210        |0        |0            |0          |0           |                                                                                                           |
| |33|        │ └─EXCHANGE OUT DISTR (BC2HOST)  |:EX40000       |1760    |1557        |0        |0            |0          |0           |                                                                                                           |
| |34|        │   └─TABLE RANGE SCAN            |h(i_sensi_flag)|1760    |91          |0        |0            |0          |0           |                                                                                                           |
| |35|        └─TABLE RANGE SCAN                |g(idx_4)       |1       |30          |0        |0            |0          |0           |                                                                                                           |
| ======================================================================================================================================                                                                                                           |
|                                                                                                                                                                                                                                                  |
| Outputs & filters:                                                                                                                                                                                                                               |
| -------------------------------------                                                                                                                                                                                                            |
|   0 - output([a.order_id], [a.use_type], [subquery(1)], [subquery(2)], [subquery(3)], [u.censor_flag], [u.sensi_handle_flag]), filter(nil), rowset=256                                                                                           |
|       exec_params_([a.order_id(:0)], [a.order_id(:1)], [a.order_id(:2)]), onetime_exprs_(nil), init_plan_idxs_(nil), use_batch=false                                                                                                             |
|   1 - output([a.order_id], [a.use_type], [u.censor_flag], [u.sensi_handle_flag]), filter(nil), rowset=256                                                                                                                                        |
|       equal_conds([t.policy_id = u.policy_id]), other_conds(nil)                                                                                                                                                                                 |
|   2 - output([a.order_id], [a.use_type], [t.policy_id]), filter(nil), rowset=256                                                                                                                                                                 |
|       conds(nil), nl_params_([s.set_id(:4)]), use_batch=true                                                                                                                                                                                     |
|   3 - output([a.order_id], [a.use_type], [s.set_id]), filter(nil), rowset=256                                                                                                                                                                    |
|   4 - output([a.order_id], [a.use_type], [s.set_id]), filter(nil), rowset=256                                                                                                                                                                    |
|       is_single, dop=1                                                                                                                                                                                                                           |
|   5 - output([a.order_id], [a.use_type], [s.set_id]), filter(nil), rowset=256                                                                                                                                                                    |
|       conds(nil), nl_params_([a.set_id(:3)]), use_batch=true                                                                                                                                                                                     |
|   6 - output([a.order_id], [a.use_type], [a.set_id]), filter(nil), rowset=256                                                                                                                                                                    |
|   7 - output([a.order_id], [a.use_type], [a.set_id]), filter(nil), rowset=256                                                                                                                                                                    |
|       is_single, dop=1                                                                                                                                                                                                                           |
|   8 - output([a.order_id], [a.set_id], [a.use_type]), filter([a.state_date > date_add(current_timestamp(), cast(-3, VARCHAR(1048576)), 3)], [a.checked_flag                                                                                      |
|       IS NULL], [a.r_tenant_id = 'woqu'], [a.state_date < date_add(current_timestamp(), cast(-60, VARCHAR(1048576)), 1)]), rowset=256                                                                                                            |
|       access([a.order_id], [a.set_id], [a.state_date], [a.r_tenant_id], [a.checked_flag], [a.use_type]), partitions(p0)                                                                                                                          |
|       is_index_back=true, is_global_index=false, filter_before_indexback[true,false,false,true],                                                                                                                                                 |
|       range_key([a.state], [a.exec_print_flag], [a.use_type], [a.print_mode], [a.state_date], [a.order_id]), range(00,MIN,MIN,MIN,MIN,MIN ; 00,MAX,MAX,MAX,                                                                                      |
|       MAX,MAX),                                                                                                                                                                                                                                  |
|       range_cond([a.state = '00'])                                                                                                                                                                                                               |
|   9 - output([s.set_id]), filter(nil), rowset=256                                                                                                                                                                                                |
|       access([GROUP_ID], [s.set_id]), partitions(p0)                                                                                                                                                                                             |
|       is_index_back=false, is_global_index=false,                                                                                                                                                                                                |
|       range_key([s.set_id]), range(MIN ; MAX),                                                                                                                                                                                                   |
|       range_cond([:3 = s.set_id])                                                                                                                                                                                                                |
|  10 - output([t.policy_id]), filter(nil), rowset=256                                                                                                                                                                                             |
|       access([GROUP_ID], [t.id], [t.policy_id]), partitions(p0)                                                                                                                                                                                  |
|       is_index_back=true, is_global_index=false,                                                                                                                                                                                                 |
|       range_key([t.set_id], [t.shadow_pk_0]), range(MIN ; MAX),                                                                                                                                                                                  |
|       range_cond([:4 = t.set_id])                                                                                                                                                                                                                |
|  11 - output([u.policy_id], [u.censor_flag], [u.sensi_handle_flag]), filter(nil), rowset=256                                                                                                                                                     |
|       access([u.policy_id], [u.censor_flag], [u.sensi_handle_flag]), partitions(p0)                                                                                                                                                              |
|       is_index_back=false, is_global_index=false,                                                                                                                                                                                                |
|       range_key([u.policy_id]), range(MIN ; MAX)always true                                                                                                                                                                                      |
|  12 - output([T_FUN_COUNT(*)]), filter(nil), rowset=256                                                                                                                                                                                          |
|  13 - output([T_FUN_COUNT(*)]), filter(nil), rowset=256                                                                                                                                                                                          |
|       is_single, dop=1                                                                                                                                                                                                                           |
|  14 - output([T_FUN_COUNT(*)]), filter(nil), rowset=256                                                                                                                                                                                          |
|       group(nil), agg_func([T_FUN_COUNT(*)])                                                                                                                                                                                                     |
|  15 - output(nil), filter(nil), rowset=256                                                                                                                                                                                                       |
|       conds(nil), nl_params_([h.file_id(:7)]), use_batch=true                                                                                                                                                                                    |
|  16 - output([h.file_id]), filter(nil), rowset=256                                                                                                                                                                                               |
|  17 - output([h.file_id]), filter(nil), rowset=256                                                                                                                                                                                               |
|       is_single, dop=1                                                                                                                                                                                                                           |
|  18 - output([h.file_id]), filter(nil), rowset=256                                                                                                                                                                                               |
|       access([h.file_id]), partitions(p0)                                                                                                                                                                                                        |
|       is_index_back=false, is_global_index=false,                                                                                                                                                                                                |
|       range_key([h.sensi_flag], [h.upload_time], [h.file_id]), range(NULL,MIN,MIN ; NULL,MAX,MAX), (1,MIN,MIN ; 1,MAX,MAX), (1000,MIN,MIN ; 1000,MAX,MAX),                                                                                       |
|                                                                                                                                                                                                                                                  |
|       range_cond([h.sensi_flag IS NULL OR h.sensi_flag IN (1, 1000)])                                                                                                                                                                            |
|  19 - output(nil), filter([g.order_id = :0]), rowset=256                                                                                                                                                                                         |
|       access([GROUP_ID], [g.order_file_id], [g.order_id]), partitions(p0)                                                                                                                                                                        |
|       is_index_back=true, is_global_index=false, filter_before_indexback[false],                                                                                                                                                                 |
|       range_key([g.file_id], [g.order_file_id]), range(MIN ; MAX),                                                                                                                                                                               |
|       range_cond([:7 = g.file_id])                                                                                                                                                                                                               |
|  20 - output([T_FUN_COUNT(*)]), filter(nil), rowset=256                                                                                                                                                                                          |
|  21 - output([T_FUN_COUNT(*)]), filter(nil), rowset=256                                                                                                                                                                                          |
|       is_single, dop=1                                                                                                                                                                                                                           |
|  22 - output([T_FUN_COUNT(*)]), filter(nil), rowset=256                                                                                                                                                                                          |
|       group(nil), agg_func([T_FUN_COUNT(*)])                                                                                                                                                                                                     |
|  23 - output(nil), filter(nil), rowset=256                                                                                                                                                                                                       |
|       conds(nil), nl_params_([h.file_id(:9)]), use_batch=true                                                                                                                                                                                    |
|  24 - output([h.file_id]), filter(nil), rowset=256                                                                                                                                                                                               |
|  25 - output([h.file_id]), filter(nil), rowset=256                                                                                                                                                                                               |
|       is_single, dop=1                                                                                                                                                                                                                           |
|  26 - output([h.file_id]), filter(nil), rowset=256                                                                                                                                                                                               |
|       access([h.file_id]), partitions(p0)                                                                                                                                                                                                        |
|       is_index_back=false, is_global_index=false,                                                                                                                                                                                                |
|       range_key([h.sensi_flag], [h.upload_time], [h.file_id]), range(2,MIN,MIN ; 2,MAX,MAX), (96,MIN,MIN ; 96,MAX,MAX), (97,MIN,MIN ; 97,MAX,MAX),                                                                                               |
|       range_cond([h.sensi_flag IN (2, 96, 97)])                                                                                                                                                                                                  |
|  27 - output(nil), filter([g.order_id = :1]), rowset=256                                                                                                                                                                                         |
|       access([GROUP_ID], [g.order_file_id], [g.order_id]), partitions(p0)                                                                                                                                                                        |
|       is_index_back=true, is_global_index=false, filter_before_indexback[false],                                                                                                                                                                 |
|       range_key([g.file_id], [g.order_file_id]), range(MIN ; MAX),                                                                                                                                                                               |
|       range_cond([:9 = g.file_id])                                                                                                                                                                                                               |
|  28 - output([T_FUN_COUNT(*)]), filter(nil), rowset=256                                                                                                                                                                                          |
|  29 - output([T_FUN_COUNT(*)]), filter(nil), rowset=256                                                                                                                                                                                          |
|       is_single, dop=1                                                                                                                                                                                                                           |
|  30 - output([T_FUN_COUNT(*)]), filter(nil), rowset=256                                                                                                                                                                                          |
|       group(nil), agg_func([T_FUN_COUNT(*)])                                                                                                                                                                                                     |
|  31 - output(nil), filter(nil), rowset=256                                                                                                                                                                                                       |
|       conds(nil), nl_params_([h.file_id(:11)]), use_batch=true                                                                                                                                                                                   |
|  32 - output([h.file_id]), filter(nil), rowset=256                                                                                                                                                                                               |
|  33 - output([h.file_id]), filter(nil), rowset=256                                                                                                                                                                                               |
|       is_single, dop=1                                                                                                                                                                                                                           |
|  34 - output([h.file_id]), filter(nil), rowset=256                                                                                                                                                                                               |
|       access([h.file_id]), partitions(p0)                                                                                                                                                                                                        |
|       is_index_back=false, is_global_index=false,                                                                                                                                                                                                |
|       range_key([h.sensi_flag], [h.upload_time], [h.file_id]), range(98,MIN,MIN ; 98,MAX,MAX), (99,MIN,MIN ; 99,MAX,MAX),                                                                                                                        |
|       range_cond([h.sensi_flag IN (98, 99)])                                                                                                                                                                                                     |
|  35 - output(nil), filter([g.order_id = :2]), rowset=256                                                                                                                                                                                         |
|       access([GROUP_ID], [g.order_file_id], [g.order_id]), partitions(p0)                                                                                                                                                                        |
|       is_index_back=true, is_global_index=false, filter_before_indexback[false],                                                                                                                                                                 |
|       range_key([g.file_id], [g.order_file_id]), range(MIN ; MAX),                                                                                                                                                                               |
|       range_cond([:11 = g.file_id])                                                                                                                                                                                                              |
|                                                                                                                                                                                                                                                  |
| Used Hint:                                                                                                                                                                                                                                       |
| -------------------------------------                                                                                                                                                                                                            |
|   /*+                                                                                                                                                                                                                                            |
|                                                                                                                                                                                                                                                  |
|   */                                                                                                                                                                                                                                             |
| Qb name trace:                                                                                                                                                                                                                                   |
| -------------------------------------                                                                                                                                                                                                            |
|   stmt_id:0, SEL$1                                                                                                                                                                                                                               |
|   stmt_id:1, SEL$2 > SEL$B15E051B                                                                                                                                                                                                                |
|   stmt_id:2, SEL$3 > SEL$9C7D1284                                                                                                                                                                                                                |
|   stmt_id:3, SEL$4 > SEL$94AF091B                                                                                                                                                                                                                |
|                                                                                                                                                                                                                                                  |
| Outline Data:                                                                                                                                                                                                                                    |
| -------------------------------------                                                                                                                                                                                                            |
|   /*+                                                                                                                                                                                                                                            |
|       BEGIN_OUTLINE_DATA                                                                                                                                                                                                                         |
|       PQ_SUBQUERY(@"SEL$1" ("SEL$B15E051B" "SEL$9C7D1284" "SEL$94AF091B") LOCAL LOCAL)                                                                                                                                                           |
|       LEADING(@"SEL$1" ((("a"@"SEL$1" "s"@"SEL$1") "t"@"SEL$1") "u"@"SEL$1"))                                                                                                                                                                    |
|       USE_HASH(@"SEL$1" "u"@"SEL$1")                                                                                                                                                                                                             |
|       USE_NL(@"SEL$1" "t"@"SEL$1")                                                                                                                                                                                                               |
|       PQ_DISTRIBUTE(@"SEL$1" "t"@"SEL$1" LOCAL LOCAL)                                                                                                                                                                                            |
|       USE_NL(@"SEL$1" "s"@"SEL$1")                                                                                                                                                                                                               |
|       PQ_DISTRIBUTE(@"SEL$1" "s"@"SEL$1" BC2HOST NONE)                                                                                                                                                                                           |
|       INDEX(@"SEL$1" "a"@"SEL$1" "idx_10")                                                                                                                                                                                                       |
|       INDEX(@"SEL$1" "s"@"SEL$1" "primary")                                                                                                                                                                                                      |
|       INDEX(@"SEL$1" "t"@"SEL$1" "udx_set_id")                                                                                                                                                                                                   |
|       FULL(@"SEL$1" "u"@"SEL$1")                                                                                                                                                                                                                 |
|       LEADING(@"SEL$B15E051B" ("h"@"SEL$2" "g"@"SEL$2"))                                                                                                                                                                                         |
|       USE_NL(@"SEL$B15E051B" "g"@"SEL$2")                                                                                                                                                                                                        |
|       PQ_DISTRIBUTE(@"SEL$B15E051B" "g"@"SEL$2" BC2HOST NONE)                                                                                                                                                                                    |
|       INDEX(@"SEL$B15E051B" "h"@"SEL$2" "i_sensi_flag")                                                                                                                                                                                          |
|       INDEX(@"SEL$B15E051B" "g"@"SEL$2" "idx_4")                                                                                                                                                                                                 |
|       LEADING(@"SEL$9C7D1284" ("h"@"SEL$3" "g"@"SEL$3"))                                                                                                                                                                                         |
|       USE_NL(@"SEL$9C7D1284" "g"@"SEL$3")                                                                                                                                                                                                        |
|       PQ_DISTRIBUTE(@"SEL$9C7D1284" "g"@"SEL$3" BC2HOST NONE)                                                                                                                                                                                    |
|       INDEX(@"SEL$9C7D1284" "h"@"SEL$3" "i_sensi_flag")                                                                                                                                                                                          |
|       INDEX(@"SEL$9C7D1284" "g"@"SEL$3" "idx_4")                                                                                                                                                                                                 |
|       LEADING(@"SEL$94AF091B" ("h"@"SEL$4" "g"@"SEL$4"))                                                                                                                                                                                         |
|       USE_NL(@"SEL$94AF091B" "g"@"SEL$4")                                                                                                                                                                                                        |
|       PQ_DISTRIBUTE(@"SEL$94AF091B" "g"@"SEL$4" BC2HOST NONE)                                                                                                                                                                                    |
|       INDEX(@"SEL$94AF091B" "h"@"SEL$4" "i_sensi_flag")                                                                                                                                                                                          |
|       INDEX(@"SEL$94AF091B" "g"@"SEL$4" "idx_4")                                                                                                                                                                                                 |
|       SIMPLIFY_GROUP_BY(@"SEL$2")                                                                                                                                                                                                                |
|       SIMPLIFY_GROUP_BY(@"SEL$3")                                                                                                                                                                                                                |
|       SIMPLIFY_GROUP_BY(@"SEL$4")                                                                                                                                                                                                                |
|       OPTIMIZER_FEATURES_ENABLE('4.4.1.0')                                                                                                                                                                                                       |
|       END_OUTLINE_DATA                                                                                                                                                                                                                           |
|   */                                                                                                                                                                                                                                             |
| Optimization Info:                                                                                                                                                                                                                               |
| -------------------------------------                                                                                                                                                                                                            |
|   a:                                                                                                                                                                                                                                             |
|       table_rows:14148572                                                                                                                                                                                                                        |
|       physical_range_rows:751429                                                                                                                                                                                                                 |
|       logical_range_rows:554087                                                                                                                                                                                                                  |
|       index_back_rows:1                                                                                                                                                                                                                          |
|       output_rows:1                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_3, idx_6, idx_7, idx_8, idx_dev_id, idx_exec_print_time, idx_group, idx_merchant_id, idx_set_id, idx_10, idx_9, i_station_create_time, idx_time_id, idx_create_time_state_tenant, idx_composite1, t_order] |
|       pruned_index_name:[idx_1, idx_3, idx_6, idx_7, idx_8, idx_dev_id, idx_exec_print_time, idx_group, idx_merchant_id, i_station_create_time, idx_time_id, idx_create_time_state_tenant]                                                       |
|       stats info:[version=2025-12-07 22:00:46.809593, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS, STORAGE]                                                                                                                                                                                          |
|   s:                                                                                                                                                                                                                                             |
|       table_rows:363                                                                                                                                                                                                                             |
|       physical_range_rows:1                                                                                                                                                                                                                      |
|       logical_range_rows:1                                                                                                                                                                                                                       |
|       output_rows:1                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_real_merchant_id, idx_total_set_id, t_set]                                                                                                                                                                 |
|       pruned_index_name:[idx_1, idx_real_merchant_id, idx_total_set_id]                                                                                                                                                                          |
|       stats info:[version=2025-12-03 07:35:07.668931, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS]                                                                                                                                                                                                   |
|   t:                                                                                                                                                                                                                                             |
|       table_rows:334                                                                                                                                                                                                                             |
|       physical_range_rows:1                                                                                                                                                                                                                      |
|       logical_range_rows:1                                                                                                                                                                                                                       |
|       index_back_rows:1                                                                                                                                                                                                                          |
|       output_rows:1                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[udx_set_id, idx_policy_id, t_set_security_policy]                                                                                                                                                                     |
|       pruned_index_name:[idx_policy_id, t_set_security_policy]                                                                                                                                                                                   |
|       stats info:[version=2025-12-03 07:35:05.054972, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS]                                                                                                                                                                                                   |
|   u:                                                                                                                                                                                                                                             |
|       table_rows:6                                                                                                                                                                                                                               |
|       physical_range_rows:7                                                                                                                                                                                                                      |
|       logical_range_rows:6                                                                                                                                                                                                                       |
|       output_rows:6                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[t_security_policy]                                                                                                                                                                                                    |
|       stats info:[version=2025-12-03 07:35:09.853051, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS, STORAGE]                                                                                                                                                                                          |
|   h:                                                                                                                                                                                                                                             |
|       table_rows:16351598                                                                                                                                                                                                                        |
|       physical_range_rows:678384                                                                                                                                                                                                                 |
|       logical_range_rows:501960                                                                                                                                                                                                                  |
|       output_rows:501960                                                                                                                                                                                                                         |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_2, idx_3, idx_detect_start_time, i_end_time_sensi_inst, i_sensi_flag, idx_upload_storage_flag, idx_upload_tenant, t_file]                                                                                  |
|       pruned_index_name:[idx_1, idx_2, idx_3, idx_detect_start_time, i_end_time_sensi_inst, idx_upload_storage_flag, idx_upload_tenant]                                                                                                          |
|       stats info:[version=2025-12-05 22:01:06.242261, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS, STORAGE]                                                                                                                                                                                          |
|   g:                                                                                                                                                                                                                                             |
|       table_rows:19236902                                                                                                                                                                                                                        |
|       physical_range_rows:2                                                                                                                                                                                                                      |
|       logical_range_rows:2                                                                                                                                                                                                                       |
|       index_back_rows:2                                                                                                                                                                                                                          |
|       output_rows:1                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, idx_time_id, t_order_file]                                                                                                       |
|       pruned_index_name:[idx_2, idx_3, idx_print_state, idx_update_time, idx_update_time_speed, idx_time_id]                                                                                                                                     |
|       unstable_index_name:[t_order_file]                                                                                                                                                                                                         |
|       stats info:[version=2025-12-07 22:01:11.194020, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS]                                                                                                                                                                                                   |
|   h:                                                                                                                                                                                                                                             |
|       table_rows:16351598                                                                                                                                                                                                                        |
|       physical_range_rows:1780                                                                                                                                                                                                                   |
|       logical_range_rows:1075                                                                                                                                                                                                                    |
|       output_rows:1075                                                                                                                                                                                                                           |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_2, idx_3, idx_detect_start_time, i_end_time_sensi_inst, i_sensi_flag, idx_upload_storage_flag, idx_upload_tenant, t_file]                                                                                  |
|       pruned_index_name:[idx_1, idx_2, idx_3, idx_detect_start_time, i_end_time_sensi_inst, idx_upload_storage_flag, idx_upload_tenant]                                                                                                          |
|       stats info:[version=2025-12-05 22:01:06.242261, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS, STORAGE]                                                                                                                                                                                          |
|   g:                                                                                                                                                                                                                                             |
|       table_rows:19236902                                                                                                                                                                                                                        |
|       physical_range_rows:2                                                                                                                                                                                                                      |
|       logical_range_rows:2                                                                                                                                                                                                                       |
|       index_back_rows:2                                                                                                                                                                                                                          |
|       output_rows:1                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, idx_time_id, t_order_file]                                                                                                       |
|       pruned_index_name:[idx_2, idx_3, idx_print_state, idx_update_time, idx_update_time_speed, idx_time_id]                                                                                                                                     |
|       unstable_index_name:[t_order_file]                                                                                                                                                                                                         |
|       stats info:[version=2025-12-07 22:01:11.194020, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS]                                                                                                                                                                                                   |
|   h:                                                                                                                                                                                                                                             |
|       table_rows:16351598                                                                                                                                                                                                                        |
|       physical_range_rows:1760                                                                                                                                                                                                                   |
|       logical_range_rows:1760                                                                                                                                                                                                                    |
|       output_rows:1760                                                                                                                                                                                                                           |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_2, idx_3, idx_detect_start_time, i_end_time_sensi_inst, i_sensi_flag, idx_upload_storage_flag, idx_upload_tenant, t_file]                                                                                  |
|       pruned_index_name:[idx_1, idx_2, idx_3, idx_detect_start_time, i_end_time_sensi_inst, idx_upload_storage_flag, idx_upload_tenant]                                                                                                          |
|       stats info:[version=2025-12-05 22:01:06.242261, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS, STORAGE]                                                                                                                                                                                          |
|   g:                                                                                                                                                                                                                                             |
|       table_rows:19236902                                                                                                                                                                                                                        |
|       physical_range_rows:2                                                                                                                                                                                                                      |
|       logical_range_rows:2                                                                                                                                                                                                                       |
|       index_back_rows:2                                                                                                                                                                                                                          |
|       output_rows:1                                                                                                                                                                                                                              |
|       table_dop:1                                                                                                                                                                                                                                |
|       dop_method:Table DOP                                                                                                                                                                                                                       |
|       avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, idx_time_id, t_order_file]                                                                                                       |
|       pruned_index_name:[idx_2, idx_3, idx_print_state, idx_update_time, idx_update_time_speed, idx_time_id]                                                                                                                                     |
|       unstable_index_name:[t_order_file]                                                                                                                                                                                                         |
|       stats info:[version=2025-12-07 22:01:11.194020, is_locked=0, is_expired=0]                                                                                                                                                                 |
|       dynamic sampling level:0                                                                                                                                                                                                                   |
|       estimation method:[OPTIMIZER STATISTICS]                                                                                                                                                                                                   |
|                                                                                                                                                                                                                                                  |
|   Plan Type:                                                                                                                                                                                                                                     |
|       DISTRIBUTED                                                                                                                                                                                                                                |
|                                                                                                                                                                                                                                                  |
|   Parameters:                                                                                                                                                                                                                                    |
|       :0 => 1                                                                                                                                                                                                                                    |
|       :1 => 1                                                                                                                                                                                                                                    |
|       :2 => 1000                                                                                                                                                                                                                                 |
|       :3 => 1                                                                                                                                                                                                                                    |
|       :4 => 2                                                                                                                                                                                                                                    |
|       :5 => 96                                                                                                                                                                                                                                   |
|       :6 => 97                                                                                                                                                                                                                                   |
|       :7 => 1                                                                                                                                                                                                                                    |
|       :8 => 98                                                                                                                                                                                                                                   |
|       :9 => 99                                                                                                                                                                                                                                   |
|       :10 => -3                                                                                                                                                                                                                                  |
|       :11 => 'woqu'                                                                                                                                                                                                                              |
|       :12 => -60                                                                                                                                                                                                                                 |
|       :13 => '00'                                                                                                                                                                                                                                |
|                                                                                                                                                                                                                                                  |
|   Note:                                                                                                                                                                                                                                          |
|       Degree of Parallelisim is 1 because of table property                                                                                                                                                                                      |
|                                                                                                                                                                                                                                                  |
|   Expr Constraints:                                                                                                                                                                                                                              |
|       1 result is NOT NULL                                                                                                                                                                                                                       |
|       1 result is NOT NULL                                                                                                                                                                                                                       |
|       1 result is NOT NULL                                                                                                                                                                                                                       |
|                                                                                                                                                                                                                                                  |
|                                                                                                                                                                                                                                                  |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

SCHEMA 信息

ASH 信息

SQL_AUDIT 信息

SQL_PLAN_MONITOR DFO 级调度时序汇总

调度时序图

数据时序图

DB Time 算子真实耗时分析图

SQL_PLAN_MONITOR SQC 级汇总

Goto 算子优先 Goto 机器优先

算子优先视图

机器优先视图

SQL_PLAN_MONITOR 详情

Goto 算子优先 Goto 线程优先

算子优先视图

线程优先视图

本报告在租户下使用的 SQL

DFO 级
select
  AVG(ROWS) EST_ROWS, /*0*/
  plan_monitor.PLAN_DEPTH PLAN_DEPTH,
  plan_monitor.PLAN_LINE_ID PLAN_LINE_ID,
  PLAN_OPERATION,
  COUNT(*) PARALLEL,
  MIN(FIRST_REFRESH_TIME) MIN_FIRST_REFRESH_TIME,/*5*/
  MAX(LAST_REFRESH_TIME) MAX_LAST_REFRESH_TIME,
  MIN(FIRST_CHANGE_TIME) MIN_FIRST_CHANGE_TIME,
  MAX(LAST_CHANGE_TIME) MAX_LAST_CHANGE_TIME,
  UNIX_TIMESTAMP(MIN(FIRST_REFRESH_TIME)) MIN_FIRST_REFRESH_TS,
  UNIX_TIMESTAMP(MAX(LAST_REFRESH_TIME)) MAX_LAST_REFRESH_TS, /*10*/
  UNIX_TIMESTAMP(MIN(FIRST_CHANGE_TIME)) MIN_FIRST_CHANGE_TS,
  UNIX_TIMESTAMP(MAX(LAST_CHANGE_TIME)) MAX_LAST_CHANGE_TS,
  AVG(TIMESTAMPDIFF(MICROSECOND, FIRST_REFRESH_TIME, LAST_REFRESH_TIME)) AVG_REFRESH_TIME,
  MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_REFRESH_TIME, LAST_REFRESH_TIME)) MAX_REFRESH_TIME,
  MIN(TIMESTAMPDIFF(MICROSECOND, FIRST_REFRESH_TIME, LAST_REFRESH_TIME)) MIN_REFRESH_TIME, /*15 */
  AVG(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) AVG_CHANGE_TIME,
  MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) MAX_CHANGE_TIME,
  MIN(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) MIN_CHANGE_TIME,
  SUM(OUTPUT_ROWS) TOTAL_OUTPUT_ROWS,
  (MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) - MIN(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME))) / MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)+0.00000001) SKEWNESS,
  SUM(STARTS) TOTAL_RESCAN_TIMES,/* 20 */
  MAX(OTHERSTAT_1_ID) OTHERSTAT_1_ID,
  SUM(OTHERSTAT_1_VALUE) SUM_STAT_1,
  MAX(OTHERSTAT_1_VALUE) MAX_STAT_1,
  MIN(OTHERSTAT_1_VALUE) MIN_STAT_1,
  AVG(OTHERSTAT_1_VALUE) AVG_STAT_1, /* 25 */
  MAX(OTHERSTAT_2_ID) OTHERSTAT_2_ID,
  SUM(OTHERSTAT_2_VALUE) SUM_STAT_2,
  MAX(OTHERSTAT_2_VALUE) MAX_STAT_2,
  MIN(OTHERSTAT_2_VALUE) MIN_STAT_2,
  AVG(OTHERSTAT_2_VALUE) AVG_STAT_2, /* 30 */
  MAX(OTHERSTAT_3_ID) OTHERSTAT_3_ID,
  SUM(OTHERSTAT_3_VALUE) SUM_STAT_3,
  MAX(OTHERSTAT_3_VALUE) MAX_STAT_3,
  MIN(OTHERSTAT_3_VALUE) MIN_STAT_3,
  AVG(OTHERSTAT_3_VALUE) AVG_STAT_3, /* 35 */
  MAX(OTHERSTAT_4_ID) OTHERSTAT_4_ID,
  SUM(OTHERSTAT_4_VALUE) SUM_STAT_4,
  MAX(OTHERSTAT_4_VALUE) MAX_STAT_4,
  MIN(OTHERSTAT_4_VALUE) MIN_STAT_4,
  AVG(OTHERSTAT_4_VALUE) AVG_STAT_4, /* 40 */
  MAX(OTHERSTAT_5_ID) OTHERSTAT_5_ID,
  SUM(OTHERSTAT_5_VALUE) SUM_STAT_5,
  MAX(OTHERSTAT_5_VALUE) MAX_STAT_5,
  MIN(OTHERSTAT_5_VALUE) MIN_STAT_5,
  AVG(OTHERSTAT_5_VALUE) AVG_STAT_5, /* 45*/
  MAX(OTHERSTAT_6_ID) OTHERSTAT_6_ID,
  SUM(OTHERSTAT_6_VALUE) SUM_STAT_6,
  MAX(OTHERSTAT_6_VALUE) MAX_STAT_6,
  MIN(OTHERSTAT_6_VALUE) MIN_STAT_6,
  AVG(OTHERSTAT_6_VALUE) AVG_STAT_6 /* 50 */,
  TRUNCATE(AVG(DB_TIME)/1000000000.0/2.5, 4) MY_DB_TIME,
  TRUNCATE(AVG(DB_TIME-USER_IO_WAIT_TIME)/1000000000.0/2.5, 4) MY_CPU_TIME,
  TRUNCATE(AVG(USER_IO_WAIT_TIME)/1000000000.0/2.5, 4) MY_IO_TIME
from
(
  select * FROM oceanbase.gv$sql_plan_monitor
where
  trace_id = 'YB42C0A8001A-000644EA3E986579-0-0'
) plan_monitor
LEFT JOIN
(
 SELECT ROWS, PLAN_LINE_ID FROM oceanbase.gv$ob_plan_cache_plan_explain WHERE plan_id = 135532 AND tenant_id = 1002 and svr_ip = '192.168.0.26'  and svr_port = 2882
) plan_explain
ON
  plan_monitor.PLAN_LINE_ID = plan_explain.PLAN_LINE_ID
GROUP BY
  plan_monitor.PLAN_LINE_ID, plan_monitor.PLAN_OPERATION
ORDER BY
  plan_monitor.PLAN_LINE_ID ASC;
    

机器级
select
  PLAN_DEPTH,
  PLAN_LINE_ID,
  PLAN_OPERATION,
  COUNT(*) PARALLEL,
  MIN(FIRST_REFRESH_TIME) MIN_FIRST_REFRESH_TIME,
  MAX(LAST_REFRESH_TIME) MAX_LAST_REFRESH_TIME,
  MIN(FIRST_CHANGE_TIME) MIN_FIRST_CHANGE_TIME,
  MAX(LAST_CHANGE_TIME) MAX_LAST_CHANGE_TIME,
  UNIX_TIMESTAMP(MIN(FIRST_REFRESH_TIME)) MIN_FIRST_REFRESH_TS,
  UNIX_TIMESTAMP(MAX(LAST_REFRESH_TIME)) MAX_LAST_REFRESH_TS,
  UNIX_TIMESTAMP(MIN(FIRST_CHANGE_TIME)) MIN_FIRST_CHANGE_TS,
  UNIX_TIMESTAMP(MAX(LAST_CHANGE_TIME)) MAX_LAST_CHANGE_TS,
  AVG(TIMESTAMPDIFF(MICROSECOND, FIRST_REFRESH_TIME, LAST_REFRESH_TIME)) AVG_REFRESH_TIME,
  MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_REFRESH_TIME, LAST_REFRESH_TIME)) MAX_REFRESH_TIME,
  MIN(TIMESTAMPDIFF(MICROSECOND, FIRST_REFRESH_TIME, LAST_REFRESH_TIME)) MIN_REFRESH_TIME,
  AVG(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) AVG_CHANGE_TIME,
  MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) MAX_CHANGE_TIME,
  MIN(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) MIN_CHANGE_TIME,
  SUM(OUTPUT_ROWS) TOTAL_OUTPUT_ROWS,
  (MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) - MIN(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME))) / MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) SKEWNESS,
  SUM(STARTS) TOTAL_RESCAN_TIMES,
  SVR_IP,
  SVR_PORT,
  MAX(OTHERSTAT_1_VALUE) MAX_STAT_1,
  MIN(OTHERSTAT_1_VALUE) MIN_STAT_1,
  AVG(OTHERSTAT_1_VALUE) AVG_STAT_1,
  MAX(OTHERSTAT_2_VALUE) MAX_STAT_2,
  MIN(OTHERSTAT_2_VALUE) MIN_STAT_2,
  AVG(OTHERSTAT_2_VALUE) AVG_STAT_2,
  MAX(OTHERSTAT_3_VALUE) MAX_STAT_3,
  MIN(OTHERSTAT_3_VALUE) MIN_STAT_3,
  AVG(OTHERSTAT_3_VALUE) AVG_STAT_3,
  MAX(OTHERSTAT_4_VALUE) MAX_STAT_4,
  MIN(OTHERSTAT_4_VALUE) MIN_STAT_4,
  AVG(OTHERSTAT_4_VALUE) AVG_STAT_4,
  MAX(OTHERSTAT_5_VALUE) MAX_STAT_5,
  MIN(OTHERSTAT_5_VALUE) MIN_STAT_5,
  AVG(OTHERSTAT_5_VALUE) AVG_STAT_5,
  MAX(OTHERSTAT_6_VALUE) MAX_STAT_6,
  MIN(OTHERSTAT_6_VALUE) MIN_STAT_6,
  AVG(OTHERSTAT_6_VALUE) AVG_STAT_6,
  TRUNCATE(AVG(DB_TIME)/1000000000.0/2.5, 4) MY_DB_TIME,
  TRUNCATE(AVG(DB_TIME-USER_IO_WAIT_TIME)/1000000000.0/2.5, 4) MY_CPU_TIME,
  TRUNCATE(AVG(USER_IO_WAIT_TIME)/1000000000.0/2.5, 4) MY_IO_TIME
from
  oceanbase.gv$sql_plan_monitor
where
  trace_id = 'YB42C0A8001A-000644EA3E986579-0-0'
GROUP BY
  PLAN_LINE_ID,PLAN_OPERATION,SVR_IP,SVR_PORT
ORDER BY
  PLAN_LINE_ID ASC, MAX_CHANGE_TIME ASC, SVR_IP, SVR_PORT; 
    

线程级
select
  PLAN_DEPTH,/*0*/
  SVR_IP,
  SVR_PORT,
  PROCESS_NAME,
  PLAN_LINE_ID,
  PLAN_OPERATION, /*5*/
  OUTPUT_ROWS,
  STARTS RESCAN_TIMES,
  FIRST_REFRESH_TIME,
  LAST_REFRESH_TIME,
  FIRST_CHANGE_TIME,/*10*/
  LAST_CHANGE_TIME,
  UNIX_TIMESTAMP(FIRST_REFRESH_TIME) FIRST_REFRESH_TS,
  UNIX_TIMESTAMP(LAST_REFRESH_TIME) LAST_REFRESH_TS,
  UNIX_TIMESTAMP(LAST_REFRESH_TIME) - UNIX_TIMESTAMP(FIRST_REFRESH_TIME) REFRESH_TS,
  UNIX_TIMESTAMP(FIRST_CHANGE_TIME) FIRST_CHANGE_TS, /*15*/
  UNIX_TIMESTAMP(LAST_CHANGE_TIME) LAST_CHANGE_TS,
  UNIX_TIMESTAMP(LAST_CHANGE_TIME) - UNIX_TIMESTAMP(FIRST_CHANGE_TIME) CHANGE_TS,
  OTHERSTAT_1_ID,
  OTHERSTAT_1_VALUE,
  OTHERSTAT_2_ID, /*20*/
  OTHERSTAT_2_VALUE,
  OTHERSTAT_3_ID,
  OTHERSTAT_3_VALUE,
  OTHERSTAT_4_ID,
  OTHERSTAT_4_VALUE, /*25*/
  OTHERSTAT_5_ID,
  OTHERSTAT_5_VALUE,
  OTHERSTAT_6_ID,
  OTHERSTAT_6_VALUE,
  TRUNCATE((DB_TIME)/1000000000.0/2.5, 4) MY_DB_TIME,
  TRUNCATE((DB_TIME-USER_IO_WAIT_TIME)/1000000000.0/2.5, 4) MY_CPU_TIME,
  TRUNCATE((USER_IO_WAIT_TIME)/1000000000.0/2.5, 4) MY_IO_TIME
from
  oceanbase.gv$sql_plan_monitor
where
    trace_id = 'YB42C0A8001A-000644EA3E986579-0-0'
ORDER BY
  PLAN_LINE_ID ASC, SVR_IP, SVR_PORT, CHANGE_TS, PROCESS_NAME ASC;
    

Report generation time: 2025-12-08 16:10:54
obdiag version: 3.7.2
observer version: 4.4.1.0
observer commit id: 4.4.1.0_100000032025101610-70824e90816ed333c56f3dd1af34ffec43d0fa88(Oct 16 2025 10:13:49)