
============================================================================
MARS-828 Installation Starting (AUTO MODE)
============================================================================

INSTALL_START          
______________________ 
2026-01-29 19:52:51    

1 row selected. 

============================================================================

Step 1/7: Adding archival strategy columns
===================================================================
========================================
MARS-828: Adding archival strategy columns
========================================

Table CT_MRDS.A_SOURCE_FILE_CONFIG altered.


Table CT_MRDS.A_SOURCE_FILE_CONFIG altered.


Comment created.


Comment created.


COLUMN_NAME           DATA_TYPE       DATA_LENGTH NULLABLE    DATA_DEFAULT          
_____________________ ____________ ______________ ___________ _____________________ 
ARCHIVAL_STRATEGY     VARCHAR2                 30 N           'THRESHOLD_BASED'     
MINIMUM_AGE_MONTHS    NUMBER                   22 Y           NULL
                 

2 rows selected. 

========================================
Archival strategy columns added successfully
========================================

Step 2/7: Creating validation trigger
======================================
========================================
MARS-828: Creating archival strategy validation trigger
========================================

Trigger CT_MRDS.TRG_BI_A_SRC_FILE_CFG_ARCH_VAL compiled


TRIGGER_NAME                      STATUS     TRIGGER_TYPE       TRIGGERING_EVENT    
_________________________________ __________ __________________ ___________________ 
TRG_BI_A_SRC_FILE_CFG_ARCH_VAL    ENABLED    BEFORE EACH ROW    INSERT OR UPDATE    

1 row selected. 

========================================
Archival strategy validation trigger created successfully
========================================

Step 3/7: Deploying FILE_ARCHIVER Spec v3.0.0
===============================================================

Package CT_MRDS.FILE_ARCHIVER compiled

========================================
FILE_ARCHIVER Specification v3.0.0 ready for installation
========================================

Step 4/7: Deploying FILE_ARCHIVER Body v3.0.0
======================================================

Package Body CT_MRDS.FILE_ARCHIVER compiled


Step 5/7: Verifying installation
=================================
========================================
MARS-828: Verification Script
========================================

1. Verifying A_SOURCE_FILE_CONFIG columns...

COLUMN_NAME           DATA_TYPE    NULLABLE    DATA_DEFAULT          
_____________________ ____________ ___________ _____________________ 
ARCHIVAL_STRATEGY     VARCHAR2     N           'THRESHOLD_BASED'     
MINIMUM_AGE_MONTHS    NUMBER       Y           NULL
                 

2 rows selected. 


2. Verifying check constraint...

CONSTRAINT_NAME          CONSTRAINT_TYPE    SEARCH_CONDITION                                                                                          
________________________ __________________ _________________________________________________________________________________________________________ 
CHK_ARCHIVAL_STRATEGY    C                  
        ARCHIVAL_STRATEGY IN ('THRESHOLD_BASED', 'CURRENT_MONTH_ONLY', 'MINIMUM_AGE_MONTHS', 'HYBRID')
        

1 row selected. 


3. Verifying validation trigger...

TRIGGER_NAME                      STATUS     TRIGGER_TYPE       
_________________________________ __________ __________________ 
TRG_BI_A_SRC_FILE_CFG_ARCH_VAL    ENABLED    BEFORE EACH ROW    

1 row selected. 


4. Checking FILE_ARCHIVER package status...

OBJECT_NAME      OBJECT_TYPE     STATUS    LAST_DDL_TIME          
________________ _______________ _________ ______________________ 
FILE_ARCHIVER    PACKAGE         VALID     2026-01-29 19:52:54    
FILE_ARCHIVER    PACKAGE BODY    VALID     2026-01-29 19:52:55    

2 rows selected. 


5. Checking for compilation errors...


0 rows selected. 


6. Verifying FILE_ARCHIVER version...

PACKAGE_VERSION    
__________________ 
3.0.0              

1 row selected. 


