Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\images\doc\AEAPI\apex_util025.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 1</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 1" /> <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_util025.htm" title="FETCH_USER Procedure..." type="text/html" /> <link rel="prev" href="apex_util024.htm" title="Previous" type="text/html" /> <link rel="next" href="apex_util026.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_util024.htm"><img src="../dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="apex_util026.htm"><img src="../dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="CHDJJGIB" name="CHDJJGIB"></a></p> <hr /> <div class="refsect1"> <h1><a name="AEAPI123" id="AEAPI123"></a>FETCH_USER Procedure<a id="sthref140" name="sthref140"></a><a id="sthref141" name="sthref141"></a> Signature 1</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="sthref142" name="sthref142"></a> <p class="subhead2">Syntax for Signature 1</p> <pre xml:space="preserve" class="oac_no_warn"> APEX_UTIL.FETCH_USER ( p_user_id IN NUMBER, p_workspace OUT VARCHAR2, p_user_name OUT VARCHAR2, p_first_name OUT VARCHAR2, p_last_name OUT VARCHAR2, p_web_password OUT VARCHAR2, p_email_address OUT VARCHAR2, p_start_date OUT VARCHAR2, p_end_date OUT VARCHAR2, p_employee_id OUT VARCHAR2, p_allow_access_to_schemas OUT VARCHAR2, p_person_type OUT VARCHAR2, p_default_schema OUT VARCHAR2, p_groups OUT VARCHAR2, p_developer_role OUT VARCHAR2, p_description OUT VARCHAR2 ); </pre> <a id="sthref143" name="sthref143"></a> <p class="subhead2">Parameters for Signature 1</p> <p><a href="#CHDCCGCA">Table: Fetch_User Parameters Signature 1</a> describes the parameters available in the <code>FETCH_USER</code> procedure for signature 1.</p> <div class="tblformal"><a id="sthref144" name="sthref144"></a><a id="CHDCCGCA" name="CHDCCGCA"></a> <p class="titleintable">Fetch_User Parameters Signature 1</p> <table class="Formal" title="Fetch_User Parameters Signature 1" 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-t37">Parameter</th> <th align="left" valign="bottom" id="r1c2-t37">Description</th> </tr> </thead> <tbody> <tr align="left" valign="top"> <td align="left" id="r2c1-t37" headers="r1c1-t37"> <p><code>p_user_id</code></p> </td> <td align="left" headers="r2c1-t37 r1c2-t37"> <p>Numeric primary key of the user account</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r3c1-t37" headers="r1c1-t37"> <p><code>p_workspace</code></p> </td> <td align="left" headers="r3c1-t37 r1c2-t37"> <p>The name of the workspace</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r4c1-t37" headers="r1c1-t37"> <p><code>p_user_name</code></p> </td> <td align="left" headers="r4c1-t37 r1c2-t37"> <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="r5c1-t37" headers="r1c1-t37"> <p><code>p_first_name</code></p> </td> <td align="left" headers="r5c1-t37 r1c2-t37"> <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="r6c1-t37" headers="r1c1-t37"> <p><code>p_last_name</code></p> </td> <td align="left" headers="r6c1-t37 r1c2-t37"> <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="r7c1-t37" headers="r1c1-t37"> <p><code>p_web_password</code></p> </td> <td align="left" headers="r7c1-t37 r1c2-t37"> <p>Obfuscated account password</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r8c1-t37" headers="r1c1-t37"> <p><code>p_email_address</code></p> </td> <td align="left" headers="r8c1-t37 r1c2-t37"> <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="r9c1-t37" headers="r1c1-t37"> <p><code>p_start_date</code></p> </td> <td align="left" headers="r9c1-t37 r1c2-t37"> <p>Unused</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r10c1-t37" headers="r1c1-t37"> <p><code>p_end_date</code></p> </td> <td align="left" headers="r10c1-t37 r1c2-t37"> <p>Unused</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r11c1-t37" headers="r1c1-t37"> <p><code>p_employee_id</code></p> </td> <td align="left" headers="r11c1-t37 r1c2-t37"> <p>Unused</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r12c1-t37" headers="r1c1-t37"> <p><code>p_allow_access_to_schemas</code></p> </td> <td align="left" headers="r12c1-t37 r1c2-t37"> <p>A list of schemas assigned to the user's workspace to which user is restricted</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r13c1-t37" headers="r1c1-t37"> <p><code>p_person_type</code></p> </td> <td align="left" headers="r13c1-t37 r1c2-t37"> <p>Unused</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r14c1-t37" headers="r1c1-t37"> <p><code>p_default_schema</code></p> </td> <td align="left" headers="r14c1-t37 r1c2-t37"> <p>A database schema assigned to the user's workspace, used by default for browsing.</p> <p><span class="bold">See Also</span>: <a href="apex_util035.htm#BABIEDHD">"GET_DEFAULT_SCHEMA Function"</a></p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r15c1-t37" headers="r1c1-t37"> <p><code>p_groups</code></p> </td> <td align="left" headers="r15c1-t37 r1c2-t37"> <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="r16c1-t37" headers="r1c1-t37"> <p><code>p_developer_role</code></p> </td> <td align="left" headers="r16c1-t37 r1c2-t37"> <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="r17c1-t37" headers="r1c1-t37"> <p><code>p_description</code></p> </td> <td align="left" headers="r17c1-t37 r1c2-t37"> <p>Informational</p> </td> </tr> </tbody> </table> <br /></div> <!-- class="tblformal" --> <a id="sthref145" name="sthref145"></a> <p class="subhead2">Example for Signature 1</p> <p>The following example shows how to use the <code>FETCH_USER</code> procedure with Signature 1. 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_workspace VARCHAR2(255); l_user_name VARCHAR2(100); l_first_name VARCHAR2(255); l_last_name VARCHAR2(255); l_web_password VARCHAR2(255); l_email_address VARCHAR2(240); l_start_date DATE; l_end_date DATE; l_employee_id NUMBER(15,0); l_allow_access_to_schemas VARCHAR2(4000); l_person_type VARCHAR2(1); l_default_schema VARCHAR2(30); 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_workspace => l_workspace, p_user_name => l_user_name, p_first_name => l_first_name, p_last_name => l_last_name, p_web_password => l_web_password, p_email_address => l_email_address, p_start_date => l_start_date, p_end_date => l_end_date, p_employee_id => l_employee_id, p_allow_access_to_schemas => l_allow_access_to_schemas, p_person_type => l_person_type, p_default_schema => l_default_schema, 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_util024.htm"><img src="../dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="apex_util026.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