-
Notifications
You must be signed in to change notification settings - Fork 244
Upgrade
Content
SQL scripts for updating the database schema from previous versions have to be downloaded from the dcm4chee-arc-light Source Repository at GitHub. A change in the DB schema is reflected by an incremented second component of the version number (e.g. from 5.7.0 to 5.8.0). So you do not need to update the database schema for upgrading from a version which only differs in the third component of the version number (e.g. from 5.7.0 to 5.7.2). For upgrading from an older version which second component of the version number in not the previous number, you have first to update the data base schema to the previous version - by applying update scripts for previous versions in the right order - before applying the update script for the current version.
You have to start Wildfly before updating the tables using the H2 console. Access the console at http://localhost:8080/h2console, login and update the database scheme by:
RUNSCRIPT FROM '$DCM4CHEE_ARC/sql/update-5.8-h2.sql'
> psql -h localhost <database-name> <user-name> < $DCM4CHEE_ARC/sql/update-5.8-psql.sql
> mysql -u <user-name> -p<user-password> <database-name> < $DCM4CHEE_ARC/sql/update-5.8-mysql.sql
> isql-fb
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect 'localhost:<database-name>'
CON> user '<user-name>' password '<user-password>';
SQL> in DCM4CHEE_ARC/sql/update-5.8-firebird.sql;
SQL> exit;
> su <user-name>
Password: <user-password>
> db2 connect to <database-name>
> db2 -t < $DCM4CHEE_ARC/sql/update-5.8-db2.sql
> db2 terminate
$ sqlplus <user-name>/<user-password>
SQL> @$DCM4CHEE_ARC/sql/update-5.8-oracle.sql
Not yet tested
-
Replace previous schema files in OpenLDAP schema configuration directory by new versions from DCM4CHEE Archive distribution:
> cp $DCM4CHEE_ARC/ldap/schema/* /etc/openldap/schema/ [UNIX] > copy %DCM4CHEE_ARC%\ldap\schema\* \Program Files\OpenLDAP\schema\ [Windows]
-
Restart slapd:
> sudo service slapd restart [UNIX]
-
Delete previous schema files from the OpenLDAP runtime configuration:
> sudo rm "/etc/ldap/slapd.d/cn=config/cn=schema/cn={4}dicom.ldif" > sudo rm "/etc/ldap/slapd.d/cn=config/cn=schema/cn={5}dcm4che.ldif" > sudo rm "/etc/ldap/slapd.d/cn=config/cn=schema/cn={6}dcm4chee-archive.ldif"
-
Restart slapd:
> sudo service slapd restart
-
Import new LDAP schema files for OpenLDAP runtime configuration, using OpenLDAP CL utility ldapadd, e.g.:
> sudo ldapadd -Y EXTERNAL -H ldapi:/// -f $DCM4CHEE_ARC/ldap/slapd/dicom.ldif > sudo ldapadd -Y EXTERNAL -H ldapi:/// -f $DCM4CHEE_ARC/ldap/slapd/dcm4che.ldif > sudo ldapadd -Y EXTERNAL -H ldapi:/// -f $DCM4CHEE_ARC/ldap/slapd/dcm4chee-archive.ldif
-
Replace previous schema files in OpenDJ schema configuration directory by new versions from DCM4CHEE Archive distribution:
> cp $DCM4CHEE_ARC/ldap/opendj/* $OPENDJ_HOME/config/schema/ [UNIX] > copy %DCM4CHEE_ARC%\ldap\opendj\* %OPENDJ_HOME%\config\schema\ [Windows]
-
Restart OpenDJ by
> $OPENDJ_HOME/bin/stop-ds > $OPENDJ_HOME/bin/start-ds
-
Delete the
ou=objectclasses
child entry from the schema entriesou=schema + cn=dcm4chee-arc + ou=objectclasses + cn=dcm4che + ou=objectclasses
before deleting the schema entries itself, using the Delete Entry function of Apache Directory Studio LDAP Browser.
-
Import new LDAP schema files for Apache DS:
$DCM4CHEE_ARC/ldap/apacheds/dcm4che.ldif $DCM4CHEE_ARC/ldap/apacheds/dcm4chee-archive.ldif
using the LDIF import function of Apache Directory Studio LDAP Browser.
Latest version of DCM4CHEE Archive available is 5.8.0
-
Update DCM4CHE dcm4chee-arc-light libraries as JBoss modules:
> cd $WILDFLY_HOME > rm -r modules/modules/org/dcm4che > unzip $DCM4CHEE_ARC/jboss-modules/dcm4che-jboss-modules-dcm4chee-arc-light-5.x.x.zip
-
If upgrading from version 5.6.x or older, update QueryDSL libraries to 4.1.4 as JBoss module:
> cd $WILDFLY_HOME > rm -r modules/modules/com/querydsl > unzip $DCM4CHEE_ARC/jboss-modules/querydsl-jboss-modules-4.1.4-noguava.zip
-
If upgrading from version 5.6.x or older, update jclouds ibraries to 1.9.2 as JBoss modules:
> cd $WILDFLY_HOME > rm -r modules/modules/com/apache/jclouds > unzip $DCM4CHEE_ARC/jboss-modules/jclouds-jboss-modules-1.9.2-noguava.zip
-
(Re-)Start WildFly in standalone mode with the correct configuration file:
> $WILDFLY_HOME/bin/standalone.sh -c dcm4chee-arc.xml [UNIX] > %WILDFLY_HOME%\bin\standalone.bat -c dcm4chee-arc.xml [Windows]
-
If upgrading from version 5.5.x or older, create JMS Queue
HL7Send
using JBoss CLI:> $WILDFLY_HOME/bin/jboss-cli.sh -c [UNIX] > %WILDFLY_HOME%\bin\jboss-cli.bat -c [Windows] [standalone@localhost:9990 /] jms-queue add --queue-address=HL7Send --entries=java:/jms/queue/HL7Send
-
If upgrading from version 5.6.x or older, create JMS Queue
StgCmtSCU
using JBoss CLI:> $WILDFLY_HOME/bin/jboss-cli.sh -c [UNIX] > %WILDFLY_HOME%\bin\jboss-cli.bat -c [Windows] [standalone@localhost:9990 /] jms-queue add --queue-address=StgCmtSCU --entries=java:/jms/queue/StgCmtSCU
-
If upgrading from version 5.7.0 or older, install ecs-object-client 3.0.0 libraries as JBoss modules:
> cd $WILDFLY_HOME > unzip $DCM4CHEE_ARC/jboss-modules/ecs-object-client-jboss-modules-3.0.0.zip
-
If upgrading from version 5.7.2 or older, create JMS Queue
RSClient
using JBoss CLI:> $WILDFLY_HOME/bin/jboss-cli.sh -c [UNIX] > %WILDFLY_HOME%\bin\jboss-cli.bat -c [Windows] [standalone@localhost:9990 /] jms-queue add --queue-address=RSClient--entries=java:/jms/queue/RSClient
-
Undeploy old DCM4CHEE Archive 5.x using JBoss CLI, e.g.:
> $WILDFLY_HOME/bin/jboss-cli.sh -c [UNIX] > %WILDFLY_HOME%\bin\jboss-cli.bat -c [Windows] [standalone@localhost:9990 /] undeploy dcm4chee-arc-ear-5.x.old-psql.ear
-
Deploy new DCM4CHEE Archive 5.x using JBoss CLI, e.g.:
[standalone@localhost:9990 /] deploy $DCM4CHEE_ARC/deploy/dcm4chee-arc-ear-5.x.new-psql.ear
DCM4CHEE 5 Documentation