7. Testing trigger validation (should fail)...
SUCCESS: Trigger validation working correctly
Expected error: ORA-20999: MINIMUM_AGE_MONTHS is required for MINIMUM_AGE_MONTHS strategy
ORA-06512: at "CT_MRDS.TRG_BI_A_SRC_FILE_CFG_ARCH_VAL", line 26
ORA-06512: at "CT_MRDS.TRG_BI_A_SRC_FILE_CFG_ARCH_VAL", line 8
ORA-04088: error during execution of trigger 'CT_MRDS.TRG_BI_A_SRC_FILE_CFG_ARCH_VAL'


PL/SQL procedure successfully completed.


========================================
MARS-828: Verification Complete
========================================

Step 6/7: Tracking package versions
====================================
========================================
Package Version Tracking
========================================
EnvironmentID set to: dev
[2026-01-29 19:53:00] [INFO] ENV_MANAGER.TRACK_PACKAGE_VERSION: Start TRACK_PACKAGE_VERSION
[2026-01-29 19:53:01] [INFO] ENV_MANAGER.TRACK_PACKAGE_VERSION: End TRACK_PACKAGE_VERSION - Record inserted

Summary:
--------
Packages tracked: 1/1

Tracked Packages:
  CT_MRDS.FILE_ARCHIVER v3.0.0
========================================


PL/SQL procedure successfully completed.


Step 7/7: Verifying tracked packages
=====================================

========================================
Package Version Verification
========================================


PACKAGE_OWNER    PACKAGE_NAME        VERSION    STATUS                                                 
________________ ___________________ __________ ______________________________________________________ 
CT_MRDS          DATA_EXPORTER       2.6.3      OK: Package CT_MRDS.DATA_EXPORTER has not changed.
Last Tracked: 2026-01-28 19:18:36
Version: 2.6.3                                                                                                                                                                                                                                                                                                                                
CT_MRDS          ENV_MANAGER         3.2.0      OK: Package CT_MRDS.ENV_MANAGER has not changed.
Last Tracked: 2026-01-28 19:18:36
Version: 3.2.0                                                                                                                                                                                                                                                                                                                                  
CT_MRDS          FILE_ARCHIVER       3.0.0      OK: Package CT_MRDS.FILE_ARCHIVER has not changed.
Last Tracked: 2026-01-29 19:53:01
Version: 3.0.0                                                                                                                                                                                                                                                                                                                                
CT_MRDS          FILE_MANAGER        3.4.0      OK: Package CT_MRDS.FILE_MANAGER has not changed.
Last Tracked: 2026-01-26 11:42:32
Version: 3.4.0                                                                                                                                                                                                                                                                                                                                 
CT_MRDS          WORKFLOW_MANAGER    1.7.1      OK: Package CT_MRDS.WORKFLOW_MANAGER has not changed.
Last Tracked: 2025-11-25 16:00:36
Version: 1.7.1                                                                                                                                                                                                                                                                                                                             
ODS              FILE_MANAGER_ODS    2.1.0      WARNING: Package ODS.FILE_MANAGER_ODS has changed!
========================================
Last Tracked Version: 2.1.0
Last Tracked Date: 2025-11-26 08:58:57

BODY Changed:
  Current Hash: 1d167a53256c10dd...
  Last Hash:    NULL...

RECOMMENDATION:
1. Update PACKAGE_VERSION constant
2. Update PACKAGE_BUILD_DATE constant
3. Add entry to VERSION_HISTORY
4. Call TRACK_PACKAGE_VERSION to update tracking    

========================================
Verification Complete
========================================

Legend:
OK - Package has not changed since last tracking
WARNING - Package code changed without version update

For detailed hash information, use:
SELECT ENV_MANAGER.GET_PACKAGE_HASH_INFO('OWNER', 'PACKAGE') FROM DUAL
========================================

============================================================================
MARS-828 Installation Completed
============================================================================

INSTALL_END            
______________________ 
2026-01-29 19:53:02    

1 row selected. 

============================================================================
