Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\images\doc\AEAPI\apex_util026.htm
<!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>FETCH_USER Procedure Signature 2</title> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1" /> <meta name="date" content="2009-04-14T17:32:16Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="FETCH_USER Procedure Signature 2" /> <meta name="relnum" content="Release 3.2" /> <meta name="partnum" content="E12510-01" /> <link rel="copyright" href="../dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> <link rel="stylesheet" href="../dcommon/css/blafdoc.css" title="Oracle BLAFDoc" type="text/css" /> <link rel="contents" href="toc.htm" title="Contents" type="text/html" /> <link rel="up" href="preface" title="Home" type="text/html" /> <link rel="up" href="apex_util.htm" title="APEX_UTIL" type="text/html" /> <link rel="up" href="apex_util026.htm" title="FETCH_USER Procedure..." type="text/html" /> <link rel="prev" href="apex_util025.htm" title="Previous" type="text/html" /> <link rel="next" href="apex_util027.htm" title="Next" type="text/html" /> </head> <body> <p id="BREADCRUMBING"><a href="preface" title="Home">Home</a> > <a href="apex_util.htm" title="APEX_UTIL">APEX_UTIL</a> > FETCH_USER Procedure...</p> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr valign="bottom"> <td align="left"></td> <td align="center"><a href="apex_util025.htm"><img src="../dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="apex_util027.htm"><img src="../dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="CHDCEGHH" name="CHDCEGHH"></a></p> <hr /> <div class="refsect1"> <h1><a name="AEAPI351" id="AEAPI351"></a>FETCH_USER Procedure<a id="sthref146" name="sthref146"></a><a id="sthref147" name="sthref147"></a> Signature 2</h1> <p>This procedure fetches a user account record. To execute this procedure, the current user must have administrative privileges in the workspace. Three overloaded versions of this procedure exist, each with a distinct set of allowed parameters or signatures.</p> <a id="sthref148" name="sthref148"></a> <p class="subhead2">Syntax for Signature 2</p> <pre xml:space="preserve" class="oac_no_warn"> APEX_UTIL.FETCH_USER ( p_user_id IN NUMBER, p_user_name OUT VARCHAR2, p_first_name OUT VARCHAR2, p_last_name OUT VARCHAR2, p_email_address OUT VARCHAR2, p_groups OUT VARCHAR2, p_developer_role OUT VARCHAR2, p_description OUT VARCHAR2 ); </pre> <a id="sthref149" name="sthref149"></a> <p class="subhead2">Parameters for Signature 2</p> <p><a href="#CHDIDAIB">Table: Fetch_User Parameters Signature 2</a> describes the parameters available in the <code>FETCH_USER</code> procedure for signature 2.</p> <div class="tblformal"><a id="sthref150" name="sthref150"></a><a id="CHDIDAIB" name="CHDIDAIB"></a> <p class="titleintable">Fetch_User Parameters Signature 2</p> <table class="Formal" title="Fetch_User Parameters Signature 2" summary="This table describes the parameters available in the FETCH_USER procedure." dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"> <col width="31%" /> <col width="*" /> <thead> <tr align="left" valign="top"> <th align="left" valign="bottom" id="r1c1-t39">Parameter</th> <th align="left" valign="bottom" id="r1c2-t39">Description</th> </tr> </thead> <tbody> <tr align="left" valign="top"> <td align="left" id="r2c1-t39" headers="r1c1-t39"> <p><code>p_user_id</code></p> </td> <td align="left" headers="r2c1-t39 r1c2-t39"> <p>Numeric primary key of the user account</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r3c1-t39" headers="r1c1-t39"> <p><code>p_user_name</code></p> </td> <td align="left" headers="r3c1-t39 r1c2-t39"> <p>Alphanumeric name used for login.</p> <p><span class="bold">See Also</span>: <a href="apex_util053.htm#BABDBCCD">"GET_USERNAME Function"</a></p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r4c1-t39" headers="r1c1-t39"> <p><code>p_first_name</code></p> </td> <td align="left" headers="r4c1-t39 r1c2-t39"> <p>Informational.</p> <p><span class="bold">See Also:</span> <a href="apex_util039.htm#BABFFJGB">"GET_FIRST_NAME Function"</a></p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r5c1-t39" headers="r1c1-t39"> <p><code>p_last_name</code></p> </td> <td align="left" headers="r5c1-t39 r1c2-t39"> <p>Informational.</p> <p><span class="bold">See Also:</span> <a href="apex_util043.htm#BABCAAGG">"GET_LAST_NAME Function"</a></p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r6c1-t39" headers="r1c1-t39"> <p><code>p_email_address</code></p> </td> <td align="left" headers="r6c1-t39 r1c2-t39"> <p>Email address.</p> <p><span class="bold">See Also</span>: <a href="apex_util036.htm#BABGIEJC">"GET_EMAIL Function"</a></p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r7c1-t39" headers="r1c1-t39"> <p><code>p_groups</code></p> </td> <td align="left" headers="r7c1-t39 r1c2-t39"> <p>List of groups of which user is a member.</p> <p><span class="bold">See Also:</span> <a href="apex_util040.htm#BABGHFGB">"GET_GROUPS_USER_BELONGS_TO Function"</a> and <a href="apex_util014.htm#BABHCBEG">"CURRENT_USER_IN_GROUP Function"</a></p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r8c1-t39" headers="r1c1-t39"> <p><code>p_developer_role</code></p> </td> <td align="left" headers="r8c1-t39 r1c2-t39"> <p>Colon-separated list of developer roles. The following are acceptable values for this parameter:</p> <p><code>null</code> - Indicates an end user (a user who can only authenticate to developed applications).</p> <p><code>CREATE:DATA_LOADER:EDIT:HELP:MONITOR:SQL</code> - Indicates a user with developer privilege.</p> <p><code>ADMIN:CREATE:DATA_LOADER:EDIT:HELP:MONITOR:SQL</code> - Indicates a user with full workspace administrator and developer privilege.</p> <p>Note: Currently this parameter is named inconsistently between the <code>CREATE_USER</code>, <code>EDIT_USER</code> and <code>FETCH_USER</code> APIs, although they all relate to the <code>DEVELOPER_ROLE</code> field stored in the named user account record. <code>CREATE_USER</code> uses <code>p_developer_privs</code>, <code>EDIT_USER</code> uses <code>p_developer_roles</code> and <code>FETCH_USER</code> uses <code>p_developer_role</code>.</p> <p><span class="bold">See Also</span>: <a href="apex_util052.htm#BABCHEEH">"GET_USER_ROLES Function"</a></p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r9c1-t39" headers="r1c1-t39"> <p><code>p_description</code></p> </td> <td align="left" headers="r9c1-t39 r1c2-t39"> <p>Informational</p> </td> </tr> </tbody> </table> <br /></div> <!-- class="tblformal" --> <a id="sthref151" name="sthref151"></a> <p class="subhead2">Example for Signature 2</p> <p>The following example shows how to use the <code>FETCH_USER</code> procedure with Signature 2. This procedure is passed the ID of the currently authenticated user for the only <code>IN</code> parameter <code>p_user_id</code>. The code then stores all the other <code>OUT</code> parameter values in local variables.</p> <pre xml:space="preserve" class="oac_no_warn"> DECLARE l_user_name VARCHAR2(100); l_first_name VARCHAR2(255); l_last_name VARCHAR2(255); l_email_address VARCHAR2(240); l_groups VARCHAR2(1000); l_developer_role VARCHAR2(60); l_description VARCHAR2(240); BEGIN APEX_UTIL.FETCH_USER( p_user_id => APEX_UTIL.GET_CURRENT_USER_ID, p_user_name => l_user_name, p_first_name => l_first_name, p_last_name => l_last_name, p_email_address => l_email_address, p_groups => l_groups, p_developer_role => l_developer_role, p_description => l_description); END; </pre> <div align="center"> <div class="inftblnotealso"><br /> <table class="NoteAlso oac_no_warn" summary="" cellpadding="3" cellspacing="0"> <tbody> <tr> <td align="left"> <p class="notep1">See Also:</p> <a href="apex_util019.htm#BABGDGJH">"EDIT_USER Procedure"</a> and <a href="apex_util034.htm#BABCHECD">"GET_CURRENT_USER_ID Function"</a></td> </tr> </tbody> </table> <br /></div> <!-- class="inftblnotealso" --></div> </div> <!-- class="refsect1" --> <!-- Start Footer --> <div class="footer"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr> <td align="left"><span class="copyrightlogo">Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.</span><br /> <a href="../dcommon/html/cpyr.htm"><span class="copyrightlogo">Legal Notices</span></a></td> <td align="center"><a href="apex_util025.htm"><img src="../dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="apex_util027.htm"><img src="../dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </div> <!-- class="footer" --> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de