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
| #!/bin/bash | |
| # | |
| # Script to figure out the non-HANA resident memory high watermark so that | |
| # the GAL can be correctly configured | |
| # Number of passes (minutes) to run the script for, suggest 24 hours 1440 | |
| Passes=1440 | |
| Sleep=60 | |
| HighWaterMark=0 | |
| HighWaterMarkDate='' |
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
| SELECT | |
| C.BACKUP_ID AS BACKUP_ID, | |
| SUM(ROUND(TO_DOUBLE(F.BACKUP_SIZE)/1024/1024/1024, 2)) AS LAST_FULL_BACKUP_GiB | |
| FROM | |
| M_BACKUP_CATALOG_FILES AS F | |
| JOIN | |
| M_BACKUP_CATALOG AS C ON C.BACKUP_ID = F.BACKUP_ID | |
| WHERE | |
| C.ENTRY_TYPE_NAME = 'complete data backup' | |
| AND |
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
| SELECT | |
| ROUND(SUM(BYTES)/1024/1024/1024,3) AS DATA_FOOTPRINT_GiB | |
| FROM ( | |
| SELECT | |
| ( | |
| SUM(MEMORY_SIZE_IN_TOTAL) + | |
| SUM(MEMORY_SIZE_IN_DELTA) + | |
| SUM( | |
| CASE | |
| WHEN LOADED = 'FULL' THEN '0' |
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
| SELECT | |
| SQ.START_TIME AS START_TIME_OF_LAST_BACKUP, | |
| ROUND(TO_REAL(SQ.SIZE_MiB),1) AS SIZE_OF_LAST_BACKUP_MB, | |
| SQ.SECONDS AS SECONDS_ELAPSED, | |
| ROUND(SQ.SIZE_MiB/SECONDS,1) AS MB_PER_SECOND | |
| FROM | |
| ( | |
| SELECT | |
| C.UTC_START_TIME AS START_TIME, | |
| SECONDS_BETWEEN(C.UTC_START_TIME,C.UTC_END_TIME) AS SECONDS, |