This chapter describes how to install Oracle Database and the Oracle Clinical database server on Windows.
Note:
Installing Oracle Clinical with Oracle Real Application Clusters (RAC) is not supported on Windows.This chapter includes:
If you are upgrading Oracle Clinical, see the Oracle Clinical Upgrade Guide.
Note:
If you install the Oracle Clinical database on Windows and use SAS, you must also install SAS on Windows; see Chapter 5, "Integrate SAS (Optional)".Before you install Oracle Clinical database server, create the following user group and account.
If you use SAS integrated with Oracle Clinical, you must create the oclsascr user group, which controls access to the files Oracle Clinical generates on the database server for SAS. These include SAS data extract files, which contain patient data.
Use Windows Administrative Tools to create a new Global Group in your Domain named oclsascr.
See the Oracle Database 12.1.0.2 Installation Guide for Windows chapter "Configuring Users, Groups and Environments for Oracle Database" at http://docs.oracle.com/database/121/NTDBI/user_grps.htm#CIHCAABC
.
Create the opapps operating system account that owns Oracle Clinical. This account also has the privileges to run the parameterized submission (PSUB) service RXCPSDPS and the PSUB Launcher (PSLAUNCH). The opapps home directory on the database server, for example Drive
:\opapps
, is referred to as OPA_HOME in Oracle Clinical documentation.
Create the opapps operating system account.
Using Windows administrative tools, assign opapps to the following user groups:
ORA_DBA
ORA_ASMDBA
OCLSASCR
Note:
Beginning in Oracle Clinical 5.0, no other accounts need to be added to the oclsascr user group.In the Start menu, navigate to Administrative Tools.
Open Administrative Tools, and then Local Security Policy.
Expand the Local Policies folder and then select Security Options.
Set the following values:
Set Network security: Restrict NTLM: Outgoing NTLM traffic to remote servers to Allow All.
Set Network security: Restrict NTLM: Incoming NTLM traffic to Allow All.
Set Network Security:Allow Local System to use Computer identity for NTLM to Enabled.
Set Network Security:Allow Local System NULL session fallback to Enabled.
Enforce the policy by opening a command prompt and entering: gpupdate/force
This section describes how to install and set up the Oracle Clinical database server.
The Oracle Universal Installer performs the following operations:
Creates the Oracle Clinical directory structure (see Section 4.3.5 for details).
Installs the Oracle Clinical database server.
Sets permissions on directories.
Creates and modifies environment setup files.
Creates an Oracle Wallet to store credentials for OCPSUB and RXC_DISC_REP.
Creates a directory for storing the SAS files.
Have the following information ready to enter in the Installer:
Home Details: The ORACLE_HOME location, which is where you installed Oracle Database 12.1.0.2; for example:
drive:\app\oracle\product\12.1.0.2\dbhome
OPA Home: The directory where Oracle Clinical will be installed. Oracle recommends:
drive:\opapps
SAS View: The directory where Oracle Clinical will generate SAS views. Oracle recommends:
drive:\opapps\sas_view
Oracle Wallet location and password. The Installer uses these to create the database Wallet in the location you specify. The database Wallet stores the password for two accounts:
The OCPSUB proxy account, which is used for database access for parameterized submission (PSUB) jobs. If your installation includes multiple databases using either replication or RAC, each database needs an OCPSUB account and its credentials are created in this Wallet on the database server during Oracle Clinical database installation.
The RXC_DISC_REP account. If you use disconnected replication you must insert credentials for this account manually. See Section 4.6.3, "Set Up Disconnected Replication (Optional)".
Note:
If you have already created a Wallet through a previous installation of Oracle Clinical 5.0 or higher, you can continue using it instead of creating a new one by entering the location and password for the existing Wallet.Log in to the server computer using the opapps account.
In the staging area, locate the directory where you downloaded and extracted Oracle Clinical (see Section 1.6, "Download the Software").
Run the following file as an administrator:
Disk1\install\setup.exe
The Installer opens to the Welcome screen.
Note:
See "Use the Silent Installer (Optional)" for instructions for running the Installer as a file with pre-entered parameter values.Note:
Although there is a button for deinstalling products on the Welcome screen, Oracle does not support using the Installer to deinstall Oracle Clinical or Oracle Clinical Remote Data Capture (RDC) Onsite.In the Select a Product to Install page, select OC Server for Windows 5.2.0.0.x.
Follow the instructions on the installation screens, providing the information you assembled in Section 4.3.1, "Gather Required Information".
At the end of the installation, the installer screen displays the:
Location of the OPA_HOME directory
Location of the OPA_HOME\bin directory
Name of the code environment
Make note of this information because you need it for several post-installation tasks.
Review the generated installation log files located at:
\Oracle\Inventory\logs
For example:
C:\Program Files\Oracle\Inventory\logs
Work with Oracle Support, if necessary, to resolve any errors.
The Installer creates the following directory structure:
OPA_HOME \bin \xmltemp \oc \52 \bin (Executables) \dcd (Data Collection Definition) \des (Design) \dm (Data Management) \dx (Data Extract) \glib (Global Library) \install (Install and upgrade scripts) \log (PSUB log files) \lr (Lab Ranges) \patch (Patches to Oracle Clinical) \pd (Procedure Definition) \psub (Parameterized Submission process) \release (Server code release marker) \tools (Miscellaneous tools)
Note that OPA_HOME refers to the root installation directory of Oracle Clinical, RDC, and TMS, which were formerly known as Oracle Pharmaceutical Applications (OPA). You specify the root installation directory when you install the Oracle Clinical database server. Oracle recommends drive
:\opapps.
This section describes the tasks you perform to complete the installation of Oracle Clinical database server on a Windows computer.
By default, a Windows installation grants read and write privileges to the XMLTEMP database folder to everyone. To reduce security risks, limit permissions on the XMLTEMP folder for all Windows database server installations.
Use Windows Explorer to locate the XMLTEMP folder in the OPA_HOME directory.
Right-click on the XMLTEMP folder, and then select Properties from the menu.
Click the Sharing tab, then click Advanced Sharing.
Select the Share this folder check box to enable sharing with other users on your network.
Click Permissions.
Give Read and Write (Change) permissions to user oracle
.
Click OK to save your changes and close the Permissions dialog box.
Click OK to save your changes and close the Advanced Sharing dialog box.
Click Close to close the Properties dialog box.
On Windows systems, configurations are defined in the opa_settings.bat file. This file contains the commands to set environment variables at startup and execution of the PSUB service.
Review the opa_settings.bat file in the following directory:
Drive:opapps\bin
Adjust the default values, if necessary.
See the Oracle Clinical Administrator's Guide for a list of the settings and for information about changing, adding, and verifying values.
Note:
The db_env_setting
records in opa_settings.bat define a default value for particular environment variables that are set when the application calls opa_setup. You can override the default values for all databases or for a particular database.
See Section 1.8, "Choose a Character Set" for important information.
NLS_DATE_FORMAT must be set to DD-MON-RRRR. It is possible to override this setting for display in RDC Onsite, the Patient Data Report, and Oracle Clinical data entry, but the value in opa_settings must be DD-MON-RRRR.
Follow the instructions in this section to add Oracle Clinical database objects to this database.
Before you install database objects, you may want to modify some of the default SQL scripts used by the Installer.
Edit the Tablespace Size Scripts: The Installer creates several new tablespaces with default sizes. To create larger databases, you can edit two scripts. The default value is an autoextend of 1MB and an unlimited maximum size.
To create larger databases in Windows, edit the following scripts:
OPA_HOME
\oc\52\install\opadba2.sql
OPA_HOME
\oc\52\install\rxcdba2.sql
Edit the User Account Creation Script: The Installer prompts to create accounts in this database. If you select Yes, the Installer runs a script that creates default guest accounts.
Before running the Installer, edit the rxcdba4.sql script to customize the accounts that get created and their default settings:
OPA_HOME
/oc/52/install/rxcdba4.sql
See the Oracle Clinical Administrator's Guide for more information about enrolling users.
Create a Secret Store Directory
Create a directory that is accessible to the opapps user and different from the Oracle Wallet location.
Example location: /pharm/home/opapps/sec_store/db_name
The Installer fails if this directory is not created before running the Installer.
Log in to the server computer.
Set environment variables:
set p1=database_name
set p2=52
opa_setup
Connect to SQL*Plus as the SYS user:
sqlplus sys/password
Run the following command to check for the ORA-29548 error:
select dbms_java.get_jdk_version() from dual;
If no error appears and the command retrieves the JDK version, skip to Section 4.5.3, "Gather Required Information".
If you see the following error, continue with the next step to fix it:
ERROR at line 1: ORA-29548: Java system class reported: release of classes.bin in the database does not match that of the oracle executable
To correct the ORA-29548 error, run the following script:
start update_javavm_db.sql
Have the following information ready to enter in the Installer.
Note:
You must install the Oracle Clinical database server before you install or upgrade the Oracle Clinical database.The ORACLE_HOME location, which is where you installed Oracle Database 12.1.0.2; for example:
Drive:\app\oracle\product\12102
OPA Home: the directory where Oracle Clinical will be installed; Oracle recommends:
/pharm/home/opapps
SAS View: the directory where Oracle Clinical will generate SAS views; Oracle recommends:
UNIX: $OPA_HOME/sas_view
Windows: %OPA_HOME%\sas_view
Note:
The upgrade installer does not prompt for this value.Service name for the database to be installed
Know if you plan to use either Automatic Storage Management (ASM) or Real Application Clusters (RAC). This affects the Installer behavior for validating tablespaces.
Location for tablespace datafiles. You can change the default sizes by editing the script before running the Installer; see Section 4.5.1, "Customize the Installation".
Location and password for the Wallet created during Oracle Clinical database server installation to store credentials for OCPSUB and RXC_DISC_REP.
You will need to enter passwords for the following:
SYS
SYSTEM
RXC_MAA
RXC_PD
RXC_REP
RXC_DISC_REP
OPA
RXC
TMS
RXA_DES
RXA_LR
OCPSUB
RXA_WS
RDC_MIDTIER_PROXY
Note:
When you upgrade a database, the Installer does not prompt for the following passwords. For new installations, it does prompt for the following passwords.RXA_READ
RXA_RAND
RXA_ACCESS
OPS$OPAPPS
Note:
For information on changing the passwords for these accounts on a regular basis to avoid expiration, see the Oracle Clinical Administrator's Guide.A database seed number between 1 and 99. Each database in an Oracle Clinical installation (or group of databases that are replicating with each other) must have a unique seed starting number.
Database host name and port number
Global library code. There can be only one Global Library location. If you have only one database, this value should be the same as the database host name. If you are using Oracle Clinical replication and have multiple databases, enter the host name for the database designated as the Global Library location.
Location of the secret store folder you created in Create a Secret Store Directory.
Note:
See "Use the Silent Installer (Optional)" for instructions for running the Installer as a file with pre-entered parameter values.Note:
Although there is a button for deinstalling products on the Welcome screen, Oracle does not support using the Installer to deinstall Oracle Clinical or Oracle Clinical Remote Data Capture (RDC) Onsite.Log in to the server computer using the opapps account.
In the staging area, locate the directory where you downloaded and extracted Oracle Clinical (see Section 1.6, "Download the Software").
Run the following file as an administrator:
Disk1\install\setup.exe
The Installer opens to the Welcome screen.
Note:
See "Use the Silent Installer (Optional)" for instructions for running the Installer as a file with pre-entered parameter values.Note:
Although there is a button for deinstalling products on the Welcome screen, Oracle does not support using the Installer to deinstall Oracle Clinical or Oracle Clinical Remote Data Capture (RDC) Onsite.In the Select a Product to Install page, select OC Database Install 5.2.0.0.x.
Follow the instructions on the installation screens, providing the information you assembled in Section 4.5.3, "Gather Required Information".
During the installation of an Oracle Health Sciences component, the Oracle Universal Installer generates a log file named installActions.log
. Earlier files have a timestamp appended to the name.
Review the generated installation log files located at:
\Oracle\Inventory\logs
For example:
C:\Program Files\Oracle\Inventory\logs
This section describes the following tasks for completing the installation of your Oracle Clinical database:
The Oracle Clinical Remote Data Capture Onsite (RDC Onsite) application uses the dbtimezone value for internal calculations when the Display timestamps in local timezone preference is set.
Oracle recommends setting time zone to a named location rather than a numeric offset so that standard and daylight time adjustments are made automatically.
You can find valid named location strings in the V$TIMEZONE_NAMES view. For example, to find a time zone in the United States, enter the following query:
SELECT distinct tzname FROM V$TIMEZONE_NAMES WHERE tzname like 'US/%'
To set the time zone in the database:
Connect to the database as any user that has ALTER DATABASE privileges.
Enter the following command:
alter database set time_zone='
tzname_value
';
For example:
alter database set time_zone='US/Eastern';
To improve performance, some of Oracle Clinical's packages are pin-able packages. Pinning allocates a stable memory location so that a package cannot be subjected to being swapped out of memory. Oracle Clinical provides the rxcdbinit.sql script to pin the database packages.
To pin the database packages located on a Windows server:
Log in to the Windows server computer as an administrator.
Set the Windows environment:
set p1=
database
set p2=52
opa_setup
where database
is the name of this database instance, and 52
is the alias for the version of Oracle Clinical.
Change to the drive where Oracle Clincal is installed. For example:
cd %RXC_INSTALL%
Start an SQL*Plus session, and connect to the database in the RXC account:
sqlplus rxc/
password
Run the rxcdbinit.sql script to pin the database packages:
start rxcdbinit.sql
If you are continuing the installation, note that you perform the next task in this environment.
Do the following only if you plan to use disconnected replication.
Installing Oracle Clinical creates the RXC_DISC_REP user account to manage disconnected replication. DISC_REP_DATA is the default tablespace for RXC_DISC_REP.
If you use disconnected replication:
Increase the size of the DISC_REP_DATA tablespace to fit the amount of replicated data.
For more information about disconnected replication, see the Oracle Clinical Administrator's Guide.
The system stores these credentials in the same Wallet as the one created for OCPSUB.
Log in as opapps.
Set environment variables.
set p1=database_connect_string
set p2=52
opa_setup
Create an alias for the disconnected replication wallet alias in tnsnames.ora. The disconnected replication wallet alias is the name of the database appended with:
_disc
.
For example, if the database name is ny123x
, the tnsnames entry would look something like:
ny123x, ny123x_disc, ny123x.world, ny123x.domain.com = (DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=example.us.company.com)(PORT=1124))
(CONNECT_DATA=(service=ny123x))
See Section 2.4.2, "Modify the tnsnames.ora File on the Database Server".
For the disconnected replication wallet alias, enter tnsping
wallet_alias
to test that it returns success. For example:
tnsping ny123x_disc
Create the credentials for the disconnected replication wallet alias and account.
mkstore -wrl %walletpath% -createCredential wallet_alias rxc_disc_rep rxc_disc_rep_password
Partition the Oracle Clinical RESPONSES table, which contains all patient data entered for all studies in an Oracle Clinical installation.
See the Oracle Clinical Administrator's Guide for more information.
The Parameterized Submission process (PSUB) schedules and runs jobs, reports, and batch processing for Oracle Clinical. In order to support using Oracle Real Application Clusters (RAC), the implementation of PSUB changed in Oracle Clinical 5.0. See the 5.0.1 Installation Guide for more information.
You must start one PSUB service for each Oracle Clinical database on the same server as the database.
Create several directories on the PSUB server.
Enter paths of the new directories in the OCL_STATE local reference codelist, with a few related values.
See the "Setting Up Batch Job File Viewing" section of the "Setting Up File and Image Viewing" chapter of the Oracle Clinical Administrator's Guide for more information.
Note:
See Chapter 5, "Integrate SAS (Optional)" for information about new OCL_STATE settings related to SAS configuration.Beginning in Release 5.0, PSUB users no longer need:
their own OS account
a user name beginning with OPS$
their own directory for PSUB outputs
To add new users:
Use the ocl_add_user.sql script, indicating which new users need to run PSUB jobs.
See the Oracle Clinical Administrator's Guide for more information.
If you are upgrading from a pre-5.0 version of Oracle Clinical, to give users who need to run PSUB jobs access to the opapps account:
Use the migration script oclupg50migrateusers.sql.
See the Oracle Clinical Administrator's Guide for more information.
You can give a user the role RXC_VWJOBS (new in 5.0) to allow him or her to:
View all users' jobs
View the output from those jobs.
Stop any job.
The following scripts can grant this role to a user:
ocl_add_user—Use this script for new users.
ocl_grant_revoke_rxc_vwjobs.sql—Use this script for existing users. (This script can also be used to revoke the role.)
See the Oracle Clinical Administrator's Guide for more information.
If you are running PSUB on a Windows server that is a primary domain controller running Active Directory:
Add the PSUB account (typically opapps) to the domain.
Reassign the following domain user privileges to the PSUB account, through the domain controller security policy and the domain security policy:
Load and unload device drivers
Act as part of operating system
Increase Quotas
Log on as a Service
Replace a process-level token
The Installer automatically installs the PSUB service on the database server. You must start it using on set of instructions below.
Instructions for stopping PSUB manually are included in the Oracle Clinical Administrator's Guide.
To start the PSUB service manually on Windows:
Log in as opapps. (You set up the PSUB service to start as the opapps user, but in Windows you can start the service when logged on as another user.)
Set the PSUB service parameters:
In the Start menu, navigate to Administrative Tools, then Services.
From the list of services in the Services dialog box, double-click the name of the database for this service. It is in this form:
PSUB Service database
Enter values for the Log On parameters:
database code_environment
[verbose | noverbose]
value-of-RXC_ROOT
wallet_alias
For example: prod 52 verbose c:\\opapps\\oc\\52 <
wallet_alias
>
where prod is the connect string for the database instance to which the PSUB service connects;
where 52 is the name of the code environment;
where wallet_alias is the name of the Wallet specified during installation.
Note:
If your entry requires a backslash (\), you must enter two (\\). Alternatively, you can enter the path using single forward slashes, for example, c:/OPA_HOME/oc/52.Click Start.
Exit from the Services dialog box.
Check the PSUB service log file in <RXC_ROOT>\log for any warning or error messages.
Customize the PSUB service as follows:
Automatic Startup — By default, the PSUB service does not start automatically when you restart a server computer. However, you can configure the PSUB service to start automatically.
Job Numbering — You can change Oracle Clinical's default job numbering algorithm.
For more information about managing and customizing the PSUB service, see the Oracle Clinical Administrator's Guide.
To test your PSUB installation:
Open Oracle Clinical.
Submit a 3GL job such as Batch Validation or a PL/SQL job such as Study Unfreeze.
Verify that Oracle Clinical creates the log and output files by clicking on the View log and View output buttons.
If you encounter problems or errors, review the messages in the PSUB log files created in the following directory:
%RXC_ROOT%\log