Oracle® Database Companion CD Installation Guide 10g Release 1 (10.1.0.2.0) for Windows Part Number B13693-01 |
|
|
View PDF |
This chapter describes tasks that you might need to complete after you install the software.
This chapter contains these topics:
If you installed Oracle HTTP Server, complete the tasks described in the following sections.
This section contains these topics:
Oracle recommends that you back up the Oracle HTTP Server configuration and log files. The configuration and log files are located in the following locations:
ORACLE_BASE\ORACLE_HOME\Apache\Apache\conf ORACLE_BASE\ORACLE_HOME\opmn\conf ORACLE_BASE\ORACLE_HOME\Apache\Apache\logs ORACLE_BASE\ORACLE_HOME\opmn\logs
Oracle recommends that you back up the entire Oracle home directory before applying a patch.
Note: Theapachectl script is not supported for starting and stopping Oracle HTTP Server in this release. |
To enable the high-availability features of Oracle HTTP Server, you must use Oracle Process Manager and Notification server (OPMN) with Oracle HTTP Server. To use OPMN, you must first start the OPMN service. To start the OPMN service and the Oracle HTTP Server processes together, enter the following command:
ORACLE_BASE\ORACLE_HOME\opmn\bin\opmnctl startall
When the OPMN service is running, you can enter the following commands to start, stop, or restart Oracle HTTP Server:
Start Oracle HTTP Server only:
ORACLE_BASE\ORACLE_HOME\opmn\bin\opmnctl startproc ias-component=HTTP_Server
Alternatively, choose Start >
Programs >
Oracle Application Server - HOME_NAME >
Oracle HTTP Server >
Start HTTP Server.
Restart Oracle HTTP Server only:
ORACLE_BASE\ORACLE_HOME\opmn\bin\opmnctl restartproc ias-component=HTTP_Server
Stop Oracle HTTP Server only:
ORACLE_BASE\ORACLE_HOME\opmn\bin\opmnctl stopproc ias-component=HTTP_Server
Alternatively, choose Start >
Programs Oracle Application Server - HOME_NAME >
Oracle HTTP Server >
Stop HTTP Server.
To stop the OPMN service and the Oracle HTTP Server processes, enter the following command:
ORACLE_BASE\ORACLE_HOME\opmn\bin\opmnctl stopall
Check the OracleMetalink Web site for required patches for this product.
To download required patches, follow these steps:
Use a Web browser to view the OracleMetalink Web site:
http://metalink.oracle.com
Log in to OracleMetalink.
Note: If you are not an OracleMetalink registered user, click Register for MetaLink! and follow the registration instructions. |
On the main OracleMetalink page, click Patches.
Use the Search feature to search for patches, specifying Oracle HTTP Server(OHS) and mods in the Product or Family field.
If patches are available, click the number of the patch that you want to download.
On the Patch Set page, click View README and then read the page that appears.
Each patch has a ReadMe file with installation requirements and instructions. Some patches install with Oracle Universal Installer; others require special procedures. Oracle recommends that you always read the ReadMe before proceeding.
Return to the Patch Set page, click Download, and save the file on the system.
Use an unzip
utility to uncompress the Oracle patches that you downloaded from OracleMetalink.
If you are using Oracle HTTP Server installed with a previous release of Oracle Server on this system, you can migrate the configuration of that HTTP server to the current release.
Note: This section does not describe how to migrate from an Oracle HTTP Server release installed as part of Oracle Application Server. Oracle does not support that type of migration. |
There are two parts to the migration process:
To migrate the configuration of an earlier release of Oracle HTTP Server to the current release, you must copy and modify the httpd.conf
file used by that release. The following sections describe how to complete this task.
Copy the httpd.conf
file used by the previous release to the current release configuration file directory.
Follow these steps:
Change directory to the configuration file directory for the current release of Oracle HTTP Server:
cd ORACLE_BASE\ORACLE_HOME\Apache\Apache\conf
Back up the httpd.conf
file:
copy httpd.conf httpd.conf.orig
Back up the configuration file directory for the current release of Oracle HTTP Server:
copy ORACLE_BASE\ORACLE_HOME\Apache\Apache\conf ORACLE_BASE\ORACLE_HOME
Change directory to the configuration file directory:
cd ORACLE_BASE\ORACLE_HOME\Apache\Apache\conf
Copy the httpd.conf
file used by the previous release to the current directory, for example:
copy \OLD_ORACLE_HOME\Apache\Apache\conf\httpd.conf
Open the httpd.conf
file in any text editor.
To make the following global changes to the httpd.conf
file, follow these steps:
Search for all occurrences of the old Oracle home directory path and replace them with the current Oracle home directory path.
Change all occurrences of mod_ssl.c
to mod_ossl.c
.
Note: Oracle recommends that you change the SSL related directives in thehttpd.conf file, even if SSL is not used. |
To modify the list of LoadModule directives, follow these steps:
Remove the following directives:
LoadModule oprocmgr_module libexec\liboprocmgr.so LoadModule rewrite_module libexec\mod_rewrite.so
Note: You must add a LoadModule directive for themod_rewrite module later in the file. |
Add the following directive, which loads the onsint module, immediately before the <IfDefine SSL> section:
LoadModule onsint_module libexec\mod_onsint.so
In the LoadModule directive in the <IfDefine SSL> section, change ssl_module
to ossl_module
and change mod_ssl.so
to mod_ossl.so
, as follows:
LoadModule ossl_module libexec\mod_ossl.so
To remove all directives and sections for unsupported features, follow these steps:
Remove the following directives from the <IfModule mod_alias.c> section:
Alias /jservdocs/ "\ORACLE_BASE\ORACLE_HOME\Apache\Jserv\docs\" Alias /soapdocs/ "\ORACLE_BASE\ORACLE_HOME\soap\"
Remove the following directive from the <IfModule mod_fastcgi> section:
FastCGIServer fcgi-bin/echo -initial-env ORACLE_HOME \ -initial-env NLS_LANG
Remove the following include directive:
include "/ORACLE_BASE/ORACLE_HOME/Apache/Jserv/etc/jserv.conf"
Remove the <IfModule mod_oprocmgr.c> section.
The httpd.conf
file is used by previous releases of Oracle HTTP Server that were installed with Oracle HTTP Server or Oracle Database. This file specifies different ports for non-SSL (HTTP) requests depending on whether you started an SSL-enabled server. These ports are shown as port1
and port2
in the following example:
Port port1 Listen port1 <IfModule mod_ossl.c> Port port2 Listen port2 Listen SSL_port </IfModule>
Oracle recommends that you change these directives as follows:
If you did not use SSL, remove the following directives:
Port port2 Listen port2
Oracle HTTP Server listens for HTTP requests on port port1
.
If you used only the ports defined for SSL, change the directives as shown in the following example:
Port port2 Listen port2 <IfModule mod_ossl.c> Listen SSL_port </IfModule>
Oracle HTTP Server listens for HTTP requests on port port2
and for HTTPS requests on port SSL_port
.
If you intend to continue to use the previous version of Oracle HTTP Server concurrently with this release, change the ports specified by the Port and Listen directives to unused ports.
If you changed SSL_port
in the previous step, complete the following steps:
Locate the <VirtualHost _default_:SSL_port directive and ensure that the value of SSL_port
matches the value specified by the Listen directive in the <IfModule mod_ossl.c section.
In the <VirtualHost _default_:SSL_port section, ensure that the port number specified by the Port directive is the same as SSL_port
.
To modify the following sections and directives in httpd.conf
, follow these steps:
In the default directory section, <Directory />, add the MultiViews option to the Options directive. For example:
<Directory /> Options FollowSymLinks MultiViews AllowOverride None </Directory>
In the <IfModule mod_alias.c> section, create a new <IfModule mod_perl.c> section and move the Alias directive that defines the /perl/
alias into this section. For example:
<IfModule mod_alias.c> ... <IfModule mod_perl.c> Alias /perl/ "\ORACLE_BASE\ORACLE_HOME\Apache\Apache\cgi-bin\" </IfModule> ... </IfModule>
Modify the <IfModule mod_dms.c> section as shown in the following example, substituting the appropriate values for the hostname
and domain
variables:
<IfModule mod_dms.c> <Location /dms0> SetHandler dms-handler Order deny,allow Deny from all Allow from localhost hostname.domain hostname </Location> </IfModule>
In the directive that sets the PERL5LIB
environment variable, edit the Perl directory location and version, as shown in the following example:
SetEnv PERL5LIB "\ORACLE_BASE\ORACLE_HOME\perl\5.6.1\lib:\ORACLE_BASE\ORACLE_HOME\perl\site\5.6.1\lib"
Enter this setting on one line.
To add the following new sections and directives to the http.conf
file, follow these steps:
Add the following section to protect the WEB-INF
directories:
#Protect WEB-INF directory <DirectoryMatch /WEB-INF/> Order deny,allow Deny from all </DirectoryMatch>
Add the following lines before the line that includes the oracle_apache.conf
file:
# Include the configuration files needed for mod_oc4j include "\ORACLE_BASE\ORACLE_HOME\Apache\Apache\conf\mod_oc4j.conf" # Loading mod_rewrite module here as it loads before mod_oc4j LoadModule rewrite_module modules/ApacheModuleRewrite.dll
If you use SSL and have an existing server certificate and private key, you must migrate them to the format required by mod_ossl
before using them with this release of Oracle HTTP Server.
To migrate an existing server certificate and private key, follow these steps:
Enter a command using the following syntax in a separate terminal window:
\ORACLE_BASE\ORACLE_HOME\Apache\Apache\bin\ssl2ossl -cert cert_file \ -key key_file \ {[ -chain chain_file] | [ -cafile CA_file] | [ -capath CA_path] }\ -wallet wallet_path \ [ -certpass key_file_pwd] [ -wltpass wallet_pwd] \ [ -ssowallet yes] \ [ -validate yes]
The following table lists the recommended value for each option available with the ssl2ossl
command:
Note: You must specify at least one of the following options:-chain , -cafile , or -capath . |
Option | Recommended Value |
---|---|
-cert |
Use the value specified by the SSLCertificateFile directive in the httpd.conf file for the previous release. |
-key |
Use the value specified by the SSLCertificateKeyFile directive in the httpd.conf file for the previous release. |
-chain |
Use the value specified by the SSLCertificateChainFile directive in the httpd.conf file for the previous release, if that directive is not preceded by the comment character (#).
Note: If the SSLCertificateChainFile directive is not specified or is preceded by a comment character, do not specify the |
-cafile |
Use the value specified by the SSLCACertificateFile directive in the httpd.conf file for the previous release.
Note: If the SSLCACertificateFile directive is not specified or is preceded by a comment character, do not specify the |
-capath |
Use the value specified by the SSLCACertificatePath directive in the httpd.conf file for the previous release.
Note: If the SSLCACertificatePath directive is not specified or is preceded by a comment character, do not specify the |
-wallet |
Specify the path to the directory in which you want to create the wallet. The default value is:
\ORACLE_BASE\ORACLE_HOME\Apache\Apache\conf\ssl.wlt\default |
-certpass |
Specify the password for your private key file, if it is encrypted. |
-wltpass |
Specify a password for your new wallet.
If you do not specify this option, the |
-ssowallet |
Specify the value yes to create a wallet that is compatible with Oracle Single Sign-On. |
-validate |
Specify the value yes to verify that the wallet will be converted successfully. If you specify this option with the value yes , the wallet is not created. |
Optionally, enter a command similar to the following to generate an encrypted version of the wallet password you specified in the ssl2ossl
command:
ORACLE_BASE\ORACLE_HOME\Apache\Apache\bin\iasobf -p wallet_pwd
Note: If you specify the-ssowallet option in the ssl2ossl command, you do not need to complete this step. Otherwise, because the password must be specified in the httpd.conf file, Oracle recommends that you encrypt it. |
The output from this command is the encrypted version of the password specified by the -p
option. In the following section, you must specify this value for the SSLWalletPassword directive.
Note: Oracle recommends that you change the SSL related sections and directives in thehttpd.conf file, even if SSL is currently not used. |
Make the following changes to the directives contained in the <IfModule mod_ossl.c> sections:
Change the setting for the SSLSessionCache directive as follows:
SSLSessionCache shmcb:/ORACLE_BASE/ORACLE_HOME/Apache/Apache/logs/ssl_scache(512000)
Change the setting for the SSLCipherSuite directive as follows:
SSLCipherSuite SSL_RSA_WITH_RC4_128_MD5:SSL_RSA_WITH_RC4_128_SHA: SSL_RSA_WITH_3DES_EDE_CBC_SHA:SSL_RSA_WITH_DES_CBC_SHA: SSL_RSA_EXPORT_WITH_RC4_40_MD5:SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
Remove the following directives and their associated comments:
SSLRandomSeed SSLCertificateFile SSLCertificateKeyFile SSLCertificateChainFile SSLCACertificateFile SSLCACertificatePath SSLVerifyDepth
In the <VirtualHost _default_:SSL_port section, add the following lines:
# Server Wallet: # The server wallet contains the server's certificate, private key # and trusted certificates. Set SSLWallet at the wallet directory # using the syntax: file:<path-to-wallet-directory> SSLWallet file:\ORACLE_BASE\ORACLE_HOME\Apache\Apache\conf\ssl.wlt\default # Server Wallet Password: # Both clear text wallet password and obfuscated password are allowed # here. An obfuscated one is recommended. # Examples: # SSLWalletPassword <clear_pass> # SSLWalletPassword <obfuscated_pass> #SSLWalletPassword ...
If you migrated a server certificate and private key, complete the following steps:
Change the value specified by the SSLWallet directive to specify the wallet path, if it is different from the default value.
If you did not create a wallet that is compatible with Oracle Single Sign-On (using the -ssowallet yes
option in the previous section), remove the comment from the SSLWalletPassword directive and specify the clear-text or encrypted wallet password as its value.
Copy (or move) any scripts for files from the document root and script directories to the equivalent directories for the new release. Copy the following files, as appropriate:
Note: You need to copy only files that are located in subdirectories of the previous release Oracle home directory. Alias directories in other locations continue to be accessible, provided that the permissions on these directories and their contents allow the server to read them. If you changed the User or Group directive, you might need to change these permissions. |
Files and subdirectories in directories specified by a DocumentRoot or Alias directive
CGI, Perl, and FastCGI programs and scripts and their associated files in directories specified by a ScriptAlias directive
If you used mod_plsql
to access a database with the previous release of Oracle HTTP Server, you must migrate the database access descriptors (DADs) to the format required by mod_plsql
in the current release. You can use the dadTool.pl
Perl script to complete this migration.
To run this script, follow these steps:
Set the ORACLE_HOME
environment variable to specify the path to the Oracle home directory for the current release and set the PATH
environment variable to include the directory containing the perl
executable and the location of the dadTool.pl
script.
For example:
set PATH=%ORACLE_BASE%\%ORACLE_HOME%\Apache\modplsql\conf; %ORACLE_BASE%\%ORACLE_HOME%\perl\5.6.1\bin\MSWin32-x86;%PATH%
Enter this setting on one line.
If ORACLE_BASE\ORACLE_HOME
\bin
is not already in your PATH
, include it in the PATH
statement.
For example:
set PATH=ORACLE_BASE\ORACLE_HOME\bin;%PATH%
Change directory to the mod_plsql
configuration directory for the current release of Oracle HTTP Server:
cd ORACLE_BASE\ORACLE_HOME\Apache\modplsql\conf
Copy the DAD configuration file (wdbsvr.app
) used by the previous release to this directory:
copy OLD_ORACLE_BASE\ORACLE_HOME\Apache\modplsql\cfg\wdbsvr.app
Enter the following command to run the dadTool
script:
perl dadTool.pl -m
The dadTool
script reads the DAD information from the wdbsvr.app
file and creates new equivalent DADs in the dads.conf
file.
If you installed Oracle HTML DB, complete the tasks listed in the following sections.
This section contains these topics:
If you installed Oracle HTML DB in an existing Oracle home directory, you must restart Oracle HTTP Server. You can start or stop from the Start menu under the Oracle home where you installed Oracle HTTP Server. See "Starting, Stopping, or Restarting Oracle HTTP Server".
To verify the Oracle HTML DB installation, try opening the Oracle HTML DB home page in a Web browser. To view or develop Oracle HTML DB applications, the Web browser must support Java Script and the HTML 4.0 and CSS 1.0 standards. The following browsers meet this requirement:
Netscape Communicator 7.0 or later
Microsoft Internet Explorer 5.5 or later
Mozilla 1.2 or later
Follow these steps:
Open the following URL in a Web browser:
http://hostname:port/pls/htmldb/htmldb_admin
In this example:
hostname
is the name of the system where Oracle HTTP Server is installed.
port
is the Oracle HTTP Server port.
You can see a listing of all Oracle HTTP ports, in the portlist.ini
file. You can find this file in the Oracle HTTP Server \install
directory. For example:
\ORACLE_BASE\ORACLE_HOME\install\postlist.ini
Log in to Oracle HTML DB using the username ADMIN
and the password that you specified during the installation.
Use the password that you specified for the FLOWS
user when you created the database objects.
See Also: Oracle HTML DB User's Guide for more information about using, developing applications with, and administering Oracle HTML DB |
To configure Oracle HTML DB to run on a release 9.2.0.3 or later (but not 10g) Oracle Database, you need to follow these general steps:
Copy the Oracle Database 10g images directory located in ORACLE_BASE\ORACLE_HOME
\marvel\images
to a new images
directory in the Oracle9i home.
Modify the Oracle9i httpdb.conf
file to include an alias to point the Oracle Database 10g Oracle HTML DB to the Oracle9i images directory that you created in Step 1.
Modify the Oracle9i wdbsvr.app
file to include a Database Access Descriptor (DAD), which will describe how Oracle HTTP Server will connect to the database server so that it can fulfill HTTP requests.
Stop and restart Oracle HTTP Server.
Remove the Oracle HTTP Server 10g home.
From the Oracle Database 10g installation, recursively copy the images
directory located in ORACLE_BASE
\
ORACLE_HOME
\marvel\images
to a new images directory in your Oracle9i installation. In the following example, the Oracle9i home is referred to as ORACLE_BASE
\ORACLE_HOME_9
and the Oracle Database 10g home is ORACLE_BASE\ORACLE_HOME_10g
. For example:
c:\>xcopy /E /I ORACLE_BASE\ORACLE_HOME_10g\marvel\images ORACLE_BASE\ORACLE_HOME_9\images
Enter this command on one line.
Next, modify the Oracle9i httpd.conf
file to point to the Oracle9i file system path of the images
directory that you created in the previous step.
Follow these steps:
Use a text editor to open the httpd.conf
file, located in ORACLE_BASE
\
ORACLE_HOME_9
\
Apache\Apache\conf
.
Add an alias called /i/
to point to the file system path of the Oracle9i images directory. For example:
Alias /i/ "E:\oracle\ora92\images/"
Save and exit httpd.conf
.
The wdbsvr.app
file contains information about Database Access Descriptors (DADs). A DAD is a set of values that specify how Oracle HTTP Server connects to the database server to fulfill an HTTP request. You need to create a DAD to specify how to connect to the Oracle HTML DB instance.
Follow these steps:
Use a text editor to open the wdbsvr.app
file, located in ORACLE_BASE
\
ORACLE_HOME_9
\Apache\modplsql\cfg
.
Add an entry for Oracle HTML DB using the following syntax. Only change the settings indicated in italics below.
[DAD_htmldb] connect_string = hostID:port_number:databaseSID password = password username = htmldb_public_user default_page = htmldb document_table = wwv_flow_file_objects$ document_path = docs document_proc = wwv_flow_file_mgr.process_download reuse = No enablesso = No stateful = STATELESS_RESET nls_lang = database_nls_lang
where:
connect_string
refers to the host ID, port number, and Oracle9i database to which Oracle HTML DB will connect. For example:
138.2.84.182:1521:orcl
If the Oracle9i 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 HTML DB, you can leave this setting blank.
password
is the same password that you entered when you installed Oracle HTML DB.
nls_lang
refers to the language setting. It must match the NLS_LANG
of the database. For example:
American_America.AL32UTF8
You can find information about your database's NLS_LANG
setting by querying the view NSL_DATABASE_PARAMETERS
.
Oracle recommends that you leave the remaining settings, including the username
setting, as they are.
Save and exit wdbsvr.app
.
In order for your changes to httpdb.conf
and wdbsvr.app
to take effect, stop and restart Oracle HTTP Server. See "Starting, Stopping, or Restarting Oracle HTTP Server" for more information.
After you complete these steps, you no longer need the Oracle HTTP Server 10g home. All the Oracle HTML DB code is now compiled as PL/SQL inside the database server that you specified at installation time, and you have copied the Oracle Database 10g images
directory to your Oracle9i home.
If you are not going to use Oracle HTTP Server 10g, follow these steps:
From the Oracle Database 10g home, run the Oracle Universal Installer.
Select Deinstall Products and follow the instructions to remove the Oracle HTTP Server 10g home.