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.
- Version Control Information:
- URL: git@github.com:noaa-pifsc/PIFSC-DBVersionControlModule.git
- Database: 1.0 (git tag: db_vers_ctrl_db_v1.0)
- VCM SOP
- Database Naming Conventions
- Installing or Upgrading the DB Version Control Module
- Documentation Template:
- This Database Installation/Upgrade template is provided so a given module that has had the Database Version Control Module installed can change the placeholders (defined in enclosing brackets) and reference that document in the main technical document for the module.
- Repository Templates:
- The repository_templates folder contains two folders for shared databases (shared_SQL) and dedicated databases (SQL). The appropriate folder should be used for a given project.
- The deployment scripts (e.g. deploy_dev.sql) are provided to streamline the process of automating the deployment of the database.
- 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
- (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
- TEST_JDA_COMP:
- 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
- version 1.0: