ORACLE給用戶賦權限是用戶可以查看鎖表,殺表

命令如下:

-- Grant/Revoke object privileges 
grant select on DBA_OBJECTS to USERNAME;
grant select on GV_$LOCKED_OBJECT to USERNAME;
grant select on GV_$SESSION to USERNAME;
grant select on GV_$SQLAREA to USERNAME;
grant select on V_$ACCESS to USERNAME;
grant select on V_$DATABASE to USERNAME;
grant select on V_$LOCK to USERNAME;
grant select on V_$SESSION to USERNAME;
grant select on V_$SESSTAT to USERNAME;
grant select on V_$SQL to USERNAME;
grant select on V_$STATNAME to USERNAME;
-- Grant/Revoke role privileges 
grant connect to USERNAME;
grant resource to USERNAME;
-- Grant/Revoke system privileges 
grant alter system to USERNAME;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章