Skip Headers
Oracle® Health Sciences Network Installation Guide
Release 2.0.0.0

E65879-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

3 Installing PVPR

This chapter contains the following sections:

3.1 Installing PVPR Database

This section describes how to create schema for PVPR.

This section contains the following topics:

3.1.1 Prerequisites

  • The CDM installation for PVPR is completed.

  • The ODB (if required) installation for PVPR is completed.

  • Registry is configured with a new company and required services are provisioned to it.

The CDM installation scripts are part of installable bundle and are to be used for CDM installation. For a summary of steps involved in installing CDM, see Section 3.1.1.1.

If Omics Lite features are supported or used by a company, then Omics Data Bank (ODB) installation is also completed. For sponsor environment, ODB is to be installed if it has to query or perform recruitment on any partner on an Omics criterion. For provider environment, ODB is to be installed if the company supports Omics.

The ODB installation scripts are part of the installable bundle and are to be used for ODB installation. For a summary of steps involved in installing ODB, see Section 3.1.1.2.

3.1.1.1 Installing CDM

To install CDM, perform the following:

  1. Create CDM data tablespace.

  2. Create CDM Index tablespace.

  3. Create CDM user.

  4. Provide maximum quota for the CDM user on the data tablespace.

  5. Create the following Datamart roles:

    • CohortDatamartUser;

    • CohortDatamartAdmin;

  6. Provide grants to the CDM user by executing the grant_schema_priv.sql file in the cdm-odb folder.

  7. Execute the CDM installation script by running the install_cdm.sql script, giving the runtime parameters as specified in the TRC installation guidelines.

For more information on how to install CDM, see Oracle Health Sciences Translational Research Center Installation Guide (release 3.0.1).

3.1.1.2 Installing ODB

To install ODB, perform the following:

  1. Create ODB data tablespace.

  2. Create ODB Index tablespace.

  3. Create ODB LOB tablespace.

  4. Create ODB user.

  5. Provide maximum quota for the ODB user on the Data tablespace.

  6. Provide grants to the ODB user by executing the grant_schema_priv.sql file in the cdm-odb folder.

  7. Execute the ODB installation script by running the install_ODB.sh script in the odb_install folder, giving the runtime parameters as specified in the ODB installation guidelines.

For more information on how to install ODB, see Oracle Health Sciences Omics Data Bank Installation Guide (release 3.0.1).

3.1.2 Creating PVPR Tablespace

To create tablespace for the PVRR database, perform the following:

  1. Log in to the database as a user with privilege to create tablespace.

  2. Execute the pvpr_create_tablespace.sql script.

  3. Edit the pvpr_create_tablespace.sql script.

  4. Enter the following details:

    • Appropriate path for the datafile (line starting with datafile)

    • Size and autoextend size (line starting with SIZE)

  5. Log in to the database as system user and execute the script. When prompted, enter the name of the tablespace you want to create.

3.1.3 Creating PVPR Database User

To create PVPR database user, perform the following:

  1. Log in to the database as a user with privilege to create user.

  2. In the SQLPlus prompt, execute the @pvpr_create_user.sql script.

  3. Enter the corresponding values as prompted.

    Note:

    Ensure that you specify the tablespace name created in Section 3.1.2 when prompted.

3.1.4 Granting Privileges and Creating Synonyms

PVPR need to access the tables and views of CDM and ODB, and so you must grant privileges and create synonyms.

To grant privileges and create synonyms, perform the following:

CDM Installation

If only CDM is installed, then:

  1. Go to the PVPR/SQL folder and run the following scripts:

    • grant_cdm_select.sql

    • create_synonyms.sql

  2. Enter the values when prompted.

CDM-ODB Installation

If both CDM and are installed, then:

  1. Go to the CDM-ODB-Install folder and edit the install_final.sql script.

  2. Run the install_final.sql script.

  3. Enter the values when prompted.

3.1.5 Configuring Dimension Data Export and Import

The dimension data from the Provider side should be exported and then imported on to the Sponsor side. From the Provider side, the dimension data is exported as files to the Sponser side. The data from these files is loaded to the dimension tables at Sponser side.

