SQL Performance (MOSC)

MOSC Banner

Avoid analyze table to user

edited Mar 10, 2015 10:05AM in SQL Performance (MOSC) 10 commentsAnswered

Hello.

Today a developer user (CONSO) has execute an ANALYZE TABLE statement on a table that belongs to its own schema, I mean:

ANALYZE TABLE CONSO.HISTOMOV ESTIMATE STATISTICS SAMPLE 33 PERCENT

These are the privileges for the user.

PRIVILEGE                         

----------------------------------------

CREATE SESSION                    
UNLIMITED TABLESPACE              
CREATE TABLE                      
CREATE CLUSTER                    
CREATE SEQUENCE                   
CREATE PROCEDURE                  
CREATE TRIGGER                    
CREATE TYPE                       
CREATE OPERATOR                   
CREATE INDEXTYPE 

Two questions:

- How an user with no ANALYZE privileges can execute this statement? I guess because It's his own schema, but couldn't execute it in any other.

- How can I avoid any user (except SYS and SYSTEM) execute ANALYZE TABLE even in his own schema?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center