What privileges for GATHER_TABLE_STATS on table in other schema [message #274547] |
Tue, 16 October 2007 06:54 |
lm_suresh
Messages: 24 Registered: September 2007 Location: Chennai,India
|
Junior Member |
|
|
USER sysadm has ANALYZE ANY privilege,infact user has got dba privliege. but still i am getting THIS ERROR ONLY FOR THIS TABLE IN THAT SCHEMA. what could be the issue here.
SQL> select * from user_role_privs where username='SYSADM' ;
USERNAME GRANTED_ROLE ADM DEF OS_
------------------------------ ------------------------------ --- --- ---
SYSADM CONNECT NO YES NO
SYSADM DBA NO YES NO
SYSADM PSADMIN NO YES NO
SYSADM RESOURCE NO YES NO
SQL> connect sysadm/sysadm
Connected.
SQL> exec DBMS_STATS.GATHER_TABLE_STATS (ownname=>'sysadm', tabname => 'PS_SJT_PERSON');
BEGIN DBMS_STATS.GATHER_TABLE_STATS (ownname=>'sysadm', tabname => 'PS_SJT_PERSON'); END;
*
ERROR at line 1:
ORA-20000: Unable to analyze TABLE "SYSADM"."PS_SJT_PERSON", insufficient
privileges or does not exist
ORA-06512: at "SYS.DBMS_STATS", line 13046
ORA-06512: at "SYS.DBMS_STATS", line 13076
ORA-06512: at line 1
|
|
|
|
|
|
|
|
|
|