To... | the user must have... |
---|---|
collect or drop statistics on a permanent or global temporary table, a hash index, or a join index | the STATISTICS privilege on the table, global temporary table, hash index or join index. |
collect or drop statistics on a permanent row level security table | the STATISTICS and OVERRIDE SELECT privileges on the table. |
collect or drop statistics on a volatile table or a materialized global temporary table | No privileges required. |
use HELP STATISTICS to display summary or detail information for collected statistics for the specified data table or hash or join index |
|
use SHOW STATISTICS to display summary or detail information for collected statistics for the specified data table or hash or join index | if the values option is not specified:
if the values option is specified:
|