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,