Edit D:\rfid\database\database\doc\install.112\e13366\http_9_0_3.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Language" content="en" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta name="robots" content="all" scheme="http://www.robotstxt.org/" /> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = document) - Version 5.1.1 Build 007" /> <meta name="Date" content="2009-08-24T16:1:58Z" /> <meta name="doctitle" content="Oracle® Application Express Installation Guide Release 3.2" /> <meta name="partno" content="E13366-03" /> <meta name="docid" content="HTMIG" /> <link rel="Start" href="../../index.htm" title="Home" type="text/html" /> <link rel="Copyright" href="../../dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> <link rel="Stylesheet" href="../../dcommon/css/blafdoc.css" title="Default" type="text/css" /> <script type="text/javascript" src="../../dcommon/js/doccd.js"> </script> <link rel="Contents" href="toc.htm" title="Contents" type="text/html" /> <link rel="Index" href="index.htm" title="Index" type="text/html" /> <link rel="Prev" href="trouble.htm" title="Previous" type="text/html" /> <link rel="Next" href="license.htm" title="Next" type="text/html" /> <link rel="alternate" href="../e13366.pdf" title="PDF version" type="application/pdf" /> <title>Configuring Oracle HTTP Server Distributed with Oracle9i Release 2</title> </head> <body> <div class="header"> <div class="zz-skip-header"><a name="top" id="top" href="#BEGIN">Skip Headers</a></div> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="left" valign="top"><b>Oracle® Application Express Installation Guide<br /> Release 3.2</b><br /> Part Number E13366-03</td> <td valign="bottom" align="right"> <table class="icons oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="245"> <tr> <td align="center" valign="top"><a href="../../index.htm"><img width="24" height="24" src="../../dcommon/gifs/doclib.gif" alt="Go to Documentation Home" /><br /> <span class="icon">Home</span></a></td> <td align="center" valign="top"><a href="../../nav/portal_booklist.htm"><img width="24" height="24" src="../../dcommon/gifs/booklist.gif" alt="Go to Book List" /><br /> <span class="icon">Book List</span></a></td> <td align="center" valign="top"><a href="toc.htm"><img width="24" height="24" src="../../dcommon/gifs/toc.gif" alt="Go to Table of Contents" /><br /> <span class="icon">Contents</span></a></td> <td align="center" valign="top"><a href="index.htm"><img width="24" height="24" src="../../dcommon/gifs/index.gif" alt="Go to Index" /><br /> <span class="icon">Index</span></a></td> <td align="center" valign="top"><a href="../../dcommon/html/feedback.htm"><img width="24" height="24" src="../../dcommon/gifs/feedbck2.gif" alt="Go to Feedback page" /><br /> <span class="icon">Contact Us</span></a></td> </tr> </table> </td> </tr> </table> <hr /> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="left" valign="top"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="98"> <tr> <td align="center" valign="top"><a href="trouble.htm"><img width="24" height="24" src="../../dcommon/gifs/leftnav.gif" alt="Go to previous page" /><br /> <span class="icon">Previous</span></a></td> <td align="center" valign="top"><a href="license.htm"><img width="24" height="24" src="../../dcommon/gifs/rightnav.gif" alt="Go to next page" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </td> <td align="right" valign="top" style="font-size: 90%"><a href="../e13366.pdf">View PDF</a></td> </tr> </table> <a name="BEGIN" id="BEGIN"></a></div> <div class="IND"><!-- End Header --><a id="CIHEFIFC" name="CIHEFIFC"></a> <h1 class="appendix"><span class="secnum">B</span> <a name="HTMIG304" id="HTMIG304"></a>Configuring Oracle HTTP Server Distributed with Oracle9<span class="italic">i</span> Release 2</h1> <p>In Oracle HTTP Server distributed with Oracle9<span class="italic">i</span> Release 2 (9.2), the <code>wdbsvr.app</code> file contains information about the DAD to access Oracle Application Express. A DAD is a set of values that specify how the Oracle HTTP Server component <code>modplsql</code> connects to the database server to fulfill an HTTP request.</p> <p>Topics in this appendix include:</p> <ul> <li> <p><a href="#CJAFCDFE">Recommended Pre-installation Tasks</a></p> </li> <li> <p><a href="#CHDEAAEJ">Downloading from OTN and Configuring Oracle HTTP Server</a></p> </li> <li> <p><a href="#CHDDEBFD">Install the Database and Configure Oracle HTTP Server</a></p> </li> </ul> <a id="CJAFCDFE" name="CJAFCDFE"></a> <div class="sect1"><!-- infolevel="all" infotype="General" --> <h2 class="sect1"><span class="secnum">B.1</span> <a name="HTMIG439" id="HTMIG439"></a>Recommended Pre-installation Tasks<a id="sthref366" name="sthref366"></a><a id="sthref367" name="sthref367"></a><a id="sthref368" name="sthref368"></a><a id="sthref369" name="sthref369"></a><a id="sthref370" name="sthref370"></a><a id="sthref371" name="sthref371"></a></h2> <p>Before installing Oracle Application Express, Oracle recommends that you complete the following steps:</p> <ol> <li> <p>Review and satisfy all Oracle Application Express installation requirements. See <a href="pre_require.htm#BHBDBDAC">"Oracle Application Express Installation Requirements"</a>.</p> </li> <li> <p>Shut down any existing Oracle Database instances as well as Oracle-related processes.</p> <p>Shut down any existing Oracle Database instances with normal or immediate priority, except for the database where you plan to install the Oracle Application Express schemas. On <a id="sthref372" name="sthref372"></a>Oracle Real Application Clusters (Oracle RAC) systems, shut down all instances on each node.</p> <p>If <a id="sthref373" name="sthref373"></a>Automatic Storage Management (ASM) is running, shut down all databases that use ASM except for the database where you will install Oracle Application Express, and then shut down the ASM instance.</p> <p>You can use the Windows <span class="bold">Services</span> utility, located either in the Windows Control Panel or from the <span class="bold">Administrative Tools</span> menu (under <span class="bold">Start</span> and then <span class="bold">Programs</span>), to shut down Oracle Database and ASM instances. Names of Oracle databases are preceded with <code>OracleService</code>. The Oracle ASM service is named <code>OracleASMService+ASM</code>. In addition, shut down the <code>OracleCSService</code> service, which ASM uses. Right-click the name of the service and from the menu, choose <span class="bold">Stop</span>.</p> </li> <li> <p>Back up the Oracle Database installation.</p> <p>Oracle recommends that you create a backup of the current installation of Oracle Database installation before you install Oracle Application Express. You can use Oracle Database Recovery Manager, which is included the Oracle Database installation, to perform the backup.</p> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a class="olink BRADV" href="http://www.oracle.com/pls/db112/lookup?id=BRADV"><span class="italic">Oracle Database Backup and Recovery User's Guide</span></a></div> </li> <li> <p>Start the Oracle Database instance that contains the target database.</p> <p>After backing up the system, you must start the Oracle instance that contains the target Oracle database. Do not start other processes such as the listener or Oracle HTTP Server. However, if you are performing a remote installation, make sure the database listener for the remote database has started.</p> <div class="infoboxnote"> <p class="notep1">Note:</p> If you are connecting to a remote database, then start the listener.<a id="sthref374" name="sthref374"></a></div> </li> </ol> </div> <!-- class="sect1" --> <a id="CHDEAAEJ" name="CHDEAAEJ"></a> <div class="sect1"><!-- infolevel="all" infotype="General" --> <h2 class="sect1"><span class="secnum">B.2</span> <a name="HTMIG305" id="HTMIG305"></a>Downloading from OTN and Configuring Oracle HTTP Server</h2> <p>This section describes how to install Oracle Application Express by downloading a ZIP file from OTN and then configuring Oracle HTTP Server distributed with Oracle9<span class="italic">i</span> Release 2.</p> <p>Topics in this section include:</p> <ul> <li> <p><a href="#CJAJIGAH">Install the Oracle Database and Complete Pre-installation Tasks</a></p> </li> <li> <p><a href="#CHDCIAHF">Download and Install the Software</a></p> </li> <li> <p><a href="#CHDJBCGH">Change the Password for the ADMIN Account</a></p> </li> <li> <p><a href="#CHDFCBEA">Restart Processes</a></p> </li> <li> <p><a href="#CHDDHGEI">Configure Oracle HTTP Server</a></p> </li> <li> <p><a href="#CHDCGIIC">About Enabling Network Services in Oracle Database 11<span class="italic">g</span></a></p> </li> <li> <p><a href="#CHDIEHII">Security Considerations</a></p> </li> <li> <p><a href="#CHDHJHFH">About Running Oracle Application Express in Other Languages</a></p> </li> <li> <p><a href="#CHDEIFGB">About Managing JOB_QUEUE_PROCESSES</a></p> </li> <li> <p><a href="#CHDJEIBB">About Obfuscating PlsqlDatabasePassword Parameter</a></p> </li> <li> <p><a href="#BABEABDF">Create a Workspace and Add Oracle Application Express Users</a></p> </li> </ul> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a href="overview.htm#CJAFIGFG">"About the Oracle Application Express Runtime Environment"</a> and <a href="#CIHEFIFC">"Configuring Oracle HTTP Server Distributed with Oracle9<span class="italic">i</span> Release 2"</a></div> <a id="CJAJIGAH" name="CJAJIGAH"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.2.1</span> <a name="HTMIG440" id="HTMIG440"></a>Install the Oracle Database and Complete Pre-installation Tasks</h3> <p>Oracle Application Express requires an Oracle database that is release 9.2.0.3 or later. To learn more, see the <a class="olink GINST" href="http://www.oracle.com/pls/db112/lookup?id=GINST"><span class="italic">Oracle Database Installation Guide</span></a> for your operating environment and <a href="#CJAFCDFE">"Recommended Pre-installation Tasks"</a>.</p> </div> <!-- class="sect2" --> <a id="CHDCIAHF" name="CHDCIAHF"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.2.2</span> <a name="HTMIG306" id="HTMIG306"></a>Download and Install the <a id="sthref375" name="sthref375"></a><a id="sthref376" name="sthref376"></a><a id="sthref377" name="sthref377"></a>Software</h3> <p>To install Oracle Application Express:</p> <ol> <li> <p>Download the file <code>apex_3.2.zip</code> from the Oracle Application Express download page. See:</p> <pre xml:space="preserve" class="oac_no_warn"><a href="http://www.oracle.com/technology/products/database/application_express/download.html">http://www.oracle.com/technology/products/database/application_express/download.html</a> </pre> <p>Note that the actual file name may differ if a more recent release has shipped since this document was published.</p> </li> <li> <p>Unzip <code>apex_3.2.zip</code> as follows, preserving directory names:</p> <ul> <li> <p>UNIX and Linux: Unzip <code>apex_3.2.zip</code></p> </li> <li> <p>Windows: Double click the file <code>apex_3.2.zip</code> in Windows Explorer</p> </li> </ul> </li> <li> <p>Change your working directory to <code>apex</code>.</p> </li> <li> <p>Start SQL*Plus and connect to the database where Oracle Application Express is installed as <code>SYS</code> specifying the <code>SYSDBA</code> role. For example:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">SYSTEM_DRIVE:\</span> sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">$ sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> </ul> </li> <li> <p>Disable any existing password complexity rules for the default profile. See "Configuring Password Protection" in <span class="italic"><a class="olink DBSEG0032" href="http://www.oracle.com/pls/db112/lookup?id=DBSEG0032">Oracle Database Security Guide</a></span>.</p> </li> <li> <p>Select the appropriate <a id="sthref378" name="sthref378"></a><a id="sthref379" name="sthref379"></a>installation option.</p> <p><span class="bold">Full development environment</span> provides complete access to the Application Builder environment to develop applications. A <span class="bold">Runtime environment</span> enables users to run applications that cannot be modified. To learn more, see <a href="overview.htm#CJAFIGFG">"About the Oracle Application Express Runtime Environment"</a>.</p> <p>Available installation options include:</p> <ul> <li> <p><span class="bold">Full development environment</span>. Run <a id="sthref380" name="sthref380"></a><a id="sthref381" name="sthref381"></a><a id="sthref382" name="sthref382"></a><code>apexins.sql</code> passing the following four arguments in the order shown:</p> <pre xml:space="preserve" class="oac_no_warn">@apexins <span class="italic">tablespace_apex</span> <span class="italic">tablespace_files</span> <span class="italic">tablespace_temp</span> <span class="italic">images</span> </pre> <p>Where:</p> <ul> <li> <p><code><span class="codeinlineitalic">tablespace_apex</span></code> is the name of the tablespace for the Oracle Application Express application user.</p> </li> <li> <p><code><span class="codeinlineitalic">tablespace_files</span></code> is the name of the tablespace for the Oracle Application Express files user.</p> </li> <li> <p><code><span class="codeinlineitalic">tablespace_temp</span></code> is the name of the temporary tablespace.</p> </li> <li> <p><code><span class="codeinlineitalic">images</span></code> is the virtual directory for Oracle Application Express images. To support future Oracle Application Express upgrades, define the virtual image directory as <code>/i/</code>.</p> </li> </ul> <p>Example:</p> <pre xml:space="preserve" class="oac_no_warn">@apexins SYSAUX SYSAUX TEMP /i/ </pre></li> <li> <p><span class="bold">Runtime environment</span>. Run <a id="sthref383" name="sthref383"></a><a id="sthref384" name="sthref384"></a><a id="sthref385" name="sthref385"></a><code>apxrtins.sql</code> passing the following arguments in the order shown:</p> <pre xml:space="preserve" class="oac_no_warn">@apxrtins <span class="italic">tablespace_apex</span> <span class="italic">tablespace_files</span> <span class="italic">tablespace_temp</span> <span class="italic">images</span> </pre> <p>Where:</p> <ul> <li> <p><code><span class="codeinlineitalic">tablespace_apex</span></code> is the name of the tablespace for the Oracle Application Express application user.</p> </li> <li> <p><code><span class="codeinlineitalic">tablespace_files</span></code> is the name of the tablespace for the Oracle Application Express files user.</p> </li> <li> <p><code><span class="codeinlineitalic">tablespace_temp</span></code> is the name of the temporary tablespace.</p> </li> <li> <p><code><span class="codeinlineitalic">images</span></code> is the virtual directory for Oracle Application Express images. To support future Oracle Application Express upgrades, define the virtual image directory as <code>/i/</code>.</p> </li> </ul> <p>Example:</p> <pre xml:space="preserve" class="oac_no_warn">@apxrtins SYSAUX SYSAUX TEMP /i/ </pre></li> </ul> </li> </ol> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a class="olink LNPLS" href="http://www.oracle.com/pls/db112/lookup?id=LNPLS"><span class="italic">Oracle Database PL/SQL Language Reference</span></a> for more information about SQL*Plus</div> <p>When Oracle Application Express installs it creates three new database accounts:</p> <ul> <li> <p><code>APEX_030200</code> - The account that owns the Oracle Application Express schema and metadata.</p> </li> <li> <p><code>FLOWS_FILES</code> - The account that owns the Oracle Application Express uploaded files.</p> </li> <li> <p><code>APEX_PUBLIC_USER</code> - The minimally privileged account used for Oracle Application Express configuration with Oracle HTTP Server and <code>mod_plsql</code>.</p> </li> </ul> <p>If you are upgrading from a previous release, <code>FLOWS_FILES</code>, already exists and <code>APEX_PUBLIC_USER</code> is created if it does not already exist.</p> <div class="infoboxnotealso"> <p class="notep1">Tip:</p> Oracle Application Express must be installed from a writable directory on the file system. See <a href="trouble.htm#BABIHBIF">"Reviewing a Log of an Installation Session"</a>.</div> </div> <!-- class="sect2" --> <a id="CHDJBCGH" name="CHDJBCGH"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.2.3</span> <a name="HTMIG307" id="HTMIG307"></a>Change the Password <a id="sthref386" name="sthref386"></a><a id="sthref387" name="sthref387"></a><a id="sthref388" name="sthref388"></a>for the ADMIN Account</h3> <p>In a new installation of Oracle Application Express, or if you are converting a runtime environment to a development environment, you must change the password of the internal <code>ADMIN</code> account. In an upgrade scenario, the password will be preserved and carried over from the prior release.</p> <p>To change the password for the <code>ADMIN</code> account:</p> <ol> <li> <p>Change your working directory to the <code>apex</code> directory where you unzipped the installation software.</p> </li> <li> <p>Start SQL*Plus and connect to the database where Oracle Application Express is installed as <code>SYS</code> specifying the <code>SYSDBA</code> role. For example:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">SYSTEM_DRIVE:\</span> sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">$ sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> </ul> </li> <li> <p>Run <a id="sthref389" name="sthref389"></a><a id="sthref390" name="sthref390"></a><code>apxchpwd.sql</code>. For example:</p> <pre xml:space="preserve" class="oac_no_warn">@apxchpwd </pre> <p>When prompted enter a password for the <code>ADMIN</code> account.</p> </li> </ol> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a class="olink LNPLS" href="http://www.oracle.com/pls/db112/lookup?id=LNPLS"><span class="italic">Oracle Database PL/SQL Language Reference</span></a> for more information about SQL*Plus</div> </div> <!-- class="sect2" --> <a id="CHDFCBEA" name="CHDFCBEA"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.2.4</span> <a name="HTMIG308" id="HTMIG308"></a>Restart Processes</h3> <p>After you install Oracle Application Express, you must restart the processes that you stopped before you began the installation, such as listener and other processes. In addition, restart Oracle HTTP Server.</p> </div> <!-- class="sect2" --> <a id="CHDDHGEI" name="CHDDHGEI"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.2.5</span> <a name="HTMIG309" id="HTMIG309"></a>Configure <a id="sthref391" name="sthref391"></a><a id="sthref392" name="sthref392"></a><a id="sthref393" name="sthref393"></a>Oracle HTTP Server</h3> <p>This section describes how to configure Oracle HTTP Server with mod_plsql distributed with Oracle9<span class="italic">i</span> Release 2.</p> <p>Topics in this section include:</p> <ul> <li> <p><a href="#CHDDCEBJ">Unlock the APEX_PUBLIC_USER Account</a></p> </li> <li> <p><a href="#CHDEIBJJ">Change the Password for the APEX_PUBLIC_USER Account</a></p> </li> <li> <p><a href="#CHDEGFHF">Copy the Images Directory</a></p> </li> <li> <p><a href="#CHDDHBEJ">Modifying the wdbsvr.app File</a></p> </li> <li> <p><a href="#CHDIACED">Modify the Oracle9<span class="italic">i</span> httpd.conf</a></p> </li> </ul> <a id="CHDDCEBJ" name="CHDDCEBJ"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.2.5.1</span> <a name="HTMIG310" id="HTMIG310"></a>Unlock the APEX_PUBLIC_USER Account</h4> <p>The <code>APEX_PUBLIC_USER</code> account is locked at the end of a new installation of Oracle Application Express. You must unlock this account before configuring the database access descriptor (<a id="sthref394" name="sthref394"></a>DAD) in a new installation.</p> <p>To unlock the <code>APEX_PUBLIC_USER</code> account:</p> <ol> <li> <p>Start SQL*Plus and connect to the database where Oracle Application Express is installed as <code>SYS</code> specifying the <code>SYSDBA</code> role. For example:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">SYSTEM_DRIVE:\</span> sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">$ sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> </ul> </li> <li> <p>Run the following statement:</p> <pre xml:space="preserve" class="oac_no_warn">ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK </pre></li> </ol> </div> <!-- class="sect3" --> <a id="CHDEIBJJ" name="CHDEIBJJ"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.2.5.2</span> <a name="HTMIG311" id="HTMIG311"></a>Change the Password for the APEX_PUBLIC_USER Account</h4> <p>The <code>APEX_PUBLIC_USER</code> account is created with a random password in a new installation of Oracle Application Express. You will must change the password for this account before configuring the database access descriptor (DAD) in a new installation.</p> <p>To change the password for the <code>APEX_PUBLIC_USER</code> account:</p> <ol> <li> <p>Start SQL*Plus and connect to the database where Oracle Application Express is installed as <code>SYS</code> specifying the <code>SYSDBA</code> role. For example:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">SYSTEM_DRIVE:\</span> sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">$ sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> </ul> </li> <li> <p>Run the following statement:</p> <pre xml:space="preserve" class="oac_no_warn">ALTER USER APEX_PUBLIC_USER IDENTIFIED BY <span class="italic">new_password</span> </pre> <p>Where <code>new_password</code> is the new password you are setting for <code>APEX_PUBLIC_USER</code>. You will use this password when creating the DAD in the sections that follow.</p> </li> </ol> <div class="sect4"><!-- infolevel="all" infotype="General" --><a id="sthref395" name="sthref395"></a> <h5 class="sect4"><span class="secnum">B.2.5.2.1</span> About Password Expiration in Oracle Database 11<span class="italic">g</span></h5> <p>In the default profile in Oracle Database 11<span class="italic">g</span>, the parameter <code>PASSWORD_LIFE_TIME</code> is set to 180. If you are using Oracle Database 11<span class="italic">g</span> with Oracle Application Express, this causes the password for <code>APEX_PUBLIC_USER</code> to expire in 180 days. As a result, your Oracle Application Express instance will become unusable until you change the password.</p> <p>To prevent this behavior, create another profile in which the <code>PASSWORD_LIFE_TIME</code> parameter is set to unlimited and alter the <code>APEX_PUBLIC_USER</code> account and assign it the new profile.</p> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a class="olink DBSEG" href="http://www.oracle.com/pls/db112/lookup?id=DBSEG"><span class="italic">Oracle Database Security Guide</span></a> for information on creating profiles and assigning them to database users.</div> </div> <!-- class="sect4" --></div> <!-- class="sect3" --> <a id="CHDEGFHF" name="CHDEGFHF"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.2.5.3</span> <a name="HTMIG312" id="HTMIG312"></a>Copy the Images <a id="sthref396" name="sthref396"></a><a id="sthref397" name="sthref397"></a><a id="sthref398" name="sthref398"></a>Directory</h4> <p>Whether you are loading a new installation or upgrading from a previous release, you must copy the <code>images</code> directory from the top level of the <code>apex\images</code> directory to the location on the file system containing the Oracle home for Oracle HTTP Server.</p> <p>Topics in this section include:</p> <ul> <li> <p><a href="#CHDFGEDG">Copying the Images Directory After an Upgrade</a></p> </li> <li> <p><a href="#CHDJFHGC">Copying the Images Directory in a New Installation</a></p> </li> </ul> <a id="CHDFGEDG" name="CHDFGEDG"></a> <div class="sect4"><!-- infolevel="all" infotype="General" --> <h5 class="sect4"><span class="secnum">B.2.5.3.1</span> <a name="HTMIG313" id="HTMIG313"></a>Copying the Images Directory <a id="sthref399" name="sthref399"></a><a id="sthref400" name="sthref400"></a><a id="sthref401" name="sthref401"></a>After an Upgrade</h5> <p>During an upgrade, you must overwrite your existing images directory. Before you begin the upgrade, to ensure that you can revert to the previous version, Oracle recommends that you create a copy of your existing <code>images</code> directory for Oracle Application Express, indicating the release number of the images (for example, <code>images_3_1</code>).</p> <p>To locate the <code>images</code> directory on the file system, review the <code>httpd.conf</code> file for the text alias <code>/i/</code>.</p> <p>When you locate the images directory path, copy the existing images directory to a backup location. Doing so enables you to revert to the previous release, if that becomes necessary.</p> <p>After you copy the existing images directory, use the following command syntax to copy the <code>apex\images</code> directory from the Oracle Database home to the existing images directory path, overwriting the existing images:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn">xcopy /E /I <span class="italic">APEX_HOME</span>\apex\images <span class="italic">ORACLE_HTTPSERVER_HOME</span>\Apache\images </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">cp -rf <span class="italic">APEX_HOME</span>/apex/images <span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache </pre></li> </ul> <p>In the preceding syntax examples:</p> <ul> <li> <p><code><span class="codeinlineitalic">ORACLE_HOME</span></code> is the Oracle Database Oracle home</p> </li> <li> <p><code><span class="codeinlineitalic">ORACLE_HTTPSERVER_HOME</span></code> is the existing Oracle HTTP Server Oracle home</p> </li> </ul> </div> <!-- class="sect4" --> <a id="CHDJFHGC" name="CHDJFHGC"></a> <div class="sect4"><!-- infolevel="all" infotype="General" --> <h5 class="sect4"><span class="secnum">B.2.5.3.2</span> <a name="HTMIG314" id="HTMIG314"></a>Copying the Images Directory in a New <a id="sthref402" name="sthref402"></a><a id="sthref403" name="sthref403"></a><a id="sthref404" name="sthref404"></a>Installation</h5> <p>After installation, copy the directory <code>apex/images</code>.</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn">xcopy /E /I <span class="italic">ORACLE_HOME</span>\apex\images <span class="italic">ORACLE_HTTPSERVER_HOME</span>\Apache\images </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">cp -rf $<span class="italic">ORACLE_HOME</span>/apex/images <span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache </pre></li> </ul> <p>In the preceding syntax examples:</p> <ul> <li> <p><code><span class="codeinlineitalic">ORACLE_HOME</span></code> is the Oracle Database Oracle home</p> </li> <li> <p><code><span class="codeinlineitalic">ORACLE_HTTPSERVER_HOME</span></code> is the existing Oracle HTTP Server Oracle home</p> </li> </ul> </div> <!-- class="sect4" --></div> <!-- class="sect3" --> <a id="CHDDHBEJ" name="CHDDHBEJ"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.2.5.4</span> <a name="HTMIG315" id="HTMIG315"></a>Modifying the wdbsvr.app File<a id="sthref405" name="sthref405"></a><a id="sthref406" name="sthref406"></a><a id="sthref407" name="sthref407"></a><a id="sthref408" name="sthref408"></a></h4> <p>To create the DAD, you modify the <code>wdbsvr.app</code> file and add an entry for Oracle Application Express.</p> <p>To modify the <code>wdbsvr.app</code> file:</p> <ol> <li> <p>Use a text editor and open the <code>wdbsvr.app</code> file:</p> <ul> <li> <p>On Windows, see:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_HTTPSERVER_HOME</span>\Apache\modplsql\cfg\wdbsvr.app </pre></li> <li> <p>On UNIX and Linux, see:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache/modplsql/cfg/wdbsvr.app </pre></li> </ul> </li> <li> <p>Add an entry for Oracle Application Express using the following syntax. Only change the settings indicated in italics.</p> <pre xml:space="preserve" class="oac_no_warn">[DAD_apex] <span class="italic">connect_string</span> = localhost:1521:orcl <span class="italic">password</span> = apex username = apex_public_user default_page = apex document_table = wwv_flow_file_objects$ document_path = docs document_proc = wwv_flow_file_mgr.process_download reuse = Yes enablesso = No stateful = STATELESS_RESET <span class="italic">nls_lang</span> = American_America.AL32UTF8 </pre> <p>Where:</p> <ul> <li> <p><code>connect_string</code> refers to the host ID, port number, and Oracle9<span class="italic">i</span> database where Oracle Application Express was installed. Use the format <code>host:port:sid</code>.</p> <p>If the Oracle9<span class="italic">i</span> version of Oracle HTTP Server you want to use is installed in the same Oracle home as the database you specified for use with Oracle Application Express, leave this parameter blank.</p> </li> <li> <p><code>password</code> is the password you changed for the APEX_PUBLIC_USER. See <a href="#CHDEIBJJ">"Change the Password for the APEX_PUBLIC_USER Account"</a>.</p> </li> <li> <p><code>nls_lang</code> determines the language setting of the DAD. The character set portion of the <code>nls_lang</code> value must always be set to <code>AL32UTF8</code>, regardless of whether or not the database character set is <code>AL32UTF8</code>.</p> <p>If either the territory portion or the language portion of the NLS settings contains a space, you must wrap the value in double quotes as shown in the following example:</p> <pre xml:space="preserve" class="oac_no_warn">nls_lang = "ENGLISH_UNITED KINGDOM.AL32UTF8" </pre> <p>You can find information about your database's NLS settings by querying the view <code>NLS_DATABASE_PARAMETERS</code> as shown in the following example:</p> <pre xml:space="preserve" class="oac_no_warn">SELECT parameter,value FROM nls_database_parameters WHERE PARAMETER IN ('NLS_CHARACTERSET','NLS_LANGUAGE','NLS_TERRITORY'); </pre></li> </ul> </li> <li> <p>Leave the remaining settings, including the user name setting, as they appear in the previous example.</p> </li> <li> <p>Save and exit the <code>wdbsvr.app</code> file.</p> </li> </ol> </div> <!-- class="sect3" --> <a id="CHDIACED" name="CHDIACED"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.2.5.5</span> <a name="HTMIG316" id="HTMIG316"></a>Modify the Oracle9<span class="italic">i</span> <a id="sthref409" name="sthref409"></a><a id="sthref410" name="sthref410"></a><a id="sthref411" name="sthref411"></a><a id="sthref412" name="sthref412"></a>httpd.conf</h4> <p>You must modify the <code>httpd.conf</code> file to include an alias that points to the file system path where you copied the images directory. You may also need to modify the <code>httpd.conf</code> file to add two new MIME types to support SQL Workshop.</p> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a href="#CHDEGFHF">"Copy the Images Directory"</a></div> <p>To modify <code>httpd.conf</code> file:</p> <ol> <li> <p>Use a text editor and open the <code>httpd.conf</code> file:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_HTTPSERVER_HOME</span>\Apache\Apache\conf\httpd.conf </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache/Apache/conf/httpd.conf </pre></li> </ul> </li> <li> <p>Add an alias entry that points to the file system path where you copied the images directory.</p> <ul> <li> <p>Windows example:</p> <pre xml:space="preserve" class="oac_no_warn">Alias /i/ "C:\oracle\ora92\Apache\Apache\images/" </pre></li> <li> <p>UNIX and Linux example:</p> <pre xml:space="preserve" class="oac_no_warn">Alias /i/ "/home/oracle/OraHome1/Apache/Apache/images/" </pre></li> </ul> <p>Note that the previous examples assume you specified the image directory alias as <code>/i/</code> when you ran the <code>apexins.sql</code> script.</p> <p>Note you must include the forward slash (/) at the end of the path.</p> </li> <li> <p>Next, add the following two lines to support SQL Workshop if they do not currently exist:</p> <pre xml:space="preserve" class="oac_no_warn">AddType text/xml xbl AddType text/x-component htc </pre> <p>If you are upgrading from Oracle HTML DB 2.0 or later, these MIME types should already exist.</p> </li> <li> <p>Save and exit the <code>httpd.conf</code> file.</p> </li> <li> <p>Stop and restart Oracle HTTP Server.</p> <ul> <li> <p>On Windows, Stop and restart Oracle HTTP Server:</p> <ul> <li> <p>Stop Oracle HTTP Server - From the <span class="bold">Start</span> menu, select <span class="bold">Programs</span><span class="bold">, Oracle - OraHome</span>, <span class="bold">Oracle</span> <span class="bold">HTTP Server</span>, and <span class="bold">Stop HTTP Server</span>.</p> </li> <li> <p>Restart Oracle HTTP Server - From the <span class="bold">Start</span> menu, select <span class="bold">Programs</span>, <span class="bold">Oracle - OraHome</span>, <span class="bold">Oracle</span> <span class="bold">HTTP Server</span>, and <span class="bold">Start HTTP Server</span>.</p> </li> </ul> </li> <li> <p>On UNIX and Linux, execute the following commands:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache/Apache/bin/apachectl stop <span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache/Apache/bin/apachectl start </pre></li> </ul> <p>Note that if the Oracle HTTP Server is listening on a port less than 1024, then these commands must be executed as a privileged user (such as <code>root</code>).</p> </li> </ol> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a class="olink HSADM" href="http://www.oracle.com/pls/db112/lookup?id=HSADM"><span class="italic">Oracle HTTP Server Administrator's Guide</span></a></div> </div> <!-- class="sect3" --></div> <!-- class="sect2" --> <a id="CHDCGIIC" name="CHDCGIIC"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.2.6</span> <a name="HTMIG317" id="HTMIG317"></a>About Enabling Network Services in Oracle Database 11<span class="italic">g</span></h3> <p>By default, the ability to interact with network services is disabled in Oracle Database 11<span class="italic">g</span> release 1 (11.1). Therefore, if you are running Oracle Application Express with Oracle Database 11<span class="italic">g</span> release 1 (11.1), you must use the new <code>DBMS_NETWORK_ACL_ADMIN</code> package to grant connect privileges to any host for the <code>APEX_030200</code> database user. Failing to grant these privileges results in issues with:</p> <ul> <li> <p>Sending outbound mail in Oracle Application Express.</p> <p>Users can call methods from the <code>APEX_MAIL</code> package, but issues arise when sending outbound email.</p> </li> <li> <p>Using Web services in Oracle Application Express.</p> </li> <li> <p>PDF/report printing.</p> </li> <li> <p>Searching for content in online Help (that is, using the Find link).</p> </li> </ul> <p>Topics in this section include:</p> <ul> <li> <p><a href="#CHDEAGHC">Granting Connect Privileges</a></p> </li> <li> <p><a href="#CHDCECCA">Troubleshooting an Invalid ACL Error</a></p> </li> </ul> <div class="infoboxnotealso"> <p class="notep1">Tip:</p> To run the examples described in this section, the compatible initialization parameter of the database must be set to at least 11.1.0.0.0. By default an 11<span class="italic">g</span> database will already have the parameter set properly, but a database upgraded to 11<span class="italic">g</span> from a prior version may not. See "Creating and Configuring an Oracle Database" in <span class="italic"><a class="olink ADMIN002" href="http://www.oracle.com/pls/db112/lookup?id=ADMIN002">Oracle Database Administrator's Guide</a></span> for information about changing database initialization parameters.</div> <a id="CHDEAGHC" name="CHDEAGHC"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.2.6.1</span> <a name="HTMIG318" id="HTMIG318"></a>Granting Connect Privileges</h4> <p>The following example demonstrates how to grant connect privileges to any host for the <code>APEX_030200</code> database user.</p> <pre xml:space="preserve" class="oac_no_warn">DECLARE ACL_PATH VARCHAR2(4000); ACL_ID RAW(16); BEGIN -- Look for the ACL currently assigned to '*' and give APEX_030200 -- the "connect" privilege if APEX_030200 does not have the privilege yet. SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL; -- Before checking the privilege, ensure that the ACL is valid -- (for example, does not contain stale references to dropped users). -- If it does, the following exception will be raised: -- -- ORA-44416: Invalid ACL: Unresolved principal 'APEX_030200' -- ORA-06512: at "XDB.DBMS_XDBZ", line ... -- SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID FROM XDB.XDB$ACL A, PATH_VIEW P WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND EQUALS_PATH(P.RES, ACL_PATH) = 1; DBMS_XDBZ.ValidateACL(ACL_ID); IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_030200', 'connect') IS NULL THEN DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH, 'APEX_030200', TRUE, 'connect'); END IF; EXCEPTION -- When no ACL has been assigned to '*'. WHEN NO_DATA_FOUND THEN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('power_users.xml', 'ACL that lets power users to connect to everywhere', 'APEX_030200', TRUE, 'connect'); DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*'); END; / COMMIT; </pre> <p>The following example demonstrates how to provide less privileged access to local network resources. This example would enable indexing the Oracle Application Express Online Help and could possibly enable email and PDF printing if those servers were also on the local host.</p> <pre xml:space="preserve" class="oac_no_warn">DECLARE ACL_PATH VARCHAR2(4000); ACL_ID RAW(16); BEGIN -- Look for the ACL currently assigned to 'localhost' and give APEX_030200 -- the "connect" privilege if APEX_030200 does not have the privilege yet. SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS WHERE HOST = 'localhost' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL; -- Before checking the privilege, ensure that the ACL is valid -- (for example, does not contain stale references to dropped users). -- If it does, the following exception will be raised: -- -- ORA-44416: Invalid ACL: Unresolved principal 'APEX_030200' -- ORA-06512: at "XDB.DBMS_XDBZ", line ... -- SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID FROM XDB.XDB$ACL A, PATH_VIEW P WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND EQUALS_PATH(P.RES, ACL_PATH) = 1; DBMS_XDBZ.ValidateACL(ACL_ID); IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_030200', 'connect') IS NULL THEN DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH, 'APEX_030200', TRUE, 'connect'); END IF; EXCEPTION -- When no ACL has been assigned to 'localhost'. WHEN NO_DATA_FOUND THEN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('local-access-users.xml', 'ACL that lets power users to connect to everywhere', 'APEX_030200', TRUE, 'connect'); DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('local-access-users.xml','localhost'); END; / COMMIT; </pre></div> <!-- class="sect3" --> <a id="CHDCECCA" name="CHDCECCA"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.2.6.2</span> <a name="HTMIG319" id="HTMIG319"></a>Troubleshooting an Invalid ACL Error</h4> <p>If you receive an <code>ORA-44416: Invalid ACL</code> error after running the previous script, use the following query to identify the invalid ACL:</p> <pre xml:space="preserve" class="oac_no_warn">REM Show the dangling references to dropped users in the ACL that is assigned REM to '*'. SELECT ACL, PRINCIPAL FROM DBA_NETWORK_ACLS NACL, XDS_ACE ACE WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL AND NACL.ACLID = ACE.ACLID AND NOT EXISTS (SELECT NULL FROM ALL_USERS WHERE USERNAME = PRINCIPAL); </pre> <p>Next, run the following code to fix the ACL:</p> <pre xml:space="preserve" class="oac_no_warn">DECLARE ACL_ID RAW(16); CNT NUMBER; BEGIN -- Look for the object ID of the ACL currently assigned to '*' SELECT ACLID INTO ACL_ID FROM DBA_NETWORK_ACLS WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL; -- If just some users referenced in the ACL are invalid, remove just those -- users in the ACL. Otherwise, drop the ACL completely. SELECT COUNT(PRINCIPAL) INTO CNT FROM XDS_ACE WHERE ACLID = ACL_ID AND EXISTS (SELECT NULL FROM ALL_USERS WHERE USERNAME = PRINCIPAL); IF (CNT > 0) THEN FOR R IN (SELECT PRINCIPAL FROM XDS_ACE WHERE ACLID = ACL_ID AND NOT EXISTS (SELECT NULL FROM ALL_USERS WHERE USERNAME = PRINCIPAL)) LOOP UPDATE XDB.XDB$ACL SET OBJECT_VALUE = DELETEXML(OBJECT_VALUE, '/ACL/ACE[PRINCIPAL="'||R.PRINCIPAL||'"]') WHERE OBJECT_ID = ACL_ID; END LOOP; ELSE DELETE FROM XDB.XDB$ACL WHERE OBJECT_ID = ACL_ID; END IF; END; / REM commit the changes. COMMIT; </pre> <p>Once the ACL has been fixed, you must run the first script in this section to apply the ACL to the <code>APEX_030200</code> user. See <a href="#CHDEAGHC">"Granting Connect Privileges"</a>.</p> </div> <!-- class="sect3" --></div> <!-- class="sect2" --> <a id="CHDIEHII" name="CHDIEHII"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.2.7</span> <a name="HTMIG320" id="HTMIG320"></a>Security Considerations</h3> <p>Oracle highly recommends you configure and use a Secure Sockets Layer (SSL) to ensure that passwords and other sensitive data are not transmitted in clear text in HTTP requests. Without the use of SSL, passwords could potentially be exposed, compromising security.</p> <p>SSL is an industry standard protocol that uses RSA public key cryptography in conjunction with symmetric key cryptography to provide authentication, encryption, and data integrity.</p> </div> <!-- class="sect2" --> <a id="CHDHJHFH" name="CHDHJHFH"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.2.8</span> <a name="HTMIG321" id="HTMIG321"></a>About Running Oracle Application Express <a id="sthref413" name="sthref413"></a><a id="sthref414" name="sthref414"></a><a id="sthref415" name="sthref415"></a><a id="sthref416" name="sthref416"></a>in Other Languages</h3> <p>The Oracle Application Express interface is translated into German, Spanish, French, Italian, Japanese, Korean, Brazilian Portuguese, Simplified Chinese, and Traditional Chinese. A single instance of Oracle Application Express can be installed with one or more of these translated versions. At runtime, each user's Web browser language settings determine the specific language version.</p> <p>The translated version of Oracle Application Express should be loaded into a database that has a character set that supports the specific language. If you attempt to install a translated version of Oracle Application Express into a database that does not support the character encoding of the language, the installation may fail or the translated Oracle Application Express instance may appear corrupt when run. The database character set <code>AL32UTF8</code> supports all the translated versions of Oracle Application Express.</p> <p>You can manually install translated versions of Oracle Application Express using SQL*Plus. The installation files are encoded in <code>AL32UTF8</code>.</p> <div class="infoboxnote"> <p class="notep1">Note:</p> Regardless of the target database character set, to install a translated version of Oracle Application Express, you must set the character set value of the <code>NLS_LANG</code> environment variable to <code>AL32UTF8</code> before starting SQL*Plus.</div> <p>The following examples illustrate valid <code>NLS_LANG</code> settings for loading Oracle Application Express translations:</p> <pre xml:space="preserve" class="oac_no_warn">American_America.AL32UTF8 Japanese_Japan.AL32UTF8 </pre> <div class="sect3"><!-- infolevel="all" infotype="General" --><a id="sthref417" name="sthref417"></a> <h4 class="sect3"><span class="secnum">B.2.8.1</span> <a name="HTMIG322" id="HTMIG322"></a>Installing a Translated Version of Oracle Application Express</h4> <p>Whether you are installing for the first time or upgrading from a previous release, you must run the <code>load_</code><code><span class="codeinlineitalic">lang</span></code><code>.sql</code> script to run a translated version of Oracle Application Express.</p> <p>The installation scripts are located in subdirectories identified by a language code in the unzipped distribution <code>apex/builder</code>. For example, the German version is located in <code>apex/builder/de</code> and the Japanese version is located in <code>apex/builder/ja</code>. Within each of directory, there is a language loading script identified by the language code (for example, <code>load_de.sql</code> or <code>load_ja.sql</code>).</p> <p>To install a translated version of Oracle Application Express:</p> <ol> <li> <p>Set the <code>NLS_LANG</code> environment variable, making sure that the character set is <code>AL32UTF8</code>. For example:</p> <ul> <li> <p>Bourne or Korn shell:</p> <pre xml:space="preserve" class="oac_no_warn">NLS_LANG=American_America.AL32UTF8 export NLS_LANG </pre></li> <li> <p>C shell:</p> <pre xml:space="preserve" class="oac_no_warn">setenv NLS_LANG American_America.AL32UTF8 </pre></li> <li> <p>For Windows based systems:</p> <pre xml:space="preserve" class="oac_no_warn">set NLS_LANG=American_America.AL32UTF8 </pre></li> </ul> </li> <li> <p>Start SQL*Plus and connect to the database where Oracle Application Express is installed as <code>SYS</code> specifying the <code>SYSDBA</code> role. For example:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">SYSTEM_DRIVE:\</span> sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">$ sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> </ul> </li> <li> <p>Execute the following statement:</p> <pre xml:space="preserve" class="oac_no_warn">ALTER SESSION SET CURRENT_SCHEMA = APEX_030200; </pre></li> <li> <p>Execute the appropriate language specific script. For example:</p> <pre xml:space="preserve" class="oac_no_warn">@load_<span class="italic">lang</span>.sql </pre> <p>Where <code>lang</code> is the specific language (for example, <code>load_de.sql</code> for German or <code>load_ja.sql</code> for Japanese).</p> </li> </ol> </div> <!-- class="sect3" --></div> <!-- class="sect2" --> <a id="CHDEIFGB" name="CHDEIFGB"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.2.9</span> <a name="HTMIG323" id="HTMIG323"></a>About Managing <a id="sthref418" name="sthref418"></a><a id="sthref419" name="sthref419"></a>JOB_QUEUE_PROCESSES</h3> <p><code>JOB_QUEUE_PROCESSES</code> determine the maximum number of concurrently running jobs. In Oracle Application Express release 3.2, transactional support and SQL scripts require jobs. If <code>JOB_QUEUE_PROCESSES</code> is not enabled and working properly, you cannot successfully execute a script.</p> <p>Topics in this section include:</p> <ul> <li> <p><a href="#CHDJFDDJ">Viewing the Number of JOB_QUEUE_PROCESSES</a></p> </li> <li> <p><a href="#CHDCJJJC">Changing the Number of JOB_QUEUE_PROCESSES</a></p> </li> </ul> <a id="CHDJFDDJ" name="CHDJFDDJ"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.2.9.1</span> <a name="HTMIG324" id="HTMIG324"></a>Viewing the Number of <a id="sthref420" name="sthref420"></a>JOB_QUEUE_PROCESSES</h4> <p>There are currently three ways to view the number of <code>JOB_QUEUE_PROCESSES</code>:</p> <ul> <li> <p>In the installation log file</p> </li> <li> <p>On the About Application Express page in Oracle Application Express</p> </li> <li> <p>From SQL*Plus</p> </li> </ul> <div class="sect4"><!-- infolevel="all" infotype="General" --><a id="sthref421" name="sthref421"></a> <h5 class="sect4"><span class="secnum">B.2.9.1.1</span> <a name="HTMIG325" id="HTMIG325"></a>Viewing JOB_QUEUE_PROCESSES in the Installation Log File</h5> <p>After installing or upgrading Oracle Application Express to release 3.2, you can view the number of <code>JOB_QUEUE_PROCESSES</code> in the installation log files. See <a href="trouble.htm#BABIHBIF">"Reviewing a Log of an Installation Session"</a>.</p> </div> <!-- class="sect4" --> <div class="sect4"><!-- infolevel="all" infotype="General" --><a id="sthref422" name="sthref422"></a> <h5 class="sect4"><span class="secnum">B.2.9.1.2</span> <a name="HTMIG326" id="HTMIG326"></a>Viewing JOB_QUEUE_PROCESSES in Oracle Application Express</h5> <p>You can also view the number of <code>JOB_QUEUE_PROCESSES</code> on the About Application Express page.</p> <p>To view the About Application Express page:</p> <ol> <li> <p>Log in to Oracle Application Express. See <a href="#BABJBHDJ">"Logging in to Your Oracle Application Express Workspace"</a>.</p> </li> <li> <p>On the Administration list, click <span class="bold">About Application Express</span>.</p> <p>The current number <code>JOB_QUEUE_PROCESSES</code> displays at the bottom of the page.</p> </li> </ol> </div> <!-- class="sect4" --> <div class="sect4"><!-- infolevel="all" infotype="General" --><a id="sthref423" name="sthref423"></a> <h5 class="sect4"><span class="secnum">B.2.9.1.3</span> <a name="HTMIG327" id="HTMIG327"></a>Viewing JOB_QUEUE_PROCESSES from SQL*Plus</h5> <p>You can also view the number of <code>JOB_QUEUE_PROCESSES</code> from SQL*Plus by running the following SQL statement:</p> <pre xml:space="preserve" class="oac_no_warn">SELECT VALUE FROM v$parameter WHERE NAME = 'job_queue_processes' </pre></div> <!-- class="sect4" --></div> <!-- class="sect3" --> <a id="CHDCJJJC" name="CHDCJJJC"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.2.9.2</span> <a name="HTMIG328" id="HTMIG328"></a>Changing the Number of <a id="sthref424" name="sthref424"></a>JOB_QUEUE_PROCESSES</h4> <p>You can change the number of <code>JOB_QUEUE_PROCESSES</code> by running a SQL statement in SQL*Plus:</p> <p>To update the number of <code>JOB_QUEUE_PROCESSES</code>:</p> <ol> <li> <p>Start SQL*Plus and connect to the database where Oracle Application Express is installed as <code>SYS</code> specifying the <code>SYSDBA</code> role:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">SYSTEM_DRIVE:\</span> sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">$ sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> </ul> </li> <li> <p>In SQL*Plus run the following SQL statement:</p> <pre xml:space="preserve" class="oac_no_warn">ALTER SYSTEM SET JOB_QUEUE_PROCESSES = <number> </pre> <p>For example, running the statement <code>ALTER SYSTEM SET JOB_QUEUE_PROCESSES = 20</code> sets <code>JOB_QUEUE_PROCESSES</code> to 20.</p> </li> </ol> </div> <!-- class="sect3" --></div> <!-- class="sect2" --> <a id="CHDJEIBB" name="CHDJEIBB"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.2.10</span> <a name="HTMIG329" id="HTMIG329"></a>About Obfuscating PlsqlDatabasePassword Parameter<a id="sthref425" name="sthref425"></a><a id="sthref426" name="sthref426"></a><a id="sthref427" name="sthref427"></a></h3> <p>The <code>PlsqlDatabasePassword</code> parameter specifies the password for logging in to the database. You can use the <a id="sthref428" name="sthref428"></a><code>dadTool.pl</code> utility to obfuscate passwords in the <code>dads.conf</code> file.</p> <p>You can find the <code>dadTool.pl</code> utility in the following directory:</p> <ul> <li> <p>For UNIX and Linux based systems:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_BASE</span>/<span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache/modplsql/conf </pre></li> <li> <p>For Windows based systems:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_BASE</span>\<span class="italic">ORACLE_HTTPSERVER_HOME</span>\Apache\modplsql\conf </pre></li> </ul> <div class="sect3"><!-- infolevel="all" infotype="General" --><a id="sthref429" name="sthref429"></a> <h4 class="sect3"><span class="secnum">B.2.10.1</span> <a name="HTMIG330" id="HTMIG330"></a>Obfuscating Passwords<a id="sthref430" name="sthref430"></a></h4> <p>To obfuscate passwords, run <code>dadTool.pl</code> by following the instructions in the <code>dadTool.README</code> file.</p> </div> <!-- class="sect3" --></div> <!-- class="sect2" --> <a id="BABEABDF" name="BABEABDF"></a> <div class="sect2"> <h3 class="sect2"><span class="secnum">B.2.11</span> <a name="HTMIG331" id="HTMIG331"></a>Create a <a id="sthref431" name="sthref431"></a><a id="sthref432" name="sthref432"></a><a id="sthref433" name="sthref433"></a>Workspace and Add Oracle Application Express Users</h3> <p><a id="sthref434" name="sthref434"></a>You access the Oracle Application Express home page by logging in to workspace using a Web browser. Your Web browser must support JavaScript and the HTML 4.0 and CSS 1.0 standards. See <a href="pre_require.htm#BABCHJIB">"Browser Requirement"</a>.</p> <p>A <span class="bold">workspace</span> is a virtual private database allowing multiple users to work within the same Oracle Application Express installation while keeping their objects, data and applications private. Each workspace has a unique ID and name.</p> <p>An Oracle Application Express administrator can create a workspace manually within Oracle Application Express Administration Services or have users submit requests. Oracle Application Express Administration Services is a separate application for managing an entire Oracle Application Express instance. See "<a class="olink AEADM239" href="http://www.oracle.com/pls/db112/lookup?id=AEADM239">Creating Workspaces</a>" and "<a class="olink AEADM254" href="http://www.oracle.com/pls/db112/lookup?id=AEADM254">Managing Workspace Requests</a>" in <span class="italic">Oracle Application Express Administration Guide</span>.</p> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a class="olink TDPAX" href="http://www.oracle.com/pls/db112/lookup?id=TDPAX"><span class="italic">Oracle Database 2 Day + Oracle Application Express Developer's Guide</span></a> if you are new to Oracle Application Express</div> <p>Topics in this section include:</p> <ul> <li> <p><a href="#BABGEICC">Creating a Workspace Manually</a></p> </li> <li> <p><a href="#BABFGFDI">Creating Oracle Application Express Users</a></p> </li> <li> <p><a href="#BABJBHDJ">Logging in to Your Oracle Application Express Workspace</a></p> </li> </ul> <a id="BABGEICC" name="BABGEICC"></a> <div class="sect3"> <h4 class="sect3"><span class="secnum">B.2.11.1</span> Creating a <a id="sthref435" name="sthref435"></a><a id="sthref436" name="sthref436"></a>Workspace Manually</h4> <p>To create an Oracle Application Express workspace manually:</p> <ol> <li> <p><span class="bold">Log in to <a id="sthref437" name="sthref437"></a>Oracle Application Express Administration Services.</span> Oracle Application Express Administration Services is a separate application for managing an entire Oracle Application Express instance. You log in using the <code>ADMIN</code> account and password created or reset during the installation process.</p> <ol> <li> <p>In a Web browser, navigate to the Oracle Application Express Administration Services application.</p> <p>If your setup uses Apache and <code>mod_plsql</code>, go to:</p> <pre xml:space="preserve" class="oac_no_warn">http://<span class="italic">hostname</span>:<span class="italic">port</span>/pls/apex/apex_admin </pre> <p>Where:</p> <p><code>hostname</code> is the name of the system where Oracle HTTP Server is installed.</p> <p><code>port</code> is the port number assigned to Oracle HTTP Server. In a default installation, this number is 7777.</p> <p><code>pls</code> is the indicator to use the <code>mod_plsql</code> cartridge.</p> <p><code>apex</code> is the database access descriptor (DAD) defined in the <code>mod_plsql</code> configuration file.</p> </li> <li> <p>On the Login page:</p> <ul> <li> <p>In Username, enter <code>admin</code>.</p> </li> <li> <p>In Password, enter the Oracle Application Express administrator account password you specified when you installed Oracle Application Express.</p> </li> <li> <p>Click <span class="bold">Login</span>.</p> </li> </ul> </li> </ol> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> See "Logging in to Oracle Application Express Administration Services" in <a class="olink AEADM168" href="http://www.oracle.com/pls/db112/lookup?id=AEADM168"><span class="italic">Oracle Application Express Administration Guide</span></a>.</div> <p>Next, create a workspace.</p> </li> <li> <p>Click <span class="bold">Manage Workspaces</span>.</p> </li> <li> <p>Under Manage Workspaces, click <span class="bold">Create Workspace</span>.</p> <p>The Create Workspace Wizard appears.</p> </li> <li> <p>For Identify Workspace, enter a workspace name and description and click <span class="bold">Next</span>.</p> </li> <li> <p>For Identify Schema, select the Oracle Forms application schema.</p> <ol> <li> <p>For Re-use existing schema, select <span class="bold">Yes</span>.</p> </li> <li> <p>Select a schema from the list.</p> </li> <li> <p>Click <span class="bold">Next</span>.</p> </li> </ol> </li> <li> <p>For Identify Administrator, enter the Workspace administrator information and click <span class="bold">Next</span>.</p> </li> <li> <p>Confirm your selections and click <span class="bold">Create</span>.</p> </li> </ol> </div> <!-- class="sect3" --> <a id="BABFGFDI" name="BABFGFDI"></a> <div class="sect3"> <h4 class="sect3"><span class="secnum">B.2.11.2</span> Creating Oracle Application Express <a id="sthref438" name="sthref438"></a><a id="sthref439" name="sthref439"></a>Users</h4> <p>To create an Oracle Application Express user account:</p> <ol> <li> <p>Log in to Oracle Application Express Administration Services as described in the previous section. See "Logging in to Oracle Application Express Administration Services" in <a class="olink AEADM168" href="http://www.oracle.com/pls/db112/lookup?id=AEADM168"><span class="italic">Oracle Application Express Administration Guide</span></a>.</p> </li> <li> <p>Click <span class="bold">Manage Workspaces</span>.</p> </li> <li> <p>Under Manage Workspaces, click <span class="bold">Manage Developers and Users</span>.</p> <p>The Manage Developers and Users page appears.</p> </li> <li> <p>Click <span class="bold">Create</span>.</p> <p>The Create/Edit User page appears.</p> </li> <li> <p>Under User Attributes, enter the appropriate information. Fields marked with an asterisk are required.</p> <div class="infoboxnotealso"> <p class="notep1">Tip:</p> To learn more about a specific attribute, click the item label. When Help is available, the item label changes to red when you pass your cursor over it and the cursor changes to an arrow and question mark.</div> </li> <li> <p>Under Password, type a case-sensitive password for this account.</p> <p>If your organization has set up a password policy, be sure the password meets the requirements.</p> </li> <li> <p>Under Developer Privileges, select the appropriate privileges:</p> <ul> <li> <p><span class="bold">User is a developer</span> - To add this user as a developer or Workspace administrator, select <span class="bold">Yes</span>. For end users, select <span class="bold">No</span>.</p> <p>Developers can create and modify applications and database objects as well as view developer activity, session state, workspace activity, application, and schema reports.</p> </li> <li> <p><span class="bold">User is a workspace administrator</span> - To add this user as a Workspace administrator, select <span class="bold">Yes</span>. For developers or end users, select <span class="bold">No</span>.</p> <p>In addition to having developer privileges, workspace administrators can create and edit user accounts, manage groups, alter passwords of users within the same workspace, and manage development services.</p> </li> </ul> </li> <li> <p>Under <a id="sthref440" name="sthref440"></a><a id="sthref441" name="sthref441"></a><a id="sthref442" name="sthref442"></a><a id="sthref443" name="sthref443"></a>Account Control, specify the following:</p> <ul> <li> <p><span class="bold">Account Availability</span> - Select <span class="bold">Unlocked</span> to enable a user to log in to this account.</p> </li> <li> <p><span class="bold">Require Change of Password on First Use</span> - Select <span class="bold">Yes</span> to require the user to change the password immediately after logging in with the current, temporary password. Otherwise, select <span class="bold">No</span>.</p> </li> </ul> </li> <li> <p>Click <span class="bold">Create User</span> or <span class="bold">Create and Create Another</span>.</p> </li> </ol> </div> <!-- class="sect3" --> <a id="BABJBHDJ" name="BABJBHDJ"></a> <div class="sect3"> <h4 class="sect3"><span class="secnum">B.2.11.3</span> Logging in to Your<a id="sthref444" name="sthref444"></a><a id="sthref445" name="sthref445"></a> Oracle Application Express Workspace</h4> <p>Once you create a workspace, you must log in to it using your login credentials (that is, the workspace name, user name, and password).</p> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> See "<a class="olink AEADM239" href="http://www.oracle.com/pls/db112/lookup?id=AEADM239">Creating Workspaces</a>" and "<a class="olink AEADM254" href="http://www.oracle.com/pls/db112/lookup?id=AEADM254">Managing Workspace Requests</a>" in <span class="italic">Oracle Application Express Administration Guide</span></div> <p>To log in to a workspace:</p> <ol> <li> <p>In a Web browser, navigate to the Oracle Application Express Login page.</p> <p>If your setup uses Oracle HTTP Server (Apache) and <code>mod_plsql</code>, go to:</p> <pre xml:space="preserve" class="oac_no_warn">http://<span class="italic">hostname</span>:<span class="italic">port</span>/pls/apex </pre> <p>Where:</p> <ul> <li> <p><code>hostname</code> is the name of the system where Oracle HTTP Server is installed.</p> </li> <li> <p><code>port</code> is the port number assigned to Oracle HTTP Server. In a default installation, this number is 7777. You can find information about your Oracle HTTP Server installation's port number from either of the following files:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_BASE</span>\<span class="italic">ORACLE_HOME</span>\install\portlist.ini <span class="italic">ORACLE_BASE</span>\<span class="italic">ORACLE_HTTPSERVER_HOME</span>\Apache\Apache\conf\httpd.conf </pre> <p>Be aware that if you change a port number, it is not updated in the <code>portlist.ini</code> file. You can only rely on this file immediately after installation.</p> </li> <li> <p><code>pls</code> is the indicator to use the <code>mod_plsql</code> cartridge.</p> </li> <li> <p><code>apex</code> is the database access descriptor (DAD) defined in the <code>mod_plsql</code> configuration file.</p> <p>For users who have upgraded from earlier releases, or who have a custom configuration, this value may be <code>htmldb</code> or something else. Verify your DAD with your Oracle Application Express administrator.</p> </li> </ul> <p>The Login page appears.</p> </li> <li> <p>Under Login, enter the following:</p> <ul> <li> <p>Workspace field - Enter the name of your workspace.</p> </li> <li> <p>Username field - Enteryour user name.</p> </li> <li> <p>Password field - Enter your case-sensitive password.</p> </li> </ul> </li> <li> <p>Click <span class="bold">Login</span>.</p> <p>Note that, depending on your setup, you might be required to change your password when you log in for the first time.</p> </li> </ol> </div> <!-- class="sect3" --></div> <!-- class="sect2" --></div> <!-- class="sect1" --> <a id="CHDDEBFD" name="CHDDEBFD"></a> <div class="sect1"><!-- infolevel="all" infotype="General" --> <h2 class="sect1"><span class="secnum">B.3</span> <a name="HTMIG334" id="HTMIG334"></a>Install the Database and Configure Oracle HTTP Server</h2> <p>This section describes how to configure Oracle HTTP Server with <code>mod_plsql</code> in a new installation.</p> <p>Topics in this section include:</p> <ul> <li> <p><a href="#CJACECID">Install the Oracle Database and Complete Pre-installation Tasks</a></p> </li> <li> <p><a href="#CHDJDEBE">Configure Oracle HTTP Server Distributed with Oracle Database Release 9.0.3</a></p> </li> <li> <p><a href="#CHDFEFDD">About Enabling Network Services in Oracle Database 11<span class="italic">g</span></a></p> </li> <li> <p><a href="#CHDCIHCH">Security Considerations</a></p> </li> <li> <p><a href="#CHDEECAF">About Running Oracle Application Express in Other Languages</a></p> </li> <li> <p><a href="#CHDEJFCF">About Managing JOB_QUEUE_PROCESSES</a></p> </li> <li> <p><a href="#CHDFCCAB">About Obfuscating PlsqlDatabasePassword Parameter</a></p> </li> <li> <p><a href="#BABEAIEH">Create a Workspace and Add Oracle Application Express Users</a></p> </li> </ul> <p>Note that instructions do not apply if you are running Oracle HTTP Server distributed with Oracle9<span class="italic">i</span> Release 2. To learn more, see <a href="#CIHEFIFC">"Configuring Oracle HTTP Server Distributed with Oracle9<span class="italic">i</span> Release 2"</a>.</p> <div class="infoboxnote"> <p class="notep1">Note:</p> Within the context of this section, the Oracle home directory (<code>ORACLE_HTTPSERVER_HOME</code>) is the location where Oracle HTTP Server is installed.</div> <a id="CJACECID" name="CJACECID"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.3.1</span> <a name="HTMIG441" id="HTMIG441"></a>Install the Oracle Database and Complete Pre-installation Tasks</h3> <p>Oracle Application Express requires an Oracle database that is release 9.2.0.3 or later. To learn more, see the <a class="olink GINST" href="http://www.oracle.com/pls/db112/lookup?id=GINST"><span class="italic">Oracle Database Installation Guide</span></a> for your operating environment and <a href="#CJAFCDFE">"Recommended Pre-installation Tasks"</a>.</p> </div> <!-- class="sect2" --> <a id="CHDJDEBE" name="CHDJDEBE"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.3.2</span> <a name="HTMIG336" id="HTMIG336"></a>Configure Oracle HTTP Server Distributed with Oracle Database <a id="sthref446" name="sthref446"></a><a id="sthref447" name="sthref447"></a><a id="sthref448" name="sthref448"></a>Release 9.0.3</h3> <p>Perform the following postinstallation steps if:</p> <ul> <li> <p>This is a new installation of Oracle Application Express (that is, you are not upgrading from a previous release)</p> </li> <li> <p>You are running Oracle HTTP Server distributed with Oracle Database Release 9.0.3.</p> </li> <li> <p>Oracle HTTP Server is installed in an Oracle home.</p> </li> </ul> <p>Topics in this section include:</p> <ul> <li> <p><a href="#CHDCBCBJ">Change the Password for the ADMIN Account</a></p> </li> <li> <p><a href="#CHDCBDIH">Unlock the APEX_PUBLIC_USER Database User</a></p> </li> <li> <p><a href="#CHDHBGIC">Change the Password for the APEX_PUBLIC_USER Database User</a></p> </li> <li> <p><a href="#CHDFBIIA">Modifying the wdbsvr.app File</a></p> </li> <li> <p><a href="#CHDHJCHI">Modify the Oracle9<span class="italic">i</span> httpd.conf</a></p> </li> <li> <p><a href="#CHDBHJFH">Stop and Restart Oracle HTTP Server</a></p> </li> <li> <p><a href="#CHDEIEBI">Copy the Images Directory</a></p> </li> </ul> <div class="infoboxnote"> <p class="notep1">Note:</p> Within the context of this section, the Oracle home directory (<code>ORACLE_HTTPSERVER_HOME</code>) is the location where Oracle HTTP Server is installed.</div> <a id="CHDCBCBJ" name="CHDCBCBJ"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.3.2.1</span> <a name="HTMIG337" id="HTMIG337"></a>Change the Password for the ADMIN Account</h4> <p>First, change the password for the Oracle Application Express <code>ADMIN</code> account.</p> <p>To change the password for the <code>ADMIN</code> account:</p> <ol> <li> <p>Change your working directory to <code><span class="codeinlineitalic">ORACLE_BASE\ORACLE_HOME</span></code><code>\apex</code> or whatever convention used to indicate the Oracle home.</p> </li> <li> <p>Start SQL*Plus and connect to the database where Oracle Application Express is installed as SYS. For example:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">SYSTEM_DRIVE:\</span> sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">$ sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> </ul> </li> <li> <p>Run <code>apxchpwd.sql</code>. For example:</p> <pre xml:space="preserve" class="oac_no_warn">@apxchpwd.sql </pre> <p>When prompted enter a password for the ADMIN account.</p> </li> </ol> </div> <!-- class="sect3" --> <a id="CHDCBDIH" name="CHDCBDIH"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.3.2.2</span> <a name="HTMIG338" id="HTMIG338"></a>Unlock the APEX_PUBLIC_USER Database User</h4> <p>When configuring Oracle HTTP Server for Oracle Application Express in a new installation, the database user <code>APEX_PUBLIC_USER</code> must be an unlocked account. To unlock the account for database user <code>APEX_PUBLIC_USER,</code> execute the following steps:</p> <ol> <li> <p>Start SQL*Plus and connect to the database where Oracle Application Express is installed as <code>SYS</code>. For example:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">SYSTEM_DRIVE:\</span> sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">$ sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> </ul> </li> <li> <p>Run the following statement:</p> <pre xml:space="preserve" class="oac_no_warn">ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK </pre></li> </ol> </div> <!-- class="sect3" --> <a id="CHDHBGIC" name="CHDHBGIC"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.3.2.3</span> <a name="HTMIG339" id="HTMIG339"></a>Change the Password for the APEX_PUBLIC_USER Database User</h4> <p>In order to specify the password in the <code>DAD</code> file, you have to change the password for the database user <code>APEX_PUBLIC_USER</code>. Please use the following steps to change the password for the <code>APEX_PUBLIC_USER</code> database user:</p> <ol> <li> <p>Start SQL*Plus and connect to the database where Oracle Application Express is installed as <code>SYS</code>. For example:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">SYSTEM_DRIVE:\</span> sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">$ sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> </ul> </li> <li> <p>Run the following statement:</p> <pre xml:space="preserve" class="oac_no_warn">SQL> PASSWORD APEX_PUBLIC_USER Changing password for APEX_PUBLIC_USER New password: <span class="italic">password</span> Retype new password: <span class="italic">password</span> </pre></li> </ol> <div class="sect4"><!-- infolevel="all" infotype="General" --><a id="sthref449" name="sthref449"></a> <h5 class="sect4"><span class="secnum">B.3.2.3.1</span> About Password Expiration in Oracle Database 11<span class="italic">g</span></h5> <p>In the default profile in Oracle Database 11<span class="italic">g</span>, the parameter <code>PASSWORD_LIFE_TIME</code> is set to 180. If you are using Oracle Database 11<span class="italic">g</span> with Oracle Application Express, this causes the password for <code>APEX_PUBLIC_USER</code> to expire in 180 days. As a result, your Oracle Application Express instance will become unusable until you change the password.</p> <p>To prevent this behavior, create another profile in which the <code>PASSWORD_LIFE_TIME</code> parameter is set to unlimited and alter the <code>APEX_PUBLIC_USER</code> account and assign it the new profile.</p> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a class="olink DBSEG" href="http://www.oracle.com/pls/db112/lookup?id=DBSEG"><span class="italic">Oracle Database Security Guide</span></a> for information on creating profiles and assigning them to database users.</div> </div> <!-- class="sect4" --></div> <!-- class="sect3" --> <a id="CHDFBIIA" name="CHDFBIIA"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.3.2.4</span> <a name="HTMIG340" id="HTMIG340"></a>Modifying the wdbsvr.app File<a id="sthref450" name="sthref450"></a><a id="sthref451" name="sthref451"></a><a id="sthref452" name="sthref452"></a><a id="sthref453" name="sthref453"></a></h4> <p>To create the DAD, you modify the <code>wdbsvr.app</code> file and add an entry for Oracle Application Express.</p> <p>To modify the <code>wdbsvr.app</code> file:</p> <ol> <li> <p>Use a text editor and open the <code>wdbsvr.app</code> file:</p> <ul> <li> <p>On Windows, see:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_HTTPSERVER_HOME</span>\Apache\modplsql\cfg\wdbsvr.app </pre></li> <li> <p>On UNIX and Linux, see:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache/modplsql/cfg/wdbsvr.app </pre></li> </ul> </li> <li> <p>Add an entry for Oracle Application Express using the following syntax. Only change the settings indicated in italics.</p> <pre xml:space="preserve" class="oac_no_warn">[DAD_apex] <span class="italic">connect_string</span> = localhost:1521:orcl <span class="italic">password</span> = apex username = apex_public_user default_page = apex document_table = wwv_flow_file_objects$ document_path = docs document_proc = wwv_flow_file_mgr.process_download reuse = Yes enablesso = No stateful = STATELESS_RESET <span class="italic">nls_lang</span> = American_America.AL32UTF8 </pre> <p>Where:</p> <ul> <li> <p><code>connect_string</code> refers to the host ID, port number, and Oracle9<span class="italic">i</span> database where Oracle Application Express was installed. Use the format <code>host:port:sid</code>.</p> <p>If the Oracle9<span class="italic">i</span> version of Oracle HTTP Server you want to use is installed in the same Oracle home as the database you specified for use with Oracle Application Express, leave this parameter blank.</p> </li> <li> <p><code>password</code> is the password you changed for the APEX_PUBLIC_USER. See <a href="#CHDHBGIC">"Change the Password for the APEX_PUBLIC_USER Database User"</a>.</p> </li> <li> <p><code>nls_lang</code> determines the language setting of the DAD. The character set portion of the <code>nls_lang</code> value must always be set to <code>AL32UTF8</code>, regardless of whether or not the database character set is <code>AL32UTF8</code>.</p> <p>If either the territory portion or the language portion of the NLS settings contains a space, you must wrap the value in double quotes as shown in the following example:</p> <pre xml:space="preserve" class="oac_no_warn">nls_lang = "ENGLISH_UNITED KINGDOM.AL32UTF8" </pre> <p>You can find information about your database's NLS settings by querying the view <code>NLS_DATABASE_PARAMETERS</code> as shown in the following example:</p> <pre xml:space="preserve" class="oac_no_warn">SELECT parameter,value FROM nls_database_parameters WHERE PARAMETER IN ('NLS_CHARACTERSET','NLS_LANGUAGE','NLS_TERRITORY'); </pre></li> </ul> </li> <li> <p>Leave the remaining settings, including the user name setting, as they appear in the previous example.</p> </li> <li> <p>Save and exit the <code>wdbsvr.app</code> file.</p> </li> </ol> </div> <!-- class="sect3" --> <a id="CHDHJCHI" name="CHDHJCHI"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.3.2.5</span> <a name="HTMIG341" id="HTMIG341"></a>Modify the Oracle9<span class="italic">i</span> <a id="sthref454" name="sthref454"></a><a id="sthref455" name="sthref455"></a><a id="sthref456" name="sthref456"></a><a id="sthref457" name="sthref457"></a>httpd.conf</h4> <p>You must modify the <code>httpd.conf</code> file to include an alias that points to the file system path where you copied the images directory. You may also need to modify the <code>httpd.conf</code> file to add two new MIME types to support SQL Workshop.</p> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a href="#CHDEIEBI">"Copy the Images Directory"</a></div> <p>To modify <code>httpd.conf</code> file:</p> <ol> <li> <p>Use a text editor and open the <code>httpd.conf</code> file:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_HTTPSERVER_HOME</span>\Apache\Apache\conf\httpd.conf </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache/Apache/conf/httpd.conf </pre></li> </ul> </li> <li> <p>Add an alias entry that points to the file system path where you copied the images directory.</p> <ul> <li> <p>Windows example:</p> <pre xml:space="preserve" class="oac_no_warn">Alias /i/ "C:\oracle\ora92\Apache\Apache\images/" </pre></li> <li> <p>UNIX and Linux example:</p> <pre xml:space="preserve" class="oac_no_warn">Alias /i/ "/home/oracle/OraHome1/Apache/Apache/images/" </pre></li> </ul> <p>Note that the previous examples assume you specified the image directory alias as <code>/i/</code> when you ran the <code>apexins.sql</code> script.</p> <p>Note you must include the forward slash (/) at the end of the path.</p> </li> <li> <p>Next, add the following two lines to support SQL Workshop if they do not currently exist:</p> <pre xml:space="preserve" class="oac_no_warn">AddType text/xml xbl AddType text/x-component htc </pre> <p>If you are upgrading from Oracle HTML DB 2.0 or later, these MIME types should already exist.</p> </li> <li> <p>Save and exit the <code>httpd.conf</code> file.</p> </li> </ol> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a class="olink HSADM" href="http://www.oracle.com/pls/db112/lookup?id=HSADM"><span class="italic">Oracle HTTP Server Administrator's Guide</span></a></div> </div> <!-- class="sect3" --> <a id="CHDBHJFH" name="CHDBHJFH"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.3.2.6</span> <a name="HTMIG342" id="HTMIG342"></a>Stop and Restart Oracle HTTP Server</h4> <p>To stop and restart Oracle HTTP Server:</p> <ul> <li> <p>On Windows, Stop and restart Oracle HTTP Server:</p> <ul> <li> <p>Stop Oracle HTTP Server - From the <span class="bold">Start</span> menu, select <span class="bold">Programs</span><span class="bold">, Oracle - OraHome</span>, <span class="bold">Oracle</span> <span class="bold">HTTP Server</span>, and <span class="bold">Stop HTTP Server</span>.</p> </li> <li> <p>Restart Oracle HTTP Server - From the <span class="bold">Start</span> menu, select <span class="bold">Programs</span>, <span class="bold">Oracle - OraHome</span>, <span class="bold">Oracle</span> <span class="bold">HTTP Server</span>, and <span class="bold">Start HTTP Server</span>.</p> </li> </ul> </li> <li> <p>On UNIX and Linux, execute the following commands:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache/Apache/bin/apachectl stop <span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache/Apache/bin/apachectl start </pre></li> </ul> <p>Note that if the Oracle HTTP Server is listening on a port less than 1024, then these commands must be executed as a privileged user (such as <code>root</code>).</p> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a class="olink HSADM" href="http://www.oracle.com/pls/db112/lookup?id=HSADM"><span class="italic">Oracle HTTP Server Administrator's Guide</span></a></div> </div> <!-- class="sect3" --> <a id="CHDEIEBI" name="CHDEIEBI"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.3.2.7</span> <a name="HTMIG343" id="HTMIG343"></a>Copy the Images Directory</h4> <p>Whether you are loading a new installation or upgrading from a previous release, you must copy the images directory from the top level of the <code><span class="codeinlineitalic">ORACLE_BASE\ORACLE_HOME</span></code><code>\apex</code> directory to the location on the file system containing the Oracle home for Oracle HTTP Server.</p> <div class="infoboxnote"> <p class="notep1">Note:</p> This section is relevant only if your plan to run Oracle Application Express with Oracle HTTP Server with mod_plsql.</div> <p>Topics in this section include:</p> <ul> <li> <p><a href="#CHDBEDFF">Copying the Images Directory After an Upgrade</a></p> </li> <li> <p><a href="#CHDECGGI">Copying the Images Directory in a New Installation</a></p> </li> </ul> <a id="CHDBEDFF" name="CHDBEDFF"></a> <div class="sect4"><!-- infolevel="all" infotype="General" --> <h5 class="sect4"><span class="secnum">B.3.2.7.1</span> <a name="HTMIG344" id="HTMIG344"></a>Copying the Images Directory <a id="sthref458" name="sthref458"></a><a id="sthref459" name="sthref459"></a><a id="sthref460" name="sthref460"></a>After an Upgrade</h5> <p>During an upgrade, you must overwrite your existing <code>images</code> directory. Before you begin the upgrade, to ensure that you can revert to the previous version, Oracle recommends that you create a copy of your existing <code>images</code> directory for Oracle Application Express, indicating the release number of the images (for example, <code>images_3_1</code>).</p> <p>To locate the <code>images</code> directory on the file system, review the <code>httpd.conf</code> file for the text alias <code>/i/</code>:</p> <p>When you locate the <code>images</code> directory path, Oracle recommends that you copy the existing <code>images</code> directory to a backup location. Doing this allows you to revert to the previous release, if that becomes necessary.</p> <p>After you copy the existing <code>images</code> directory, use the following command syntax to copy the <code>apex\images</code> directory from the Oracle database home to the existing <code>images</code> directory path, overwriting the existing images:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn">xcopy /E /I <span class="italic">ORACLE_HOME</span>\apex\images <span class="italic">ORACLE_HTTPSERVER_HOME</span>\Apache\images </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">cp -rf $<span class="italic">ORACLE_HOME</span>/apex/images <span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache </pre></li> </ul> <p>In the preceding syntax examples:</p> <ul> <li> <p><code>ORACLE_HOME</code> is the Oracle Database Oracle home</p> </li> <li> <p><code>ORACLE_HTTPSERVER_HOME</code> is the existing Oracle Application Server or Oracle HTTP Server Oracle home</p> </li> </ul> </div> <!-- class="sect4" --> <a id="CHDECGGI" name="CHDECGGI"></a> <div class="sect4"><!-- infolevel="all" infotype="General" --> <h5 class="sect4"><span class="secnum">B.3.2.7.2</span> <a name="HTMIG345" id="HTMIG345"></a>Copying the Images Directory in a New <a id="sthref461" name="sthref461"></a><a id="sthref462" name="sthref462"></a><a id="sthref463" name="sthref463"></a>Installation</h5> <p>After installation, copy the directory <code>apex/images</code>.</p> <p>You can copy the <code>images</code> directory using Windows Explorer, or running a command from a command prompt similar to the following:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn">xcopy /E /I ORACLE_HOME\apex\images ORACLE_HTTPSERVER_HOME\Apache\images </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">cp -rf $<span class="italic">ORACLE_HOME</span>/apex/images <span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache </pre></li> </ul> <p>In the preceding syntax example:</p> <ul> <li> <p><code><span class="codeinlineitalic">ORACLE_HOME</span></code> is the Oracle Database Oracle home</p> </li> <li> <p><code><span class="codeinlineitalic">ORACLE_HTTPSERVER_HOME</span></code> is the existing Oracle HTTP Server Oracle home</p> </li> </ul> </div> <!-- class="sect4" --></div> <!-- class="sect3" --></div> <!-- class="sect2" --> <a id="CHDFEFDD" name="CHDFEFDD"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.3.3</span> <a name="HTMIG346" id="HTMIG346"></a>About Enabling Network Services in Oracle Database 11<span class="italic">g</span></h3> <p>By default, the ability to interact with network services is disabled in Oracle Database 11<span class="italic">g</span> release 1 (11.1). Therefore, if you are running Oracle Application Express with Oracle Database 11<span class="italic">g</span> release 1 (11.1), you must use the new <code>DBMS_NETWORK_ACL_ADMIN</code> package to grant connect privileges to any host for the <code>APEX_030200</code> database user. Failing to grant these privileges results in issues with:</p> <ul> <li> <p>Sending outbound mail in Oracle Application Express.</p> <p>Users can call methods from the <code>APEX_MAIL</code> package, but issues arise when sending outbound email.</p> </li> <li> <p>Using Web services in Oracle Application Express.</p> </li> <li> <p>PDF/report printing.</p> </li> <li> <p>Searching for content in online Help (that is, using the Find link).</p> </li> </ul> <p>Topics in this section include:</p> <ul> <li> <p><a href="#CHDBIHEE">Granting Connect Privileges</a></p> </li> <li> <p><a href="#CHDEIGFI">Troubleshooting an Invalid ACL Error</a></p> </li> </ul> <div class="infoboxnotealso"> <p class="notep1">Tip:</p> To run the examples described in this section, the compatible initialization parameter of the database must be set to at least 11.1.0.0.0. By default an 11<span class="italic">g</span> database will already have the parameter set properly, but a database upgraded to 11<span class="italic">g</span> from a prior version may not. See "Creating and Configuring an Oracle Database" in <span class="italic"><a class="olink ADMIN002" href="http://www.oracle.com/pls/db112/lookup?id=ADMIN002">Oracle Database Administrator's Guide</a></span> for information about changing database initialization parameters.</div> <a id="CHDBIHEE" name="CHDBIHEE"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.3.3.1</span> <a name="HTMIG347" id="HTMIG347"></a>Granting Connect Privileges</h4> <p>The following example demonstrates how to grant connect privileges to any host for the <code>APEX_030200</code> database user.</p> <pre xml:space="preserve" class="oac_no_warn">DECLARE ACL_PATH VARCHAR2(4000); ACL_ID RAW(16); BEGIN -- Look for the ACL currently assigned to '*' and give APEX_030200 -- the "connect" privilege if APEX_030200 does not have the privilege yet. SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL; -- Before checking the privilege, ensure that the ACL is valid -- (for example, does not contain stale references to dropped users). -- If it does, the following exception will be raised: -- -- ORA-44416: Invalid ACL: Unresolved principal 'APEX_030200' -- ORA-06512: at "XDB.DBMS_XDBZ", line ... -- SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID FROM XDB.XDB$ACL A, PATH_VIEW P WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND EQUALS_PATH(P.RES, ACL_PATH) = 1; DBMS_XDBZ.ValidateACL(ACL_ID); IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_030200', 'connect') IS NULL THEN DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH, 'APEX_030200', TRUE, 'connect'); END IF; EXCEPTION -- When no ACL has been assigned to '*'. WHEN NO_DATA_FOUND THEN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('power_users.xml', 'ACL that lets power users to connect to everywhere', 'APEX_030200', TRUE, 'connect'); DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*'); END; / COMMIT; </pre> <p>The following example demonstrates how to provide less privileged access to local network resources. This example would enable indexing the Oracle Application Express Online Help and could possibly enable email and PDF printing if those servers were also on the local host.</p> <pre xml:space="preserve" class="oac_no_warn">DECLARE ACL_PATH VARCHAR2(4000); ACL_ID RAW(16); BEGIN -- Look for the ACL currently assigned to 'localhost' and give APEX_030200 -- the "connect" privilege if APEX_030200 does not have the privilege yet. SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS WHERE HOST = 'localhost' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL; -- Before checking the privilege, ensure that the ACL is valid -- (for example, does not contain stale references to dropped users). -- If it does, the following exception will be raised: -- -- ORA-44416: Invalid ACL: Unresolved principal 'APEX_030200' -- ORA-06512: at "XDB.DBMS_XDBZ", line ... -- SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID FROM XDB.XDB$ACL A, PATH_VIEW P WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND EQUALS_PATH(P.RES, ACL_PATH) = 1; DBMS_XDBZ.ValidateACL(ACL_ID); IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_030200', 'connect') IS NULL THEN DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH, 'APEX_030200', TRUE, 'connect'); END IF; EXCEPTION -- When no ACL has been assigned to 'localhost'. WHEN NO_DATA_FOUND THEN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('local-access-users.xml', 'ACL that lets power users to connect to everywhere', 'APEX_030200', TRUE, 'connect'); DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('local-access-users.xml','localhost'); END; / COMMIT; </pre></div> <!-- class="sect3" --> <a id="CHDEIGFI" name="CHDEIGFI"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.3.3.2</span> <a name="HTMIG348" id="HTMIG348"></a>Troubleshooting an Invalid ACL Error</h4> <p>If you receive an <code>ORA-44416: Invalid ACL</code> error after running the previous script, use the following query to identify the invalid ACL:</p> <pre xml:space="preserve" class="oac_no_warn">REM Show the dangling references to dropped users in the ACL that is assigned REM to '*'. SELECT ACL, PRINCIPAL FROM DBA_NETWORK_ACLS NACL, XDS_ACE ACE WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL AND NACL.ACLID = ACE.ACLID AND NOT EXISTS (SELECT NULL FROM ALL_USERS WHERE USERNAME = PRINCIPAL); </pre> <p>Next, run the following code to fix the ACL:</p> <pre xml:space="preserve" class="oac_no_warn">DECLARE ACL_ID RAW(16); CNT NUMBER; BEGIN -- Look for the object ID of the ACL currently assigned to '*' SELECT ACLID INTO ACL_ID FROM DBA_NETWORK_ACLS WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL; -- If just some users referenced in the ACL are invalid, remove just those -- users in the ACL. Otherwise, drop the ACL completely. SELECT COUNT(PRINCIPAL) INTO CNT FROM XDS_ACE WHERE ACLID = ACL_ID AND EXISTS (SELECT NULL FROM ALL_USERS WHERE USERNAME = PRINCIPAL); IF (CNT > 0) THEN FOR R IN (SELECT PRINCIPAL FROM XDS_ACE WHERE ACLID = ACL_ID AND NOT EXISTS (SELECT NULL FROM ALL_USERS WHERE USERNAME = PRINCIPAL)) LOOP UPDATE XDB.XDB$ACL SET OBJECT_VALUE = DELETEXML(OBJECT_VALUE, '/ACL/ACE[PRINCIPAL="'||R.PRINCIPAL||'"]') WHERE OBJECT_ID = ACL_ID; END LOOP; ELSE DELETE FROM XDB.XDB$ACL WHERE OBJECT_ID = ACL_ID; END IF; END; / REM commit the changes. COMMIT; </pre> <p>Once the ACL has been fixed, you must run the first script in this section to apply the ACL to the <code>APEX_030200</code> user. See <a href="#CHDEAGHC">"Granting Connect Privileges"</a>.</p> </div> <!-- class="sect3" --></div> <!-- class="sect2" --> <a id="CHDCIHCH" name="CHDCIHCH"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.3.4</span> <a name="HTMIG349" id="HTMIG349"></a>Security Considerations</h3> <p>Oracle highly recommends you configure and use a Secure Sockets Layer (SSL) to ensure that passwords and other sensitive data are not transmitted in clear text in HTTP requests. Without the use of SSL, passwords could potentially be exposed, compromising security.</p> <p>SSL is an industry standard protocol that uses RSA public key cryptography in conjunction with symmetric key cryptography to provide authentication, encryption, and data integrity.</p> </div> <!-- class="sect2" --> <a id="CHDEECAF" name="CHDEECAF"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.3.5</span> <a name="HTMIG350" id="HTMIG350"></a>About Running Oracle Application Express <a id="sthref464" name="sthref464"></a><a id="sthref465" name="sthref465"></a><a id="sthref466" name="sthref466"></a><a id="sthref467" name="sthref467"></a>in Other Languages</h3> <p>The Oracle Application Express interface is translated into German, Spanish, French, Italian, Japanese, Korean, Brazilian Portuguese, Simplified Chinese, and Traditional Chinese. A single instance of Oracle Application Express can be installed with one or more of these translated versions. At runtime, each user's Web browser language settings determine the specific language version.</p> <p>The translated version of Oracle Application Express should be loaded into a database that has a character set that supports the specific language. If you attempt to install a translated version of Oracle Application Express into a database that does not support the character encoding of the language, the installation may fail or the translated Oracle Application Express instance may appear corrupt when run. The database character set <code>AL32UTF8</code> supports all the translated versions of Oracle Application Express.</p> <p>You can manually install translated versions of Oracle Application Express using SQL*Plus. The installation files are encoded in <code>AL32UTF8</code>.</p> <div class="infoboxnote"> <p class="notep1">Note:</p> Regardless of the target database character set, to install a translated version of Oracle Application Express, you must set the character set value of the <code>NLS_LANG</code> environment variable to <code>AL32UTF8</code> before starting SQL*Plus.</div> <p>The following examples illustrate valid <code>NLS_LANG</code> settings for loading Oracle Application Express translations:</p> <pre xml:space="preserve" class="oac_no_warn">American_America.AL32UTF8 Japanese_Japan.AL32UTF8 </pre> <div class="sect3"><!-- infolevel="all" infotype="General" --><a id="sthref468" name="sthref468"></a> <h4 class="sect3"><span class="secnum">B.3.5.1</span> <a name="HTMIG351" id="HTMIG351"></a>Installing a Translated Version of Oracle Application Express</h4> <p>Whether you are installing for the first time or upgrading from a previous release, you must run the <code>load_</code><code><span class="codeinlineitalic">lang</span></code><code>.sql</code> script to run a translated version of Oracle Application Express.</p> <p>The installation scripts are located in subdirectories identified by a language code in the unzipped distribution <code>apex/builder</code>. For example, the German version is located in <code>apex/builder/de</code> and the Japanese version is located in <code>apex/builder/ja</code>. Within each of directory, there is a language loading script identified by the language code (for example, <code>load_de.sql</code> or <code>load_ja.sql</code>).</p> <p>To install a translated version of Oracle Application Express:</p> <ol> <li> <p>Set the <code>NLS_LANG</code> environment variable, making sure that the character set is <code>AL32UTF8</code>. For example:</p> <ul> <li> <p>Bourne or Korn shell:</p> <pre xml:space="preserve" class="oac_no_warn">NLS_LANG=American_America.AL32UTF8 export NLS_LANG </pre></li> <li> <p>C shell:</p> <pre xml:space="preserve" class="oac_no_warn">setenv NLS_LANG American_America.AL32UTF8 </pre></li> <li> <p>For Windows based systems:</p> <pre xml:space="preserve" class="oac_no_warn">set NLS_LANG=American_America.AL32UTF8 </pre></li> </ul> </li> <li> <p>Start SQL*Plus and connect to the database where Oracle Application Express is installed as <code>SYS</code> specifying the <code>SYSDBA</code> role. For example:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">SYSTEM_DRIVE:\</span> sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">$ sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> </ul> </li> <li> <p>Execute the following statement:</p> <pre xml:space="preserve" class="oac_no_warn">ALTER SESSION SET CURRENT_SCHEMA = APEX_030200; </pre></li> <li> <p>Execute the appropriate language specific script. For example:</p> <pre xml:space="preserve" class="oac_no_warn">@load_<span class="italic">lang</span>.sql </pre> <p>Where <code>lang</code> is the specific language (for example, <code>load_de.sql</code> for German or <code>load_ja.sql</code> for Japanese).</p> </li> </ol> </div> <!-- class="sect3" --></div> <!-- class="sect2" --> <a id="CHDEJFCF" name="CHDEJFCF"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.3.6</span> <a name="HTMIG352" id="HTMIG352"></a>About Managing <a id="sthref469" name="sthref469"></a><a id="sthref470" name="sthref470"></a>JOB_QUEUE_PROCESSES</h3> <p><code>JOB_QUEUE_PROCESSES</code> determine the maximum number of concurrently running jobs. In Oracle Application Express release 3.2, transactional support and SQL scripts require jobs. If <code>JOB_QUEUE_PROCESSES</code> is not enabled and working properly, you cannot successfully execute a script.</p> <p>Topics in this section include:</p> <ul> <li> <p><a href="#CHDBIEFB">Viewing the Number of JOB_QUEUE_PROCESSES</a></p> </li> <li> <p><a href="#CHDCIEGI">Changing the Number of JOB_QUEUE_PROCESSES</a></p> </li> </ul> <a id="CHDBIEFB" name="CHDBIEFB"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.3.6.1</span> <a name="HTMIG353" id="HTMIG353"></a>Viewing the Number of <a id="sthref471" name="sthref471"></a>JOB_QUEUE_PROCESSES</h4> <p>There are currently three ways to view the number of <code>JOB_QUEUE_PROCESSES</code>:</p> <ul> <li> <p>In the installation log file</p> </li> <li> <p>On the About Application Express page in Oracle Application Express</p> </li> <li> <p>From SQL*Plus</p> </li> </ul> <div class="sect4"><!-- infolevel="all" infotype="General" --><a id="sthref472" name="sthref472"></a> <h5 class="sect4"><span class="secnum">B.3.6.1.1</span> <a name="HTMIG354" id="HTMIG354"></a>Viewing JOB_QUEUE_PROCESSES in the Installation Log File</h5> <p>After installing or upgrading Oracle Application Express to release 3.2, you can view the number of <code>JOB_QUEUE_PROCESSES</code> in the installation log files. See <a href="trouble.htm#BABIHBIF">"Reviewing a Log of an Installation Session"</a>.</p> </div> <!-- class="sect4" --> <div class="sect4"><!-- infolevel="all" infotype="General" --><a id="sthref473" name="sthref473"></a> <h5 class="sect4"><span class="secnum">B.3.6.1.2</span> <a name="HTMIG355" id="HTMIG355"></a>Viewing JOB_QUEUE_PROCESSES in Oracle Application Express</h5> <p>You can also view the number of <code>JOB_QUEUE_PROCESSES</code> on the About Application Express page.</p> <p>To view the About Application Express page:</p> <ol> <li> <p>Log in to Oracle Application Express. See <a href="#BABEFBDF">"Logging in to Your Oracle Application Express Workspace"</a>.</p> </li> <li> <p>On the Administration list, click <span class="bold">About Application Express</span>.</p> <p>The current number <code>JOB_QUEUE_PROCESSES</code> displays at the bottom of the page.</p> </li> </ol> </div> <!-- class="sect4" --> <div class="sect4"><!-- infolevel="all" infotype="General" --><a id="sthref474" name="sthref474"></a> <h5 class="sect4"><span class="secnum">B.3.6.1.3</span> <a name="HTMIG356" id="HTMIG356"></a>Viewing JOB_QUEUE_PROCESSES from SQL*Plus</h5> <p>You can also view the number of <code>JOB_QUEUE_PROCESSES</code> from SQL*Plus by running the following SQL statement:</p> <pre xml:space="preserve" class="oac_no_warn">SELECT VALUE FROM v$parameter WHERE NAME = 'job_queue_processes' </pre></div> <!-- class="sect4" --></div> <!-- class="sect3" --> <a id="CHDCIEGI" name="CHDCIEGI"></a> <div class="sect3"><!-- infolevel="all" infotype="General" --> <h4 class="sect3"><span class="secnum">B.3.6.2</span> <a name="HTMIG357" id="HTMIG357"></a>Changing the Number of <a id="sthref475" name="sthref475"></a>JOB_QUEUE_PROCESSES</h4> <p>You can change the number of <code>JOB_QUEUE_PROCESSES</code> by running a SQL statement in SQL*Plus:</p> <p>To update the number of <code>JOB_QUEUE_PROCESSES</code>:</p> <ol> <li> <p>Start SQL*Plus and connect to the database where Oracle Application Express is installed as <code>SYS</code> specifying the <code>SYSDBA</code> role:</p> <ul> <li> <p>On Windows:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">SYSTEM_DRIVE:\</span> sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> <li> <p>On UNIX and Linux:</p> <pre xml:space="preserve" class="oac_no_warn">$ sqlplus /nolog SQL> CONNECT SYS as SYSDBA Enter password: <span class="italic">SYS_password</span> </pre></li> </ul> </li> <li> <p>In SQL*Plus run the following SQL statement:</p> <pre xml:space="preserve" class="oac_no_warn">ALTER SYSTEM SET JOB_QUEUE_PROCESSES = <number> </pre> <p>For example, running the statement <code>ALTER SYSTEM SET JOB_QUEUE_PROCESSES = 20</code> sets <code>JOB_QUEUE_PROCESSES</code> to 20.</p> </li> </ol> </div> <!-- class="sect3" --></div> <!-- class="sect2" --> <a id="CHDFCCAB" name="CHDFCCAB"></a> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h3 class="sect2"><span class="secnum">B.3.7</span> <a name="HTMIG358" id="HTMIG358"></a>About Obfuscating PlsqlDatabasePassword Parameter</h3> <p>The <code>PlsqlDatabasePassword</code> parameter specifies the password for logging in to the database. You can use the <a id="sthref476" name="sthref476"></a><code>dadTool.pl</code> utility to obfuscate passwords in the <code>dads.conf</code> file.</p> <p>You can find the <code>dadTool.pl</code> utility in the following directory:</p> <ul> <li> <p>For UNIX and Linux based systems:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_BASE</span>/<span class="italic">ORACLE_HTTPSERVER_HOME</span>/Apache/modplsql/conf </pre></li> <li> <p>For Windows based systems:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_BASE</span>\<span class="italic">ORACLE_HTTPSERVER_HOME</span>\Apache\modplsql\conf </pre></li> </ul> <div class="sect3"><!-- infolevel="all" infotype="General" --><a id="sthref477" name="sthref477"></a> <h4 class="sect3"><span class="secnum">B.3.7.1</span> <a name="HTMIG359" id="HTMIG359"></a>Obfuscating Passwords<a id="sthref478" name="sthref478"></a></h4> <p>To obfuscate passwords, run <code>dadTool.pl</code> by following the instructions in the <code>dadTool.README</code> file.</p> </div> <!-- class="sect3" --></div> <!-- class="sect2" --> <a id="BABEAIEH" name="BABEAIEH"></a> <div class="sect2"> <h3 class="sect2"><span class="secnum">B.3.8</span> <a name="HTMIG360" id="HTMIG360"></a>Create a <a id="sthref479" name="sthref479"></a><a id="sthref480" name="sthref480"></a><a id="sthref481" name="sthref481"></a>Workspace and Add Oracle Application Express Users</h3> <p><a id="sthref482" name="sthref482"></a>You access the Oracle Application Express home page by logging in to workspace using a Web browser. Your Web browser must support JavaScript and the HTML 4.0 and CSS 1.0 standards. See <a href="pre_require.htm#BABCHJIB">"Browser Requirement"</a>.</p> <p>A <span class="bold">workspace</span> is a virtual private database allowing multiple users to work within the same Oracle Application Express installation while keeping their objects, data and applications private. Each workspace has a unique ID and name.</p> <p>An Oracle Application Express administrator can create a workspace manually within Oracle Application Express Administration Services or have users submit requests. Oracle Application Express Administration Services is a separate application for managing an entire Oracle Application Express instance. See "<a class="olink AEADM239" href="http://www.oracle.com/pls/db112/lookup?id=AEADM239">Creating Workspaces</a>" and "<a class="olink AEADM254" href="http://www.oracle.com/pls/db112/lookup?id=AEADM254">Managing Workspace Requests</a>" in <span class="italic">Oracle Application Express Administration Guide</span>.</p> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a class="olink TDPAX" href="http://www.oracle.com/pls/db112/lookup?id=TDPAX"><span class="italic">Oracle Database 2 Day + Oracle Application Express Developer's Guide</span></a> if you are new to Oracle Application Express</div> <p>Topics in this section include:</p> <ul> <li> <p><a href="#BABJJDBB">Creating a Workspace Manually</a></p> </li> <li> <p><a href="#BABHFFAD">Creating Oracle Application Express Users</a></p> </li> <li> <p><a href="#BABEFBDF">Logging in to Your Oracle Application Express Workspace</a></p> </li> </ul> <a id="BABJJDBB" name="BABJJDBB"></a> <div class="sect3"> <h4 class="sect3"><span class="secnum">B.3.8.1</span> Creating a <a id="sthref483" name="sthref483"></a><a id="sthref484" name="sthref484"></a>Workspace Manually</h4> <p>To create an Oracle Application Express workspace manually:</p> <ol> <li> <p><span class="bold">Log in to <a id="sthref485" name="sthref485"></a>Oracle Application Express Administration Services.</span> Oracle Application Express Administration Services is a separate application for managing an entire Oracle Application Express instance. You log in using the <code>ADMIN</code> account and password created or reset during the installation process.</p> <ol> <li> <p>In a Web browser, navigate to the Oracle Application Express Administration Services application.</p> <p>If your setup uses Oracle HTTP Server (Apache) and <code>mod_plsql</code>, go to:</p> <pre xml:space="preserve" class="oac_no_warn">http://<span class="italic">hostname</span>:<span class="italic">port</span>/pls/apex/apex_admin </pre> <p>Where:</p> <p><code>hostname</code> is the name of the system where Oracle HTTP Server is installed.</p> <p><code>port</code> is the port number assigned to Oracle HTTP Server. In a default installation, this number is 7777.</p> <p><code>pls</code> is the indicator to use the <code>mod_plsql</code> cartridge.</p> <p><code>apex</code> is the database access descriptor (DAD) defined in the <code>mod_plsql</code> configuration file.</p> </li> <li> <p>On the Login page:</p> <ul> <li> <p>In Username, enter <code>admin</code>.</p> </li> <li> <p>In Password, enter the Oracle Application Express administrator account password you specified when you installed Oracle Application Express.</p> </li> <li> <p>Click <span class="bold">Login</span>.</p> </li> </ul> </li> </ol> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> See "Logging in to Oracle Application Express Administration Services" in <a class="olink AEADM168" href="http://www.oracle.com/pls/db112/lookup?id=AEADM168"><span class="italic">Oracle Application Express Administration Guide</span></a>.</div> <p>Next, create a workspace.</p> </li> <li> <p>Click <span class="bold">Manage Workspaces</span>.</p> </li> <li> <p>Under Manage Workspaces, click <span class="bold">Create Workspace</span>.</p> <p>The Create Workspace Wizard appears.</p> </li> <li> <p>For Identify Workspace, enter a workspace name and description and click <span class="bold">Next</span>.</p> </li> <li> <p>For Identify Schema, select the Oracle Forms application schema.</p> <ol> <li> <p>For Re-use existing schema, select <span class="bold">Yes</span>.</p> </li> <li> <p>Select a schema from the list.</p> </li> <li> <p>Click <span class="bold">Next</span>.</p> </li> </ol> </li> <li> <p>For Identify Administrator, enter the Workspace administrator information and click <span class="bold">Next</span>.</p> </li> <li> <p>Confirm your selections and click <span class="bold">Create</span>.</p> </li> </ol> </div> <!-- class="sect3" --> <a id="BABHFFAD" name="BABHFFAD"></a> <div class="sect3"> <h4 class="sect3"><span class="secnum">B.3.8.2</span> Creating Oracle Application Express <a id="sthref486" name="sthref486"></a><a id="sthref487" name="sthref487"></a>Users</h4> <p>To create an Oracle Application Express user account:</p> <ol> <li> <p>Log in to Oracle Application Express Administration Services as described in the previous section. See "Logging in to Oracle Application Express Administration Services" in <a class="olink AEADM168" href="http://www.oracle.com/pls/db112/lookup?id=AEADM168"><span class="italic">Oracle Application Express Administration Guide</span></a>.</p> </li> <li> <p>Click <span class="bold">Manage Workspaces</span>.</p> </li> <li> <p>Under Manage Workspaces, click <span class="bold">Manage Developers and Users</span>.</p> <p>The Manage Developers and Users page appears.</p> </li> <li> <p>Click <span class="bold">Create</span>.</p> <p>The Create/Edit User page appears.</p> </li> <li> <p>Under User Attributes, enter the appropriate information. Fields marked with an asterisk are required.</p> <div class="infoboxnotealso"> <p class="notep1">Tip:</p> To learn more about a specific attribute, click the item label. When Help is available, the item label changes to red when you pass your cursor over it and the cursor changes to an arrow and question mark.</div> </li> <li> <p>Under Password, type a case-sensitive password for this account.</p> <p>If your organization has set up a password policy, be sure the password meets the requirements.</p> </li> <li> <p>Under Developer Privileges, select the appropriate privileges:</p> <ul> <li> <p><span class="bold">User is a developer</span> - To add this user as a developer or Workspace administrator, select <span class="bold">Yes</span>. For end users, select <span class="bold">No</span>.</p> <p>Developers can create and modify applications and database objects as well as view developer activity, session state, workspace activity, application, and schema reports.</p> </li> <li> <p><span class="bold">User is a workspace administrator</span> - To add this user as a Workspace administrator, select <span class="bold">Yes</span>. For developers or end users, select <span class="bold">No</span>.</p> <p>In addition to having developer privileges, workspace administrators can create and edit user accounts, manage groups, alter passwords of users within the same workspace, and manage development services.</p> </li> </ul> </li> <li> <p>Under <a id="sthref488" name="sthref488"></a><a id="sthref489" name="sthref489"></a><a id="sthref490" name="sthref490"></a><a id="sthref491" name="sthref491"></a>Account Control, specify the following:</p> <ul> <li> <p><span class="bold">Account Availability</span> - Select <span class="bold">Unlocked</span> to enable a user to log in to this account.</p> </li> <li> <p><span class="bold">Require Change of Password on First Use</span> - Select <span class="bold">Yes</span> to require the user to change the password immediately after logging in with the current, temporary password. Otherwise, select <span class="bold">No</span>.</p> </li> </ul> </li> <li> <p>Click <span class="bold">Create User</span> or <span class="bold">Create and Create Another</span>.</p> </li> </ol> </div> <!-- class="sect3" --> <a id="BABEFBDF" name="BABEFBDF"></a> <div class="sect3"> <h4 class="sect3"><span class="secnum">B.3.8.3</span> Logging in to Your<a id="sthref492" name="sthref492"></a><a id="sthref493" name="sthref493"></a> Oracle Application Express Workspace</h4> <p>Once you create a workspace, you must log in to it using your login credentials (that is, the workspace name, user name, and password).</p> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> See "<a class="olink AEADM239" href="http://www.oracle.com/pls/db112/lookup?id=AEADM239">Creating Workspaces</a>" and "<a class="olink AEADM254" href="http://www.oracle.com/pls/db112/lookup?id=AEADM254">Managing Workspace Requests</a>" in <span class="italic">Oracle Application Express Administration Guide</span></div> <p>To log in to a workspace:</p> <ol> <li> <p>In a Web browser, navigate to the Oracle Application Express Login page.</p> <p>If your setup uses Oracle HTTP Server (Apache) and <code>mod_plsql</code>, go to:</p> <pre xml:space="preserve" class="oac_no_warn">http://<span class="italic">hostname</span>:<span class="italic">port</span>/pls/apex </pre> <p>Where:</p> <ul> <li> <p><code>hostname</code> is the name of the system where Oracle HTTP Server is installed.</p> </li> <li> <p><code>port</code> is the port number assigned to Oracle HTTP Server. In a default installation, this number is 7777. You can find information about your Oracle HTTP Server installation's port number from either of the following files:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">ORACLE_BASE</span>\<span class="italic">ORACLE_HOME</span>\install\portlist.ini <span class="italic">ORACLE_BASE</span>\<span class="italic">ORACLE_HTTPSERVER_HOME</span>\Apache\Apache\conf\httpd.conf </pre> <p>Be aware that if you change a port number, it is not updated in the <code>portlist.ini</code> file. You can only rely on this file immediately after installation.</p> </li> <li> <p><code>pls</code> is the indicator to use the <code>mod_plsql</code> cartridge.</p> </li> <li> <p><code>apex</code> is the database access descriptor (DAD) defined in the <code>mod_plsql</code> configuration file.</p> <p>For users who have upgraded from earlier releases, or who have a custom configuration, this value may be <code>htmldb</code> or something else. Verify your DAD with your Oracle Application Express administrator.</p> </li> </ul> <p>The Login page appears.</p> </li> <li> <p>Under Login, enter the following:</p> <ul> <li> <p>Workspace field - Enter the name of your workspace.</p> </li> <li> <p>Username field - Enteryour user name.</p> </li> <li> <p>Password field - Enter your case-sensitive password.</p> </li> </ul> </li> <li> <p>Click <span class="bold">Login</span>.</p> <p>Note that, depending on your setup, you might be required to change your password when you log in for the first time.</p> </li> </ol> </div> <!-- class="sect3" --></div> <!-- class="sect2" --></div> <!-- class="sect1" --></div> <!-- class="ind" --> <div class="footer"> <hr /> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="33%" /> <col width="*" /> <col width="33%" /> <tr> <td align="left"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="98"> <tr> <td align="center" valign="top"><a href="trouble.htm"><img width="24" height="24" src="../../dcommon/gifs/leftnav.gif" alt="Go to previous page" /><br /> <span class="icon">Previous</span></a></td> <td align="center" valign="top"><a href="license.htm"><img width="24" height="24" src="../../dcommon/gifs/rightnav.gif" alt="Go to next page" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </td> <td style="font-size: 90%" align="center" class="copyrightlogo"><img width="144" height="18" src="../../dcommon/gifs/oracle.gif" alt="Oracle" /><br /> Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.<br /> <a href="../../dcommon/html/cpyr.htm">Legal Notices</a></td> <td align="right"> <table class="icons oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="245"> <tr> <td align="center" valign="top"><a href="../../index.htm"><img width="24" height="24" src="../../dcommon/gifs/doclib.gif" alt="Go to Documentation Home" /><br /> <span class="icon">Home</span></a></td> <td align="center" valign="top"><a href="../../nav/portal_booklist.htm"><img width="24" height="24" src="../../dcommon/gifs/booklist.gif" alt="Go to Book List" /><br /> <span class="icon">Book List</span></a></td> <td align="center" valign="top"><a href="toc.htm"><img width="24" height="24" src="../../dcommon/gifs/toc.gif" alt="Go to Table of Contents" /><br /> <span class="icon">Contents</span></a></td> <td align="center" valign="top"><a href="index.htm"><img width="24" height="24" src="../../dcommon/gifs/index.gif" alt="Go to Index" /><br /> <span class="icon">Index</span></a></td> <td align="center" valign="top"><a href="../../dcommon/html/feedback.htm"><img width="24" height="24" src="../../dcommon/gifs/feedbck2.gif" alt="Go to Feedback page" /><br /> <span class="icon">Contact Us</span></a></td> </tr> </table> </td> </tr> </table> </div> <noscript> <p>Scripting on this page enhances content navigation, but does not change the content in any way.</p> </noscript> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de