To configure dimension data export and import, perform the following:

  1. In the SQLPlus prompt, log in as sys user and execute the following:

    • CREATE OR REPLACE DIRECTORY PVPR_EXT_TAB_DIR AS '&&pvpr_external_dir';

    • GRANT read, write on directory PVPR_EXT_TAB_DIR to &&pvpr_user;

    • GRANT read, write on directory PVPR_EXT_TAB_DIR to &&cdm_user;

      Notes:

      • Replace &&pvpr_external_dir with the actual directory path in the database machine where you want to save the files.

      • Replace &&pvpr_user with the schema name of the PVPR user.

      • Replace &&cdm_user with the schema name of the CDM user.

  2. If the installation is done for a Sponsor, then from the SQLPlus promt, execute the @PV_install_dim_ddl.sql script in the PVPR/SQL folder and enter the values as prompted.

3.1.6 Installing PVPR Database Objects

This section describes how to create database objects such as tables and procedures for PVPR, and to initialize the database with seed data.

  1. In the SQL prompt, execute @install_pvpr_env.sql by providing the values as prompted.

  2. Connect to the database as PVPR user.

  3. In the SQL prompt, execute @config_pvpr_env.sql. This script prompts for the following inputs:

    • SOA Server URL: URL of the server where SOA services are deployed.

    • SOA Server PORT: Port of the SOA server.

    • HSn-ManApp Server URL: URL of the server where Hsn-ManApp is deployed.

    • HSn-ManApp Server PORT: Port of the Hsn-ManApp server.

    • PVPR Server URL: URL of the server where PVPR is deployed.

    • PVPR Server PORT: Port of the PVPR server.

    • My Company Id: You need to configure the company ID during registry configuration of Hsn-ManApp.

    • My Company Name: You need to configure the company name during registry configuration of Hsn-ManApp.

    • Is Omics Supported (Y/N): Enter Y if Omics features are supported or used. Otherwise, enter N.

This configures the company ID, company name, and service URLs of the platform services in the PVPR application.

Seed Data

The initial seed data required for PVPR is populated as part of the preceeding PVPR database installation. This includes the default roles and privileges, among other basic data.

The default dimension codes for Gender and Marital Status codes are also included as a part of the preceeding installation.

Running Post-Installation Scripts

During schema creation, access rights are granted to the schema user, which are required only for database configuration. Post database schema creation, the access rights need to be revoked. The access rights are revoked using post-installation scripts.

  1. Connect to the database as a user with sysdba privilege.

  2. Run the @pvpr_post_install.sql script.

3.1.7 Loading Data to ODB and CDM

After the database is installed, the data is loaded to ODB and CDM.

3.1.7.1 Loading Data to ODB

At the Sponsor side, only the ODB reference data is required. Since this release supports only the searches by gene and mutation, only the EMBL and GVF reference loaders are required. However, the Providers require both reference loaders and result loaders. For more information on how to load data to ODB, see Oracle Health Sciences Omics Data Bank Programmer's Guide (release 3.0.1).

3.1.7.2 Loading Data to CDM

At the Sponsor side, only the CDM reference data is required. However, the reference (dimension) data has to be loaded from each Provider.

At the Provider side, perform the following steps to export data:

  1. In the SQLPlus prompt, execute the @PR_run_exp_data_dim.sql script in the PVPR/SQL/ref-data folder.

  2. Enter the values as prompted.

The required dimension data is exported into files present in the configured external directory. For more details, see Section 3.1.5.

At the Sponsor side, perform the following steps to load the data from the data files into the actual Sponsor dimension tables.

  1. In the SQLPlus prompt, execute the @PV_merge_dim.sql script in the PVPR/SQL/ref-data folder.

  2. Enter the values as prompted.

3.2 Installing the PVPR Middle-Tier

This section explains how to install the PVPR Middle-Tier.

3.2.1 Creating Data Source in the Oracle WebLogic Server

To create data source in the Oracle WebLogic server, perform the following:

  1. Log in to the Oracle WebLogic server console.

  2. Create a new data source by providing the following details:

    • Data Source Name: Specify a name that represents the underlying database schema and environment. For example, JDBC-DS-Provider1

    • JNDI Name: jdbc/PVPR.

  3. Specify the PVPR database user and password on the Connection Pool details screen.

  4. Specify database connection details for the PVPR database.

  5. Apply the data source to the server in the Targets section.

