Commit 08e00393 authored by bnachtw's avatar bnachtw
Browse files

initial coding

parent 2cedd024
#! /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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment