Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

DBMS_STATS Reporting Functions “ORA-20000: Insufficient privileges”

wtolentinoDec 11 2024

I am trying to use the DBMS_STATS Reporting Functions and getting this “ORA-20000: Insufficient privileges” error.

SQL> select dbms_stats.report_single_stats_operation(opid => 100784, detail_level => 'TYPICAL', format => 'TEXT') text_line from dual;

TEXT_LINE
--------------------------------------------------------------------------------
<report>ORA-20000: Insufficient privileges</report>

I can run the dbms_stats.gather_table_stats successfully but not the dbms_stats.report_single_stats_operation. The account have “analyze any” privileges. What could I be missing. Please advise.

Thank you,
Warren

This post has been answered by Solomon Yakobson on Dec 11 2024
Jump to Answer

Comments

Post Details

Added on Dec 11 2024
2 comments
28 views