Upgrade in same database but with separate schemas
Hi all! We are considering two approaches to upgrading our application. We want to do the upgrade with one database but are not sure on the best way to handle it. Since work will still be happening during the upgrade we thought to create new schemas in the same database and perform the upgrade on those copied schema. Any opinions or guidance is highly appreciated!
Existing Data Schema
APP_RULE_DEV
APP_DATA_DEV
Create new rules and data Schema
NAPP_RULE_DEV (Copy data from APP_RULE_DEV)
NAPP_DATA_DEV (Copy data from APP_DATA_DEV)
This is from 7.4 to 8.5.4
Oracle Database
First Approach:
We are copying the rules schema and data schema to new schemas in the same database. We are planning on upgrading on the new schemas like it is an in-place upgrade.
What are the risks with doing the upgrade this way?
I believe this would be using the upgrade.sh and setupDatabase.properties files only as opposed to using the temporary schema and migration files.
Second Approach:
Create blank temp rule schema (would be dropped after upgrade)
NAPP_RULE_TEMP
Property File Update
=====================
Hi all! We are considering two approaches to upgrading our application. We want to do the upgrade with one database but are not sure on the best way to handle it. Since work will still be happening during the upgrade we thought to create new schemas in the same database and perform the upgrade on those copied schema. Any opinions or guidance is highly appreciated!
Existing Data Schema
APP_RULE_DEV
APP_DATA_DEV
Create new rules and data Schema
NAPP_RULE_DEV (Copy data from APP_RULE_DEV)
NAPP_DATA_DEV (Copy data from APP_DATA_DEV)
This is from 7.4 to 8.5.4
Oracle Database
First Approach:
We are copying the rules schema and data schema to new schemas in the same database. We are planning on upgrading on the new schemas like it is an in-place upgrade.
What are the risks with doing the upgrade this way?
I believe this would be using the upgrade.sh and setupDatabase.properties files only as opposed to using the temporary schema and migration files.
Second Approach:
Create blank temp rule schema (would be dropped after upgrade)
NAPP_RULE_TEMP
Property File Update
=====================
1) migrateSystem.Properties (Migrate rule schema)
Source rule schema NAPP_RULE_DEV
Source data schema NAPP_DATA_DEV
Target rule schema NAPP_RULE_TEMP
Target data schema
2) setupDataBase.Properties (Upgrade rule schema)
rule schema NAPP_RULE_TEMP
data schema NAPP_RULE_TEMP
3) setupDataBase.Properties (Upgrade data schema)
rule schema NAPP_RULE_TEMP
data schema NAPP_DATA_DEV
Upgrade Execution Steps
=======================
Out of place (Upgrading with one database)
a) Migrating the rules tables with one database
nohup ./migrate.sh &
b) Upgrading the rules schema
nohup ./upgrade.sh &
c) Upgrading the data schema
nohup ./upgrade.sh & --dataOnly true
Post Upgrade
==============
- Truncate/empty NAPP_RULE_DEV
- Copy NAPP_RULE_TEMP into NAPP_RULE_DEV
- Drop NAPP_RULE_TEMP