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.

ORA-20000: Unable to analyze TABLE insufficient privileges or does not exist

$phinx19May 24 2017 — edited May 25 2017

Hi All,

OS: RHEL

DB: 11gR2

I am trying to gather the stats of a table which belongs to a different schema, I have given the following privileges to the user from which I am trying to gather the stats:

execute on dbsm_stats

Analyze any

After going through all the online docs I am unable to unable to understand why I am getting the below error:

EXECUTE DBMS_STATS.GATHER_TABLE_STATS (OWNNAME=>'NSIPR', TABNAME=>'TBL_ABC_CHECK',ESTIMATE_PERCENT=>100,CASCADE=>TRUE, METHOD_OPT=>'FOR ALL COLUMNS SIZE 1', DEGREE=>8);

*

ERROR at line 1:

ORA-20000: Unable to analyze TABLE "NSPR"."TBL_ABC_CHECK", insufficient privileges or does not exist

ORA-06512: at "SYS.DBMS_STATS", line 24270

ORA-06512: at "SYS.DBMS_STATS", line 24332

ORA-06512: at line 1

Just to check if  there is any privillege issue, I also granted DBA privillege to the the user and then executed the above package but still faced the same  issue.

Please advise.

Thanks,

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 22 2017
Added on May 24 2017
16 comments
20,316 views