咨询一下关于文档描述的问题,有看到社区版对 [执行计划缓存] 中 [手动淘汰] 的方式
ALTER SYSTEM FLUSH PLAN CACHE [ [SQL_identifier] [database_list] tenant_list ] [global];
没看理解对于普通租户如果要清理自身的查询计划缓存的命令该怎么写,以下面操作为例,用普通用户的root权限登录租户,执行下面的操作,要么是Access denied,要么是语法错误,想咨询下正确的语句该怎么编写,具体操作如下所示 复现步骤所示
【操作记录】
– 租户用户权限 root@10.186.61.159[oceanbase]> show grants;
±---------------------------------------------------------+
| Grants for root@% |
±---------------------------------------------------------+
| GRANT ALL PRIVILEGES ON . TO ‘root’ WITH GRANT OPTION |
| GRANT ALL PRIVILEGES ON mysql.* TO ‘root’ |
| GRANT ALL PRIVILEGES ON oceanbase.* TO ‘root’ |
| GRANT ALL PRIVILEGES ON test.* TO ‘root’ |
| GRANT ALL PRIVILEGES ON information_schema.* TO ‘root’ |
| GRANT ALL PRIVILEGES ON __public.* TO ‘root’ |
| GRANT ALL PRIVILEGES ON __recyclebin.* TO ‘root’ |
±---------------------------------------------------------+
7 rows in set (0.31 sec)
– 执行的清理查询缓存的操作 root@10.186.61.159[oceanbase]> alter system flush plan cache;
ERROR 1227 (42501): Access denied
root@10.186.61.159[oceanbase]> alter system flush plan cache databases=‘test’;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your OceanBase version for the right syntax to use near ‘databases=‘test’’ at line 1
root@10.186.61.159[oceanbase]> alter system flush plan cache databases=‘test’ tenant=‘zhenxing’;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your OceanBase version for the right syntax to use near ‘databases=‘test’ tenant=‘zhenxing’’ at line 1