...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
v5.0.0.0-to-v5.1.0.0/migration.sql v5.1.0.0-to-5.1.0.3/migration.sql v5.1.0.3-to-v5.2.0.0/migration.sql v5.2.0.0-to-5.2.0.1/migration.sql v5.2.0.1-to-5.3.0.0/migration.sql |
Executing migration files
Once you have decided which migration scripts to execute, you need to run them against your database using database specific tools in proper sequence.
Oracle
These scripts should be executed as system, sys 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 . Instructions below are for using the sqlplus client for Oracle database, for PostgreSQL & MySQL use appropriate tools to execute migration scripts.
Info | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Oracle SQL*Plus 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. Make sure to spool output to a file, so it can be analyzed later if necessary. To launch sqlplus:
If running on another host other than the database server, you must update your tnsnames file and and launch sqlplus as follows:
|
For example,
PostgreSQL
These scripts should be executed as postgres or another super user which has privileges to create objects in other schemas, performs grants, etc. Change the bold text as needed in your environment.
Linux
- Run FlexDeploy migration scripts. Type the password when asked. PostgresDDL.txt records the output of the script so that you can refer back to it later.
- cd <Flexdeploy Unzip Folder>\database\postgres\upgrade\vx.y.0.z-v.a.b.0.c
- /path/to/psql -U postgres -h hostname -p 5432 -d flexdeploy -a -b -e -f migration.sql > PostgresDDL.txt
Windows
- Run FlexDeploy scripts. Type the password when asked. PostgresDDL.txt records the output of the script so that you can refer back to it later.
- cd <Unzip Folder>/database/postgres/upgrade/vx.y.0.z-v.a.b.0.c
- C:\path\to\psql -U postgres -h hostname -p 5432 -d flexdeploy -a -b -e -f migration.sql > PostgresDDL.txt