Skip to content

[patch] Updating the backup Scripts and DB2 copy scripts as per the new URL#416

Open
patratap wants to merge 4 commits intoibm-mas:mainfrom
patratap:SREDBA-6841_Update_BackupScripts
Open

[patch] Updating the backup Scripts and DB2 copy scripts as per the new URL#416
patratap wants to merge 4 commits intoibm-mas:mainfrom
patratap:SREDBA-6841_Update_BackupScripts

Conversation

@patratap
Copy link
Contributor

Renamed the script from reorgTablesIndexesInplace2.sh
to reorgTablesIndexesInplace.sh to copy files to respected paths

Refactor backup scripts (DB2_Backup.sh, Run_backup.sh, RUN_OnDemandFULL_BKP.sh to improve readability and functionality.
Updated the new ICD links to the script
Added parameter checks, updated variable naming conventions, and enhanced logging.

Renamed the reorgTablesIndexesInplace2.sh to reorgTablesIndexesInplace.sh

Refactor runstats_rebind.sh to run weekly runstats and rebinds
Disabled the grant_check.sh to eliminate access issues from users and roles

patratap and others added 2 commits March 3, 2026 16:02
 to reorgTablesIndexesInplace.sh to copy files to respected paths

Refactor backup scripts to improve readability and functionality.
Updated the new ICD links to the script
Added parameter checks, updated variable naming conventions, and enhanced logging.

Renamed the reorgTablesIndexesInplace2.sh to reorgTablesIndexesInplace.sh

Refactor runstats_rebind.sh to run daily runstats and weekly rebinds
@mnivedithaa mnivedithaa requested review from rbinns and whitfiea March 16, 2026 15:05
@mnivedithaa mnivedithaa changed the title Updating the backup Scripts and DB2 copy scripts as per the new URL [patch] Updating the backup Scripts and DB2 copy scripts as per the new URL Mar 18, 2026
Copy link
Member

@whitfiea whitfiea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have these changes been tested anywhere? Can we add that test detail to the PR?

INSTANCE_HOME=`/usr/local/bin/db2greg -dump | grep -ae "I," | grep -v "/das," | grep "${DBINSTANCE}" | awk -F ',' '{print $5}'| cut -d/ -f 1,2,3,4,5`
SCRIPT_DIR=${INSTANCE_HOME}/bin
BACKUP_SCRIPT="${SCRIPT_DIR}/DB2_Backup.sh"
CUSTNAME=`hostname | sed 's/c-db2wh-//; s/c-//; s/-db2u-0//; s/db2u/-/; s/-manage//;' | tr '[:lower:]' '[:upper:]'`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this also remove -facilities, -iot, -monitor?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want to differentiate the manage from others env so didnt included (-facilities, -iot, -monitor).

Scripts we have already deployed in MAS MS and running successfully

image image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@patratap if it used like this then it would make more sense to keep the -manage part in wouldn't it, so there is consistence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants