ibm-information-center/dist/eclipse/plugins/i5OS.ic.db2_5.4.0.1/rbafzmstrspriv.htm

133 lines
7.4 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-19" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow"/>
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="keywords" content="REVOKE (Sequence privileges) statement,
REVOKE (Sequence privileges), SQL statements, ALL clause, ALL PRIVILEGES clause,
ALTER clause, REVOKE (Sequence Privileges) statement, USAGE clause,
ON SEQUENCE clause, in REVOKE (Sequence privileges) statement, sequence-name,
FROM clause, authorization-name, PUBLIC clause, REVOKE (Sequence Privileges)" />
<title>REVOKE (Sequence Privileges)</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="rspriv"></a>
<h2 id="rspriv"><a href="rbafzmst02.htm#ToC_1240">REVOKE (Sequence Privileges)</a></h2><a id="idx3055" name="idx3055"></a><a id="idx3056" name="idx3056"></a>
<a name="revps"></a>
<p id="revps">This form of the REVOKE statement removes the privileges on
a sequence.</p>
<a name="wq1701"></a>
<h3 id="wq1701"><a href="rbafzmst02.htm#ToC_1241">Invocation</a></h3>
<p>This statement can be embedded in an application program or issued interactively.
It is an executable statement that can be dynamically prepared.</p>
<a name="wq1702"></a>
<h3 id="wq1702"><a href="rbafzmst02.htm#ToC_1242">Authorization</a></h3>
<p>The privileges held by the authorization ID of the statement must include
at least one of the following: </p>
<ul>
<li>For each sequence identified in the statement:
<ul>
<li>Every privilege specified in the statement</li>
<li>The system authority of *OBJMGT on the sequence</li>
<li>The system authority *EXECUTE on the library containing the sequence</li></ul></li>
<li>Administrative authority</li></ul>
<a name="wq1703"></a>
<h3 id="wq1703"><a href="rbafzmst02.htm#ToC_1243">Syntax</a></h3>
<a href="rbafzmstrspriv.htm#synsrevokes"><img src="c.gif" alt="Click to skip syntax diagram" /></a>
<pre class="cgraphic"><span><img src="c.gif" alt="Read syntax diagram" longdesc="rbafzmstsyn373.htm"
border="0" /></span><a href="#skipsyn-372"><img src="c.gif" alt="Skip visual syntax diagram"
border="0" /></a> .-PRIVILEGES-.
>>-REVOKE--+-ALL--+------------+-+--ON SEQUENCE----------------->
| .-,---------. |
| V | |
'---+-ALTER-+-+-------'
'-USAGE-'
.-,-------------. .-,----------------------.
V | V |
>----<span class="italic">sequence-name</span>-+--FROM----+-<span class="italic">authorization-name</span>-+-+--------->&lt;
'-PUBLIC-------------'
</pre>
<a name="skipsyn-372" id="skipsyn-372"></a>
<a name="synsrevokes"></a>
<h3 id="synsrevokes"><a href="rbafzmst02.htm#ToC_1244">Description</a></h3>
<dl class="parml">
<dt class="bold">ALL <span class="base">or</span> ALL PRIVILEGES</dt><a id="idx3057" name="idx3057"></a><a id="idx3058" name="idx3058"></a>
<dd>Revokes one or more sequence privileges from each <span class="italic">authorization-name</span>. The privileges revoked are those privileges on the
identified sequences that were granted to the <span class="italic">authorization-names</span>. Note that revoking ALL PRIVILEGES on a sequence is not the same as
revoking the system authority of *ALL.
<p>If you do not use ALL, you must
use one or more of the keywords listed below. Each keyword revokes the privilege
described.</p>
</dd>
<dt class="bold">ALTER </dt><a id="idx3059" name="idx3059"></a>
<dd>Revokes the privilege to use the ALTER SEQUENCE, COMMENT, and LABEL
statements on a sequence.
</dd>
<dt class="bold">USAGE </dt><a id="idx3060" name="idx3060"></a>
<dd>Revokes the privilege to use the sequence in NEXT VALUE or PREVIOUS
VALUE expressions.
</dd>
<dt class="bold">ON SEQUENCE <var class="pv">sequence-name</var> </dt><a id="idx3061" name="idx3061"></a><a id="idx3062" name="idx3062"></a>
<dd>Identifies the sequences from which you are revoking privileges. The <span class="italic">sequence-name</span> must identify a sequence that exists at
the current server.
</dd>
<dt class="bold">FROM </dt><a id="idx3063" name="idx3063"></a>
<dd>Identifies from whom the privileges are revoked.
<dl class="parml">
<dt class="bold"><var class="pv">authorization-name,...</var> </dt><a id="idx3064" name="idx3064"></a>
<dd>Lists one or more authorization IDs. Do not specify the same <span class="italic">authorization-name</span> more than once.
</dd>
<dt class="bold">PUBLIC </dt><a id="idx3065" name="idx3065"></a>
<dd>Revokes the specified privileges from PUBLIC.
</dd>
</dl>
</dd>
</dl>
<a name="wq1704"></a>
<h3 id="wq1704"><a href="rbafzmst02.htm#ToC_1245">Notes</a></h3>
<p><span class="bold">Multiple grants:</span> If you revoke a privilege on a sequence,
it nullifies any grant of the privilege on that sequence, regardless of who
granted it.</p>
<p><span class="bold">Revoking WITH GRANT OPTION:</span> The only way to revoke
the WITH GRANT OPTION is to revoke ALL.</p>
<p><span class="bold">Privilege warning:</span> Revoking a specific privilege
from a user does not necessarily prevent that user from performing an action
that requires that privilege. For example, the user may still have the privilege
through PUBLIC or administrative privileges.</p>
<p><span class="bold">Corresponding system authorities:</span> When a sequence
privilege is revoked, the corresponding system authorities are revoked. For
information on the system authorities that correspond to SQL privileges see <a href="rbafzmstgntseqp.htm#gntseqp">GRANT (Sequence Privileges)</a>.</p>
<a name="wq1705"></a>
<h3 id="wq1705"><a href="rbafzmst02.htm#ToC_1246">Example</a></h3>
<p>REVOKE the USAGE privilege from PUBLIC on a sequence called ORG_SEQ.</p>
<pre class="xmp"><span class="bold">REVOKE USAGE</span>
<span class="bold">ON SEQUENCE</span> ORG_SEQ
<span class="bold">FROM PUBLIC</span></pre><a id="idx3066" name="idx3066"></a><a id="idx3067" name="idx3067"></a>
<p></p>
<hr /><br />
[ <a href="#Top_Of_Page">Top of Page</a> | <a href="rbafzmstrppriv.htm">Previous Page</a> | <a href="rbafzmstrevoket.htm">Next Page</a> | <a href="rbafzmst02.htm#wq1">Contents</a> |
<a href="rbafzmstindex.htm#index">Index</a> ]
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>