The second stage in the process of installing the Multi-Channel Server (MCS)
software on WebSphere® Portal for
use with Oracle is to install the MCS software.
Before you begin
Make sure that you configured the Oracle database as described
in the preceding topic
Configuring an Oracle database for MCS.
About this task
Perform the following steps to install
MCS on
your
WebSphere Portal server.
Procedure
- Make sure that the database server and
the database listener are running.
If you are using a remote Oracle database, you must copy
the JAR file that provides support for the JDK (for example, ojdbc6.jar)
from the remote Oracle server to the WebSphere Portal server.
The typical location of this file is the db_root/jdbc/lib directory.
Note: Later
in this installation, you add the JAR file to theCLASSPATH environment
variable and to the JDBC_DRIVER parameter in
the ImportPolicies.sh shell script. Specify the
location of the file that you copied onto the WebSphere Portal server.
- Log in to the WebSphere Portal server
as the user who installed WebSphere Portal.
- Add the JDBC driver to the Java™ Virtual
Machine (JVM) classpath of the WebSphere Portal server
as follows.
- Log in to the WebSphere Application Server Integrated Solutions Console.
- Click .
- Click the WebSphere_Portal server
link.
- In Server Infrastructure, click .
- Click the Java Virtual Machine link.
- In the Classpath field,
add entries for your JDBC driver.
An example entry follows.
db_root/jdbc/lib/ojdbc6.jar
where
db_root is
the value you assigned to the
ORACLE_HOME environment
variable when you configured the database for
MCS.
- Click Apply.
- Save the configuration changes.
- Run the following command to ensure
that the WebSphere environment is set up correctly:
- Add the JDBC driver to your current CLASSPATH environment
variable, as illustrated in the following examples:
CLASSPATH=oracle_driver_path/ojdbc6.jar:$CLASSPATH
export CLASSPATH
- Make sure that the correct values are
specified for the following parameters in the file wp_profile_root/ConfigEngine/properties/wkplc.properties:
- WasHome
- WpsInstallLocation
- NodeName
- ServerName
- PortalAdminId
- PortalAdminPwd
- WpsHostPort
- WpsContextRoot
If WebSphere Application Server security
is enabled, you must also specify values for the WasUserid and WasPassword parameters
in wp_profile_root/ConfigEngine/properties/wkplc.properties.
Note: For
security reasons, if you do not want to store the
WebSphere Portal admin
password and
WebSphere Application Server admin
password in the
wkplc.properties file, you can specify
the passwords on the portal server command line. For example, when
this topic directs you to enter the
ConfigEngine script
or batch file, you would add parameters to the command to specify
the password values as shown here:
- Change your working directory to:wp_profile_root/ConfigEngine
- Run the following command.
./ConfigEngine.sh init mcs-deploy-mcs -DMcsRepositoryType=odbc -DMcsDbVendor=oracle -DMcsDbHost=hostname -DMcsDbPort=port -DMcsDbSource=SID -DMcsDbUser=mcs_dbuser -DMcsDbPassword=mcs_user_password -DMcsProject=mobile-portal
ConfigEngine init mcs-deploy-mcs -DMcsRepositoryType=odbc -DMcsDbVendor=oracle -DMcsDbHost=hostname -DMcsDbPort=port -DMcsDbSource=SID -DMcsDbUser=mcs_dbuser -DMcsDbPassword=mcs_user_password -DMcsProject=mobile-portal
Note: The
previous code phrase is one command; enter the entire command on the
same command line.
You must specify
mobile-portal as
the project name. Definitions for the variable parameters follow.
- hostname, the fully qualified host name of
the database server.
- port, the port number used for the MCS database
on the database server. By default, the port is 1521. The port is
defined when Oracle is installed.
- SID, the Oracle SID used for the MCS database
- mcs_dbuser, the MCS database
user name
- mcs_user_password, the MCS database
user password
- Edit the repository batch files.
- Go to wp_root/wp.mobile/wp.mobile/wp.mobile.mcs/repository/bin
- After installation of MCS,
modify the drManager tool with the appropriate database-related information.
- Add the JBDC class path to thedrManager batch
file or shell script.
- Add the JDBC driver class path to the ImportPolicies script
to add JDBC driver class path
For example:
For ImportPolicies.bat,
use:
For ImportPolicies.sh,
use:
JDBC_DRIVER=
For drManager.bat use:
For drManager.sh use:
jdbc-driver-path
Use
the following example in the Solaris or Oracle environment:
java ${JAVA_OPTS} -cp ${CLASS_PATH}:${CLASSPATH} ${DEBUG_ARGS} com.volantis.devices.repository.manager.cli.DeviceRepositoryManager ${DEFAULT_ARGS} ${1+"$@"} --jdbc-driver-path /opt/IBM/oraclejar/ojdbc6.jar --jdbc-project mobile-portal --jdbc-vendor oracle--jdbc-host 9.126.143.110 --jdbc-port 1521 --jdbc-source orcl--jdbc-user mcs--jdbc-password
- Add the JDBC driver class path to the mcsImport script.
For example:
JDBC_DRIVER=/opt/IBM/oraclejar/ojdbc.jar
- To import default device policies,
run the following command:
./ConfigEngine.sh init mcs-import-devices -DMcsProject=mobile-portal
ConfigEngine init mcs-import-devices -DMcsProject=mobile-portal
Note: You must specify mobile-portal as
the project name.
The results of the import operation are
displayed by the task and also written to the wp_profile_root/ConfigEngine/log/ConfigTrace.log file.
Verify that the import was successful before continuing.
What to do next
After you install
MCS on
your
WebSphere Portal server,
proceed to the topic
Installing Mobile Portal Accelerator extensions.