Gitlab Community Edition Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bnachtw
TSM-Scripts
Commits
08e00393
Commit
08e00393
authored
Aug 12, 2020
by
bnachtw
Browse files
initial coding
parent
2cedd024
Changes
1
Hide whitespace changes
Inline
Side-by-side
DB2-scripts/run-stats.sh
0 → 100644
View file @
08e00393
#! /bin/bash
##############################################################################
#
# run-stats.sh
#
# runing db2 runstats for all tables
#
# (C) 2020 -- 2020 GWDG Göttingen, Bjørn Nachtwey
# mailto:bjoern.nachtwey@gwdg.de
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
#
# changelog
# date version remark
# 2020-08-XX 0.0.1 initial coding using bash
# 2020-08-12 0.1.0 first version put to gitlab
db2 connect to tsmdb1
for
tab
in
ACTIVITY_LOG AF_SEGMENTS AF_BITFILES ARCHIVE_OBJECTS AS_SEGMENTS BACKUP_OBJECTS BF_AGGREGATE_ATTRIBUTES BF_AGGREGATED_BITFILES GROUP_LEADERS EXPORT_OBJECTS TSMMON_STATUS
do
db2
"RUNSTATS ON TABLE tsmdb1.
$tab
WITH DISTRIBUTION AND SAMPLED DETAILED INDEXES ALL"
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment