FlexDeploy Schema Upgrade

From the downloaded distribution, extract the /database/upgrade folder.  This folder includes a number of migration*.sql files which upgrade the FlexDeploy schemas along with Patch Release SQL files.

You will need to execute these scripts from the version of FlexDeploy you currently have, up to the latest version. And they must be executed in that order.  See examples below if you are upgrading from FlexDeploy 3.7.1 to FlexDeploy 4.5 or FlexDeploy 4.0.0 to FlexDeploy 4.5.

If you are applying patch for 4.5 then you may need to run some SQL files as well, please see instructions below.

Upgrading 3.7.1 to 4.5
migration3.7.1_to_4.0.0.sql
migration4.0.0_to_4.0.1.sql
migration4.0.1_to_4.0.2.sql
migration4.0.2_to_4.0.3.sql
migration4.0.3_to_4.5.0.sql
Upgrading 4.0.0 to 4.5
migration4.0.0_to_4.0.1.sql
migration4.0.1_to_4.0.2.sql
migration4.0.2_to_4.0.3.sql
migration4.0.3_to_4.5.0.sql

The migration4.0.2_to_4.0.3.sql file includes all of the 403PatchRelease*.sql files in it. Patch Release SQL files are only necessary if you are on a 4.0.3 Release.

If you are upgrading from a 4.0.3 Patch Release, follow the date based SQL files in sequence by Date. If you have already a applied specific Patch Release patch then skip it. You can make determination of which Patch Release files to run by looking at Build Time on the About window of your FlexDeploy installation that you saved from a previous step. After completing the last 403PatchRelease, run the migration4.0.3_to_4.5.0.sql file. Contact Flexagon support for details if you are not sure. See example below.

Upgrading 4.0.3 (build time 4/23/2017 or earlier) to 4.5
403PatchRelease_04-24-2017.sql
403PatchRelease_05-01-2017.sql
403PatchRelease_05-5-2017.sql
403PatchRelease_05-11-2017.sql
403PatchRelease_05-22-2017.sql
403PatchRelease_06-14-2017.sql
403PatchRelease_07-19-2017.sql
403PatchRelease_07-24-2017.sql
migration4.0.3_to_4.5.0.sql
Upgrading 4.0.3 (build time 5/11/2017) to 4.5
403PatchRelease_05-22-2017.sql
403PatchRelease_06-14-2017.sql
403PatchRelease_07-19-2017.sql
403PatchRelease_07-24-2017.sql
migration4.0.3_to_4.5.0.sql

Upgrade from 4.5 GA to 4.5 Patch Releases

If you have 4.5 GA version installed and would like to upgrade to 4.5 patch releases like 4.5.1 or 4.5.2, then you will may need to run Patch Release SQL files that were not yet run on your database. Here is the current list of SQL patches on 4.5 GA.

  1. 450PatchRelease_10-11-2017.sql
  2. 450PatchRelease_11-01-2017.sql
  3. 450PatchRelease_11-02-2017.sql
  4. 450PatchRelease_12-09-2017.sql
  5. 450PatchRelease_01-12-2018.sql

You can find which files that you may have already executed by doing "select version, created_on, created_by from fd.fd_flexdeploy_version order by created_on desc" database query.

We have also added new screen in 4.5 patch release to view list of patches, which you can access using Administration - FlexDeploy Patches in FlexDeploy.


These scripts should be executed as system, sys, or another user which has privileges to create objects in other schemas, performs grants, etc.  You can load and execute these scripts using other tools such as Toad or SQL Developer, but the instructions here are for using the sqlplus client.

sqlplus

Oracle sqlus is part of the Oracle Client, and may be executed on any host which has it installed. If the Oracle Client is not installed on the same host as where you are installing FlexDeploy, you can copy the scripts to another host which has it installed.

To launch sqlplus:

export ORACLE_HOME=<your Oracle Home directory>
export ORACLE_SID=<the SID of your database>
spool migration4.5.0.out #(change for each script execution so logs are preserved)
$ORACLE_HOME/bin/sqlplus #(login as sys or system when prompted)
SQL> <<execute scripts as shown above>>

If running on another host other than the database server, you must update your tnsnames file and and launch sqlplus as follows:

export ORACLE_HOME=<your Oracle Home directory>
export ORACLE_SID=<the SID of your database>
spool migration4.5.0.out #(change for each script execution so logs are preserved)
$ORACLE_HOME/bin/sqlplus system@<tnsname>
SQL> <<execute scripts as shown above>>

For example,

The following macros are not currently supported in the footer:
  • style