Oracle Message Broker Installation Guide for Windows NT Release 2.0.1.0 Part Number A85438-01 |
|
This chapter describes tasks that you need to complete following the Oracle Message Broker installation. Some of these tasks are optional, since different installations can use different drivers.
Assure that the proper version of the JRE is installed on your system, and that your PATH is set appropriately. If you have several versions of the JRE on your system, make sure that first one found in your path is the version that corresponds to the version installed with the Oracle Message Broker (see Table 1-2 for details on the supported JRE versions).
The Oracle Message Broker Installer installs the JRE in the directory, %OMB_HOME%\jdk for Windows NT, and it sets the path in the ombenv environment scripts in the directory %OMB_HOME%\bin to use the supplied JRE.
Oracle Message Broker requires an LDAP Directory to handle administrative functions. Oracle Message Broker supports two LDAP Directory products:
The LDAP Directory needs to be installed on a system available to Oracle Message Broker and configured for use with Oracle Message Broker. This section covers directory installation and configuration.
You can install the LDAP Directory on the same system as Oracle Message Broker, or on a separate system.
Oracle Internet Directory is available from Oracle. Refer to the following web page for information on Oracle Internet Directory,
http://www.oracle.com/database/oid
Refer to the following documents for more information on installing Oracle Internet Directory:
All of the Oracle Message Broker commands that access the LDAP Directory, including those used during the installation process require that a bind DN and a password be supplied.
For Oracle Internet Directory, the default bind DN is: "cn=orcladmin" and the default password is: "welcome". The bind DN, "cn=orcladmin" is the default super user bind DN, and therefore has super user privileges.
It is recommended that users create user and group entries in the directory and use the bind DN and password corresponding to those non-super users entries. Setting up user and group entries requires knowledge of LDAP and the LDAP server specific tools such as oidadmin
.
Only the LDAPSchema
command and possibly the InitDir
command, depending on the directory setup, require super user privileges (see "Directory Configuration" for details on these commands). For details on the types of users that one might need to create when working with Oracle Message Broker, see the section, "Security Roles" in the Security Chapter in the Oracle Message Broker Administration Guide.
Using Oracle Message Broker commands, there are three ways to supply the bind DN and the password:
InitDir
.
The JNDI Java properties for setting security options are:
java.naming.security.principal java.naming.security.credentials java.naming.security.authentication=simple
Netscape Directory Server is available from Netscape. Refer to the following web page for information on obtaining Netscape Directory Server,
http://www.iplanet.com/products
After you purchase the Netscape Directory Server, install it on a Windows NT system. The following instructions outline the installation procedures. For detailed instructions on installing and running the Netscape Directory Server, refer to the product documentation.
To install Netscape Directory Server, perform the following steps (these steps are for release 4.0; the steps may be different for newer releases):
After the LDAP directory is installed, perform the following steps:
After the LDAP Directory and Oracle Message Broker are both installed, you need to perform several configuration tasks on the directory. The following tasks use tools installed with Oracle Message Broker. These tools modify the directory and require an active directory server. The directory modifications support the Oracle Message Broker administrative functions.
After the LDAP Directory and Oracle Message Broker are both installed, perform the following steps:
On Windows NT run the shell command:
> C:%ORACLE_HOME%\omb\2.0\bin\ombenv.bat
The Oracle Message Broker installation creates the startup script ombenv.bat.
LDAPSchema
command. This command is found in %ORACLE_HOME\omb\2.0\bin. Use LDAPSchema
as follows:
> LDAPSchema [options]
where Table 3-1 shows the available options.
For example, to modify the LDAP schema for the LDAP Directory running on the host named system1, and the default port number, 389, use the command:
> LDAPSchema -h "system1"
If LDAPSchema
prints the following message, you need to run catalog.sh
, as described in step 4, :
### ATTENTION: The attribute "orcloasentrytype" is not searchable. Please run "catalog.sh" on OiD to make this attribute searchable
InitDir
command. This command is found in %ORACLE_HOME\omb\2.0\bin. Use InitDir
as follows:
> InitDir [options]
where Table 3-2 shows the available options.
For example, to initialize the LDAP Directory running on the host named system1, and the default port number, 389, use the command:
> InitDir -h "system1" -b "o=us.oracle.com" -ou "sales"
This assumes that the directory is being initialized for Oracle Message Broker from the root specified with the -band -ou options.
LDAPSchema
prints this message when there is data in the directory which uses the attribute `orcloasentrytype' and `orcloasentrytype' was not cataloged. In this case, LDAPSchema
cannot catalog the attribute and catalog.sh must be run manually.
On the system where Oracle Internet Directory is installed and running, issue the commands:
> cd %ORACLE_HOME%\ldap\bin > catalog.sh -connect "connect_string" -add -attr "orcloasentrytype"
where:
|
connect_string |
Specifies the Net8 connect descriptor for connecting to the Database Server. |
Enter the password when the catalog.sh
command prompts you. The default password is ods, which is the default OID Database Server password. If you change the password using oidpasswd
before running catalog.sh
, use the new password, rather than the default password.
It is possible that the Oracle Internet Directory may need to be restarted after running catalog.sh (see step 4 for information on running catlog.sh). It is also possible for step 4 to not fully complete its actions. If step 4 does not fully complete its actions, directory operations, including use of AdminUtil
or ombadmin
may report the following error message:
DSA unwilling to perform: operation not supported
The following steps provide a workaround for this problem:
catalog.sh -connect connect-string -delete -attr orcloasentrytype catalog.sh -connect connect-string -add -attr orcloasentrytype
where: connect-string specifies the Net8 connect descriptor for connecting to the Database Server.
oidldapd
instance(s) using oidctl.
oidmon
.
oidmon connect=connect-string stop
oidmon
using the command:
oidmon connect=connect-string start
oidldapd
instance(s) using oidctl
.
This section covers the configuration steps for using the Oracle 8i Advanced Queuing feature with the Oracle Message Broker. Perform the steps in this section if you are using Oracle Message Broker and the Oracle AQ Driver.
Prior to configuring the Oracle 8i Database Server for the Oracle Message Broker AQ Driver, you need to purchase and install the Oracle 8i Database Server. Refer to the following site for information on obtaining the Oracle 8i Database Server,
www.oracle.com/products
For information on installing Oracle 8i Database Server, refer to the documentation supplied with the product.
If you are running Oracle AQ using the same Oracle 8i Database Server as Oracle Internet Directory, then you need to shutdown both Oracle Internet Directory and the Oracle 8i Database Server. This section covers shutting down Oracle Internet Directory.
oidctl
to stop the OID instance. See the Oracle Internet Directory Administrator's Guide for information on oidctl
. For example,
% oidctl connect=connect_string server=oidldapd instance=1 stop
where: connect_string specifies the Net8 connect descriptor for connecting to the Database Server.
oidmon
to stop the OID monitor. See the Oracle Internet Directory Administrator's Guide for information on oidmon. For example,
% oidmon connect=connect_string stop where: connect_string specifies the Net8 connect descriptor for connecting to the Database Server.
On the system running the Oracle8i Database Server, perform the following steps:
lsnrctl lsnrctl> stop lsnrctl> quit
See the Net8 Administrator's Guide for more information on stopping listeners.
> sqlplus
SQL> SHUTDOWN [MODE]
where, MODE is one of the following:
The Oracle8i Database Server needs to be configured to support the resource requirements for Oracle Message Broker. Active Oracle Message Brokers consume transactions, sessions, cursors, and processes. Other applications may also use the Database Server and have their own resource needs.
Table 3-3 shows equations that determine the Database Server requirements for Oracle Message Broker. These requirements are in addition to the requirements for any other applications that will use the Database Server. Table 3-3 outlines the parameters needed to support Oracle Message Broker.
Keep the following points in mind when configuring an Oracle8i Database Server:
Table 3-3 Oracle8i Database Server Parameters Required for Oracle Message Broker
On the system running the Oracle8i Database Server supporting AQ, perform the following steps:
> sqlplus
SQL> STARTUP
SQL> EXIT
lsnrctl lsnrctl> start lsnrctl> quit
See the Net8 Administrator's Guide for more information on starting listeners.
If you are running Oracle AQ using the same Oracle 8i Database Server as Oracle Internet Directory, then you need to startup both the OID and the Oracle 8i Database Server. This section covers starting OID after the Database Server is up and running.
oidmon
to start the OID monitor. See the Oracle Internet Directory Administrator's Guide for information on oidmon. For example,
% oidmon connect=connect_string start
where:
|
connect_string |
Specifies the Net8 connect descriptor for connecting to the Database Server. |
oidctl
to start the OID instance. See the Oracle Internet Directory Administrator's Guide for information on oidctl
. For example,
% oidctl connect=connect_string server=oidldapd instance=1 start
where:
|
connect_string |
Specifies the Net8 connect descriptor for connecting to the Database Server. |
After installing the Oracle Message Broker and installing the Oracle 8i Database Server, perform the following steps. The Oracle 8i Database Server needs to be running to use these scripts. These scripts initialize AQ for use with Oracle Message Broker and provide support to allow the AQ Driver to work with AQ queues and topics.
> cd %OMB_HOME%\admin\plsql
> sqlplus system/system_password[@service_name] @step1 > sqlplus system/system_password[@service_name] @step2 > sqlplus aq/aq[@service_name] @step3
where:
|
system_password |
The password for the system administrative user. |
|
service_name |
The database service name. |
Running the pl/sql script step1.sql is only required if this is the first time that Oracle Message Broker pl/sql support is installed. It creates the user aq with the password aq.
Running the pl/sql script step2 is required. This script does the following:
Running the pl/sql script step3 is required. This script does the following:
The Oracle Message Broker also provides a script to remove the tables and users that are created for AQ. If you need to remove these tables, use the following command to remove the AQ Driver support from the Database Server:
% sqlplus @uninstall
where:
system_password |
The password for the system administrative user. |
service_name |
The database service name. |
One or more of the following types of errors are expected while running this script:
ORA-00942: table or view does not exist ORA-04043: xx does not exist
This uninstall script does the following:
This version of the Oracle Message Broker only supports IBM MQSeries V5.1. For details on installing MQSeries, refer to the MQSeries documentation available from IBM and supplied with the MQSeries product.
To use the Oracle Message Broker with the TIBCO Driver you need to install and start up TIB/Rendezvous Release 5.x or TIB/Rendezvous Pro Release 5.x (when using the JDK 1.2 version of Oracle Message Broker, TIB/Rendezvous Pro Release 5.x is required). For information on TIB/Rendezvous installation and administration, refer to the TIB/Rendezvous Administrator's Guide. For more information on TIB/Rendezvous, see the following web site,
http://www.rv.tibco.com/
If you are using the Oracle Message Broker Asynchronous Component Invocation (ACI), you need to load Oracle Message Broker's client classes in the Oracle Database Server, and grant permissions to the schema in which the EJB executes using the following two commands (replace SCOTT/TIGER with your schema and password):
# grant permissions to SCOTT sqlplus sys/sys_password @$OMB_HOME/admin/plsql/setupaci.sql SCOTT # Loading OMB client classes loadjava -r -g SYS -u SCOTT/TIGER ${OMB_HOME}/classes/ombclt.jar
or on Windows NT systems:
sqlplus sys/sys_password @%OMB_HOME%\admin\plsql\setupaci.sql SCOTT loadjava -r -g SYS -u SCOTT/TIGER %OMB_HOME%\classes\ombclt.jar
where:
sys_password is the administrative user sys's password.
The Oracle Message Broker AQ Lite Driver requires that Oracle 8i Lite, and the AQ Lite component be installed on the same system as the Oracle Message Broker. This section covers requirements for installing both Oracle 8i Lite and AQ Lite.
Keep the following in mind when installing AQ Lite:
Oracle 8i Lite's installation only supports an older version of the Oracle Installer, and it is strongly recommended that Oracle 8i Lite be installed before the Oracle Message Broker. The typical option for the Oracle 8i Lite installation does not install the AQ Lite component. Installation of the AQ Lite component is accomplished by performing a custom install of Oracle 8i Lite.
Follow the steps outlined in the Oracle 8i Lite release notes to fully install Oracle 8i Lite, especially the notes in Section 1.1.9, "Oracle Lite JDK Setup", under the subsection, "Setting Variables for JDK 1.2". Maker sure that the %CLASSPATH% includes the AQ Lite jar files: aqcommon.jar, aqoracle.jar, aqlite.jar.
The Oracle 8i Lite Installer installs a default Oracle 8i database, %ORACLE_HOME\oldb40\polite.odb, and creates a default user ('Scott'). You can use the default database and the default user, or create a new database or a new user. the Oracle 8i Lite Users Guide describes creating new users and databases.
Oracle Message Broker should be installed after Oracle 8i Lite and AQ Lite. Install Oracle Message Broker on the same system, but on a different %ORACLE_HOME%.
You can perform the Oracle Message Broker related installation steps at this point, including setting up the environment (using ombenv.bat') and setting up LDAP Directory entries for Oracle Message Broker.
Oracle 8i client side is installed along with the Oracle Message Broker. It is recommended that the TNS listener that is started as part of the Oracle 8i client side be turned off after the Oracle Message Broker installation is complete.
A one time deployment operation has to be performed against the database. This is performed using the DeployAQLite
command provided in the %ORACLE_HOME%\omb\2.0\bin directory (where %ORACLE_HOME% is the location where Oracle Message Broker 2.0.0.1 was installed).
Use the following option to run DeployAQLite
:
DeployAQLite dbname
Where dbname is the name of the database.
For example,
DeployAQLite d:\oralite\oldb40\polite.odb
The DeployAQLite
command performs a standalone deployment of the AQ Lite queues created in the database. Messages from AQ Lite queues created in the deployed database cannot be propagated with AQ Lite propagation. If the user needs to deploy AQ Lite in a mode other than standalone, then it is expected that the user will provide a customized script in place of DeployAQLite
. For more information refer to the AQ Lite Developers Guide, Section 2, "AQ Lite Deployment".
Create LDAP entries for the AQ Lite Driver and for AQ Lite queues by editing the sample configuration script,
%ORACLE_HOME\omb\samples\admin\SetupAQLite
where %ORACLE_HOME% is the location where Oracle Message Broker is installed.
Escape the '\' in the path name for the Oracle Lite database with backslahes. For example,
set AQLITESVR_DB_NAME d:\\orant\\oldb40\\polite.odb;
Escape the '\' in the path name for the empty passwords, in case the Oracle Lite databases is not encrypted. For example,
set AQLITESVR_DB_PASSWORD \"\";
If you need to reinstall Oracle 8i Lite for any reason after Oracle Message Broker has been installed, Oracle 8i Lite installer might end up in an inconsistent state during the reinstallation phase. This can occur when the Oracle 8i installer does not perform a clean deinstall due to more than one %ORACLE_HOME% being available. Overcome this problem by deinstalling Oracle Message Broker and then cleaning up the registry entries associated with the Oracle 8i Lite installer (using the Windows NT regedit
tool) and reinstalling Oracle 8i Lite and the Oracle Message Broker.
The Oracle Message Broker provides the utility Migrate10to20
to migrate directory data between versions. Refer to the Oracle Message Broker Administration Guide for information on using Migrate10To20
.
At this point, the installation for the Oracle Message Broker, the LDAP Directory, and the required providers is complete. The next step is to configure the Oracle Message Broker and to start using the Oracle Message Broker. Refer to Chapter 2, "QuickStart", in the Oracle Message Broker Administration Guide for information on creating an OMB Instance, working with the administrative utilities and the sample administrative scripts, and starting the Oracle Message Broker.
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|