Oracle® Application Server mod_plsql User's Guide
10g Release 2 (10.1.2) Part No. B14010-01 |
|
![]() Previous |
![]() Next |
This chapter describes how you can set up and use mod_plsql. It contains the following sections:
Before you run mod_plsql, you must satisfy the following requirements:
You must have a SYS user password on the database where you plan to load PL/SQL Web Toolkit packages required by mod_plsql.
The database to which you plan to connect mod_plsql must be up and running.
Oracle HTTP Server mod_plsql ships with OWA package version 10.1.2.0.0. It is recommended that the OWA packages installed in the database are at least version 10.1.2.0.0.
After installation, if you need to use Oracle HTTP Server mod_plsql with a database that is not shipped with the product, you must manually install additional required packages using the owaload.sql
script.
Note: Even if a full database export is made with the Export utility you still must reinstall mod_plsql in the new target instance by running theOWALOAD.SQL script as SYS. Objects in SYS are not imported with the Import/Export mechanism, and the PL/SQL toolkit has to be installed in SYS.
|
Navigate to the directory where the owaload.sql
file is located. This directory is ORACLE_HOME
/Apache/modpsql/owa.
Using SQL*Plus, login to the Oracle database as the SYS user.
You can check the version of the OWA packages currently installed by running the following query:
select owa_util.get_version from dual;
If the query succeeds, but shows a version less than 10.1.2.0.0, it is recommended that you install the newer OWA packages.
If the query fails, you either do not have the OWA packages installed, or are running a very old version of OWA packages, and it is recommended that you install, or upgrade to the new OWA packages.
Note: To detect older OWA packages, see "How do I detect and clean up duplicate OWA packages installed in the database?" in Appendix A, "Frequently Asked Questions". |
At the SQL prompt, run the following command:
@owaload.sql log_file
Table 2-1 Installing Required Packages Parameters
Elements | Description |
---|---|
owaload.sql | Installs the PL/SQL Web Toolkit packages into the SYS schema. It also creates public synonyms and makes the packages public so that all users in the database have access to them. Therefore, only one installation for each database is needed. |
log_file | The installation log file. Make sure that you have write permissions to create the log file |
Scan the log file for any errors.
Note: Theowaload script checks the existing version of the OWA packages in the database and installs a new version only if:
|
Perform a manual recompile.
Note: Installing the OWA packages might invalidate all dependent objects. These packages automatically recompile on first access, but a manual recompile is recommended after the reinstallation. |
After the install, check the version of the OWA packages by running "Select owa_util.get_version from dual;
". Confirm that the version shown is 10.1.2.0.0 or later.
Note that public access is now granted to:
OWA_CUSTOM
OWA
HTF
HTP
OWA_COOKIE
OWA_IMAGE
OWA_OPT_LOCK
OWA_PATTERN
OWA_SEC
OWA_TEXT
OWA_UTIL
OWA_CACHE
WPG_DOCLOAD
OWA_MATCH
Note also that the following public synonyms are created:
OWA_CUSTOM for OWA_CUSTOM
OWA_GLOBAL for OWA_CUSTOM
OWA for OWA
HTF for HTF
HTP for HTP
OWA_COOKIE for OWA_COOKIE
OWA_IMAGE for OWA_IMAGE
OWA_OPT_LOCK for OWA_OPT_LOCK
OWA_PATTERN for OWA_PATTERN
OWA_SEC for OWA_SEC
OWA_TEXT for OWA_TEXT
OWA_UTIL for OWA_UTIL
OWA_INIT for OWA_CUSTOM
OWA_CACHE for OWA_CACHE
WPG_DOCLOAD for WPG_DOCLOAD
OWA_MATCH for OWA_MATCH
All monitoring and configuration takes place through the Oracle Enterprise Manager 10g tool. The mod_plsql monitoring and configuration is accessible through links within the HTTP Server components and the Portal.
To get to the mod_plsql configuration pages navigate to the applicable Application Server through Enterprise Manager. You can access the pages either through a portal instance or through the link in the HTTP server instance.
Enter the following URL in a Web browser:
http://<hostname>:<port_number>
Note: 1810 is the default port. |
Enter the Oracle Application Server administrator username and password. The default username for administrator user is ias_admin. The default password is defined during the installation of Oracle Application Server.
Click OK.
Select Oracle Application Server instance with the mod_plsql that needs configuring.
Select the HTTP Server link or the Portal instance.
Select mod_plsql component or link.
Scroll down to the DADs section.
Click Create to set up a new DAD, or click the name of the DAD you are interested in.
Log on to Portal.
Click the Builder icon.
Access the Administer tab.
Click Portal Service Monitoring link in the Services portlet.
Click mod_plsql Services in the Portal Components section.
Scroll down to DAD Status section.
Click Create to set up a new DAD, or click the name of the DAD you are interested in.
To run an Oracle Application Server middle-tier against an OracleAS Portal 3.0.9 repository, you need to perform the following steps:
Use Oracle Enterprise Manager 10g to create two Portal-style DADs: one for the 3.0.9 OracleAS Portal repository and another for the 3.0.9 Oracle Application Server Single Sign-On repository.
Note: The DAD name is case-sensitive in Oracle Application Server. You must ensure that the DAD is created with the same case as it exists for OracleAS Portal version 3.0.9. Mostly, the DAD name is all in lowercase. To see a version 3.0.9 DAD name, view the file$OLD_HOME/Apache/modplsql/cfg/wdbsvr.app .
|
For each DAD, edit the DAD configuration and set PlsqlCompatibilityMode to 1
. To edit the DAD configuration:
Edit the file ORACLE_HOME
/Apache/modplsql/conf/dads.conf
.
Locate the DADs used to connect to the version 3.0.9 OracleAS Portal and Oracle Application Server Single Sign-On repositories.
Add the following line in the DADs:
PlsqlCompatibilityMode 1
Run the following command:
ORACLE_HOME/dcm/bin/dcmctl updateConfig -ct ohs
Run the following command to restart Oracle HTTP Server:
ORACLE_HOME/opmn/bin/opmnctl restartproc type=ohs
Note:
|
Warning: Once the back-end OracleAS Portal repository is upgraded to version 9.0.x or later, you should remove the PlsqlCompatibilityMode flag from the DAD. See the section "Removing the PlsqlCompatibilityMode Flag from a DAD" for detailed instructions. |
Removing the PlsqlCompatibilityMode Flag from a DAD
To remove the PlsqlCompatibilityMode flag from a DAD, after the back-end OracleAS Portal repository is upgraded to version 9.0.x or later, perform the following steps:
Edit the file ORACLE_HOME
/Apache/modplsql/conf/dads.conf
.
Locate the DADs used to connect to the version 9.0.x or later OracleAS Portal and Oracle Application Server Single Sign-On repositories.
Remove the following line in the DAD:
PlsqlCompatibilityMode 1
Run the following command:
ORACLE_HOME/dcm/bin/dcmctl updateConfig -ct ohs
Run the following command to restart Oracle HTTP Server:
ORACLE_HOME/opmn/bin/opmnctl restartproc type=ohs
To access a Web-enabled PL/SQL application, you must first configure a PL/SQL Database Access Descriptor (DAD) for mod_plsql. A DAD is a set of values that specifies how mod_plsql connects to a database server to fulfill an HTTP request. Besides the connection details, a DAD contains important configuration parameters for various operations in the database, and for mod_plsql in general. For detailed instructions, refer to the mod_plsql section in the Oracle HTTP Server Administrator's Guide.