Skip to content

Latest commit

 

History

History
55 lines (51 loc) · 3.78 KB

File metadata and controls

55 lines (51 loc) · 3.78 KB

Database Version Control Module Documentation

Overview:

The Database Version Control Module (VCM) was developed to provide a safe and easy way to install and upgrade database modules deployed on a given Oracle database instance. The VCM provides information on which database module versions were installed and when they were installed on a database instance. This module is used to apply the necessary database upgrades in the correct order to upgrade a given database module to a desired version. Starting in Version 1.0 of the SOP the VCM utilizes Oracle SQL*Plus to automate the deployment of the database.

Resources:

Database Design:

  • Oracle Tables:
    • Each time a database upgrade is applied it will insert a record into the DB_UPGRADE_LOGS table that defines the numeric version and application/module name that was applied
  • Oracle Views:
    • The DB_UPGRADE_LOGS_V view can be used to view the upgrade logs for a given database instance
  • **Note: detailed object/column comments are defined on each table and view database objects

DB Upgrade and Rollback Testing

  • (using G:\security\DB\TEST_JDA\SQL\deploy_rollback_dev_VCM.sql):
    • version 1.0:
      • TEST_JDA_COMP: run SQL/deploy_dev.sql
      • TEST_JDA: run version 0.1, 0.2, 1.0 upgrade files
      • verified no invalid objects
      • verified data models are equivalent
    • Version 0.2:
      • TEST_JDA_COMP: run SQL/deploy_dev.sql run SQL/rollback/DB_version_control_DDL_DML_rollback_v1.0.sql
      • TEST_JDA: run version 0.1, 0.2 upgrade files
      • verified no invalid objects
      • verified data models are equivalent
    • Version 0.1:
      • TEST_JDA_COMP:
        • run SQL/deploy_dev.sql
        • run SQL/rollback/DB_version_control_DDL_DML_rollback_v1.0.sql
        • run SQL/rollback/DB_version_control_DDL_DML_rollback_v0.2.sql
      • TEST_JDA: run version 0.1 upgrade files
      • verified no invalid objects
      • verified data models are equivalent
    • Version 0.0:
      • TEST_JDA_COMP: run SQL/deploy_dev.sql run SQL/rollback/DB_version_control_DDL_DML_rollback_v1.0.sql run SQL/rollback/DB_version_control_DDL_DML_rollback_v0.2.sql run SQL/rollback/DB_version_control_DDL_DML_rollback_v0.1.sql
      • confirmed TEST_JDA_COMP schema has no objects