Utility Scripts for pureScale
Some utility scripts that are handy when managing pureScale or DPF cluster. runall scripts Use runall script to commands on all hosts. This way, it is easier to run commands in a single command rather...
View ArticleIBM Provided Utility Scripts for Db2
The Db2 Warehouse client container provides a toolkit that has very nice utility scripts that can be downloaded from http://ibm.biz/db2warehousetools . The list of tools available in the tool kit are...
View ArticleCount Rows When Loading
Using HPU to unload data from source and transferring that data over sockets and using native LOAD to load the data. Also, partitioning is changing. A simple script that counts the number of rows and...
View ArticleDatabase Size and Table Sizes
The size of the database can be determined by calling CALL GET_DBSIZE_INFO(?, ?, ?, 0); When we call above Db2 procedure, it also populates information in SYSTOOLS.STMG_DBSIZE_INFO table. We can write...
View ArticleDatabase Up Time
Usually we run uptime command in Unix to find the uptime of the server. But, what about DB2 database? How long it had been working? db2 “select db_conn_time from table (mon_get_database(-2))” The...
View ArticleTable in Quiesce Mode
For example: I get an error creating a table or accessing a table space. create table tpcds.vikram ( c1 int not null primary key, tx_date date not null, c2 char(10), c3 timestamp(9) default current...
View ArticlePartitions held by a table
How to find the total number of database partitions and range (data) partitions held by a table? Here is the query: select t.tabschema SCHEMA, t.tabname TABLE, (select count(*) from...
View Article