Examples using REVOKE
-
Revoking the privileges for selecting and inserting into the table (or view)
SALESREVOKE SELECT, INSERT ON TABLE SALES FROM USER ALEX; -
Revoking the privilege for selecting from the
CUSTOMERtable from theMANAGERandENGINEERroles and from the userIVAN:REVOKE SELECT ON TABLE CUSTOMER FROM ROLE MANAGER, ROLE ENGINEER, USER IVAN; -
Revoking from the
ADMINISTRATORrole the privilege to grant any privileges on theCUSTOMERtable to other users or roles:REVOKE GRANT OPTION FOR ALL ON TABLE CUSTOMER FROM ROLE ADMINISTRATOR; -
Revoking the privilege for selecting from the
COUNTRYtable and the privilege to reference theNAMEcolumn of theCOUNTRYtable from any user, via the special userPUBLIC:REVOKE SELECT, REFERENCES (NAME) ON TABLE COUNTRY FROM PUBLIC; -
Revoking the privilege for selecting form the
EMPLOYEEtable from the userIVAN, that was granted by the userALEX:REVOKE SELECT ON TABLE EMPLOYEE FROM USER IVAN GRANTED BY ALEX; -
Revoking the privilege for updating the
FIRST_NAMEandLAST_NAMEcolumns of theEMPLOYEEtable from the userIVAN:REVOKE UPDATE (FIRST_NAME, LAST_NAME) ON TABLE EMPLOYEE FROM USER IVAN; -
Revoking the privilege for inserting records into the
EMPLOYEE_PROJECTtable from theADD_EMP_PROJprocedure:REVOKE INSERT ON EMPLOYEE_PROJECT FROM PROCEDURE ADD_EMP_PROJ; -
Revoking the privilege for executing the procedure
ADD_EMP_PROJfrom theMANAGERrole:REVOKE EXECUTE ON PROCEDURE ADD_EMP_PROJ FROM ROLE MANAGER; -
Revoking the privilege to grant the
EXECUTEprivilege for the functionGET_BEGIN_DATEto other users from the roleMANAGER:REVOKE GRANT OPTION FOR EXECUTE ON FUNCTION GET_BEGIN_DATE FROM ROLE MANAGER; -
Revoking the
EXECUTEprivilege on the packageDATE_UTILSfrom userALEX:REVOKE EXECUTE ON PACKAGE DATE_UTILS FROM USER ALEX; -
Revoking the
USAGEprivilege on the sequenceGEN_AGEfrom the roleMANAGER:REVOKE USAGE ON SEQUENCE GEN_AGE FROM ROLE MANAGER; -
Revoking the
USAGEprivilege on the sequenceGEN_AGEfrom the triggerTR_AGE_BI:REVOKE USAGE ON SEQUENCE GEN_AGE FROM TRIGGER TR_AGE_BI; -
Revoking the
USAGEprivilege on the exceptionE_ACCESS_DENIEDfrom the packagePKG_BILL:REVOKE USAGE ON EXCEPTION E_ACCESS_DENIED FROM PACKAGE PKG_BILL; -
Revoking the privilege to create tables from user
JOE:REVOKE CREATE TABLE FROM USER Joe; -
Revoking the privilege to alter any procedure from user
JOE:REVOKE ALTER ANY PROCEDURE FROM USER Joe; -
Revoking the privilege to create databases from user
SUPERUSER:REVOKE CREATE DATABASE FROM USER Superuser; -
Revoking the
DIRECTORandMANAGERroles from the userIVAN:REVOKE DIRECTOR, MANAGER FROM USER IVAN; -
Revoke from the user
ALEXthe privilege to grant theMANAGERrole to other users:REVOKE ADMIN OPTION FOR MANAGER FROM USER ALEX; -
Revoking all privileges (including roles) on all objects from the user
IVAN:REVOKE ALL ON ALL FROM USER IVAN;After this statement is executed by an administrator, the user
IVANwill have no privileges whatsoever, except those granted throughPUBLIC. -
Revoking the
DEFAULTproperty of theDIRECTORrole from userALEX, while the role itself remains granted:REVOKE DEFAULT DIRECTOR FROM USER ALEX;