odp上多次执行 根据sql_id查一下这个信息
SELECT plan_id, plan_hash, plan_status, adaptive_feedback_times, first_load_time, executions, hit_count FROM oceanbase.GV$OB_PLAN_CACHE_PLAN_STAT
WHERE sql_id = ‘’
ORDER BY first_load_time;
根据不通observer ip地址过滤 查一下信息
SELECT svr_ip,usec_to_time(request_time),trace_id,query_sql, request_id, is_hit_plan, get_plan_time, plan_hash,plan_id, sid, client_ip FROM oceanbase.GV$OB_SQL_AUDIT WHERE sql_id = ‘’ and svr_ip=‘192.168.80.21’ ORDER BY request_time DESC LIMIT 50;
无标题.txt (3.4 KB)
第一个sql有些字段没有
改成为这个执行
SELECT plan_id, plan_hash, first_load_time, executions, hit_count FROM oceanbase.GV$OB_PLAN_CACHE_PLAN_STAT WHERE sql_id =‘610059D25178D94DB4D94936C4A4B297’ ORDER BY first_load_time;