Steps to perform db upgrade: - Backup your existing data folder Copy
- Copy all the folders from the extracted download data folder into created by extracting the latest version into your existing data Upgrade folder
Example- . This will replace existing Crcdata, Hivedata, Metadata, PMdata folders. Example: Downloads\
2b2core1712a- 1713\i2b2\data to C:\opt\edu.harvard.i2b2.data\Release_1-7\Upgrade\.
This will replace the existing Crcdata, Hivedata, Metadata, PMdata folders. Alternative to above step, navigate to the edu.harvard.i2b2.data\Release_1-7\Upgrade\ directory of your extracted folder - Copy the db.properties files from your back up into the respective locations (namely Crcdata, Hivedata, Metadata, PMdata )
- Open the command prompt and navigate to to each cell folders folder and run the following upgrade ant commands on your i2b2 database instance, where {db} can can be Oracle, sqlserver or postgresql.
- Alternative to above Step, you can run individual SQL scripts on your db instance in place of ant commands.
- In
data folder- datafolder\Release_1-7\Upgrade\ run the ant commands under each individual cell
subfolder .Upgrade From Build | Upgrade to Latest build |
---|
1.7.09c | In the Crcdata folder run the following ant command: ant -f data_build. | xml tabletables_release_1-7-09c upgrade_ | tabletables_release_1-7-10 upgrade_ | tabletables_release_1-7-11 upgrade_ | table12 12a In the Hivedata folder run the following ant command: ant -f data_build.xml upgrade_ | hive_09c upgradehive_10 upgrade_hive_tables_release_1-7-11 upgrade_hive_tables_release_1-7-1212a
In the Metadata folder run the following ant command: ant -f data_build.xml upgrade_tables_release_1-7- | 09c 10 upgrade_tables_release_1-7- | 10 upgrade_tables_release_1-7-11 upgrade_tables_release_1-7-12 PMdata Pmdata folder run the following ant command: ant -f data_build.xml upgrade | _pm09c upgrade_pm_tables_release_1-7-10 upgrade_pm_tables_release_1-7-11 upgrade_pm_tables_release_1-7-1209c | 1.7.10 | In the Crcdata folder run the following ant command: ant -f data_build.xml upgrade_table_release_1-7-10 upgrade_ | tabletables_release_1-7-11 upgrade_ | table12 12a In the Hivedata folder run the following ant command: ant -f data_build.xml upgrade | _hive10 upgrade_hive_tables_release_1-7-_hive12In the PMdata folder run the following ant command: ant -f data_build.xml upgrade_pm_tables_release_1-7-10 upgrade_pm_tables_release_1-7-11 upgrade_pm_tables_release_1-7-12 12a
In the Metadata folder run the following ant command: ant -f data_build.xml upgrade_tables_release_1-7-10 upgrade_tables_release_1-7- | 11 upgrade_tables_release_1-7-121.7.11
| In the Crcdata folder run the following ant command: ant -f data_build.xml upgrade_ | table11 11 upgrade_table_release_1-7- | 12 12a In the Hivedata folder run the following ant command: ant -f data_build.xml upgrade_ | hive_11 upgrade_hive11 upgrade_tables_release_1-7- | 1212a
In the Metadata folder run the following ant command: ant -f data_build.xml upgrade_tables_release_1-7- | 11 upgrade_tables_release_1-7-12In the PMdata folder run the following ant command: ant -f data_build.xml upgrade_pm_tables_release_1-7-11 upgrade_pm_tables_release_1-7-12
11212a | In the Crcdata folder run the following ant command: ant -f data_build.xml upgrade_ | table12 12a In the Hivedata folder run the following ant command: ant -f data_build.xml upgrade_ | hive_1212a In the Metadata folder run the following ant command: ant -f data_build.xml upgrade_tables_release_1-7- | 12In the PMdata folder run the following ant command: ant -f data_build.xml upgrade_pm_tables_release_1-7-12- Upgrade stored procedures
Run the below CRC and metadata Sql Procedures if your db instance is Postgres. In Crcdata/scripts/procedures/<db instance>/*.sql In Metadata/scripts/procedures/<db instance>/*.sql
Info |
---|
title | HIVE_CELL_PARAMS configuration |
---|
| Check HIVE_CELL_PARAMS table is updated with cell properties parameters as detailed here |
|