[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
Open
[patch] Updating the backup Scripts and DB2 copy scripts as per the new URL#416patratap wants to merge 4 commits intoibm-mas:mainfrom
patratap wants to merge 4 commits intoibm-mas:mainfrom
Conversation
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
Remodified the runstats_rebind script with the actual script
whitfiea
requested changes
Mar 18, 2026
Member
whitfiea
left a comment
There was a problem hiding this comment.
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:]'` |
Member
There was a problem hiding this comment.
should this also remove -facilities, -iot, -monitor?
Contributor
Author
Member
There was a problem hiding this comment.
@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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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