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

INSTALL_START          
______________________ 
2026-01-28 06:49:11    

1 row selected. 

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

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

Error starting at line : 11 File @ C:\_git\_local_rep\working_dir_02\MARS_Packages\REL01_ADDITIONS\MARS-828\01_MARS_828_install_add_archival_strategy_columns.sql
In command -
ALTER TABLE CT_MRDS.A_SOURCE_FILE_CONFIG ADD (
    ARCHIVAL_STRATEGY        VARCHAR2(30) DEFAULT 'THRESHOLD_BASED' NOT NULL,
    MINIMUM_AGE_MONTHS       NUMBER(3)    DEFAULT NULL
)
Error report -
ORA-01430: column being added already exists in table

https://docs.oracle.com/error-help/db/ora-01430/
01430. 00000 -  "column being added already exists in table"
*Cause:    An ALTER TABLE ADD statement specified the name of a
           column that was already in the table. All column names must be
           unique within a table.
*Action:   Specify a unique name for the new column, then
           re-execute the statement.

Error starting at line : 17 File @ C:\_git\_local_rep\working_dir_02\MARS_Packages\REL01_ADDITIONS\MARS-828\01_MARS_828_install_add_archival_strategy_columns.sql
In command -
ALTER TABLE CT_MRDS.A_SOURCE_FILE_CONFIG ADD CONSTRAINT 
    CHK_ARCHIVAL_STRATEGY CHECK (
        ARCHIVAL_STRATEGY IN ('THRESHOLD_BASED', 'CURRENT_MONTH_ONLY', 'MINIMUM_AGE_MONTHS', 'HYBRID')
    )
Error report -
ORA-02264: name already used by an existing constraint

https://docs.oracle.com/error-help/db/ora-02264/
02264. 00000 -  "name already used by an existing constraint"
*Cause:    The specified constraint name has to be unique.
*Action:   Specify a unique constraint name for the constraint.

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

LINE/COL  ERROR
--------- -------------------------------------------------------------
36/10     PLS-00103: Encountered the symbol "\" when expecting one of the following:     ( begin case declare else end exit for goto if loop mod null    pragma raise return select update when while with    <an identifier> <a double-quoted delimited-identifier>    <a bind variable> << continue close current delete fetch lock    insert open rollback savepoint set sql execute commit forall    merge pipe purge json_object The symbol "case was inserted before "\" to continue. 
49/8      PLS-00103: Encountered the symbol "GET_ARCHIVAL_WHERE_CLAUSE" when expecting one of the following:     case 
67/9      PLS-00103: Encountered the symbol "JOIN" when expecting one of the following:     , ; for group having intersect minus order start union where    connect 
Errors: check compiler log

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-28 06:49:14    
FILE_ARCHIVER    PACKAGE BODY    INVALID    2026-01-28 06:49:15    

2 rows selected. 


5. Checking for compilation errors...

NAME             TYPE               LINE    POSITION TEXT                                                                          
________________ _______________ _______ ___________ _____________________________________________________________________________ 
FILE_ARCHIVER    PACKAGE BODY         36          10 PLS-00103: Encountered the symbol "\" when expecting one of the following:

   ( begin case declare else end exit for goto if loop mod null
   pragma raise return select update when while with
   <an identifier> <a double-quoted delimited-identifier>
   <a bind variable> << continue close current delete fetch lock
   insert open rollback savepoint set sql execute commit forall
   merge pipe purge json_object
The symbol "case was inserted before "\" to continue.
    
FILE_ARCHIVER    PACKAGE BODY         49           8 PLS-00103: Encountered the symbol "GET_ARCHIVAL_WHERE_CLAUSE" when expecting one of the following:

   case
                                                                                                                                                                                                                                                                                                                                                                          
FILE_ARCHIVER    PACKAGE BODY         67           9 PLS-00103: Encountered the symbol "JOIN" when expecting one of the following:

   , ; for group having intersect minus order start union where
   connect
                                                                                                                                                                                                                                                                                                                            

3 rows selected. 


6. Verifying FILE_ARCHIVER version...

Error starting at line : 79 File @ C:\_git\_local_rep\working_dir_02\MARS_Packages\REL01_ADDITIONS\MARS-828\05_MARS_828_verify_installation.sql
In command -
SELECT CT_MRDS.FILE_ARCHIVER.GET_VERSION() as package_version FROM DUAL
Error at Command Line : 79 Column : 68 File @ C:\_git\_local_rep\working_dir_02\MARS_Packages\REL01_ADDITIONS\MARS-828\05_MARS_828_verify_installation.sql
Error report -
SQL Error: ORA-04063: package body "CT_MRDS.FILE_ARCHIVER" has errors

https://docs.oracle.com/error-help/db/ora-04063/04063. 00000 -  "%s has errors"
*Cause:    Attempt to execute a stored procedure or use a view that has
           errors.  For stored procedures, the problem could be syntax errors
           or references to other, non-existent procedures.  For views,
           the problem could be a reference in the view's defining query to
           a non-existent table.
           Can also be a table which has references to non-existent or
           inaccessible types.
*Action:   Fix the errors and/or create referenced objects as necessary.

More Details :
https://docs.oracle.com/error-help/db/ora-04063/

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
========================================

Summary:
--------
Packages tracked: 0/1
========================================


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.5.0      OK: Package CT_MRDS.DATA_EXPORTER has not changed.
Last Tracked: 2026-01-26 17:15:41
Version: 2.5.0                                                                                                                                                                                                                                                                                                                                                                                                                                                 
CT_MRDS          ENV_MANAGER         3.2.0      OK: Package CT_MRDS.ENV_MANAGER has not changed.
Last Tracked: 2026-01-26 17:15:41
Version: 3.2.0                                                                                                                                                                                                                                                                                                                                                                                                                                                   
CT_MRDS          FILE_ARCHIVER       2.0.0      WARNING: Package CT_MRDS.FILE_ARCHIVER has changed!
========================================
Last Tracked Version: 2.0.0
Last Tracked Date: 2025-11-25 16:00:36

SPECIFICATION Changed:
  Current Hash: 71a835e531971ca7...
  Last Hash:    836641155e237fc5...

BODY Changed:
  Current Hash: 6f87dff6b0394529...
  Last Hash:    9bf9b3c0e059493c...

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    
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                                                                                                                     
EnvironmentID set to: dev


========================================
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-28 06:49:23    

1 row selected. 

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