10.15.1 Overview of the Upgrade Process on Windows Systems
- Ensure your system complies with software dependencies and system requirements.
- Back up OpenClinica.
- Upgrade OpenClinica.
- Configure OpenClinica:
- Ensure that OpenClinica is configured for optimum performance as described here: Configure OpenClinica for Optimum Performance.
- You may also need to configure OpenClinica for internationalization should you wish to utilize OpenClinica in different languages. Also, if you need to use some UTF-8 characters in your application, you may need to modify your default connecter configuration. For more information regarding configuring OpenClinica for internationalization and using UTF-8 characters, please refer to https://docs.openclinica.com/3.1/technical-documents/openclinica-and-internationalization
- Verify the upgrade.
- Make manual updates to the database. The instructions are the same as for upgrading OpenClinica on Linux systems, except the README file on Windows systems is located at:
c:ocinstallOpenClinica-v.x.yconfigdatabasesPostgreSQL
10.15.2 Software Dependencies and System Requirements
To upgrade to OpenClinica 3.1.x, you need the following:
- Operating system must be either of these:
- Windows XP
- Windows Server 2003
- Browsers supported in this release:
- Internet Explorer 11
- Mozilla Firefox 30
- Internet Explorer 11
- Software versions must be:
- Java JDK 1.7.065
- PostgreSQL 8.4.1
- Tomcat 7.0.33.0 application server
Note: In most cases, minor maintenance releases of the above products will also work (but not major releases)
- Java JDK 1.7.065
10.15.3 Back Up OpenClinica
Before upgrading, follow this process to back up the database and files needed by OpenClinica:
- Stop Tomcat. (See instructions, which are included in Start Tomcat.)
- Back up the database (instructions here).
- Back up the file
CATALINA_HOMEwebappsOpenClinicaWEB-INFclassesdatainfo.properties - Back up the folder
CATALINA_HOMEwebappsOpenClinica - Back up the CRFs and datasets, which are located in
CATALINA_HOMEwebappsopenclinica.data
10.15.4 Manual Database Updates
Now, you’ll need to make database updates for your database: either PostgreSQL or Oracle. The instructions apply to upgrading OpenClinica on Linux and Windows systems:
PostgreSQL
- Open the file README_Instructions_for_Duplicate_Row_Fix.txt, located at
c:ocinstallOpenClinica-v.x.xconfigdatabasesPostgreSQL - Follow the instructions in the README file.
Oracle
- At the location c:ocinstallOpenClinica-v.x.xconfigdatabasesOracleupgrade, open the file README_Instructions_for_Duplicate_Row_Fix.txt, and follow the instructions in the README file.
- As the sysdba user, run the Grant_View.sql script located in c:ocinstallOpenClinica-v.x.xconfigdatabasesOracleupgrade
- The script prompts you for a user name: provide the user name for the database user OpenClinica is set up to use, as specified in the datainfo.properties file that you configured during installation. Run this script before starting Tomcat. There is no risk in running this script on a database that has already been upgraded to 3.1.x.
10.15.5 Verify the Upgrade
- Test the database connection and basic authentication:
- Verify that Tomcat is running. If the URL loads Tomcat is running.
- Point your web browser to the OpenClinica login page:
http://<<server url>>:8080/OpenClinica
The OpenClinica Log In page should display. - Log in to OpenClinica.
- Verify that Tomcat is running. If the URL loads Tomcat is running.
- Verify the version number is v.x.x-Community, where v.x.x is the version number you upgraded OpenClinica to. The version number is displayed in the lower right corner of the page.
10.15.6 Upgrade OpenClinica
- Undeploy OpenClinica:
- Delete the directory
CATALINA_HOMEwebappsOpenClinica - Delete the file
CATALINA_HOMEwebappsOpenClinica.war if exists - Delete the directory
workCatalinalocalhostOpenClinica
- Delete the directory
- Create the following directory, if it does not already exist:
c:ocinstall - Download the OpenClinica software, OpenClinica-v.x.x.zip, from the OpenClinica website: https://community.openclinica.com/project/openclinica. To download the software, use your free community account; you will be required to log in to the account to download the OpenClinica software. If you do not have an account, you may get one here.
After downloading the OpenClinica software, extract the files to:
c:ocinstall. - Copy the file
c:ocinstallOpenClinica-v.x.xdistributionOpenClinica.war
to
c:octomcatwebapps - Start Tomcat. (See instructions at Start Tomcat.)
- In about five minutes, Tomcat will be fully started. Verify it is fully started by opening the file
c:octomcatlogscatalina.out
and looking for this line:
INFO: Server Startup in XXXXX ms - Stop Tomcat. (See instructions, which are included at Start Tomcat.)
- Wait about two minutes for Tomcat to stop, then delete the file
c:octomcatwebappsOpenClinca.war - Using WordPad, make any changes to the configuration file
- Open the file
CATALINA_HOMEwebappsOpenClinicaWEB-INFclassesdatainfo.properties - Make changes to any values for the properties: see more information at Description of datainfo.properties File.
- When you finish making changes, save the file.
- Open the file
- Move the backed up CRF and dataset files from the openclinica.data directory to the new openclinica.data directory.
- Start Tomcat. (See instructions at Start Tomcat.)
10.15.7 Back Up OpenClinica Web Services
Before upgrading, follow this process to back up the database and files needed by OpenClinica:
- Stop Tomcat. (See instructions, which are included in Start Tomcat.)
- Back up the database (instructions here).
- Back up the file
CATALINA_HOMEwebappsOpenClinica-wsWEB-INFclassesdatainfo.properties - Back up the folder
CATALINA_HOMEwebappsOpenClinica-ws
10.15.8 Verify the Upgrade for OpenClinica Web Services
- Point your web browser to the OpenClinica Web Services welcome page: http://<<server url>>:8080/OpenClinica-ws. The OpenClinica Web Services Welcome page should be display.
- Verify the version number is v.x.x-Community, where v.x.x is the version number you upgraded OpenClinica Web Services to. The version number is displayed in the lower right corner of the page.
Web Services should have the same version as OpenClinica application.
10.15.9 Upgrade OpenClinica Web Services
Run upgrade for OpenClinica Web Services only if you are currently using Web Services
- Undeploy OpenClinica Web Services:
- Delete the directory
CATALINA_HOMEwebappsOpenClinica-ws - Delete the file
CATALINA_HOMEwebappsOpenClinica-ws.war if exists - Delete the directory
workCatalinalocalhostOpenClinica-ws
- Delete the directory
- Create the following directory, if it does not already exist:
c:ocinstall - Download the OpenClinica software, OpenClinica-ws-v.x.x.zip, from the OpenClinica website: https://community.openclinica.com/project/openclinica. To download the software, use your free community account; you will be required to log in to the account to download the OpenClinica software. If you do not have an account, you may get one here.
After downloading the OpenClinica software, extract the files to:
c:ocinstall. - Copy the file
c:ocinstallOpenClinica-ws-v.x.xdistributionOpenClinica-ws.war
to
c:octomcatwebapps - Start Tomcat. (See instructions at Start Tomcat.)
- In about five minutes, Tomcat will be fully started. Verify it is fully started by opening the file
c:octomcatlogscatalina.out
and looking for this line:
INFO: Server Startup in XXXXX ms - Stop Tomcat. (See instructions, which are included at Start Tomcat.)
- Wait about two minutes for Tomcat to stop, then delete the file
c:octomcatwebappsOpenClinca-ws.war - Using WordPad, make any changes to the configuration file
- Open the file
CATALINA_HOMEwebappsOpenClinica-wsWEB-INFclassesdatainfo.properties - Make changes to any values for the properties: see more information at Description of datainfo.properties File.
- When you finish making changes, save the file.
- Open the file
- Start Tomcat. (See instructions at Start Tomcat.)