在使用OceanBase做业务库时,大家遇到SQL执行计划不稳的情况一般怎么排查?有哪些常用的Hint或参数调优经验可以交流?
2 个赞
可以使用obdiag收集一下plan_monitor信息
obdiag gather plan_monitor --trace_id YB420BA2D99B-0005EBBFC45D5A00-0-0
–env host=xx.xx.xx.xx --env port=2881 --env user=root@test --env password=*** --env database=test
–config db_host=xx.xx.xx.xx
–config db_port=xxxx
–config tenant_sys.user=root@sys
–config tenant_sys.password=***
https://www.oceanbase.com/docs/common-obdiag-cn-1000000005357969
具体问题具体分析,先看看执行计划
具体问题具体分析 ![]()
1 个赞
棒棒