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

142 lines
7.9 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 (Package Privileges) statement,
REVOKE (Package Privileges), SQL statements, ALL clause, ALL PRIVILEGES clause,
ALTER clause, EXECUTE clause, ON PACKAGE clause,
in REVOKE (Package Privileges) statement, package-name, FROM clause,
authorization-name, PUBLIC clause" />
<title>REVOKE (Package 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="rppriv"></a>
<h2 id="rppriv"><a href="rbafzmst02.htm#ToC_1233">REVOKE (Package Privileges)</a></h2><a id="idx3042" name="idx3042"></a><a id="idx3043" name="idx3043"></a>
<a name="revpp"></a>
<p id="revpp">This form of the REVOKE statement removes the privileges on
a package.</p>
<a name="wq1696"></a>
<h3 id="wq1696"><a href="rbafzmst02.htm#ToC_1234">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="wq1697"></a>
<h3 id="wq1697"><a href="rbafzmst02.htm#ToC_1235">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 package identified in the statement:
<ul>
<li>Every privilege specified in the statement</li>
<li>The system authority of *OBJMGT on the package</li>
<li>The system authority *EXECUTE on the library containing the package</li></ul></li>
<li>Administrative authority</li></ul>
<a name="wq1698"></a>
<h3 id="wq1698"><a href="rbafzmst02.htm#ToC_1236">Syntax</a></h3>
<a href="rbafzmstrppriv.htm#synsrevokep"><img src="c.gif" alt="Click to skip syntax diagram" /></a>
<pre class="cgraphic"><span><img src="c.gif" alt="Read syntax diagram" longdesc="rbafzmstsyn372.htm"
border="0" /></span><a href="#skipsyn-371"><img src="c.gif" alt="Skip visual syntax diagram"
border="0" /></a> .-PRIVILEGES-.
>>-REVOKE--+-ALL--+------------+-+--ON PACKAGE------------------>
| .-,-----------. |
| V | |
'---+-ALTER---+-+-----'
'-EXECUTE-'
.-,------------. .-,----------------------.
V | V |
>----<span class="italic">package-name</span>-+--FROM----+-<span class="italic">authorization-name</span>-+-+---------->&lt;
'-PUBLIC-------------'
</pre>
<a name="skipsyn-371" id="skipsyn-371"></a>
<a name="synsrevokep"></a>
<h3 id="synsrevokep"><a href="rbafzmst02.htm#ToC_1237">Description</a></h3>
<dl class="parml">
<dt class="bold">ALL <span class="base">or</span> ALL PRIVILEGES</dt><a id="idx3044" name="idx3044"></a><a id="idx3045" name="idx3045"></a>
<dd>Revokes one or more package privileges from each <span class="italic">authorization-name</span>. The privileges revoked are those privileges on the
identified packages that were granted to the <span class="italic">authorization-names</span>. Note that revoking ALL PRIVILEGES on a package 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="idx3046" name="idx3046"></a>
<dd>Revokes the privilege to use the COMMENT and LABEL statements.
</dd>
<dt class="bold">EXECUTE </dt><a id="idx3047" name="idx3047"></a>
<dd>Revokes the privilege to execute statements in a package.
</dd>
<dt class="bold">ON PACKAGE <var class="pv">package-name</var> </dt><a id="idx3048" name="idx3048"></a><a id="idx3049" name="idx3049"></a>
<dd>Identifies the packages from which you are revoking privileges. The <span class="italic">package-name</span> must identify a package that exists at the
current server.
</dd>
<dt class="bold">FROM </dt><a id="idx3050" name="idx3050"></a>
<dd>Identifies from whom the privileges are revoked.
<dl class="parml">
<dt class="bold"><var class="pv">authorization-name,...</var> </dt><a id="idx3051" name="idx3051"></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="idx3052" name="idx3052"></a>
<dd>Revokes the specified privileges from PUBLIC.
</dd>
</dl>
</dd>
</dl>
<a name="wq1699"></a>
<h3 id="wq1699"><a href="rbafzmst02.htm#ToC_1238">Notes</a></h3>
<p><span class="bold">Multiple grants:</span> If you revoke a privilege on a package,
it nullifies any grant of the privilege on that package, 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 package
privilege is revoked, the corresponding system authorities are revoked. For
information on the system authorities that correspond to SQL privileges see <a href="rbafzmstgntpp.htm#gntpp">GRANT (Package Privileges)</a>.</p>
<p><span class="bold">Syntax alternatives:</span> The following keywords are synonyms
supported for compatibility to prior releases. These keywords are non-standard
and should not be used:</p>
<ul>
<li>The keyword RUN can be used as a synonym for EXECUTE.</li>
<li>The keyword PROGRAM can be used as a synonym for PACKAGE.</li></ul>
<a name="wq1700"></a>
<h3 id="wq1700"><a href="rbafzmst02.htm#ToC_1239">Example</a></h3>
<p><span class="italic">Example 1:</span> Revoke the EXECUTE privilege on package
PKGA from PUBLIC. </p>
<pre class="xmp"> <span class="bold">REVOKE EXECUTE</span>
<span class="bold">ON PACKAGE</span> PKGA
<span class="bold">FROM PUBLIC</span></pre>
<p><span class="italic">Example 2:</span> Revoke the EXECUTE privilege on package
RRSP_PKG from user FRANK and PUBLIC.</p>
<pre class="xmp"> <span class="bold">REVOKE EXECUTE</span>
<span class="bold">ON PACKAGE</span> RRSP_PKG
<span class="bold">FROM</span> FRANK, <span class="bold">PUBLIC</span></pre>
<p><a id="idx3053" name="idx3053"></a><a id="idx3054" name="idx3054"></a></p>
<hr /><br />
[ <a href="#Top_Of_Page">Top of Page</a> | <a href="rbafzmstrppro.htm">Previous Page</a> | <a href="rbafzmstrspriv.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>