3.2.2 Setting Transaction Timeout for the WebLogic Application Server

To set transaction timeout for the WebLogic application server, perform the following:

  1. Go to Services > JTA in the WebLogic console.

  2. Update timeout seconds to 600 and save.

3.2.3 Enabling JPA 2.0 and Jackson

To enable JPA 2.0 and Jackson, perform the following:

  1. Edit the <MIDDLEWARE_HOME>/wlserver_10.3/common/bin/commEnv.sh file to add the PRE_CLASSPATH variable at the end of the file.

  2. Verify JAR version number in the <MIDDLEWARE_HOME>/modules folder and update the following statement accordingly:

    PRE_CLASSPATH=${MODULES_DIR}/javax.persistence_1.1.0.0_2-

    0.jar:${MODULES_DIR}/com.oracle.jpa2support_1.0.0.0_2-

    1.jar:${MODULES_DIR}/org.codehaus.jackson.mapper.asl_1.0.0.0_1-8-

    3.jar:${MODULES_DIR}/org.codehaus.jackson.core.asl_1.0.0.0_1-8-3.jar

    export PRE_CLASSPATH

3.2.4 Referring Shared Jersey Library

To refer shared jersey libraries from PVPR, perform the following:

  1. From the Administration Console, click Summary of Deployment.

  2. Click Install.

    The Install Application Assistant screen is displayed.

  3. Navigate to the required path and select the required JAR file as shown in the figures 3-1, 3-2, and 3-3:

    Figure 3-1 Install Application Assistant

    Description of Figure 3-1 follows
    Description of "Figure 3-1 Install Application Assistant"

    Figure 3-2 Install Application Assistant - Choose Targeting Style

    Description of Figure 3-2 follows
    Description of "Figure 3-2 Install Application Assistant - Choose Targeting Style"

    Figure 3-3 Install Application Assistant - Optional Settings

    Description of Figure 3-3 follows
    Description of "Figure 3-3 Install Application Assistant - Optional Settings"

3.2.5 Deploying EAR

To deploy EAR, perform the following:

  1. Extract the PVPR EAR file from the media pack.

  2. Deploy the EAR file to the server, where PVPR need to be installed.

3.3 Configuring Logging

To configure logging, perform the following:

  1. Log in to the Enterprise Manager.

  2. In the pane on the left side of the window, click pvpr domain in the WebLogic Domain folder and select the target pvpr server.

  3. From the WebLogic Server drop-down list, select Logs and then select Log Configuration.

    Figure 3-4 Log Configuration

    Description of Figure 3-4 follows
    Description of "Figure 3-4 Log Configuration"

  4. Expand Root Logger.

  5. For Oracle, change the log level and select Inherited from Parent.

  6. Select Persist log level state across component restarts and click Apply Changes.

3.4 Configuring Oracle Web Services Manager

This section contains the following topics:

3.4.1 Generating Keystore and Configuring Trusted Certificate

Note:

: You need to perfrom the following steps only once. Share the generated and updated keystore file for all the PVPR instances.

