From the mainframe to the cloud. One DBA tool.
BreinerDBA is a Python toolkit for DB2 administration on z/OS, LUW and the cloud. It's built by Chad Breiner, a DB2 specialist with nearly 40 years of hands-on experience.
- MainframeDB2 for z/OSUtilities, catalog queries, RUNSTATS and REORG planning
- DistributedDb2 LUWLinux, UNIX and Windows instances and databases
- CloudDb2 on CloudManaged and containerized Db2 deployments
The checks a seasoned DBA runs, automated in Python
BreinerDBA brings decades of DB2 practice into one command-line tool and Python library. Point it at a subsystem or a database, and it tells you what needs attention.
$ breinerdba check --target PRODDB2 --profile zos Connecting to DSN1 (DB2 13 for z/OS)… ok CATALOG STATISTICS ! 14 tablespaces with RUNSTATS older than 30 days ✓ No objects in COPY-pending status REORG CANDIDATES ! DBPAY01.TSCLAIM far-off rows 18.2% ! DBPAY01.TSHIST far-off rows 11.7% BUFFER POOLS ✓ BP0 hit ratio 99.1% ! BP8K1 hit ratio 91.4% (target ≥ 95%) Generated JCL → ./out/reorg_dbpay01.jcl Report → ./out/health_PRODDB2.html
Health checks
Stale statistics, pending states, buffer pool hit ratios and space growth, in a single report.
Utility generation
Builds RUNSTATS, REORG and COPY jobs as JCL for z/OS or as scripts for LUW.
Schema compare
Diffs DDL between environments and writes the migration script for you.
Python first
Use it from the command line or import it into your own scripts and notebooks.
The terminal output is a sample run against example objects.
I've worked with DB2 since the mainframe-only days
My career runs from green-screen terminals and JCL to distributed Db2 and the cloud. Along the way I've tuned, migrated, recovered and supported DB2 systems that businesses depend on every day.
BreinerDBA is how I'm packaging that experience into tools the next generation of DBAs can use. This blog is where I share what I've learned.
IBM Certified Database Administrator for DB2 on z/OS and LUW, with 7 IBM DB2 certifications since 2003.
Notes from 40 years in the trenches
DB2 ZOS V13 Function Level 100
Function level 100 (for migrating to Db2 13 – May 2022) Last Updated: 2025-07-01 Db2 starts at function level 100 (V13R1M100) during migration to Db2 13, and fallback…
Hello World!
Welcome to WordPress! This is your first post. Edit or delete it to take the first step in your blogging journey.
Get new posts and releases
One email when there's a new article or a BreinerDBA release. No spam.