23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

REVOKE<br />

REVOKE<br />

Syntax<br />

42<br />

Related statements<br />

COMMIT, ROLLBACK, SET TRANSACTION ISOLATION LEVEL<br />

Revokes various privileges from the specified users of the database. There are two forms of the<br />

REVOKE statement:<br />

• Revoke database-wide privileges, either system administration (DBA), general creation<br />

(RESOURCE), audit administration (AUDIT_ADMIN), audit archive (AUDIT_ARCHIVE), or audit<br />

insert (AUDIT_INSERT)<br />

• Revoke various privileges on specific tables and views<br />

REVOKE { RESOURCE , DBA, AUDIT_ADMIN, AUDIT_ARCHIVE, AUDIT_INSERT}<br />

FROM { username [ , username ] , ... }<br />

[ RESTRICT | CASCADE ]<br />

[ GRANTED BY ANY_USER ];<br />

RESOURCE<br />

DBA<br />

Revokes from the specified users the privilege to issue CREATE statements.<br />

Revokes from the specified users the privilege to create, access, modify, or delete any<br />

database object, and revokes the privilege to grant other users any privileges.<br />

AUDIT_ADMIN<br />

Revokes from the specified users the privilege to administrate and maintain a database<br />

auditing system.<br />

AUDIT_ARCHIVE<br />

Revokes from the specified users the privilege to read and delete audit records.<br />

AUDIT_INSERT<br />

Revokes from the specified users the privilege to insert application audit records.<br />

FROM username [ , username ] , ...<br />

Revokes the specified privileges on the table or view from the specified list of users.<br />

RESTRICT | CASCADE<br />

Prompts <strong>SQL</strong> to check to see if the privilege being revoked was passed on to other users.<br />

This is possible only if the original privilege included the WITH GRANT OPTION clause. If<br />

so, the REVOKE statement fails and generates an error. If the privilege was not passed on,<br />

the REVOKE statement succeeds.

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

Saved successfully!

Ooh no, something went wrong!