To execute the following commands, you need to set the JAVA_HOME environment variable to point to JDK (version 1.6 and later) referred in the PVPR domain.

  • export JAVA_HOME=<Path to JDK referred with pvpr domain>

  • export PATH=$JAVA_HOME/bin:$PATH

  1. Generate the private key to be used in the PVPR servers using the keytool utility available in JDK.

  2. In the following command, replace <KEY_LOCATION> as required:

    keytool -genkey -alias hsn-pvpr-key -keyalg "RSA" -sigalg "SHA1withRSA" -dname "cn=HSN-PVPR,ou=HSGBU,o=ORACLE,c=US" -keystore <KEY_LOCATION>/pvprkey.jks -validity 3650

    1. Enter the keystore password and the key password when prompted.

  3. Export the certificate of pvprkey using the following command:

    Note:

    Replace <PVPR_KEY_LOCATION>, <PVPR_CERTIFICATE_LOCATION>, <HSNP_KEY_LOCATION>, and <HSNP_CERTIFICATE_LOCATION as required in the following steps.

    keytool -export -alias hsn-pvpr-key -keystore <PVPR_KEY_LOCATION >/pvprkey.jks -file <PVPR_CERTIFICATE_LOCATION>/hsn-pvpr.cer

    1. Enter the keystore password when prompted.

  4. Copy hsnpkey.jks from the HSNP ManApp server.

    For more information on <HSNP_KEY_LOCATION>/hsnpkey.jks, see Section 2.2.6.

  5. Export the certificate of hsnp-key using the following command:

    keytool -exportcert -alias hsnp-key -keystore <HSNP_KEY_LOCATION>/hsnpkey.jks -file <HSNP_CERTIFICATE_LOCATION>/hsnp.cer

    1. Enter the keystore password when prompted.

  6. Use the following commands to import the keys in other keystore files for the trust:

    • Command to import hsnp-key certificate to pvprkey:

      keytool -import -alias hsnp-key -file <HSNP_CERTIFICATE_LOCATION>/hsnp.cer -keystore <PVPR_KEY_LOCATION>/pvprkey.jks

    • Commands to import hsn-pvpr-key and orakey certificates to hsnpkey:

      Note:

      Enter the keystore password when prompted.

      keytool -import -alias hsn-pvpr-key -file <PVPR_CERTIFICATE_LOCATION>/hsn-pvpr.cer -keystore <HSNP_KEY_LOCATION>/hsnpkey.jks

      keytool -import -alias orakey -file <PVPR_CERTIFICATE_LOCATION>/hsn-pvpr.cer -keystore <HSNP_KEY_LOCATION>/hsnpkey.jks

3.4.2 Configuring Keystore on HSnP and SOA Server

Note:

You need to perform the following steps only once.
  1. Copy the updated keystore hsnpkey.jks to the <HSNP_DOMAIN_HOME>/config/fmwconfig folder. You must perform this step on the HSnP SOA server also.

  2. Restart the WebLogic server instances for HSnP and the SOA domain.

3.4.3 Keystore Configuration on PVPR Server

To configure keystore on the PVPR server, perform the following:

  1. Copy the generated keystore pvprkey.jks to the <PVPR_DOMAIN_HOME>/config/fmwconfig folder.

  2. Open the <PVPR_DOMAIN_HOME>/config/fmwconfig/jps-config.xml file.

  3. Search for default-keystore.jks in the file.

    It should be similar to the following:

    <serviceinstance name="keystore" provider="keystore.provider" location="./default-keystore.jks">

  4. Replace ./default-keystore.jks with ./pvprkey.jks and save the file.

  5. Restart the WebLogic server instances for the PVPR domain.

  6. Copy the PVPR_OWSM_Config.py file from the media pack to a location to which the operating system user has read and execute permissions.

  7. Execute the following commands on the command prompt:

    • cd <MIDDLEWARE_HOME>/oracle_common/common/bin

    • ./wlst.sh <ABSOLUTE FILE_PATH to PVPR_OWSM_Config.py>

      1. Enter corresponding values as prompted by the script.

    The PVPR_OWSM_Config.py file adds credentials for the pvprkey.jks file.

  8. Login to the Enterprise Manager of the PVPR domain.

  9. In the left pane, click pvpr domain in the WebLogic domain folder.

  10. From the WebLogic Domain drop-down list, select Web Services and then select Platform Policy Configuration.

    Figure 3-7 WebLogic Domain Drop-down List

    Description of Figure 3-7 follows
    Description of "Figure 3-7 WebLogic Domain Drop-down List"

  11. Click the Trusted SAML clients tab in the Platform Policy Configuration page.

  12. Select www.oracle.com issuer in the Trusted Issuers pane.

    Figure 3-8 Platform Policy Configuration

    Description of Figure 3-8 follows
    Description of "Figure 3-8 Platform Policy Configuration"

  13. Click Add in the Trusted SAML clients: www.oracle.com pane.

    The Add New Distinguished Name (DN) window is displayed.

    Figure 3-9 Add New Distinguished Name (DN) Window

    Description of Figure 3-9 follows
    Description of "Figure 3-9 Add New Distinguished Name (DN) Window"

  14. Add text cn=HSNP, ou=HSGBU, o=ORACLE, c=US and click OK.

  15. Click Apply.

  16. Log out of the Enterprise Manager.

  17. Create the WebLogic user hsn_system, to be used for the PVPR domain.

  18. Restart the WebLogic server instances for the PVPR domain.