16.10.2015 Views

Getting Started with DB2 Express-C

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GRANT SELECT ON TABLE T1 TO USER user1<br />

Chapter 10 – Database Security 183<br />

To grant all privileges on table T1 to the group GROUP1:<br />

GRANT ALL ON TABLE T1 TO GROUP group1<br />

To revoke all privileges on table T1 from group GROUP1:<br />

REVOKE ALL ON TABLE T1 FROM GROUP group1<br />

To grant EXECUTE privilege on procedure p1 to user USER1:<br />

GRANT EXECUTE ON PROCEDURE p1 TO USER user1<br />

To revoke EXECUTE privilege on procedure p1 from user USER1:<br />

REVOKE EXECUTE ON PROCEDURE p1 FROM USER user1<br />

10.6 Authorization and privilege checking<br />

The easiest way to check for authorization and privileges is through the Control Center.<br />

Figure 10.6 illustrates how to launch the Table Privileges dialog for the EMPLOYEE table<br />

from the Control Center.<br />

Figure 10.6 - Launching the Table Privileges dialog

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!